Class StoredVersionedContractByHash
- java.lang.Object
-
- com.syntifi.casper.sdk.model.deploy.executabledeploy.StoredVersionedContractByHash
-
- All Implemented Interfaces:
EncodableValue
,ExecutableDeployItem
public class StoredVersionedContractByHash extends java.lang.Object implements ExecutableDeployItem
Abstract Executable Deploy Item containing the StoredVersionedContractByHash.- Since:
- 0.0.1
- See Also:
ExecutableDeployItem
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
StoredVersionedContractByHash.StoredVersionedContractByHashBuilder
-
Constructor Summary
Constructors Constructor Description StoredVersionedContractByHash()
StoredVersionedContractByHash(java.lang.String hash, long version, java.lang.String entryPoint, java.util.List<NamedArg<?>> args)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static StoredVersionedContractByHash.StoredVersionedContractByHashBuilder
builder()
void
encode(CLValueEncoder clve, boolean encodeType)
Implements the StoredVersionedContractByHash encoderjava.util.List<NamedArg<?>>
getArgs()
java.lang.String
getEntryPoint()
Entry Pointjava.lang.String
getHash()
Hex-encoded Hashbyte
getOrder()
ExecutableDeployItem
order 3long
getVersion()
contract versionvoid
setArgs(java.util.List<NamedArg<?>> args)
void
setEntryPoint(java.lang.String entryPoint)
Entry Pointvoid
setHash(java.lang.String hash)
Hex-encoded Hashvoid
setVersion(long version)
contract version
-
-
-
Constructor Detail
-
StoredVersionedContractByHash
public StoredVersionedContractByHash(java.lang.String hash, long version, java.lang.String entryPoint, java.util.List<NamedArg<?>> args)
-
StoredVersionedContractByHash
public StoredVersionedContractByHash()
-
-
Method Detail
-
getOrder
public byte getOrder()
ExecutableDeployItem
order 3- Specified by:
getOrder
in interfaceExecutableDeployItem
-
encode
public void encode(CLValueEncoder clve, boolean encodeType) throws java.io.IOException, CLValueEncodeException, DynamicInstanceException, NoSuchTypeException
Implements the StoredVersionedContractByHash encoder- Specified by:
encode
in interfaceEncodableValue
- Parameters:
clve
- the encoder to be usedencodeType
- append encoded type?- Throws:
java.io.IOException
- thrown if an IO error occursCLValueEncodeException
- thrown if failed to encode a cl valueDynamicInstanceException
- thrown if it could not instantiate a typeNoSuchTypeException
- thrown if type not found
-
builder
public static StoredVersionedContractByHash.StoredVersionedContractByHashBuilder builder()
-
getHash
public java.lang.String getHash()
Hex-encoded Hash
-
getVersion
public long getVersion()
contract version
-
getEntryPoint
public java.lang.String getEntryPoint()
Entry Point
-
setHash
public void setHash(java.lang.String hash)
Hex-encoded Hash
-
setVersion
public void setVersion(long version)
contract version
-
setEntryPoint
public void setEntryPoint(java.lang.String entryPoint)
Entry Point
-
-