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
AddressinitialUnbondingFAV
FungibleAssetValueunbondingFAV
FungibleAssetValuecreationHeight
longexpireHeight
long
UnbondingEntry(Address, FungibleAssetValue, long, long)
public UnbondingEntry(Address unbondeeAddress, FungibleAssetValue unbondingFAV, long creationHeight, long expireHeight)
Parameters
Properties
Bencoded
public List Bencoded { get; }
Property Value
- List
CreationHeight
public long CreationHeight { get; }
Property Value
ExpireHeight
public long ExpireHeight { get; }
Property Value
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
UnbondingEntryAn 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
obj
objectThe 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.
Slash(BigInteger, long, out FungibleAssetValue)
public UnbondingEntry Slash(BigInteger slashFactor, long infractionHeight, out FungibleAssetValue slashedFAV)
Parameters
slashFactor
BigIntegerinfractionHeight
longslashedFAV
FungibleAssetValue