Struct StakeState
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
StakeState(LegacyStakeState, Contract)
public StakeState(LegacyStakeState legacyStakeState, Contract contract)
Parameters
legacyStakeState
LegacyStakeStatecontract
Contract
Fields
Contract
public readonly Contract Contract
Field Value
LatestStateTypeVersion
public const int LatestStateTypeVersion = 3
Field Value
ReceivedBlockIndex
public readonly long ReceivedBlockIndex
Field Value
StartedBlockIndex
public readonly long StartedBlockIndex
Field Value
StateTypeName
public const string StateTypeName = "stake_state"
Field Value
StateVersion
public readonly int StateVersion
Field Value
Properties
CancellableBlockIndex
public long CancellableBlockIndex { get; }
Property Value
ClaimableBlockIndex
public long ClaimableBlockIndex { get; }
Property Value
ClaimedBlockIndex
public long ClaimedBlockIndex { get; }
Property Value
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
Equals(object)
Indicates whether this instance and a specified object are equal.
public override bool Equals(object obj)
Parameters
obj
objectThe 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
StakeStateright
StakeState
Returns
operator !=(StakeState, StakeState)
public static bool operator !=(StakeState left, StakeState right)
Parameters
left
StakeStateright
StakeState