- All Known Implementing Classes:
AbstractContract
,GiverContract
,GiverV2Contract
,MultisigContract
,MultisigContract2
,SafeMultisigWallet2Contract
,SafeMultisigWalletContract
,SetcodeMultisigWallet2Contract
,SetcodeMultisigWalletContract
,SurfMultisigWalletContract
,TIP3TokenRootContract
,TIP3TokenWalletContract
,TIP4CollectionContract
,TIP4IndexBasisContract
,TIP4IndexContract
,TIP4NftContract
,TIP4WalletContract
,UpdateMultisigWallet2Contract
public interface Contract
The interface Contract.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionabi()
Abi contract abi.default Account
account()
Downloads actual account info, including boc.default BigInteger
Check actual EVER balance on contract's account.address()
Address address.int
Context id int.Credentials that were provided in object constructor.default tech.deplant.java4ever.binding.Abi.DecodedMessageBody
decodeMessageBoc
(TvmCell messageBoc) Decode message boc abi . decoded message body.static <IMPL extends AbstractContract>
IMPLinstantiate
(Class<IMPL> clazz, int sdk, String address, ContractAbi abi, Credentials credentials) Instantiate .default FunctionHandle
<Map<String, Object>> prepareCall
(String functionName, Map<String, Object> functionInputs, tech.deplant.java4ever.binding.Abi.FunctionHeader functionHeader) Prepare call function handle.
-
Field Details
-
logger
The constant logger.
-
-
Method Details
-
instantiate
static <IMPL extends AbstractContract> IMPL instantiate(Class<IMPL> clazz, int sdk, String address, ContractAbi abi, Credentials credentials) Instantiate .- Type Parameters:
IMPL
- the type parameter- Parameters:
clazz
- the clazzsdk
- the sdkaddress
- the addressabi
- the abicredentials
- the credentials- Returns:
- the
-
accountBalance
Check actual EVER balance on contract's account.- Returns:
- big integer
- Throws:
tech.deplant.java4ever.binding.EverSdkException
- the ever sdk exception
-
account
Downloads actual account info, including boc. Use account().boc() to get it.- Returns:
- account
- Throws:
tech.deplant.java4ever.binding.EverSdkException
- the ever sdk exception
-
contextId
int contextId()Context id int.- Returns:
- the int
-
address
-
abi
-
credentials
Credentials credentials()Credentials that were provided in object constructor. They can be different from real pubkey inside contract's inside contract's initialData. To check real pubkey in account, use tvmPubkey() method.- Returns:
- credentials
-
prepareCall
default FunctionHandle<Map<String,Object>> prepareCall(String functionName, Map<String, Object> functionInputs, tech.deplant.java4ever.binding.Abi.FunctionHeader functionHeader) Prepare call function handle.- Parameters:
functionName
- the function namefunctionInputs
- the function inputsfunctionHeader
- the function header- Returns:
- the function handle
-
decodeMessageBoc
default tech.deplant.java4ever.binding.Abi.DecodedMessageBody decodeMessageBoc(TvmCell messageBoc) throws tech.deplant.java4ever.binding.EverSdkException Decode message boc abi . decoded message body.- Parameters:
messageBoc
- the message boc- Returns:
- the abi . decoded message body
- Throws:
tech.deplant.java4ever.binding.EverSdkException
- the ever sdk exception
-