Table of Contents

Class DelegateeMetadata

Namespace
Nekoyume.Delegation
Assembly
Lib9c.dll
public class DelegateeMetadata : IDelegateeMetadata, IBencodable
Inheritance
DelegateeMetadata
Implements
IBencodable
Inherited Members

Constructors

DelegateeMetadata(Address, Address, IValue)

public DelegateeMetadata(Address delegateeAddress, Address delegateeAccountAddress, IValue bencoded)

Parameters

delegateeAddress Address
delegateeAccountAddress Address
bencoded IValue

DelegateeMetadata(Address, Address, List)

public DelegateeMetadata(Address address, Address accountAddress, List bencoded)

Parameters

address Address
accountAddress Address
bencoded List

DelegateeMetadata(Address, Address, Currency, IEnumerable<Currency>, Address, Address, Address, Address, long, int, int)

public DelegateeMetadata(Address delegateeAddress, Address delegateeAccountAddress, Currency delegationCurrency, IEnumerable<Currency> rewardCurrencies, Address delegationPoolAddress, Address rewardPoolAddress, Address rewardRemainderPoolAddress, Address slashedPoolAddress, long unbondingPeriod, int maxUnbondLockInEntries, int maxRebondGraceEntries)

Parameters

delegateeAddress Address
delegateeAccountAddress Address
delegationCurrency Currency
rewardCurrencies IEnumerable<Currency>
delegationPoolAddress Address
rewardPoolAddress Address
rewardRemainderPoolAddress Address
slashedPoolAddress Address
unbondingPeriod long
maxUnbondLockInEntries int
maxRebondGraceEntries int

Properties

Address

public Address Address { get; }

Property Value

Address

Bencoded

public List Bencoded { get; }

Property Value

List

DelegateeAccountAddress

public Address DelegateeAccountAddress { get; }

Property Value

Address

DelegateeAddress

public Address DelegateeAddress { get; }

Property Value

Address

DelegationCurrency

public Currency DelegationCurrency { get; }

Property Value

Currency

DelegationPoolAddress

public Address DelegationPoolAddress { get; }

Property Value

Address

Delegators

public ImmutableSortedSet<Address> Delegators { get; }

Property Value

ImmutableSortedSet<Address>

Jailed

public bool Jailed { get; }

Property Value

bool

JailedUntil

public long JailedUntil { get; }

Property Value

long

MaxRebondGraceEntries

public int MaxRebondGraceEntries { get; }

Property Value

int

MaxUnbondLockInEntries

public int MaxUnbondLockInEntries { get; }

Property Value

int

RewardCurrencies

public ImmutableSortedSet<Currency> RewardCurrencies { get; }

Property Value

ImmutableSortedSet<Currency>

RewardPoolAddress

public Address RewardPoolAddress { get; }

Property Value

Address

RewardRemainderPoolAddress

public Address RewardRemainderPoolAddress { get; }

Property Value

Address

SlashedPoolAddress

public Address SlashedPoolAddress { get; }

Property Value

Address

Tombstoned

public bool Tombstoned { get; }

Property Value

bool

TotalDelegatedFAV

public FungibleAssetValue TotalDelegatedFAV { get; }

Property Value

FungibleAssetValue

TotalShares

public BigInteger TotalShares { get; }

Property Value

BigInteger

UnbondingPeriod

public long UnbondingPeriod { get; }

Property Value

long

UnbondingRefs

public ImmutableSortedSet<UnbondingRef> UnbondingRefs { get; }

Property Value

ImmutableSortedSet<UnbondingRef>

Methods

AddDelegatedFAV(FungibleAssetValue)

public void AddDelegatedFAV(FungibleAssetValue fav)

Parameters

fav FungibleAssetValue

AddDelegator(Address)

public void AddDelegator(Address delegatorAddress)

Parameters

delegatorAddress Address

AddShare(BigInteger)

public void AddShare(BigInteger share)

Parameters

share BigInteger

AddUnbondingRef(UnbondingRef)

public void AddUnbondingRef(UnbondingRef unbondingRef)

Parameters

unbondingRef UnbondingRef

BondAddress(Address)

public Address BondAddress(Address delegatorAddress)

Parameters

delegatorAddress Address

Returns

Address

CurrentLumpSumRewardsRecordAddress()

public virtual Address CurrentLumpSumRewardsRecordAddress()

Returns

Address

Equals(IDelegateeMetadata?)

public virtual bool Equals(IDelegateeMetadata? other)

Parameters

other IDelegateeMetadata

Returns

bool

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.

FAVFromShare(BigInteger)

public FungibleAssetValue FAVFromShare(BigInteger share)

Parameters

share BigInteger

Returns

FungibleAssetValue

GetHashCode()

Serves as the default hash function.

public override int GetHashCode()

Returns

int

A hash code for the current object.

LumpSumRewardsRecordAddress(long)

public virtual Address LumpSumRewardsRecordAddress(long height)

Parameters

height long

Returns

Address

RebondGraceAddress(Address)

public virtual Address RebondGraceAddress(Address delegatorAddress)

Parameters

delegatorAddress Address

Returns

Address

RemoveDelegatedFAV(FungibleAssetValue)

public void RemoveDelegatedFAV(FungibleAssetValue fav)

Parameters

fav FungibleAssetValue

RemoveDelegator(Address)

public void RemoveDelegator(Address delegatorAddress)

Parameters

delegatorAddress Address

RemoveShare(BigInteger)

public void RemoveShare(BigInteger share)

Parameters

share BigInteger

RemoveUnbondingRef(UnbondingRef)

public void RemoveUnbondingRef(UnbondingRef unbondingRef)

Parameters

unbondingRef UnbondingRef

ShareFromFAV(FungibleAssetValue)

public BigInteger ShareFromFAV(FungibleAssetValue fav)

Parameters

fav FungibleAssetValue

Returns

BigInteger

UnbondLockInAddress(Address)

public Address UnbondLockInAddress(Address delegatorAddress)

Parameters

delegatorAddress Address

Returns

Address

UpdateUnbondingPeriod(long)

public void UpdateUnbondingPeriod(long unbondingPeriod)

Parameters

unbondingPeriod long