- All Known Subinterfaces:
EverOSGiver
,Giver
,MultisigWallet
- All Known Implementing Classes:
CustomContract
,GiverV2
,SafeMultisigWallet
,SetcodeMultisigWallet
,SurfMultisigWallet
,TIP3TokenRoot
,TIP3TokenWallet
,TIP4Collection
,TIP4Index
,TIP4IndexBasis
,TIP4Nft
,TIP4Wallet
public interface Contract
-
Method Summary
Modifier and TypeMethodDescriptionabi()
default Account
account()
Downloads actual account info, including boc.default BigInteger
Check actual EVER balance on contract's account.address()
Credentials that were provided in object constructor.default String
encodeInternalPayload
(String functionName, Map<String, Object> functionInputs, tech.deplant.java4ever.binding.Abi.FunctionHeader functionHeader) Encodes internal message string.static <IMPL> IMPL
instantiate
(Class<IMPL> clazz, Sdk sdk, String address, ContractAbi abi, Credentials credentials) default FunctionHandle<Map<String,
Object>> prepareCall
(String functionName, Map<String, Object> functionInputs, tech.deplant.java4ever.binding.Abi.FunctionHeader functionHeader) sdk()
default String
Returns actual tvm.pubkey() of smart contract.
-
Method Details
-
instantiate
static <IMPL> IMPL instantiate(Class<IMPL> clazz, Sdk sdk, String address, ContractAbi abi, Credentials credentials) -
accountBalance
Check actual EVER balance on contract's account.- Returns:
- Throws:
tech.deplant.java4ever.binding.EverSdkException
-
account
Downloads actual account info, including boc. Use account().boc() to get it.- Returns:
- Throws:
tech.deplant.java4ever.binding.EverSdkException
-
sdk
Sdk sdk() -
address
String address() -
abi
ContractAbi 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:
-
encodeInternalPayload
default String encodeInternalPayload(String functionName, Map<String, Object> functionInputs, tech.deplant.java4ever.binding.Abi.FunctionHeader functionHeader) throws tech.deplant.java4ever.binding.EverSdkExceptionEncodes internal message string. Result of this method can be used as a payload for internal transactions to pass function calls and inputs with transfer.- Parameters:
functionName
-functionInputs
-functionHeader
-- Returns:
- Throws:
tech.deplant.java4ever.binding.EverSdkException
-
tvmPubkey
Returns actual tvm.pubkey() of smart contract. If you want to get Credentials specified at OwnedContract constructor - use credentials() method.- Returns:
- Throws:
tech.deplant.java4ever.binding.EverSdkException
-
prepareCall
-