Class DeployHeader
- java.lang.Object
-
- com.syntifi.casper.sdk.model.deploy.DeployHeader
-
- All Implemented Interfaces:
EncodableValue
public class DeployHeader extends java.lang.Object implements EncodableValue
The header portion of a [`Deploy`](struct.Deploy.html).- Since:
- 0.0.1
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
DeployHeader.DeployHeaderBuilder
-
Constructor Summary
Constructors Constructor Description DeployHeader()
DeployHeader(PublicKey account, Digest bodyHash, java.lang.String chainName, java.util.List<Digest> dependencies, java.lang.Long gasPrice, java.util.Date timeStamp, Ttl ttl)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DeployHeader.DeployHeaderBuilder
builder()
void
encode(CLValueEncoder clve, boolean encodeType)
Implements DeployHearder encoderPublicKey
getAccount()
Digest
getBodyHash()
Body hashjava.lang.String
getChainName()
Chain namejava.util.List<Digest>
getDependencies()
Dependenciesjava.lang.Long
getGasPrice()
Gas pricejava.util.Date
getTimeStamp()
Timestamp formatted as per RFC 3339Ttl
getTtl()
Human-readable durationvoid
setAccount(PublicKey account)
void
setBodyHash(Digest bodyHash)
Body hashvoid
setChainName(java.lang.String chainName)
Chain namevoid
setDependencies(java.util.List<Digest> dependencies)
Dependenciesvoid
setGasPrice(java.lang.Long gasPrice)
Gas pricevoid
setTimeStamp(java.util.Date timeStamp)
Timestamp formatted as per RFC 3339void
setTtl(Ttl ttl)
Human-readable duration
-
-
-
Method Detail
-
encode
public void encode(CLValueEncoder clve, boolean encodeType) throws java.io.IOException, CLValueEncodeException, DynamicInstanceException, NoSuchTypeException
Implements DeployHearder 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 DeployHeader.DeployHeaderBuilder builder()
-
getBodyHash
public Digest getBodyHash()
Body hash
-
getChainName
public java.lang.String getChainName()
Chain name
-
getDependencies
public java.util.List<Digest> getDependencies()
Dependencies
-
getGasPrice
public java.lang.Long getGasPrice()
Gas price
-
getTimeStamp
public java.util.Date getTimeStamp()
Timestamp formatted as per RFC 3339
-
getTtl
public Ttl getTtl()
Human-readable duration
-
setBodyHash
public void setBodyHash(Digest bodyHash)
Body hash
-
setChainName
public void setChainName(java.lang.String chainName)
Chain name
-
setDependencies
public void setDependencies(java.util.List<Digest> dependencies)
Dependencies
-
setGasPrice
public void setGasPrice(java.lang.Long gasPrice)
Gas price
-
setTimeStamp
public void setTimeStamp(java.util.Date timeStamp)
Timestamp formatted as per RFC 3339
-
setTtl
public void setTtl(Ttl ttl)
Human-readable duration
-
-