Table of Contents

Struct StakeState

Namespace
Nekoyume.Model.Stake
Assembly
Lib9c.dll
public readonly struct StakeState : IState
Implements
Inherited Members

Constructors

StakeState(IValue)

public StakeState(IValue serialized)

Parameters

serialized IValue

StakeState(Contract, long, long, int)

public StakeState(Contract contract, long startedBlockIndex, long receivedBlockIndex = 0, int stateVersion = 3)

Parameters

contract Contract
startedBlockIndex long
receivedBlockIndex long
stateVersion int

StakeState(LegacyStakeState, Contract)

public StakeState(LegacyStakeState legacyStakeState, Contract contract)

Parameters

legacyStakeState LegacyStakeState
contract Contract

Fields

Contract

public readonly Contract Contract

Field Value

Contract

LatestStateTypeVersion

public const int LatestStateTypeVersion = 3

Field Value

int

ReceivedBlockIndex

public readonly long ReceivedBlockIndex

Field Value

long

StartedBlockIndex

public readonly long StartedBlockIndex

Field Value

long

StateTypeName

public const string StateTypeName = "stake_state"

Field Value

string

StateVersion

public readonly int StateVersion

Field Value

int

Properties

CancellableBlockIndex

public long CancellableBlockIndex { get; }

Property Value

long

ClaimableBlockIndex

public long ClaimableBlockIndex { get; }

Property Value

long

ClaimedBlockIndex

public long ClaimedBlockIndex { get; }

Property Value

long

Methods

DeriveAddress(Address)

public static Address DeriveAddress(Address address)

Parameters

address Address

Returns

Address

Equals(StakeState)

public bool Equals(StakeState other)

Parameters

other StakeState

Returns

bool

Equals(object)

Indicates whether this instance and a specified object are equal.

public override bool Equals(object obj)

Parameters

obj object

The object to compare with the current instance.

Returns

bool

true if obj and this instance are the same type and represent the same value; otherwise, false.

GetHashCode()

Returns the hash code for this instance.

public override int GetHashCode()

Returns

int

A 32-bit signed integer that is the hash code for this instance.

Serialize()

public IValue Serialize()

Returns

IValue

Operators

operator ==(StakeState, StakeState)

public static bool operator ==(StakeState left, StakeState right)

Parameters

left StakeState
right StakeState

Returns

bool

operator !=(StakeState, StakeState)

public static bool operator !=(StakeState left, StakeState right)

Parameters

left StakeState
right StakeState

Returns

bool