Table of Contents

Class UnbondLockIn

Namespace
Nekoyume.Delegation
Assembly
Lib9c.dll
public sealed class UnbondLockIn : IUnbonding, IBencodable, IEquatable<UnbondLockIn>
Inheritance
UnbondLockIn
Implements
IBencodable
Inherited Members

Constructors

UnbondLockIn(Address, int, IValue, IDelegationRepository?)

public UnbondLockIn(Address address, int maxEntries, IValue bencoded, IDelegationRepository? repository = null)

Parameters

address Address
maxEntries int
bencoded IValue
repository IDelegationRepository

UnbondLockIn(Address, int, List, IDelegationRepository?)

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

Parameters

address Address
maxEntries int
bencoded List
repository IDelegationRepository

UnbondLockIn(Address, int, Address, Address, IDelegationRepository?)

public UnbondLockIn(Address address, int maxEntries, Address delegateeAddress, Address delegatorAddress, IDelegationRepository? repository)

Parameters

address Address
maxEntries int
delegateeAddress Address
delegatorAddress Address
repository IDelegationRepository

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

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

Parameters

address Address
maxEntries int
delegateeAddress Address
delegatorAddress Address
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

Methods

Equals(UnbondLockIn?)

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

public bool Equals(UnbondLockIn? other)

Parameters

other UnbondLockIn

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 UnbondLockIn Release(long height, out FungibleAssetValue? releasedFAV)

Parameters

height long
releasedFAV FungibleAssetValue?

Returns

UnbondLockIn

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

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

Parameters

slashFactor BigInteger
infractionHeight long
height long
slashedFAV FungibleAssetValue?

Returns

UnbondLockIn