java.lang.Object
tech.deplant.java4ever.framework.contract.OwnedContract
tech.deplant.java4ever.framework.contract.Msig
All Implemented Interfaces:
Giver

public class Msig extends OwnedContract implements Giver
Implementation of all 3 mostly used wallet contracts in Everscale. Msig also implements Giver interface, so you can use it in deploy methods.
  • Constructor Details

  • 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.
      Specified by:
      give in interface Giver
      Parameters:
      to - Everscale address where to send funds
      amount - Amount to send (in nanoevers)
      Throws:
      tech.deplant.java4ever.binding.EverSdkException