public final class InitContractPayload extends Object
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
static InitContractPayload |
from(CCDAmount amount,
ModuleRef moduleRef,
InitName initName,
Parameter parameter)
Create a new instance of
InitContractPayload , from the given parameters |
static InitContractPayload |
from(CCDAmount amount,
ModuleRef moduleRef,
SchemaParameter schemaParameter)
Create a new instance of
InitContractPayload from the given parameters. |
static InitContractPayload |
from(long amount,
byte[] moduleRef,
String contractName,
byte[] parameter)
Create a new instance of
InitContractPayload , from the given parameters |
CCDAmount |
getAmount()
The amount to be deposited
|
byte[] |
getBytes() |
InitName |
getInitName()
Name of the contract in the module.
|
Hash |
getModuleRef()
Reference to the module to initialize the instance.
|
Parameter |
getParam()
Message to invoke the initialization method with.
|
int |
hashCode() |
String |
toString() |
public static InitContractPayload from(long amount, byte[] moduleRef, String contractName, byte[] parameter)
InitContractPayload
, from the given parametersamount
- CCD amount to depositmoduleRef
- Hash of smart contract module reference.contractName
- Name of the contract in the module. Expected format: "init_parameter
- Message to invoke the initialization method with.public static InitContractPayload from(CCDAmount amount, ModuleRef moduleRef, InitName initName, Parameter parameter)
InitContractPayload
, from the given parametersamount
- CCD amount to depositmoduleRef
- Hash of smart contract module reference.initName
- Name of the contract in the module. Expected format: "init_parameter
- Message to invoke the initialization method with.public static InitContractPayload from(CCDAmount amount, ModuleRef moduleRef, SchemaParameter schemaParameter)
InitContractPayload
from the given parameters.amount
- CCD amount to deposit.moduleRef
- Hash of the smart contract module reference.schemaParameter
- SchemaParameter
message to invoke the initialization method with. Must be initialized with SchemaParameter.initialize()
beforehand.public byte[] getBytes()
public CCDAmount getAmount()
public Hash getModuleRef()
public InitName getInitName()
public Parameter getParam()
Copyright © 2025. All rights reserved.