Module java4ever.framework
Package tech.deplant.java4ever.framework
Record Class DeployHandle<RETURN>
java.lang.Object
java.lang.Record
tech.deplant.java4ever.framework.DeployHandle<RETURN>
- Type Parameters:
RETURN-- Record Components:
clazz- class of contract wrappersdk-template-workchainId-credentials-initialDataFields-constructorInputs-constructorHeader-
public record DeployHandle<RETURN>(Class<RETURN> clazz, Sdk sdk, Template template, long workchainId, Credentials credentials, Map<String,Object> initialDataFields, Map<String,Object> constructorInputs, tech.deplant.java4ever.binding.Abi.FunctionHeader constructorHeader)
extends Record
Representation of prepared deployment set. Usually this object is returned by template's prepareDeploy() method.
-
Constructor Summary
ConstructorsConstructorDescriptionDeployHandle(Class<RETURN> clazz, Sdk sdk, ContractAbi abi, Tvc tvc, long workchainId, Credentials credentials, Map<String, Object> initialDataFields, Map<String, Object> constructorInputs, tech.deplant.java4ever.binding.Abi.FunctionHeader constructorHeader) DeployHandle(Class<RETURN> clazz, Sdk sdk, Template template, long workchainId, Credentials credentials, Map<String, Object> initialDataFields, Map<String, Object> constructorInputs, tech.deplant.java4ever.binding.Abi.FunctionHeader constructorHeader) 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.deploy()deployWithGiver(Giver giver, BigInteger value) 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.sdk()Returns the value of thesdkrecord component.template()Returns the value of thetemplaterecord component.tech.deplant.java4ever.binding.Abi.CallSettech.deplant.java4ever.binding.Abi.DeploySettech.deplant.java4ever.binding.Abi.SignertoSigner()final StringtoString()Returns a string representation of this record class.withConstructorHeader(tech.deplant.java4ever.binding.Abi.FunctionHeader constructorHeader) withConstructorInputs(Map<String, Object> constructorInputs) withCredentials(Credentials credentials) withInitDataFields(Map<String, Object> initialDataFields) <T> DeployHandle<T>withReturnClass(Class<T> returnClass) longReturns the value of theworkchainIdrecord component.
-
Constructor Details
-
DeployHandle
-
DeployHandle
public DeployHandle(Class<RETURN> clazz, Sdk sdk, Template template, long workchainId, Credentials credentials, Map<String, Object> initialDataFields, Map<String, Object> constructorInputs, tech.deplant.java4ever.binding.Abi.FunctionHeader constructorHeader) 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 component
-
-
Method Details
-
withReturnClass
-
withConstructorHeader
public DeployHandle<RETURN> withConstructorHeader(tech.deplant.java4ever.binding.Abi.FunctionHeader constructorHeader) -
withConstructorInputs
-
withInitDataFields
-
withCredentials
-
toDeploySet
public tech.deplant.java4ever.binding.Abi.DeploySet toDeploySet() throws tech.deplant.java4ever.binding.EverSdkException- Throws:
tech.deplant.java4ever.binding.EverSdkException
-
toConstructorCallSet
public tech.deplant.java4ever.binding.Abi.CallSet toConstructorCallSet() throws tech.deplant.java4ever.binding.EverSdkException- Throws:
tech.deplant.java4ever.binding.EverSdkException
-
toSigner
public tech.deplant.java4ever.binding.Abi.Signer toSigner() -
toAddress
- Throws:
tech.deplant.java4ever.binding.EverSdkException
-
deployWithGiver
public RETURN deployWithGiver(Giver giver, BigInteger value) throws tech.deplant.java4ever.binding.EverSdkException - Throws:
tech.deplant.java4ever.binding.EverSdkException
-
deploy
- 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
clazz
Returns the value of theclazzrecord component.- Returns:
- the value of the
clazzrecord component
-
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
Returns the value of theinitialDataFieldsrecord component.- Returns:
- the value of the
initialDataFieldsrecord component
-
constructorInputs
Returns the value of theconstructorInputsrecord component.- Returns:
- the value of the
constructorInputsrecord component
-
constructorHeader
public tech.deplant.java4ever.binding.Abi.FunctionHeader constructorHeader()Returns the value of theconstructorHeaderrecord component.- Returns:
- the value of the
constructorHeaderrecord component
-