Record Class Tvc

java.lang.Object
java.lang.Record
tech.deplant.java4ever.framework.Tvc

public record Tvc(byte[] bytes) extends Record
  • Constructor Details

    • Tvc

      public Tvc(byte[] bytes)
      Creates an instance of a Tvc record class.
      Parameters:
      bytes - the value for the bytes record component
  • Method Details

    • ofFile

      public static Tvc ofFile(String filePath)
    • ofResource

      public static Tvc ofResource(String resourceName)
    • ofBase64String

      public static Tvc ofBase64String(String base64)
    • base64String

      public String base64String()
    • decodeInitialData

      public Map<String,Object> decodeInitialData(Sdk sdk, ContractAbi abi) throws tech.deplant.java4ever.binding.EverSdkException
      Throws:
      tech.deplant.java4ever.binding.EverSdkException
    • encodeInitialData

      public String encodeInitialData(Sdk sdk, ContractAbi abi, Map<String,Object> initData, String pubkey) throws tech.deplant.java4ever.binding.EverSdkException
      Throws:
      tech.deplant.java4ever.binding.EverSdkException
    • decodeInitialPubkey

      public String decodeInitialPubkey(Sdk sdk, ContractAbi abi) throws tech.deplant.java4ever.binding.EverSdkException
      Throws:
      tech.deplant.java4ever.binding.EverSdkException
    • code

      public String code(Sdk sdk) throws tech.deplant.java4ever.binding.EverSdkException
      Throws:
      tech.deplant.java4ever.binding.EverSdkException
    • codeCell

      public TvmCell codeCell(Sdk sdk) throws tech.deplant.java4ever.binding.EverSdkException
      Throws:
      tech.deplant.java4ever.binding.EverSdkException
    • decode

      public tech.deplant.java4ever.binding.Boc.ResultOfDecodeStateInit decode(Sdk sdk) throws tech.deplant.java4ever.binding.EverSdkException
      Throws:
      tech.deplant.java4ever.binding.EverSdkException
    • data

      public String data(Sdk sdk) throws tech.deplant.java4ever.binding.EverSdkException
      Throws:
      tech.deplant.java4ever.binding.EverSdkException
    • saltedCode

      public String saltedCode(Sdk sdk, String salt) throws tech.deplant.java4ever.binding.EverSdkException
      Throws:
      tech.deplant.java4ever.binding.EverSdkException
    • codeHash

      public String codeHash(Sdk sdk) throws tech.deplant.java4ever.binding.EverSdkException
      Throws:
      tech.deplant.java4ever.binding.EverSdkException
    • codeDepth

      public Number codeDepth(Sdk sdk) throws tech.deplant.java4ever.binding.EverSdkException
      Throws:
      tech.deplant.java4ever.binding.EverSdkException
    • saltedCodeHash

      public String saltedCodeHash(Sdk sdk, String salt) throws tech.deplant.java4ever.binding.EverSdkException
      Throws:
      tech.deplant.java4ever.binding.EverSdkException
    • withUpdatedInitialData

      public Tvc withUpdatedInitialData(Sdk sdk, ContractAbi abi, Map<String,Object> initialData, String publicKey) throws tech.deplant.java4ever.binding.EverSdkException
      Throws:
      tech.deplant.java4ever.binding.EverSdkException
    • toBuilder

      public Tvc.Builder toBuilder(Sdk sdk) 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. All components in this record class are compared with Objects::equals(Object,Object).
      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.
    • bytes

      public byte[] bytes()
      Returns the value of the bytes record component.
      Returns:
      the value of the bytes record component