Package com.syntifi.casper.sdk.model.bid
Class JsonBid.JsonBidBuilder
- java.lang.Object
-
- com.syntifi.casper.sdk.model.bid.JsonBid.JsonBidBuilder
-
- Enclosing class:
- JsonBid
public static class JsonBid.JsonBidBuilder extends java.lang.Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description JsonBid.JsonBidBuilder
bondingPurse(URef bondingPurse)
The purse that was used for bonding.JsonBid
build()
JsonBid.JsonBidBuilder
delegationRate(int delegationRate)
Delegation rateJsonBid.JsonBidBuilder
delegators(java.util.List<JsonDelegator> delegators)
The delegatorsJsonBid.JsonBidBuilder
inactive(boolean inactive)
Is this an inactive validator?JsonBid.JsonBidBuilder
stakedAmount(java.math.BigInteger stakedAmount)
The amount of tokens staked by a validator (not including delegators).java.lang.String
toString()
-
-
-
Method Detail
-
bondingPurse
public JsonBid.JsonBidBuilder bondingPurse(URef bondingPurse)
The purse that was used for bonding.- Returns:
this
.
-
delegationRate
public JsonBid.JsonBidBuilder delegationRate(int delegationRate)
Delegation rate- Returns:
this
.
-
delegators
public JsonBid.JsonBidBuilder delegators(java.util.List<JsonDelegator> delegators)
The delegators- Returns:
this
.- See Also:
JsonDelegator
-
inactive
public JsonBid.JsonBidBuilder inactive(boolean inactive)
Is this an inactive validator?- Returns:
this
.
-
stakedAmount
public JsonBid.JsonBidBuilder stakedAmount(java.math.BigInteger stakedAmount)
The amount of tokens staked by a validator (not including delegators).- Returns:
this
.
-
build
public JsonBid build()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-