Package com.casper.sdk.model.key
Class BalanceHoldKey
- java.lang.Object
-
- com.casper.sdk.model.key.AbstractSerializedKeyTaggedHex<KeyTag>
-
- com.casper.sdk.model.key.Key
-
- com.casper.sdk.model.key.BalanceHoldKey
-
- All Implemented Interfaces:
CasperSerializableObject,SerializableObject
public class BalanceHoldKey extends Key
A `Key` under which a hold on a purse balance is stored.
-
-
Constructor Summary
Constructors Constructor Description BalanceHoldKey()BalanceHoldKey(BalanceHoldAddr balanceHoldAddr, byte[] urefAddr, java.math.BigInteger blockTime)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voiddeserializeCustom(DeserializerBuffer deser)protected voidfromStringCustom(java.lang.String strKey)BalanceHoldAddrgetBalanceHoldAddr()Gas hold variant.java.math.BigIntegergetBlockTime()The block time this hold was placed.byte[]getUrefAddr()The address of the purse this hold is on.voidsetBalanceHoldAddr(BalanceHoldAddr balanceHoldAddr)Gas hold variant.voidsetBlockTime(java.math.BigInteger blockTime)The block time this hold was placed.voidsetUrefAddr(byte[] urefAddr)The address of the purse this hold is on.-
Methods inherited from class com.casper.sdk.model.key.Key
canEqual, create, deserialize, equals, fromTaggedHexString, generateAccountHash, hashCode, toString
-
Methods inherited from class com.casper.sdk.model.key.AbstractSerializedKeyTaggedHex
getAlgoTaggedHex, getKey, getTag, serialize, setKey, setTag
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.casper.sdk.model.clvalue.serde.CasperSerializableObject
serialize
-
-
-
-
Constructor Detail
-
BalanceHoldKey
public BalanceHoldKey(BalanceHoldAddr balanceHoldAddr, byte[] urefAddr, java.math.BigInteger blockTime)
-
BalanceHoldKey
public BalanceHoldKey()
-
-
Method Detail
-
fromStringCustom
protected void fromStringCustom(java.lang.String strKey)
- Overrides:
fromStringCustomin classKey
-
deserializeCustom
protected void deserializeCustom(DeserializerBuffer deser) throws java.lang.Exception
- Overrides:
deserializeCustomin classKey- Throws:
java.lang.Exception
-
getBalanceHoldAddr
public BalanceHoldAddr getBalanceHoldAddr()
Gas hold variant.
-
getUrefAddr
public byte[] getUrefAddr()
The address of the purse this hold is on.
-
getBlockTime
public java.math.BigInteger getBlockTime()
The block time this hold was placed.
-
setBalanceHoldAddr
public void setBalanceHoldAddr(BalanceHoldAddr balanceHoldAddr)
Gas hold variant.
-
setUrefAddr
public void setUrefAddr(byte[] urefAddr)
The address of the purse this hold is on.
-
setBlockTime
public void setBlockTime(java.math.BigInteger blockTime)
The block time this hold was placed.
-
-