Class StoredContractByHash
- java.lang.Object
-
- com.syntifi.casper.sdk.model.deploy.executabledeploy.StoredContractByHash
-
- All Implemented Interfaces:
EncodableValue
,ExecutableDeployItem
public class StoredContractByHash extends java.lang.Object implements ExecutableDeployItem
Abstract Executable Deploy Item containing the StoredContractByHash.- Since:
- 0.0.1
- See Also:
ExecutableDeployItem
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
StoredContractByHash.StoredContractByHashBuilder
-
Constructor Summary
Constructors Constructor Description StoredContractByHash()
StoredContractByHash(java.lang.String hash, 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 StoredContractByHash.StoredContractByHashBuilder
builder()
void
encode(CLValueEncoder clve, boolean encodeType)
Implements the StoredContractByHAsh encoderjava.util.List<NamedArg<?>>
getArgs()
java.lang.String
getEntryPoint()
Entry Pointjava.lang.String
getHash()
Hex-encoded Hashbyte
getOrder()
ExecutableDeployItem
order 1void
setArgs(java.util.List<NamedArg<?>> args)
void
setEntryPoint(java.lang.String entryPoint)
Entry Pointvoid
setHash(java.lang.String hash)
Hex-encoded Hash
-
-
-
Constructor Detail
-
StoredContractByHash
public StoredContractByHash(java.lang.String hash, java.lang.String entryPoint, java.util.List<NamedArg<?>> args)
-
StoredContractByHash
public StoredContractByHash()
-
-
Method Detail
-
getOrder
public byte getOrder()
ExecutableDeployItem
order 1- Specified by:
getOrder
in interfaceExecutableDeployItem
-
encode
public void encode(CLValueEncoder clve, boolean encodeType) throws java.io.IOException, CLValueEncodeException, DynamicInstanceException, NoSuchTypeException
Implements the StoredContractByHAsh 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 StoredContractByHash.StoredContractByHashBuilder builder()
-
getHash
public java.lang.String getHash()
Hex-encoded Hash
-
getEntryPoint
public java.lang.String getEntryPoint()
Entry Point
-
setHash
public void setHash(java.lang.String hash)
Hex-encoded Hash
-
setEntryPoint
public void setEntryPoint(java.lang.String entryPoint)
Entry Point
-
-