java.lang.Object
tech.deplant.java4ever.framework.contract.OwnedContract
tech.deplant.java4ever.framework.contract.Msig
- All Implemented Interfaces:
Giver
Implementation of all 3 mostly used wallet contracts in Everscale. Msig also
implements Giver interface, so you can use it in deploy methods.
-
Nested Class Summary
Nested classes/interfaces inherited from class tech.deplant.java4ever.framework.contract.OwnedContract
OwnedContract.ResultOfQueryTransactionTreeAndCallOutput
-
Field Summary
Fields inherited from class tech.deplant.java4ever.framework.contract.OwnedContract
abi, address, credentials, sdk
-
Constructor Summary
ConstructorsConstructorDescriptionMsig
(OwnedContract contract) Msig
(Sdk sdk, String address, Credentials owner, ContractAbi abi) -
Method Summary
Modifier and TypeMethodDescriptionvoid
confirmTransaction
(long transactionId) void
give
(String to, BigInteger amount) Implementations of this method should send specified amount to specified address.static Msig
ofSafe
(Sdk sdk, String address, Credentials owner) static Msig
ofSetcode
(Sdk sdk, String address, Credentials owner) static Msig
ofSurf
(Sdk sdk, String address, Credentials owner) void
send
(String to, BigInteger amount, boolean sendBounce, int flags, String payload) sendTransaction method for single-sig.sendDebugTree
(String to, BigInteger amount, boolean sendBounce, int flags, String payload, boolean debugThrowOnInternalError, List<ContractAbi> debugAbisForDecode) Methods inherited from class tech.deplant.java4ever.framework.contract.OwnedContract
abi, account, address, balance, callExternal, callExternal, callExternal, callExternal, callExternalDebugTree, credentials, encodeInternalPayload, runGetter, runGetter, runGetter, runGetter, sdk, tvmPubkey
-
Constructor Details
-
Msig
-
Msig
-
-
Method Details
-
ofSafe
public static Msig ofSafe(Sdk sdk, String address, Credentials owner) throws com.fasterxml.jackson.core.JsonProcessingException - Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
ofSetcode
public static Msig ofSetcode(Sdk sdk, String address, Credentials owner) throws com.fasterxml.jackson.core.JsonProcessingException - Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
ofSurf
public static Msig ofSurf(Sdk sdk, String address, Credentials owner) throws com.fasterxml.jackson.core.JsonProcessingException - Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
send
public void send(String to, BigInteger amount, boolean sendBounce, int flags, String payload) throws tech.deplant.java4ever.binding.EverSdkException sendTransaction method for single-sig.- Parameters:
to
-amount
-sendBounce
-flags
-payload
-- Throws:
tech.deplant.java4ever.binding.EverSdkException
-
confirmTransaction
public void confirmTransaction(long transactionId) throws tech.deplant.java4ever.binding.EverSdkException - Throws:
tech.deplant.java4ever.binding.EverSdkException
-
sendDebugTree
public OwnedContract.ResultOfQueryTransactionTreeAndCallOutput sendDebugTree(String to, BigInteger amount, boolean sendBounce, int flags, String payload, boolean debugThrowOnInternalError, List<ContractAbi> debugAbisForDecode) throws tech.deplant.java4ever.binding.EverSdkException - Throws:
tech.deplant.java4ever.binding.EverSdkException
-
give
public void give(String to, BigInteger amount) throws tech.deplant.java4ever.binding.EverSdkException Description copied from interface:Giver
Implementations of this method should send specified amount to specified address.
-