Module java4ever.framework
Record Class ContractTvc
java.lang.Object
java.lang.Record
tech.deplant.java4ever.framework.template.ContractTvc
-
Constructor Summary
ConstructorsConstructorDescriptionContractTvc
(byte[] bytes) Creates an instance of aContractTvc
record class. -
Method Summary
Modifier and TypeMethodDescriptionbyte[]
bytes()
Returns the value of thebytes
record component.tech.deplant.java4ever.binding.Boc.ResultOfDecodeTvc
decodeInitialData
(Sdk sdk, ContractAbi abi) decodeInitialPubkey
(Sdk sdk, ContractAbi abi) encodeInitialData
(Sdk sdk, ContractAbi abi, Map<String, Object> initData, String pubkey) final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.static ContractTvc
ofBase64String
(String base64) static ContractTvc
static ContractTvc
ofResource
(String resourceName) saltedCode
(Sdk sdk, String salt) saltedCodeHash
(Sdk sdk, String salt) final String
toString()
Returns a string representation of this record class.withUpdatedInitialData
(Sdk sdk, ContractAbi abi, Map<String, Object> initialData, String publicKey)
-
Constructor Details
-
ContractTvc
public ContractTvc(byte[] bytes) Creates an instance of aContractTvc
record class.- Parameters:
bytes
- the value for thebytes
record component
-
-
Method Details
-
ofFile
-
ofResource
-
ofBase64String
-
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
- Throws:
tech.deplant.java4ever.binding.EverSdkException
-
decode
public tech.deplant.java4ever.binding.Boc.ResultOfDecodeTvc decode(Sdk sdk) throws tech.deplant.java4ever.binding.EverSdkException - Throws:
tech.deplant.java4ever.binding.EverSdkException
-
data
- 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
- Throws:
tech.deplant.java4ever.binding.EverSdkException
-
codeDepth
- 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 ContractTvc withUpdatedInitialData(Sdk sdk, ContractAbi abi, Map<String, Object> initialData, String publicKey) throws tech.deplant.java4ever.binding.EverSdkException- Throws:
tech.deplant.java4ever.binding.EverSdkException
-
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. -
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. -
equals
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 withObjects::equals(Object,Object)
. -
bytes
public byte[] bytes()Returns the value of thebytes
record component.- Returns:
- the value of the
bytes
record component
-