Module java4ever.framework
Package tech.deplant.java4ever.framework
Record Class DeployHandle<RETURN extends AbstractContract>
java.lang.Object
java.lang.Record
tech.deplant.java4ever.framework.DeployHandle<RETURN>
- Type Parameters:
RETURN
- the type parameter
public record DeployHandle<RETURN extends AbstractContract>(Class<RETURN extends AbstractContract> clazz, int sdk, Template template, long workchainId, Credentials credentials, Map<String,Object> initialDataFields, Map<String,Object> constructorInputs, tech.deplant.java4ever.binding.Abi.FunctionHeader constructorHeader, String abiVersion, DebugOptions debugOptions)
extends Record
Representation of prepared deployment set. Usually this object is returned by template's prepareDeploy() method.
-
Constructor Summary
ConstructorsConstructorDescriptionDeployHandle
(Class<RETURN> clazz, int sdk, ContractAbi abi, Tvc tvc, long workchainId, Credentials credentials, Map<String, Object> initialDataFields, Map<String, Object> constructorInputs, tech.deplant.java4ever.binding.Abi.FunctionHeader constructorHeader) Instantiates a new Deploy handle.DeployHandle
(Class<RETURN> clazz, int sdk, Template template, long workchainId, Credentials credentials, Map<String, Object> initialDataFields, Map<String, Object> constructorInputs, tech.deplant.java4ever.binding.Abi.FunctionHeader constructorHeader) Instantiates a new Deploy handle.DeployHandle
(Class<RETURN> clazz, int sdk, Template template, long workchainId, Credentials credentials, Map<String, Object> initialDataFields, Map<String, Object> constructorInputs, tech.deplant.java4ever.binding.Abi.FunctionHeader constructorHeader, String abiVersion, DebugOptions debugOptions) Creates an instance of aDeployHandle
record class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theabiVersion
record component.clazz()
Returns the value of theclazz
record component.tech.deplant.java4ever.binding.Abi.FunctionHeader
Returns the value of theconstructorHeader
record component.Returns the value of theconstructorInputs
record component.Returns the value of thecredentials
record component.Returns the value of thedebugOptions
record component.deploy()
Deploy return.deployWithGiver
(GiverContract giver, BigInteger value) Deploy with giver return.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.Returns the value of theinitialDataFields
record component.int
sdk()
Returns the value of thesdk
record component.template()
Returns the value of thetemplate
record component.To address address.tech.deplant.java4ever.binding.Abi.CallSet
To constructor call set abi . call set.tech.deplant.java4ever.binding.Abi.DeploySet
To deploy set abi . deploy set.tech.deplant.java4ever.binding.Abi.Signer
toSigner()
To signer abi . signer.final String
toString()
Returns a string representation of this record class.withConstructorHeader
(tech.deplant.java4ever.binding.Abi.FunctionHeader constructorHeader) With constructor header deploy handle.withConstructorInputs
(Map<String, Object> constructorInputs) With constructor inputs deploy handle.withCredentials
(Credentials credentials) With credentials deploy handle.withDebugTree
(boolean enabled, long timeout, boolean throwErrors, long maxTransactionCount, ContractAbi... treeAbis) With debug tree deploy handle.withDebugTree
(DebugOptions debugOptions) With debug tree deploy handle.withInitDataFields
(Map<String, Object> initialDataFields) With init data fields deploy handle.<T extends AbstractContract>
DeployHandle<T> withReturnClass
(Class<T> returnClass) With return class deploy handle.long
Returns the value of theworkchainId
record component.
-
Constructor Details
-
DeployHandle
public DeployHandle(Class<RETURN> clazz, int sdk, ContractAbi abi, Tvc tvc, long workchainId, Credentials credentials, Map<String, Object> initialDataFields, Map<String, Object> constructorInputs, tech.deplant.java4ever.binding.Abi.FunctionHeader constructorHeader) Instantiates a new Deploy handle.- Parameters:
clazz
- the clazzsdk
- the sdkabi
- the abitvc
- the tvcworkchainId
- the workchain idcredentials
- the credentialsinitialDataFields
- the initial data fieldsconstructorInputs
- the constructor inputsconstructorHeader
- the constructor header
-
DeployHandle
public DeployHandle(Class<RETURN> clazz, int sdk, Template template, long workchainId, Credentials credentials, Map<String, Object> initialDataFields, Map<String, Object> constructorInputs, tech.deplant.java4ever.binding.Abi.FunctionHeader constructorHeader) Instantiates a new Deploy handle.- Parameters:
clazz
- the clazzsdk
- the sdktemplate
- the templateworkchainId
- the workchain idcredentials
- the credentialsinitialDataFields
- the initial data fieldsconstructorInputs
- the constructor inputsconstructorHeader
- the constructor header
-
DeployHandle
public DeployHandle(Class<RETURN> clazz, int sdk, Template template, long workchainId, Credentials credentials, Map<String, Object> initialDataFields, Map<String, Object> constructorInputs, tech.deplant.java4ever.binding.Abi.FunctionHeader constructorHeader, String abiVersion, DebugOptions debugOptions) Creates an instance of aDeployHandle
record class.- Parameters:
clazz
- the value for theclazz
record componentsdk
- the value for thesdk
record componenttemplate
- the value for thetemplate
record componentworkchainId
- the value for theworkchainId
record componentcredentials
- the value for thecredentials
record componentinitialDataFields
- the value for theinitialDataFields
record componentconstructorInputs
- the value for theconstructorInputs
record componentconstructorHeader
- the value for theconstructorHeader
record componentabiVersion
- the value for theabiVersion
record componentdebugOptions
- the value for thedebugOptions
record component
-
-
Method Details
-
encodeInitialDataBase64
- Throws:
tech.deplant.java4ever.binding.EverSdkException
-
withDebugTree
public DeployHandle<RETURN> withDebugTree(boolean enabled, long timeout, boolean throwErrors, long maxTransactionCount, ContractAbi... treeAbis) With debug tree deploy handle.- Parameters:
enabled
- the enabledtimeout
- the timeoutthrowErrors
- the throw errorsmaxTransactionCount
- the max transaction counttreeAbis
- the tree abis- Returns:
- the deploy handle
-
withDebugTree
With debug tree deploy handle.- Parameters:
debugOptions
- the debug options- Returns:
- the deploy handle
-
withReturnClass
With return class deploy handle.- Type Parameters:
T
- the type parameter- Parameters:
returnClass
- the return class- Returns:
- the deploy handle
-
withConstructorHeader
public DeployHandle<RETURN> withConstructorHeader(tech.deplant.java4ever.binding.Abi.FunctionHeader constructorHeader) With constructor header deploy handle.- Parameters:
constructorHeader
- the constructor header- Returns:
- the deploy handle
-
withConstructorInputs
With constructor inputs deploy handle.- Parameters:
constructorInputs
- the constructor inputs- Returns:
- the deploy handle
-
withInitDataFields
With init data fields deploy handle.- Parameters:
initialDataFields
- the initial data fields- Returns:
- the deploy handle
-
withCredentials
With credentials deploy handle.- Parameters:
credentials
- the credentials- Returns:
- the deploy handle
-
toDeploySet
public tech.deplant.java4ever.binding.Abi.DeploySet toDeploySet() throws tech.deplant.java4ever.binding.EverSdkExceptionTo deploy set abi . deploy set.- Returns:
- the abi . deploy set
- Throws:
tech.deplant.java4ever.binding.EverSdkException
- the ever sdk exception
-
toConstructorCallSet
public tech.deplant.java4ever.binding.Abi.CallSet toConstructorCallSet() throws tech.deplant.java4ever.binding.EverSdkExceptionTo constructor call set abi . call set.- Returns:
- the abi . call set
- Throws:
tech.deplant.java4ever.binding.EverSdkException
- the ever sdk exception
-
toSigner
public tech.deplant.java4ever.binding.Abi.Signer toSigner()To signer abi . signer.- Returns:
- the abi . signer
-
toAddress
To address address.- Returns:
- the address
- Throws:
tech.deplant.java4ever.binding.EverSdkException
- the ever sdk exception
-
deployWithGiver
public RETURN deployWithGiver(GiverContract giver, BigInteger value) throws tech.deplant.java4ever.binding.EverSdkException Deploy with giver return.- Parameters:
giver
- the givervalue
- the value- Returns:
- the return
- Throws:
tech.deplant.java4ever.binding.EverSdkException
- the ever sdk exception
-
deploy
Deploy return.- Returns:
- the return
- 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. Reference components are compared withObjects::equals(Object,Object)
; primitive components are compared with '=='. -
clazz
-
sdk
public int sdk()Returns the value of thesdk
record component.- Returns:
- the value of the
sdk
record component
-
template
Returns the value of thetemplate
record component.- Returns:
- the value of the
template
record component
-
workchainId
public long workchainId()Returns the value of theworkchainId
record component.- Returns:
- the value of the
workchainId
record component
-
credentials
Returns the value of thecredentials
record component.- Returns:
- the value of the
credentials
record component
-
initialDataFields
-
constructorInputs
-
constructorHeader
public tech.deplant.java4ever.binding.Abi.FunctionHeader constructorHeader()Returns the value of theconstructorHeader
record component.- Returns:
- the value of the
constructorHeader
record component
-
abiVersion
Returns the value of theabiVersion
record component.- Returns:
- the value of the
abiVersion
record component
-
debugOptions
Returns the value of thedebugOptions
record component.- Returns:
- the value of the
debugOptions
record component
-