Modulesยง
Structsยง
Enumsยง
- GetStake
Tables ๐Error - Error representing fail cases for retrieving the stake table.
Traitsยง
- Display
Log ๐ - 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
pand reward rateR(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
Noneinstead 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ยง
- Apply
Event ๐Result - The result of applying a stake table event:
- Authenticated
Validator Map - Registered
Validator Map - Stake
Table Hash