Structs§
Functions§
- bonded_
map_ into_ stakers - Returns the stakers given the bonded map from finalize storage.
- committee_
and_ delegated_ maps_ into_ committee - Returns the committee given the committee map from finalize storage.
- ensure_
stakers_ matches - Checks that the given committee from committee storage matches the given stakers.
- proving_
rewards - Returns the proving rewards for a given coinbase reward and list of prover solutions.
The prover reward is defined as:
puzzle_reward * (proof_target / combined_proof_target)
. - staking_
rewards - Returns the updated stakers reflecting the staking rewards for the given committee, block reward, and validator commission rates.
- to_
next_ committee - Returns the next committee, given the current committee and stakers.
- to_
next_ committee_ bonded_ delegated_ map - Returns the committee map, bonded map, and delegated map, given the committee and stakers.
- to_
next_ delegated - to_
next_ withdraw_ map - Returns the withdraw map, given the withdrawal addresses.