java.lang.Object
tech.deplant.java4ever.framework.Account
Contract is a storage for all your contract stuff - abi, account info from blockchain.
There are no checks, so make sure that you're putting right infos and abis.
-
Constructor Summary
ConstructorsConstructorDescriptionAccount
(Sdk sdk, Address address, ContractAbi abi, int status, BigDecimal balance, String boc, Instant lastPaidUtc) -
Method Summary
Modifier and TypeMethodDescriptioncallExternal
(Credentials credentials, String functionName, Map<String, Object> functionInputs) callInternalFromMsig
(Credentials credentials, Address msigAddress, BigInteger transactionValue, String functionName, BigInteger functionValue, Map<String, Object> functionInputs, boolean functionBounce) boolean
isActive()
static Account
ofAddress
(Sdk sdk, Address address, ContractAbi abi) ofAddressList
(Sdk sdk, List<Address> addresses, ContractAbi abi)
-
Constructor Details
-
Account
public Account(Sdk sdk, Address address, ContractAbi abi, int status, BigDecimal balance, String boc, Instant lastPaidUtc)
-
-
Method Details
-
ofAddress
- Throws:
Sdk.SdkException
-
ofAddressList
public static List<Account> ofAddressList(Sdk sdk, List<Address> addresses, ContractAbi abi) throws Sdk.SdkException - Throws:
Sdk.SdkException
-
isActive
public boolean isActive() -
runGetter
public Map<String,Object> runGetter(@NonNull @NonNull String abiFunction, Map<String, Object> input) throws Sdk.SdkException- Throws:
Sdk.SdkException
-
callExternal
public Map<String,Object> callExternal(Credentials credentials, String functionName, Map<String, Object> functionInputs) throws Sdk.SdkException- Throws:
Sdk.SdkException
-
callInternalFromMsig
public Map<String,Object> callInternalFromMsig(Credentials credentials, Address msigAddress, BigInteger transactionValue, String functionName, BigInteger functionValue, Map<String, Object> functionInputs, boolean functionBounce) throws Sdk.SdkException- Throws:
Sdk.SdkException
-