Skip to main content

Module stake_table

Module stake_table 

Source

Modulesยง

testing

Structsยง

StakeTableState
ValidatorSet

Enumsยง

GetStakeTablesError ๐Ÿ”’
Error representing fail cases for retrieving the stake table.

Traitsยง

DisplayLog ๐Ÿ”’
Format the alloy Log RPC type in a way to make it easy to find the event in an explorer.

Functionsยง

calculate_proportion_staked_and_reward_rate
Calculates the stake ratio p and reward rate R(p).
compute_block_reward ๐Ÿ”’
parse_x25519_key ๐Ÿ”’
The contract enforces canonical nonzero encodings, so an error here means a contract bug. Callers degrade it to None instead of aborting (defense in depth): the key only affects p2p networking, not consensus safety, so this is preferred over halting stake table processing on every node. The zero check is explicit because the Rust parser accepts the zero encoding.
retry ๐Ÿ”’
select_active_validator_set ๐Ÿ”’
Select active validators
sort_stake_table_events ๐Ÿ”’
to_registered_validator_map
validators_from_l1_events

Type Aliasesยง

ApplyEventResult ๐Ÿ”’
The result of applying a stake table event:
AuthenticatedValidatorMap
RegisteredValidatorMap
StakeTableHash