Record Class DeployHandle<RETURN>

java.lang.Object
java.lang.Record
tech.deplant.java4ever.framework.DeployHandle<RETURN>

public record DeployHandle<RETURN>(Class<RETURN> clazz, Sdk sdk, ContractAbi abi, Tvc tvc, int workchainId, Credentials credentials, Map<String,Object> initialDataFields, Map<String,Object> constructorInputs, tech.deplant.java4ever.binding.Abi.FunctionHeader constructorHeader) extends Record
  • Constructor Details

    • DeployHandle

      public DeployHandle(Class<RETURN> clazz, Sdk sdk, ContractAbi abi, Tvc tvc, int workchainId, Credentials credentials, Map<String,Object> initialDataFields, Map<String,Object> constructorInputs, tech.deplant.java4ever.binding.Abi.FunctionHeader constructorHeader)
      Creates an instance of a DeployHandle record class.
      Parameters:
      clazz - the value for the clazz record component
      sdk - the value for the sdk record component
      abi - the value for the abi record component
      tvc - the value for the tvc record component
      workchainId - the value for the workchainId record component
      credentials - the value for the credentials record component
      initialDataFields - the value for the initialDataFields record component
      constructorInputs - the value for the constructorInputs record component
      constructorHeader - the value for the constructorHeader record component
  • Method Details

    • withReturnClass

      public <T> DeployHandle<T> withReturnClass(Class<T> returnClass)
    • withConstructorHeader

      public DeployHandle<RETURN> withConstructorHeader(tech.deplant.java4ever.binding.Abi.FunctionHeader constructorHeader)
    • withConstructorInputs

      public DeployHandle<RETURN> withConstructorInputs(Map<String,Object> constructorInputs)
    • withInitDataFields

      public DeployHandle<RETURN> withInitDataFields(Map<String,Object> initialDataFields)
    • withCredentials

      public DeployHandle<RETURN> withCredentials(Credentials credentials)
    • toDeploySet

      public tech.deplant.java4ever.binding.Abi.DeploySet toDeploySet() throws tech.deplant.java4ever.binding.EverSdkException
      Throws:
      tech.deplant.java4ever.binding.EverSdkException
    • toConstructorCallSet

      public tech.deplant.java4ever.binding.Abi.CallSet toConstructorCallSet() throws tech.deplant.java4ever.binding.EverSdkException
      Throws:
      tech.deplant.java4ever.binding.EverSdkException
    • sign

      public tech.deplant.java4ever.binding.Abi.Signer sign()
    • toAddress

      public String toAddress() throws tech.deplant.java4ever.binding.EverSdkException
      Throws:
      tech.deplant.java4ever.binding.EverSdkException
    • deployWithGiver

      public RETURN deployWithGiver(Giver giver, BigInteger value) throws tech.deplant.java4ever.binding.EverSdkException
      Throws:
      tech.deplant.java4ever.binding.EverSdkException
    • deploy

      public RETURN deploy() throws tech.deplant.java4ever.binding.EverSdkException
      Throws:
      tech.deplant.java4ever.binding.EverSdkException
    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • clazz

      public Class<RETURN> clazz()
      Returns the value of the clazz record component.
      Returns:
      the value of the clazz record component
    • sdk

      public Sdk sdk()
      Returns the value of the sdk record component.
      Returns:
      the value of the sdk record component
    • abi

      public ContractAbi abi()
      Returns the value of the abi record component.
      Returns:
      the value of the abi record component
    • tvc

      public Tvc tvc()
      Returns the value of the tvc record component.
      Returns:
      the value of the tvc record component
    • workchainId

      public int workchainId()
      Returns the value of the workchainId record component.
      Returns:
      the value of the workchainId record component
    • credentials

      public Credentials credentials()
      Returns the value of the credentials record component.
      Returns:
      the value of the credentials record component
    • initialDataFields

      public Map<String,Object> initialDataFields()
      Returns the value of the initialDataFields record component.
      Returns:
      the value of the initialDataFields record component
    • constructorInputs

      public Map<String,Object> constructorInputs()
      Returns the value of the constructorInputs record component.
      Returns:
      the value of the constructorInputs record component
    • constructorHeader

      public tech.deplant.java4ever.binding.Abi.FunctionHeader constructorHeader()
      Returns the value of the constructorHeader record component.
      Returns:
      the value of the constructorHeader record component