Table of Contents

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

address Address
maxEntries int
bencoded IValue
repository IDelegationRepository

RebondGrace(Address, int, List, IDelegationRepository?)

public RebondGrace(Address address, int maxEntries, List bencoded, IDelegationRepository? repository = null)

Parameters

address Address
maxEntries int
bencoded List
repository IDelegationRepository

RebondGrace(Address, int, IDelegationRepository?)

public RebondGrace(Address address, int maxEntries, IDelegationRepository? repository = null)

Parameters

address Address
maxEntries int
repository IDelegationRepository

RebondGrace(Address, int, IEnumerable<UnbondingEntry>, IDelegationRepository?)

public RebondGrace(Address address, int maxEntries, IEnumerable<UnbondingEntry> entries, IDelegationRepository? repository = null)

Parameters

address Address
maxEntries int
entries IEnumerable<UnbondingEntry>
repository IDelegationRepository

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

ImmutableSortedDictionary<long, ImmutableList<UnbondingEntry>>

FlattenedEntries

public ImmutableArray<UnbondingEntry> FlattenedEntries { get; }

Property Value

ImmutableArray<UnbondingEntry>

IsEmpty

public bool IsEmpty { get; }

Property Value

bool

IsFull

public bool IsFull { get; }

Property Value

bool

LowestExpireHeight

public long LowestExpireHeight { get; }

Property Value

long

MaxEntries

public int MaxEntries { get; }

Property Value

int

Repository

public IDelegationRepository? Repository { get; }

Property Value

IDelegationRepository

Methods

Equals(RebondGrace?)

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

public bool Equals(RebondGrace? other)

Parameters

other RebondGrace

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.

Release(long, out FungibleAssetValue?)

public RebondGrace Release(long height, out FungibleAssetValue? releasedFAV)

Parameters

height long
releasedFAV FungibleAssetValue?

Returns

RebondGrace

Slash(BigInteger, long, long, out FungibleAssetValue?)

public RebondGrace Slash(BigInteger slashFactor, long infractionHeight, long height, out FungibleAssetValue? slashedFAV)

Parameters

slashFactor BigInteger
infractionHeight long
height long
slashedFAV FungibleAssetValue?

Returns

RebondGrace