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
AddressmaxEntries
intbencoded
IValuerepository
IDelegationRepository
UnbondLockIn(Address, int, List, IDelegationRepository?)
public UnbondLockIn(Address address, int maxEntries, List bencoded, IDelegationRepository? repository = null)
Parameters
address
AddressmaxEntries
intbencoded
Listrepository
IDelegationRepository
UnbondLockIn(Address, int, Address, Address, IDelegationRepository?)
public UnbondLockIn(Address address, int maxEntries, Address delegateeAddress, Address delegatorAddress, IDelegationRepository? repository)
Parameters
address
AddressmaxEntries
intdelegateeAddress
AddressdelegatorAddress
Addressrepository
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
AddressmaxEntries
intdelegateeAddress
AddressdelegatorAddress
Addressentries
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
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
Methods
Equals(UnbondLockIn?)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(UnbondLockIn? other)
Parameters
other
UnbondLockInAn 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.
Release(long, out FungibleAssetValue?)
public UnbondLockIn Release(long height, out FungibleAssetValue? releasedFAV)
Parameters
height
longreleasedFAV
FungibleAssetValue?
Returns
Slash(BigInteger, long, long, out FungibleAssetValue?)
public UnbondLockIn Slash(BigInteger slashFactor, long infractionHeight, long height, out FungibleAssetValue? slashedFAV)
Parameters
slashFactor
BigIntegerinfractionHeight
longheight
longslashedFAV
FungibleAssetValue?