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
AddressdelegateeAccountAddress
Addressbencoded
IValue
DelegateeMetadata(Address, Address, List)
public DelegateeMetadata(Address address, Address accountAddress, List bencoded)
Parameters
address
AddressaccountAddress
Addressbencoded
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
AddressdelegateeAccountAddress
AddressdelegationCurrency
CurrencyrewardCurrencies
IEnumerable<Currency>delegationPoolAddress
AddressrewardPoolAddress
AddressrewardRemainderPoolAddress
AddressslashedPoolAddress
AddressunbondingPeriod
longmaxUnbondLockInEntries
intmaxRebondGraceEntries
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
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
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
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
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
UnbondLockInAddress(Address)
public Address UnbondLockInAddress(Address delegatorAddress)
Parameters
delegatorAddress
Address
Returns
- Address
UpdateUnbondingPeriod(long)
public void UpdateUnbondingPeriod(long unbondingPeriod)
Parameters
unbondingPeriod
long