Package com.syntifi.casper.sdk.model.bid
Class JsonBid
- java.lang.Object
-
- com.syntifi.casper.sdk.model.bid.JsonBid
-
public class JsonBid extends java.lang.Object
An entry in a founding validator map representing a bid.- Since:
- 0.0.1
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
JsonBid.JsonBidBuilder
-
Constructor Summary
Constructors Constructor Description JsonBid()
JsonBid(URef bondingPurse, int delegationRate, java.util.List<JsonDelegator> delegators, boolean inactive, java.math.BigInteger stakedAmount)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static JsonBid.JsonBidBuilder
builder()
URef
getBondingPurse()
The purse that was used for bonding.int
getDelegationRate()
Delegation ratejava.util.List<JsonDelegator>
getDelegators()
The delegatorsprotected java.lang.String
getJsonStakedAmount()
java.math.BigInteger
getStakedAmount()
The amount of tokens staked by a validator (not including delegators).boolean
isInactive()
Is this an inactive validator?void
setBondingPurse(URef bondingPurse)
The purse that was used for bonding.void
setDelegationRate(int delegationRate)
Delegation ratevoid
setDelegators(java.util.List<JsonDelegator> delegators)
The delegatorsvoid
setInactive(boolean inactive)
Is this an inactive validator?protected void
setJsonStakedAmount(java.lang.String value)
void
setStakedAmount(java.math.BigInteger stakedAmount)
The amount of tokens staked by a validator (not including delegators).
-
-
-
Constructor Detail
-
JsonBid
public JsonBid(URef bondingPurse, int delegationRate, java.util.List<JsonDelegator> delegators, boolean inactive, java.math.BigInteger stakedAmount)
-
JsonBid
public JsonBid()
-
-
Method Detail
-
getJsonStakedAmount
@ExcludeFromJacocoGeneratedReport protected java.lang.String getJsonStakedAmount()
-
setJsonStakedAmount
@ExcludeFromJacocoGeneratedReport protected void setJsonStakedAmount(java.lang.String value)
-
builder
public static JsonBid.JsonBidBuilder builder()
-
getBondingPurse
public URef getBondingPurse()
The purse that was used for bonding.
-
getDelegationRate
public int getDelegationRate()
Delegation rate
-
getDelegators
public java.util.List<JsonDelegator> getDelegators()
The delegators- See Also:
JsonDelegator
-
isInactive
public boolean isInactive()
Is this an inactive validator?
-
getStakedAmount
public java.math.BigInteger getStakedAmount()
The amount of tokens staked by a validator (not including delegators).
-
setBondingPurse
public void setBondingPurse(URef bondingPurse)
The purse that was used for bonding.
-
setDelegationRate
public void setDelegationRate(int delegationRate)
Delegation rate
-
setDelegators
public void setDelegators(java.util.List<JsonDelegator> delegators)
The delegators- See Also:
JsonDelegator
-
setInactive
public void setInactive(boolean inactive)
Is this an inactive validator?
-
setStakedAmount
public void setStakedAmount(java.math.BigInteger stakedAmount)
The amount of tokens staked by a validator (not including delegators).
-
-