Stake History
- class StakeHistory
A type to hold data for the StakeHistory sysvar.
- add(epoch, entry)
- static from_bytes(data)
Deserialize from bytes.
- Parameters:
data (bytes) – the serialized object.
Returns: the deserialized object.
- static from_json(raw)
Build from a JSON string.
- get(epoch)
- to_json()
Convert to a JSON string.
- class StakeHistoryEntry(effective, activating, deactivating)
- activating
sum of portion of stakes not fully warmed up
- deactivating
requested to be cooled down, not fully deactivated yet
- effective
effective stake at this epoch
- static from_bytes(data)
Deserialize from bytes.
- Parameters:
data (bytes) – the serialized object.
Returns: the deserialized object.
- static from_json(raw)
Build from a JSON string.
- to_json()
Convert to a JSON string.
- static with_deactivating(deactivating)
Create a
StakeHistoryEntrywith the given deactivating stake.
- static with_effective(effective)
Create a
StakeHistoryEntrywith the given effective stake.
- static with_effective_and_activating(effective, activating)
Create a
StakeHistoryEntrywith the given effective and activating stake.