Package com.syntifi.casper.sdk.model.bid
Class Delegator
- java.lang.Object
-
- com.syntifi.casper.sdk.model.bid.Delegator
-
public class Delegator extends java.lang.Object
Represents a party delegating their stake to a validator (or \"delegatee\")- Since:
- 0.0.1
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Delegator.DelegatorBuilder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Delegator.DelegatorBuilder
builder()
URef
getBondingPurse()
PublicKey
getDelegatorPublicKey()
protected java.lang.String
getJsonStakedAmount()
java.math.BigInteger
getStakedAmount()
staked amountPublicKey
getValidatorPublicKey()
VestingSchedule
getVestingSchedule()
void
setBondingPurse(URef bondingPurse)
void
setDelegatorPublicKey(PublicKey delegatorPublicKey)
protected void
setJsonStakedAmount(java.lang.String value)
void
setStakedAmount(java.math.BigInteger stakedAmount)
staked amountvoid
setValidatorPublicKey(PublicKey validatorPublicKey)
void
setVestingSchedule(VestingSchedule vestingSchedule)
-
-
-
Constructor Detail
-
Delegator
public Delegator(PublicKey validatorPublicKey, VestingSchedule vestingSchedule, URef bondingPurse, PublicKey delegatorPublicKey, java.math.BigInteger stakedAmount)
-
Delegator
public Delegator()
-
-
Method Detail
-
getJsonStakedAmount
@ExcludeFromJacocoGeneratedReport protected java.lang.String getJsonStakedAmount()
-
setJsonStakedAmount
@ExcludeFromJacocoGeneratedReport protected void setJsonStakedAmount(java.lang.String value)
-
builder
public static Delegator.DelegatorBuilder builder()
-
getVestingSchedule
public VestingSchedule getVestingSchedule()
- See Also:
VestingSchedule
-
getStakedAmount
public java.math.BigInteger getStakedAmount()
staked amount
-
setValidatorPublicKey
public void setValidatorPublicKey(PublicKey validatorPublicKey)
- See Also:
PublicKey
-
setVestingSchedule
public void setVestingSchedule(VestingSchedule vestingSchedule)
- See Also:
VestingSchedule
-
setDelegatorPublicKey
public void setDelegatorPublicKey(PublicKey delegatorPublicKey)
- See Also:
PublicKey
-
setStakedAmount
public void setStakedAmount(java.math.BigInteger stakedAmount)
staked amount
-
-