Class Deploy
- java.lang.Object
-
- com.syntifi.casper.sdk.model.deploy.Deploy
-
- All Implemented Interfaces:
EncodableValue
public class Deploy extends java.lang.Object implements EncodableValue
Deploy an item containing a smart contract along with the requesters' signature(s)- Since:
- 0.0.1
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Deploy.DeployBuilder
-
Constructor Summary
Constructors Constructor Description Deploy()
Deploy(Digest hash, DeployHeader header, java.util.List<Approval> approvals, ExecutableDeployItem payment, ExecutableDeployItem session)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Deploy.DeployBuilder
builder()
void
encode(CLValueEncoder clve, boolean encodeType)
Implements Deploy encoderjava.util.List<Approval>
getApprovals()
Digest
getHash()
Hex-encoded deploy hashDeployHeader
getHeader()
ExecutableDeployItem
getPayment()
ExecutableDeployItem
getSession()
void
setApprovals(java.util.List<Approval> approvals)
void
setHash(Digest hash)
Hex-encoded deploy hashvoid
setHeader(DeployHeader header)
void
setPayment(ExecutableDeployItem payment)
void
setSession(ExecutableDeployItem session)
-
-
-
Constructor Detail
-
Deploy
public Deploy(Digest hash, DeployHeader header, java.util.List<Approval> approvals, ExecutableDeployItem payment, ExecutableDeployItem session)
-
Deploy
public Deploy()
-
-
Method Detail
-
encode
public void encode(CLValueEncoder clve, boolean encodeType) throws java.io.IOException, CLValueEncodeException, DynamicInstanceException, NoSuchTypeException
Implements Deploy 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 Deploy.DeployBuilder builder()
-
getHash
public Digest getHash()
Hex-encoded deploy hash
-
getHeader
public DeployHeader getHeader()
- See Also:
DeployHeader
-
getPayment
public ExecutableDeployItem getPayment()
- See Also:
ExecutableDeployItem
-
getSession
public ExecutableDeployItem getSession()
- See Also:
ExecutableDeployItem
-
setHash
public void setHash(Digest hash)
Hex-encoded deploy hash
-
setHeader
public void setHeader(DeployHeader header)
- See Also:
DeployHeader
-
setPayment
public void setPayment(ExecutableDeployItem payment)
- See Also:
ExecutableDeployItem
-
setSession
public void setSession(ExecutableDeployItem session)
- See Also:
ExecutableDeployItem
-
-