Table of Contents

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 Address
bencoded IValue
repository ValidatorRepository

ValidatorDelegatee(Address, List, ValidatorRepository)

public ValidatorDelegatee(Address address, List bencoded, ValidatorRepository repository)

Parameters

address Address
bencoded List
repository 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 Address
publicKey PublicKey
commissionPercentage BigInteger
creationHeight long
rewardCurrencies IEnumerable<Currency>
repository ValidatorRepository

Properties

ActiveDelegationPoolAddress

public static Address ActiveDelegationPoolAddress { get; }

Property Value

Address

BaseProposerRewardPercentage

public static BigInteger BaseProposerRewardPercentage { get; }

Property Value

BigInteger

Bencoded

public List Bencoded { get; }

Property Value

List

BonusProposerRewardPercentage

public static BigInteger BonusProposerRewardPercentage { get; }

Property Value

BigInteger

CommissionPercentage

public BigInteger CommissionPercentage { get; }

Property Value

BigInteger

CommissionPercentageLastUpdateHeight

public long CommissionPercentageLastUpdateHeight { get; }

Property Value

long

CommissionPercentageMaxChange

public static BigInteger CommissionPercentageMaxChange { get; }

Property Value

BigInteger

CommissionPercentageUpdateCooldown

public static long CommissionPercentageUpdateCooldown { get; }

Property Value

long

DefaultCommissionPercentage

public static BigInteger DefaultCommissionPercentage { get; }

Property Value

BigInteger

InactiveDelegationPoolAddress

public static Address InactiveDelegationPoolAddress { get; }

Property Value

Address

IsActive

public bool IsActive { get; }

Property Value

bool

MaxCommissionPercentage

public static BigInteger MaxCommissionPercentage { get; }

Property Value

BigInteger

MinCommissionPercentage

public static BigInteger MinCommissionPercentage { get; }

Property Value

BigInteger

MinSelfDelegation

public FungibleAssetValue MinSelfDelegation { get; }

Property Value

FungibleAssetValue

Power

public BigInteger Power { get; }

Property Value

BigInteger

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

int

ValidatorMaxUnbondLockInEntries

public static int ValidatorMaxUnbondLockInEntries { get; }

Property Value

int

ValidatorUnbondingPeriod

public static long ValidatorUnbondingPeriod { get; }

Property Value

long

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 FungibleAssetValue
validatorPower BigInteger
validatorSetPower BigInteger
RewardSource Address
height long

Deactivate()

public void Deactivate()

Equals(IDelegatee?)

public bool Equals(IDelegatee? other)

Parameters

other IDelegatee

Returns

bool

Equals(ValidatorDelegatee?)

Indicates whether the current object is equal to another object of the same type.

public bool Equals(ValidatorDelegatee? other)

Parameters

other ValidatorDelegatee

An object to compare with this object.

Returns

bool

true if the current object is equal to the other parameter; otherwise, false.

Equals(object?)

Determines whether the specified object is equal to the current object.

public override bool Equals(object? obj)

Parameters

obj object

The object to compare with the current object.

Returns

bool

true if the specified object is equal to the current object; otherwise, false.

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

sender object
height long

OnEnjailed(object?, EventArgs)

public void OnEnjailed(object? sender, EventArgs e)

Parameters

sender object
e EventArgs

OnUnjailed(object?, EventArgs)

public void OnUnjailed(object? sender, EventArgs e)

Parameters

sender object
e EventArgs

SetCommissionPercentage(BigInteger, long)

public void SetCommissionPercentage(BigInteger percentage, long height)

Parameters

percentage BigInteger
height long

Unjail(long)

public void Unjail(long height)

Parameters

height long