Table of Contents

Class UnbondingEntry

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

Constructors

UnbondingEntry(IValue)

public UnbondingEntry(IValue bencoded)

Parameters

bencoded IValue

UnbondingEntry(Address, FungibleAssetValue, FungibleAssetValue, long, long)

public UnbondingEntry(Address unbondeeAddress, FungibleAssetValue initialUnbondingFAV, FungibleAssetValue unbondingFAV, long creationHeight, long expireHeight)

Parameters

unbondeeAddress Address
initialUnbondingFAV FungibleAssetValue
unbondingFAV FungibleAssetValue
creationHeight long
expireHeight long

UnbondingEntry(Address, FungibleAssetValue, long, long)

public UnbondingEntry(Address unbondeeAddress, FungibleAssetValue unbondingFAV, long creationHeight, long expireHeight)

Parameters

unbondeeAddress Address
unbondingFAV FungibleAssetValue
creationHeight long
expireHeight long

Properties

Bencoded

public List Bencoded { get; }

Property Value

List

CreationHeight

public long CreationHeight { get; }

Property Value

long

ExpireHeight

public long ExpireHeight { get; }

Property Value

long

InitialUnbondingFAV

public FungibleAssetValue InitialUnbondingFAV { get; }

Property Value

FungibleAssetValue

UnbondeeAddress

public Address UnbondeeAddress { get; }

Property Value

Address

UnbondingFAV

public FungibleAssetValue UnbondingFAV { get; }

Property Value

FungibleAssetValue

Methods

Equals(UnbondingEntry?)

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

public bool Equals(UnbondingEntry? other)

Parameters

other UnbondingEntry

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.

Slash(BigInteger, long, out FungibleAssetValue)

public UnbondingEntry Slash(BigInteger slashFactor, long infractionHeight, out FungibleAssetValue slashedFAV)

Parameters

slashFactor BigInteger
infractionHeight long
slashedFAV FungibleAssetValue

Returns

UnbondingEntry