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
-
-
Constructor Summary
Constructors Constructor Description JsonBid()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
canEqual(java.lang.Object other)
boolean
equals(java.lang.Object o)
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).int
hashCode()
boolean
isInactive()
Is this an innactive validatorvoid
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 innactive validatorprotected void
setJsonStakedAmount(java.lang.String value)
void
setStakedAmount(java.math.BigInteger stakedAmount)
The amount of tokens staked by a validator (not including delegators).java.lang.String
toString()
-
-
-
Method Detail
-
getJsonStakedAmount
@ExcludeFromJacocoGeneratedReport protected java.lang.String getJsonStakedAmount()
-
setJsonStakedAmount
@ExcludeFromJacocoGeneratedReport protected void setJsonStakedAmount(java.lang.String value)
-
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 innactive 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 innactive validator
-
setStakedAmount
public void setStakedAmount(java.math.BigInteger stakedAmount)
The amount of tokens staked by a validator (not including delegators).
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
canEqual
protected boolean canEqual(java.lang.Object other)
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-