Package com.syntifi.casper.sdk.model.bid
Class Bid.BidBuilder
- java.lang.Object
-
- com.syntifi.casper.sdk.model.bid.Bid.BidBuilder
-
- Enclosing class:
- Bid
public static class Bid.BidBuilder extends java.lang.Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Bid.BidBuilder
bondingPurse(URef bondingPurse)
The purse that was used for bonding.Bid
build()
Bid.BidBuilder
delegationRate(int delegationRate)
Delegation rateBid.BidBuilder
delegators(java.util.Map<PublicKey,Delegator> delegators)
This validator's delegators, indexed by their public keysBid.BidBuilder
inactive(boolean inactive)
`true` if validator has been \"evicted\"Bid.BidBuilder
stakedAmount(java.math.BigInteger stakedAmount)
The amount of tokens staked by a validator (not including delegators).java.lang.String
toString()
Bid.BidBuilder
validatorPublicKey(PublicKey validatorPublicKey)
Validator PublicKeyBid.BidBuilder
vestingSchedule(VestingSchedule vestingSchedule)
Vesting schedule for a genesis validator.
-
-
-
Method Detail
-
bondingPurse
public Bid.BidBuilder bondingPurse(URef bondingPurse)
The purse that was used for bonding.- Returns:
this
.
-
delegationRate
public Bid.BidBuilder delegationRate(int delegationRate)
Delegation rate- Returns:
this
.
-
delegators
public Bid.BidBuilder delegators(java.util.Map<PublicKey,Delegator> delegators)
This validator's delegators, indexed by their public keys- Returns:
this
.
-
inactive
public Bid.BidBuilder inactive(boolean inactive)
`true` if validator has been \"evicted\"- Returns:
this
.
-
stakedAmount
public Bid.BidBuilder stakedAmount(java.math.BigInteger stakedAmount)
The amount of tokens staked by a validator (not including delegators).- Returns:
this
.
-
validatorPublicKey
public Bid.BidBuilder validatorPublicKey(PublicKey validatorPublicKey)
Validator PublicKey- Returns:
this
.
-
vestingSchedule
public Bid.BidBuilder vestingSchedule(VestingSchedule vestingSchedule)
Vesting schedule for a genesis validator. `None` if non-genesis validator.- Returns:
this
.
-
build
public Bid build()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-