Package com.klaytn.caver.contract
Class ContractDeployParams
- java.lang.Object
-
- com.klaytn.caver.contract.ContractDeployParams
-
public class ContractDeployParams extends java.lang.Object
Representing a parameters need to deploy smart contract.
-
-
Constructor Summary
Constructors Constructor Description ContractDeployParams(java.lang.String bytecode)
Creates a ContractDeployParam instance.ContractDeployParams(java.lang.String bytecode, java.lang.Object... deployParams)
Creates a ContractDeployParam instance.ContractDeployParams(java.lang.String bytecode, java.util.List<java.lang.Object> deployParams)
Creates a ContractDeployParam instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getBytecode()
Getter function for bytecode.java.util.List<java.lang.Object>
getDeployParams()
Getter function for deployParams.void
setBytecode(java.lang.String binaryData)
Setter function for bytecode.void
setDeployParams(java.util.List<java.lang.Object> deployParams)
Setter function for deployParams.
-
-
-
Constructor Detail
-
ContractDeployParams
public ContractDeployParams(java.lang.String bytecode)
Creates a ContractDeployParam instance.- Parameters:
bytecode
- A smart contract binary data.
-
ContractDeployParams
public ContractDeployParams(java.lang.String bytecode, java.lang.Object... deployParams)
Creates a ContractDeployParam instance.- Parameters:
bytecode
- A smart contract binary data.deployParams
- The variable arguments parameter for smart contract constructor.
-
ContractDeployParams
public ContractDeployParams(java.lang.String bytecode, java.util.List<java.lang.Object> deployParams)
Creates a ContractDeployParam instance.- Parameters:
bytecode
- A smart contract binary data.deployParams
- A List of smart contract constructor parameter.
-
-
Method Detail
-
getBytecode
public java.lang.String getBytecode()
Getter function for bytecode.- Returns:
- String
-
getDeployParams
public java.util.List<java.lang.Object> getDeployParams()
Getter function for deployParams.- Returns:
- List
-
setBytecode
public void setBytecode(java.lang.String binaryData)
Setter function for bytecode.- Parameters:
binaryData
- A smart contract binary data.
-
setDeployParams
public void setDeployParams(java.util.List<java.lang.Object> deployParams)
Setter function for deployParams.- Parameters:
deployParams
- A List of smart contract constructor parameter.
-
-