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.
-
Field Summary
Fields inherited from class tech.deplant.java4ever.framework.contract.OwnedContract
abi, address, credentials, sdk
-
Constructor Summary
ConstructorsConstructorDescriptionMsig
(OwnedContract contract) Msig
(Sdk sdk, Address address, Credentials owner, ContractAbi abi) -
Method Summary
Modifier and TypeMethodDescriptionvoid
confirmTransaction
(long transactionId) void
give
(Address to, BigInteger amount) Implementations of this method should send specified amount to specified address.static Msig
ofSafe
(Sdk sdk, Address address, Credentials owner) static Msig
ofSetcode
(Sdk sdk, Address address, Credentials owner) static Msig
ofSurf
(Sdk sdk, Address address, Credentials owner) void
send
(Address to, BigInteger amount, boolean sendBounce, int flags, String payload) sendTransaction method for single-sig.tech.deplant.java4ever.binding.Net.ResultOfQueryTransactionTree
sendDebugTree
(Address to, BigInteger amount, boolean sendBounce, int flags, String payload, Long debugQueryTimeout, boolean debugThrowOnInternalError, tech.deplant.java4ever.binding.Net.ResultOfQueryTransactionTree debugOutResult, List<ContractAbi> debugAbisForDecode) Methods inherited from class tech.deplant.java4ever.framework.contract.OwnedContract
abi, account, address, balance, callExternal, callExternal, callExternalDebugTree, credentials, encodeInternalPayload, runGetter, runGetter, sdk, tvmPubkey
-
Constructor Details
-
Msig
-
Msig
-
-
Method Details
-
ofSafe
public static Msig ofSafe(Sdk sdk, Address address, Credentials owner) throws com.fasterxml.jackson.core.JsonProcessingException - Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
ofSetcode
public static Msig ofSetcode(Sdk sdk, Address address, Credentials owner) throws com.fasterxml.jackson.core.JsonProcessingException - Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
ofSurf
public static Msig ofSurf(Sdk sdk, Address address, Credentials owner) throws com.fasterxml.jackson.core.JsonProcessingException - Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
send
public void send(Address 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 tech.deplant.java4ever.binding.Net.ResultOfQueryTransactionTree sendDebugTree(Address to, BigInteger amount, boolean sendBounce, int flags, String payload, Long debugQueryTimeout, boolean debugThrowOnInternalError, tech.deplant.java4ever.binding.Net.ResultOfQueryTransactionTree debugOutResult, List<ContractAbi> debugAbisForDecode) throws tech.deplant.java4ever.binding.EverSdkException - Throws:
tech.deplant.java4ever.binding.EverSdkException
-
give
public void give(Address 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.
-