Class ContractVersion
- java.lang.Object
-
- com.syntifi.casper.sdk.model.contract.ContractVersion
-
public class ContractVersion extends java.lang.Object
Contract version information- Since:
- 0.0.1
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ContractVersion.ContractVersionBuilder
-
Constructor Summary
Constructors Constructor Description ContractVersion()
ContractVersion(java.lang.String hash, int version, int protocolVersionMajor)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ContractVersion.ContractVersionBuilder
builder()
java.lang.String
getHash()
contract_hash(string) The hash address of the contractint
getProtocolVersionMajor()
protocol_version_major(integer)int
getVersion()
contract_version(integer)void
setHash(java.lang.String hash)
contract_hash(string) The hash address of the contractvoid
setProtocolVersionMajor(int protocolVersionMajor)
protocol_version_major(integer)void
setVersion(int version)
contract_version(integer)
-
-
-
Method Detail
-
builder
public static ContractVersion.ContractVersionBuilder builder()
-
getHash
public java.lang.String getHash()
contract_hash(string) The hash address of the contract
-
getVersion
public int getVersion()
contract_version(integer)
-
getProtocolVersionMajor
public int getProtocolVersionMajor()
protocol_version_major(integer)
-
setHash
public void setHash(java.lang.String hash)
contract_hash(string) The hash address of the contract
-
setVersion
public void setVersion(int version)
contract_version(integer)
-
setProtocolVersionMajor
public void setProtocolVersionMajor(int protocolVersionMajor)
protocol_version_major(integer)
-
-