Package com.casper.sdk.model.bid
Class ValidatorBid
- java.lang.Object
-
- com.casper.sdk.model.bid.ValidatorBid
-
-
Constructor Summary
Constructors Constructor Description ValidatorBid()ValidatorBid(PublicKey validatorPublicKey, URef bondingPurse, java.math.BigInteger stakedAmount, byte delegationRate, VestingSchedule vestingSchedule, boolean inactive)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description URefgetBondingPurse()The purse that was used for bonding.bytegetDelegationRate()Delegation ratejava.math.BigIntegergetStakedAmount()The amount of tokens staked by a validator (not including delegators).PublicKeygetValidatorPublicKey()Validator public keyVestingSchedulegetVestingSchedule()Vesting schedule for a genesis validator.booleanisInactive()`true` if validator has been "evicted"voidsetBondingPurse(URef bondingPurse)The purse that was used for bonding.voidsetDelegationRate(byte delegationRate)Delegation ratevoidsetInactive(boolean inactive)`true` if validator has been "evicted"voidsetStakedAmount(java.math.BigInteger stakedAmount)The amount of tokens staked by a validator (not including delegators).voidsetValidatorPublicKey(PublicKey validatorPublicKey)Validator public keyvoidsetVestingSchedule(VestingSchedule vestingSchedule)Vesting schedule for a genesis validator.
-
-
-
Constructor Detail
-
ValidatorBid
public ValidatorBid()
-
ValidatorBid
public ValidatorBid(PublicKey validatorPublicKey, URef bondingPurse, java.math.BigInteger stakedAmount, byte delegationRate, VestingSchedule vestingSchedule, boolean inactive)
-
-
Method Detail
-
getValidatorPublicKey
public PublicKey getValidatorPublicKey()
Validator public key
-
getBondingPurse
public URef getBondingPurse()
The purse that was used for bonding.
-
getStakedAmount
public java.math.BigInteger getStakedAmount()
The amount of tokens staked by a validator (not including delegators).
-
getDelegationRate
public byte getDelegationRate()
Delegation rate
-
getVestingSchedule
public VestingSchedule getVestingSchedule()
Vesting schedule for a genesis validator. `None` if non-genesis validator.
-
isInactive
public boolean isInactive()
`true` if validator has been "evicted"
-
setValidatorPublicKey
public void setValidatorPublicKey(PublicKey validatorPublicKey)
Validator public key
-
setBondingPurse
public void setBondingPurse(URef bondingPurse)
The purse that was used for bonding.
-
setStakedAmount
public void setStakedAmount(java.math.BigInteger stakedAmount)
The amount of tokens staked by a validator (not including delegators).
-
setDelegationRate
public void setDelegationRate(byte delegationRate)
Delegation rate
-
setVestingSchedule
public void setVestingSchedule(VestingSchedule vestingSchedule)
Vesting schedule for a genesis validator. `None` if non-genesis validator.
-
setInactive
public void setInactive(boolean inactive)
`true` if validator has been "evicted"
-
-