Package com.syntifi.casper.sdk.model.bid
Class Bid
- java.lang.Object
-
- com.syntifi.casper.sdk.model.bid.Bid
-
public class Bid extends java.lang.Object
An entry in the validator map.- Since:
- 0.0.1
-
-
Constructor Summary
Constructors Constructor Description Bid()
-
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.Map<PublicKey,Delegator>
getDelegators()
This validator's delegators, indexed by their public keysprotected java.util.Map<java.lang.String,Delegator>
getJsonDelegators()
protected java.lang.String
getJsonStakedAmount()
java.math.BigInteger
getStakedAmount()
The amount of tokens staked by a validator (not including delegators).PublicKey
getValidatorPublicKey()
Validator PublicKeyVestingSchedule
getVestingSchedule()
Vesting schedule for a genesis validator.int
hashCode()
boolean
isInactive()
`true` if validator has been \"evicted\"void
setBondingPurse(URef bondingPurse)
The purse that was used for bonding.void
setDelegationRate(int delegationRate)
Delegation ratevoid
setDelegators(java.util.Map<PublicKey,Delegator> delegators)
This validator's delegators, indexed by their public keysvoid
setInactive(boolean inactive)
`true` if validator has been \"evicted\"protected void
setJsonDelegators(java.util.Map<java.lang.String,Delegator> node)
protected void
setJsonStakedAmount(java.lang.String value)
void
setStakedAmount(java.math.BigInteger stakedAmount)
The amount of tokens staked by a validator (not including delegators).void
setValidatorPublicKey(PublicKey validatorPublicKey)
Validator PublicKeyvoid
setVestingSchedule(VestingSchedule vestingSchedule)
Vesting schedule for a genesis validator.java.lang.String
toString()
-
-
-
Method Detail
-
setJsonDelegators
@ExcludeFromJacocoGeneratedReport protected void setJsonDelegators(java.util.Map<java.lang.String,Delegator> node) throws java.security.NoSuchAlgorithmException, InvalidByteStringException
- Throws:
java.security.NoSuchAlgorithmException
InvalidByteStringException
-
getJsonDelegators
@ExcludeFromJacocoGeneratedReport protected java.util.Map<java.lang.String,Delegator> getJsonDelegators()
-
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.Map<PublicKey,Delegator> getDelegators()
This validator's delegators, indexed by their public keys
-
isInactive
public boolean isInactive()
`true` if validator has been \"evicted\"
-
getStakedAmount
public java.math.BigInteger getStakedAmount()
The amount of tokens staked by a validator (not including delegators).
-
getValidatorPublicKey
public PublicKey getValidatorPublicKey()
Validator PublicKey
-
getVestingSchedule
public VestingSchedule getVestingSchedule()
Vesting schedule for a genesis validator. `None` if non-genesis validator.
-
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.Map<PublicKey,Delegator> delegators)
This validator's delegators, indexed by their public keys
-
setInactive
public void setInactive(boolean inactive)
`true` if validator has been \"evicted\"
-
setStakedAmount
public void setStakedAmount(java.math.BigInteger stakedAmount)
The amount of tokens staked by a validator (not including delegators).
-
setValidatorPublicKey
public void setValidatorPublicKey(PublicKey validatorPublicKey)
Validator PublicKey
-
setVestingSchedule
public void setVestingSchedule(VestingSchedule vestingSchedule)
Vesting schedule for a genesis validator. `None` if non-genesis validator.
-
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
-
-