java.lang.Object
java.lang.Record
tech.deplant.java4ever.framework.Tvc
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionBase 64 string string.byte[]
bytes()
Returns the value of thebytes
record component.code
(int sdk) Code string.codeCell
(int sdk) Code cell tvm cell.codeDepth
(int sdk) Code depth number.codeHash
(int sdk) Code hash string.data
(int sdk) Data string.tech.deplant.java4ever.binding.Boc.ResultOfDecodeStateInit
decode
(int sdk) Decode boc . result of decode state init.com.fasterxml.jackson.databind.JsonNode
decodeInitialData
(int sdk, ContractAbi abi) Decode initial data json node.decodeInitialPubkey
(int sdk, ContractAbi abi) Decode initial pubkey string.encodeInitialData
(int sdk, ContractAbi abi, Map<String, Object> initData, String pubkey) Encode initial data string.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.static Tvc
ofBase64String
(String base64) Of base 64 string tvc.static Tvc
Of file tvc.static Tvc
ofResource
(String resourceName) Of resource tvc.saltedCode
(int sdk, String salt) Salted code string.saltedCodeHash
(int sdk, String salt) Salted code hash string.toBuilder
(int sdk) To builder builder.final String
toString()
Returns a string representation of this record class.withUpdatedInitialData
(int sdk, ContractAbi abi, Map<String, Object> initialData, String publicKey) With updated initial data tvc.
-
Constructor Details
-
Tvc
public Tvc(byte[] bytes) Creates an instance of aTvc
record class.- Parameters:
bytes
- the value for thebytes
record component
-
-
Method Details
-
ofFile
-
ofResource
-
ofBase64String
-
base64String
-
decodeInitialData
public com.fasterxml.jackson.databind.JsonNode decodeInitialData(int sdk, ContractAbi abi) throws tech.deplant.java4ever.binding.EverSdkException Decode initial data json node.- Parameters:
sdk
- the sdkabi
- the abi- Returns:
- the json node
- Throws:
tech.deplant.java4ever.binding.EverSdkException
- the ever sdk exception
-
encodeInitialData
public String encodeInitialData(int sdk, ContractAbi abi, Map<String, Object> initData, String pubkey) throws tech.deplant.java4ever.binding.EverSdkExceptionEncode initial data string.- Parameters:
sdk
- the sdkabi
- the abiinitData
- the init datapubkey
- the pubkey- Returns:
- the string
- Throws:
tech.deplant.java4ever.binding.EverSdkException
- the ever sdk exception
-
decodeInitialPubkey
public String decodeInitialPubkey(int sdk, ContractAbi abi) throws tech.deplant.java4ever.binding.EverSdkException Decode initial pubkey string.- Parameters:
sdk
- the sdkabi
- the abi- Returns:
- the string
- Throws:
tech.deplant.java4ever.binding.EverSdkException
- the ever sdk exception
-
code
Code string.- Parameters:
sdk
- the sdk- Returns:
- the string
- Throws:
tech.deplant.java4ever.binding.EverSdkException
- the ever sdk exception
-
codeCell
Code cell tvm cell.- Parameters:
sdk
- the sdk- Returns:
- the tvm cell
- Throws:
tech.deplant.java4ever.binding.EverSdkException
- the ever sdk exception
-
decode
public tech.deplant.java4ever.binding.Boc.ResultOfDecodeStateInit decode(int sdk) throws tech.deplant.java4ever.binding.EverSdkException Decode boc . result of decode state init.- Parameters:
sdk
- the sdk- Returns:
- the boc . result of decode state init
- Throws:
tech.deplant.java4ever.binding.EverSdkException
- the ever sdk exception
-
data
Data string.- Parameters:
sdk
- the sdk- Returns:
- the string
- Throws:
tech.deplant.java4ever.binding.EverSdkException
- the ever sdk exception
-
saltedCode
-
codeHash
Code hash string.- Parameters:
sdk
- the sdk- Returns:
- the string
- Throws:
tech.deplant.java4ever.binding.EverSdkException
- the ever sdk exception
-
codeDepth
Code depth number.- Parameters:
sdk
- the sdk- Returns:
- the number
- Throws:
tech.deplant.java4ever.binding.EverSdkException
- the ever sdk exception
-
saltedCodeHash
-
withUpdatedInitialData
public Tvc withUpdatedInitialData(int sdk, ContractAbi abi, Map<String, Object> initialData, String publicKey) throws tech.deplant.java4ever.binding.EverSdkExceptionWith updated initial data tvc.- Parameters:
sdk
- the sdkabi
- the abiinitialData
- the initial datapublicKey
- the public key- Returns:
- the tvc
- Throws:
tech.deplant.java4ever.binding.EverSdkException
- the ever sdk exception
-
toBuilder
To builder builder.- Parameters:
sdk
- the sdk- Returns:
- the builder
- Throws:
tech.deplant.java4ever.binding.EverSdkException
- the ever sdk exception
-
toString
-
hashCode
-
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
-