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, 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, DebugOptions debugOptions) Creates an instance of aDeployHandlerecord class. -
Method Summary
Modifier and TypeMethodDescriptionclazz()Returns the value of theclazzrecord component.tech.deplant.java4ever.binding.Abi.FunctionHeaderReturns the value of theconstructorHeaderrecord component.Returns the value of theconstructorInputsrecord component.Returns the value of thecredentialsrecord component.Returns the value of thedebugOptionsrecord component.deploy()Deploy return.deployWithGiver(GiverContract giver, BigInteger value) Deploy with giver return.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theinitialDataFieldsrecord component.intsdk()Returns the value of thesdkrecord component.template()Returns the value of thetemplaterecord component.To address address.tech.deplant.java4ever.binding.Abi.CallSetTo constructor call set abi . call set.tech.deplant.java4ever.binding.Abi.DeploySetTo deploy set abi . deploy set.tech.deplant.java4ever.binding.Abi.SignertoSigner()To signer abi . signer.final StringtoString()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.longReturns the value of theworkchainIdrecord 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, DebugOptions debugOptions) Creates an instance of aDeployHandlerecord class.- Parameters:
clazz- the value for theclazzrecord componentsdk- the value for thesdkrecord componenttemplate- the value for thetemplaterecord componentworkchainId- the value for theworkchainIdrecord componentcredentials- the value for thecredentialsrecord componentinitialDataFields- the value for theinitialDataFieldsrecord componentconstructorInputs- the value for theconstructorInputsrecord componentconstructorHeader- the value for theconstructorHeaderrecord componentdebugOptions- the value for thedebugOptionsrecord component
-
-
Method Details
-
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 thesdkrecord component.- Returns:
- the value of the
sdkrecord component
-
template
Returns the value of thetemplaterecord component.- Returns:
- the value of the
templaterecord component
-
workchainId
public long workchainId()Returns the value of theworkchainIdrecord component.- Returns:
- the value of the
workchainIdrecord component
-
credentials
Returns the value of thecredentialsrecord component.- Returns:
- the value of the
credentialsrecord component
-
initialDataFields
-
constructorInputs
-
constructorHeader
public tech.deplant.java4ever.binding.Abi.FunctionHeader constructorHeader()Returns the value of theconstructorHeaderrecord component.- Returns:
- the value of the
constructorHeaderrecord component
-
debugOptions
Returns the value of thedebugOptionsrecord component.- Returns:
- the value of the
debugOptionsrecord component
-