Class Contract
- java.lang.Object
-
- com.syntifi.casper.sdk.model.contract.Contract
-
public class Contract extends java.lang.Object
Methods and type signatures supported by a contract.- Since:
- 0.0.1
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Contract.ContractBuilder
-
Constructor Summary
Constructors Constructor Description Contract()
Contract(java.lang.String packageHash, java.lang.String wasmHash, java.util.List<EntryPoint> entryPoints, java.util.List<NamedKey> namedKeys, java.lang.String protocolVersion)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Contract.ContractBuilder
builder()
java.util.List<EntryPoint>
getEntryPoints()
entry_points(Array) - A list of entry points.java.util.List<NamedKey>
getNamedKeys()
named_keys(Array) - A list of named keys.java.lang.String
getPackageHash()
contract_package_hash(String) - The hash address of the contract package.java.lang.String
getProtocolVersion()
protocol_version(String) - ?java.lang.String
getWasmHash()
contract_wasm_hash(String) The hash address of the contract wasm.void
setEntryPoints(java.util.List<EntryPoint> entryPoints)
entry_points(Array) - A list of entry points.void
setNamedKeys(java.util.List<NamedKey> namedKeys)
named_keys(Array) - A list of named keys.void
setPackageHash(java.lang.String packageHash)
contract_package_hash(String) - The hash address of the contract package.void
setProtocolVersion(java.lang.String protocolVersion)
protocol_version(String) - ?void
setWasmHash(java.lang.String wasmHash)
contract_wasm_hash(String) The hash address of the contract wasm.
-
-
-
Constructor Detail
-
Contract
public Contract(java.lang.String packageHash, java.lang.String wasmHash, java.util.List<EntryPoint> entryPoints, java.util.List<NamedKey> namedKeys, java.lang.String protocolVersion)
-
Contract
public Contract()
-
-
Method Detail
-
builder
public static Contract.ContractBuilder builder()
-
getPackageHash
public java.lang.String getPackageHash()
contract_package_hash(String) - The hash address of the contract package.
-
getWasmHash
public java.lang.String getWasmHash()
contract_wasm_hash(String) The hash address of the contract wasm.
-
getEntryPoints
public java.util.List<EntryPoint> getEntryPoints()
entry_points(Array) - A list of entry points.
-
getNamedKeys
public java.util.List<NamedKey> getNamedKeys()
named_keys(Array) - A list of named keys.
-
getProtocolVersion
public java.lang.String getProtocolVersion()
protocol_version(String) - ?
-
setPackageHash
public void setPackageHash(java.lang.String packageHash)
contract_package_hash(String) - The hash address of the contract package.
-
setWasmHash
public void setWasmHash(java.lang.String wasmHash)
contract_wasm_hash(String) The hash address of the contract wasm.
-
setEntryPoints
public void setEntryPoints(java.util.List<EntryPoint> entryPoints)
entry_points(Array) - A list of entry points.
-
setNamedKeys
public void setNamedKeys(java.util.List<NamedKey> namedKeys)
named_keys(Array) - A list of named keys.
-
setProtocolVersion
public void setProtocolVersion(java.lang.String protocolVersion)
protocol_version(String) - ?
-
-