Class Bid.BidBuilder

  • Enclosing class:
    Bid

    public static class Bid.BidBuilder
    extends java.lang.Object
    • 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 class java.lang.Object