algorand / graviton

🧑‍🔬 verify your TEAL program by experiment and observation
MIT License
17 stars 8 forks source link

Dryrun cost #33

Closed tzaffi closed 1 year ago

tzaffi commented 1 year ago

Upgrade the treatment of Dry Run Cost + Handle dryrun_accounts

This continues the almost ready to merge #31

Original PR Description

For certain use cases, it's necessary to set the balance of the app account to some nonzero value. One example is testing inner app calls. This PR allows the users to set balances for accounts and updates the existing dryrun cost field (which is now deprecated) and adds support for the new cost fields BudgetAdded and BudgetConsumed.

Testing: Unit tests.