Class Contract
- java.lang.Object
-
- com.syntifi.casper.sdk.model.contract.Contract
-
public class Contract extends java.lang.ObjectMethods 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 booleancanEqual(java.lang.Object other)booleanequals(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.StringgetPackageHash()contract_package_hash(String) - The hash address of the contract package.java.lang.StringgetProtocolVersion()protocol_version(String) - ?java.lang.StringgetWasmHash()contract_wasm_hash(String) The hash address of the contract wasm.inthashCode()voidsetEntryPoints(java.util.List<EntryPoint> entryPoints)entry_points(Array) - A list of entry points.voidsetNamedKeys(java.util.List<NamedKey> namedKeys)named_keys(Array) - A list of named keys.voidsetPackageHash(java.lang.String packageHash)contract_package_hash(String) - The hash address of the contract package.voidsetProtocolVersion(java.lang.String protocolVersion)protocol_version(String) - ?voidsetWasmHash(java.lang.String wasmHash)contract_wasm_hash(String) The hash address of the contract wasm.java.lang.StringtoString()
-
-
-
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:
equalsin classjava.lang.Object
-
canEqual
protected boolean canEqual(java.lang.Object other)
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-