Class RebondGrace
- Namespace
- Nekoyume.Delegation
- Assembly
- Lib9c.dll
public sealed class RebondGrace : IUnbonding, IBencodable, IEquatable<RebondGrace>
- Inheritance
-
RebondGrace
- Implements
-
IBencodable
- Inherited Members
Constructors
RebondGrace(Address, int, IValue, IDelegationRepository?)
public RebondGrace(Address address, int maxEntries, IValue bencoded, IDelegationRepository? repository = null)
Parameters
addressAddressmaxEntriesintbencodedIValuerepositoryIDelegationRepository
RebondGrace(Address, int, List, IDelegationRepository?)
public RebondGrace(Address address, int maxEntries, List bencoded, IDelegationRepository? repository = null)
Parameters
addressAddressmaxEntriesintbencodedListrepositoryIDelegationRepository
RebondGrace(Address, int, IDelegationRepository?)
public RebondGrace(Address address, int maxEntries, IDelegationRepository? repository = null)
Parameters
addressAddressmaxEntriesintrepositoryIDelegationRepository
RebondGrace(Address, int, IEnumerable<UnbondingEntry>, IDelegationRepository?)
public RebondGrace(Address address, int maxEntries, IEnumerable<UnbondingEntry> entries, IDelegationRepository? repository = null)
Parameters
addressAddressmaxEntriesintentriesIEnumerable<UnbondingEntry>repositoryIDelegationRepository
Properties
Address
public Address Address { get; }
Property Value
- Address
Bencoded
public List Bencoded { get; }
Property Value
- List
DelegateeAddress
public Address DelegateeAddress { get; }
Property Value
- Address
DelegatorAddress
public Address DelegatorAddress { get; }
Property Value
- Address
Entries
public ImmutableSortedDictionary<long, ImmutableList<UnbondingEntry>> Entries { get; }
Property Value
FlattenedEntries
public ImmutableArray<UnbondingEntry> FlattenedEntries { get; }
Property Value
IsEmpty
public bool IsEmpty { get; }
Property Value
IsFull
public bool IsFull { get; }
Property Value
LowestExpireHeight
public long LowestExpireHeight { get; }
Property Value
MaxEntries
public int MaxEntries { get; }
Property Value
Repository
public IDelegationRepository? Repository { get; }
Property Value
Methods
Equals(RebondGrace?)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(RebondGrace? other)
Parameters
otherRebondGraceAn 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
objobjectThe 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.
Release(long, out FungibleAssetValue?)
public RebondGrace Release(long height, out FungibleAssetValue? releasedFAV)
Parameters
heightlongreleasedFAVFungibleAssetValue?
Returns
Slash(BigInteger, long, long, out FungibleAssetValue?)
public RebondGrace Slash(BigInteger slashFactor, long infractionHeight, long height, out FungibleAssetValue? slashedFAV)
Parameters
slashFactorBigIntegerinfractionHeightlongheightlongslashedFAVFungibleAssetValue?