Package com.casper.sdk.model.deploy
Class DeployHeader
- java.lang.Object
-
- com.casper.sdk.model.deploy.DeployHeader
-
- All Implemented Interfaces:
CasperSerializableObject,dev.oak3.sbs4j.interfaces.SerializableObject
public class DeployHeader extends java.lang.Object implements CasperSerializableObject
The header portion of a [`Deploy`](struct.Deploy.html).- Since:
- 0.0.1
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDeployHeader.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.DeployHeaderBuilderbuilder()PublicKeygetAccount()DigestgetBodyHash()Body hashjava.lang.StringgetChainName()Chain namejava.util.List<Digest>getDependencies()Dependenciesjava.lang.LonggetGasPrice()Gas pricejava.util.DategetTimeStamp()Timestamp formatted as per RFC 3339TtlgetTtl()Human-readable durationvoidserialize(dev.oak3.sbs4j.SerializerBuffer ser, Target target)Implements DeployHearder encodervoidsetAccount(PublicKey account)voidsetBodyHash(Digest bodyHash)Body hashvoidsetChainName(java.lang.String chainName)Chain namevoidsetDependencies(java.util.List<Digest> dependencies)DependenciesvoidsetGasPrice(java.lang.Long gasPrice)Gas pricevoidsetTimeStamp(java.util.Date timeStamp)Timestamp formatted as per RFC 3339voidsetTtl(Ttl ttl)Human-readable duration-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.casper.sdk.model.clvalue.serde.CasperSerializableObject
serialize
-
-
-
-
Method Detail
-
serialize
public void serialize(dev.oak3.sbs4j.SerializerBuffer ser, Target target) throws NoSuchTypeException, dev.oak3.sbs4j.exception.ValueSerializationExceptionImplements DeployHearder encoder- Specified by:
serializein interfaceCasperSerializableObject- Parameters:
ser- the serializer to be usedtarget- target serialization standard- Throws:
dev.oak3.sbs4j.exception.ValueSerializationException- exception holding information of failure to serialize a valueNoSuchTypeException
-
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
-
-