Class ValidatorDelegatee
- Namespace
- Nekoyume.ValidatorDelegation
- Assembly
- Lib9c.dll
public sealed class ValidatorDelegatee : Delegatee<ValidatorDelegator, ValidatorDelegatee>, IDelegatee, IEquatable<ValidatorDelegatee>, IBencodable
- Inheritance
-
ValidatorDelegatee
- Implements
-
IBencodable
- Inherited Members
Constructors
ValidatorDelegatee(Address, IValue, ValidatorRepository)
public ValidatorDelegatee(Address address, IValue bencoded, ValidatorRepository repository)
Parameters
address
Addressbencoded
IValuerepository
ValidatorRepository
ValidatorDelegatee(Address, List, ValidatorRepository)
public ValidatorDelegatee(Address address, List bencoded, ValidatorRepository repository)
Parameters
address
Addressbencoded
Listrepository
ValidatorRepository
ValidatorDelegatee(Address, PublicKey, BigInteger, long, IEnumerable<Currency>, ValidatorRepository)
public ValidatorDelegatee(Address address, PublicKey publicKey, BigInteger commissionPercentage, long creationHeight, IEnumerable<Currency> rewardCurrencies, ValidatorRepository repository)
Parameters
address
AddresspublicKey
PublicKeycommissionPercentage
BigIntegercreationHeight
longrewardCurrencies
IEnumerable<Currency>repository
ValidatorRepository
Properties
ActiveDelegationPoolAddress
public static Address ActiveDelegationPoolAddress { get; }
Property Value
- Address
BaseProposerRewardPercentage
public static BigInteger BaseProposerRewardPercentage { get; }
Property Value
Bencoded
public List Bencoded { get; }
Property Value
- List
BonusProposerRewardPercentage
public static BigInteger BonusProposerRewardPercentage { get; }
Property Value
CommissionPercentage
public BigInteger CommissionPercentage { get; }
Property Value
CommissionPercentageLastUpdateHeight
public long CommissionPercentageLastUpdateHeight { get; }
Property Value
CommissionPercentageMaxChange
public static BigInteger CommissionPercentageMaxChange { get; }
Property Value
CommissionPercentageUpdateCooldown
public static long CommissionPercentageUpdateCooldown { get; }
Property Value
DefaultCommissionPercentage
public static BigInteger DefaultCommissionPercentage { get; }
Property Value
InactiveDelegationPoolAddress
public static Address InactiveDelegationPoolAddress { get; }
Property Value
- Address
IsActive
public bool IsActive { get; }
Property Value
MaxCommissionPercentage
public static BigInteger MaxCommissionPercentage { get; }
Property Value
MinCommissionPercentage
public static BigInteger MinCommissionPercentage { get; }
Property Value
MinSelfDelegation
public FungibleAssetValue MinSelfDelegation { get; }
Property Value
- FungibleAssetValue
Power
public BigInteger Power { get; }
Property Value
PublicKey
public PublicKey PublicKey { get; }
Property Value
- PublicKey
Validator
public Validator Validator { get; }
Property Value
- Validator
ValidatorDelegationCurrency
public static Currency ValidatorDelegationCurrency { get; }
Property Value
- Currency
ValidatorMaxRebondGraceEntries
public static int ValidatorMaxRebondGraceEntries { get; }
Property Value
ValidatorMaxUnbondLockInEntries
public static int ValidatorMaxUnbondLockInEntries { get; }
Property Value
ValidatorUnbondingPeriod
public static long ValidatorUnbondingPeriod { get; }
Property Value
Methods
Activate()
public void Activate()
AllocateReward(FungibleAssetValue, BigInteger, BigInteger, Address, long)
public void AllocateReward(FungibleAssetValue rewardToAllocate, BigInteger validatorPower, BigInteger validatorSetPower, Address RewardSource, long height)
Parameters
rewardToAllocate
FungibleAssetValuevalidatorPower
BigIntegervalidatorSetPower
BigIntegerRewardSource
Addressheight
long
Deactivate()
public void Deactivate()
Equals(IDelegatee?)
public bool Equals(IDelegatee? other)
Parameters
other
IDelegatee
Returns
Equals(ValidatorDelegatee?)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(ValidatorDelegatee? other)
Parameters
other
ValidatorDelegateeAn object to compare with this object.
Returns
Equals(object?)
Determines whether the specified object is equal to the current object.
public override bool Equals(object? obj)
Parameters
obj
objectThe object to compare with the current object.
Returns
GetHashCode()
Serves as the default hash function.
public override int GetHashCode()
Returns
- int
A hash code for the current object.
OnDelegationChanged(object?, long)
public void OnDelegationChanged(object? sender, long height)
Parameters
OnEnjailed(object?, EventArgs)
public void OnEnjailed(object? sender, EventArgs e)
Parameters
OnUnjailed(object?, EventArgs)
public void OnUnjailed(object? sender, EventArgs e)
Parameters
SetCommissionPercentage(BigInteger, long)
public void SetCommissionPercentage(BigInteger percentage, long height)
Parameters
percentage
BigIntegerheight
long
Unjail(long)
public void Unjail(long height)
Parameters
height
long