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
-
-
Constructor Summary
Constructors Constructor Description Contract()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
canEqual(java.lang.Object other)
boolean
equals(java.lang.Object o)
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.int
hashCode()
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.java.lang.String
toString()
-
-
-
Method Detail
-
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) - ?
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
canEqual
protected boolean canEqual(java.lang.Object other)
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-