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
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Bid.BidBuilder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Bid.BidBuilder
builder()
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.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.
-
-
-
Constructor Detail
-
Bid
public Bid(URef bondingPurse, int delegationRate, java.util.Map<PublicKey,Delegator> delegators, boolean inactive, java.math.BigInteger stakedAmount, PublicKey validatorPublicKey, VestingSchedule vestingSchedule)
-
Bid
public Bid()
-
-
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)
-
builder
public static Bid.BidBuilder builder()
-
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.
-
-