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 aDeployHandle
record class. -
Method Summary
Modifier and TypeMethodDescriptionclazz()
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.deploy()
deployWithGiver
(Giver giver, BigInteger value) 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.sdk()
Returns the value of thesdk
record component.template()
Returns the value of thetemplate
record component.tech.deplant.java4ever.binding.Abi.CallSet
tech.deplant.java4ever.binding.Abi.DeploySet
tech.deplant.java4ever.binding.Abi.Signer
toSigner()
final String
toString()
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) long
Returns the value of theworkchainId
record 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 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 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 theclazz
record component.- Returns:
- the value of the
clazz
record component
-
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
Returns the value of theinitialDataFields
record component.- Returns:
- the value of the
initialDataFields
record component
-
constructorInputs
Returns the value of theconstructorInputs
record component.- Returns:
- the value of the
constructorInputs
record component
-
constructorHeader
public tech.deplant.java4ever.binding.Abi.FunctionHeader constructorHeader()Returns the value of theconstructorHeader
record component.- Returns:
- the value of the
constructorHeader
record component
-