Module snarkvm_synthesizer::vm

source ·

Structs

Functions

  • Returns the stakers given the bonded map from finalize storage.
  • Returns the committee given the committee map from finalize storage.
  • Returns the minimum number of microcredits required to run the finalize.
  • Returns the minimum cost in microcredits to publish the given deployment (total cost, (storage cost, namespace cost)).
  • Checks that the given committee from committee storage matches the given stakers.
  • Returns the minimum cost in microcredits to publish the given execution (total cost, (storage cost, namespace cost)).
  • 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).
  • Returns the updated stakers reflecting the staking rewards for the given committee and block reward. The staking reward is defined as: block_reward * stake / total_stake.
  • Returns the committee map and bonded map, given the committee and stakers.
  • Returns the next committee, given the current committee and stakers.