Module term_state

Module term_state 

Source

Modules§

lock_status
pos_state_config

Structs§

DisputeEvent
DisputeEventV2
A separate event key rather than a field on DisputeEvent, so the pre-activation encoding stays byte-identical for replay.
DisputeRecord
ElectedMap
ElectingHeap
ElectionEvent
ElectionNodeID
A node becomes its voting power number of ElectionNodes for election.
NodeData
NodeID
PosState
RegisterEvent
RetireEvent
TermData
TermList
UnlockEvent
UpdateVotingPowerEvent

Enums§

NodeList
NodeStatus

Constants§

COMMITTEE_POINTS
ELECTION_POINTS
IN_QUEUE_LOCKED_VIEWS
MAX_TERM_POINTS
OUT_QUEUE_LOCKED_VIEWS
ROUND_PER_TERM
TERM_ELECTED_SIZE
TERM_LIST_LEN
TERM_MAX_SIZE

Functions§

bonus_vote_points
decode_dispute_event
Decode either dispute event, None for any other key. Both versions are recognised in one place so a third consumer cannot support one and silently drop the other.
leader_points

Type Aliases§

CandyMap