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
delegateeAddressAddressdelegateeAccountAddressAddressbencodedIValue
DelegateeMetadata(Address, Address, List)
public DelegateeMetadata(Address address, Address accountAddress, List bencoded)
Parameters
addressAddressaccountAddressAddressbencodedList
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
delegateeAddressAddressdelegateeAccountAddressAddressdelegationCurrencyCurrencyrewardCurrenciesIEnumerable<Currency>delegationPoolAddressAddressrewardPoolAddressAddressrewardRemainderPoolAddressAddressslashedPoolAddressAddressunbondingPeriodlongmaxUnbondLockInEntriesintmaxRebondGraceEntriesint
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
JailedUntil
public long JailedUntil { get; }
Property Value
MaxRebondGraceEntries
public int MaxRebondGraceEntries { get; }
Property Value
MaxUnbondLockInEntries
public int MaxUnbondLockInEntries { get; }
Property Value
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
TotalDelegatedFAV
public FungibleAssetValue TotalDelegatedFAV { get; }
Property Value
- FungibleAssetValue
TotalShares
public BigInteger TotalShares { get; }
Property Value
UnbondingPeriod
public long UnbondingPeriod { get; }
Property Value
UnbondingRefs
public ImmutableSortedSet<UnbondingRef> UnbondingRefs { get; }
Property Value
Methods
AddDelegatedFAV(FungibleAssetValue)
public void AddDelegatedFAV(FungibleAssetValue fav)
Parameters
favFungibleAssetValue
AddDelegator(Address)
public void AddDelegator(Address delegatorAddress)
Parameters
delegatorAddressAddress
AddShare(BigInteger)
public void AddShare(BigInteger share)
Parameters
shareBigInteger
AddUnbondingRef(UnbondingRef)
public void AddUnbondingRef(UnbondingRef unbondingRef)
Parameters
unbondingRefUnbondingRef
BondAddress(Address)
public Address BondAddress(Address delegatorAddress)
Parameters
delegatorAddressAddress
Returns
- Address
CurrentLumpSumRewardsRecordAddress()
public virtual Address CurrentLumpSumRewardsRecordAddress()
Returns
- Address
Equals(IDelegateeMetadata?)
public virtual bool Equals(IDelegateeMetadata? other)
Parameters
otherIDelegateeMetadata
Returns
Equals(object?)
Determines whether the specified object is equal to the current object.
public override bool Equals(object? obj)
Parameters
objobjectThe object to compare with the current object.
Returns
FAVFromShare(BigInteger)
public FungibleAssetValue FAVFromShare(BigInteger share)
Parameters
shareBigInteger
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
heightlong
Returns
- Address
RebondGraceAddress(Address)
public virtual Address RebondGraceAddress(Address delegatorAddress)
Parameters
delegatorAddressAddress
Returns
- Address
RemoveDelegatedFAV(FungibleAssetValue)
public void RemoveDelegatedFAV(FungibleAssetValue fav)
Parameters
favFungibleAssetValue
RemoveDelegator(Address)
public void RemoveDelegator(Address delegatorAddress)
Parameters
delegatorAddressAddress
RemoveShare(BigInteger)
public void RemoveShare(BigInteger share)
Parameters
shareBigInteger
RemoveUnbondingRef(UnbondingRef)
public void RemoveUnbondingRef(UnbondingRef unbondingRef)
Parameters
unbondingRefUnbondingRef
ShareFromFAV(FungibleAssetValue)
public BigInteger ShareFromFAV(FungibleAssetValue fav)
Parameters
favFungibleAssetValue
Returns
UnbondLockInAddress(Address)
public Address UnbondLockInAddress(Address delegatorAddress)
Parameters
delegatorAddressAddress
Returns
- Address
UpdateUnbondingPeriod(long)
public void UpdateUnbondingPeriod(long unbondingPeriod)
Parameters
unbondingPeriodlong