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
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.