snarkVM icon indicating copy to clipboard operation
snarkVM copied to clipboard

Introduce `supply` mapping

Open raychu86 opened this issue 2 years ago • 0 comments

Motivation

This PR introduces the supply mapping to credits.aleo and handles the updates in the VM::speculate and VM::finalize operations.

Each of the following conditions will update the supply mapping:

  • Ratify::Genesis
  • Ratify::BlockReward
  • Ratify::PuzzleReward
  • Specific transactions
    • bond_public
    • unbond_public
    • transfer_private_to_public
    • transfer_public_to_private
    • fee_private
    • fee_public

raychu86 avatar Aug 24 '23 03:08 raychu86