Module vm

Source

Structs§

VM

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.