Class Contract.ContractBuilder
- java.lang.Object
-
- com.syntifi.casper.sdk.model.contract.Contract.ContractBuilder
-
- Enclosing class:
- Contract
public static class Contract.ContractBuilder extends java.lang.Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Contract
build()
Contract.ContractBuilder
entryPoints(java.util.List<EntryPoint> entryPoints)
entry_points(Array) - A list of entry points.Contract.ContractBuilder
namedKeys(java.util.List<NamedKey> namedKeys)
named_keys(Array) - A list of named keys.Contract.ContractBuilder
packageHash(java.lang.String packageHash)
contract_package_hash(String) - The hash address of the contract package.Contract.ContractBuilder
protocolVersion(java.lang.String protocolVersion)
protocol_version(String) - ?java.lang.String
toString()
Contract.ContractBuilder
wasmHash(java.lang.String wasmHash)
contract_wasm_hash(String) The hash address of the contract wasm.
-
-
-
Method Detail
-
packageHash
public Contract.ContractBuilder packageHash(java.lang.String packageHash)
contract_package_hash(String) - The hash address of the contract package.- Returns:
this
.
-
wasmHash
public Contract.ContractBuilder wasmHash(java.lang.String wasmHash)
contract_wasm_hash(String) The hash address of the contract wasm.- Returns:
this
.
-
entryPoints
public Contract.ContractBuilder entryPoints(java.util.List<EntryPoint> entryPoints)
entry_points(Array) - A list of entry points.- Returns:
this
.
-
namedKeys
public Contract.ContractBuilder namedKeys(java.util.List<NamedKey> namedKeys)
named_keys(Array) - A list of named keys.- Returns:
this
.
-
protocolVersion
public Contract.ContractBuilder protocolVersion(java.lang.String protocolVersion)
protocol_version(String) - ?- Returns:
this
.
-
build
public Contract build()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-