-
Notifications
You must be signed in to change notification settings - Fork 245
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
near-sdk-sim 3.2.0: Expose cur block and fix storage costs (#390)
* Expose `cur_block` and `genesis_config` from `RuntimeStandalone`. This allows to manipulate block time, e.g. set to a given timestamp. * Use `RuntimeConfig::from_protocol_version` that fixes storage costs issue. Fixes: #388 * Set root account balance to one billion tokens. ## Test plan: - Modify FT test to verify storage cost fix by limiting initial deposit to 5 NEAR. It is not enough with old storage cost (50kb) and enough with new storage cost (500kb) * make block time configurable to sim contract tests that depend on env::block_time * Update near-sdk-sim/src/runtime.rs Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com> * use block_prod_time name to make it matches nearcore * Expose cur_block. Fix storage cost * Fix initial supply * Modify FT test to verify storage cost fix * Rework RuntimeConfig from genesis Co-authored-by: Bo Yao <bo@nearprotocol.com> Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
- Loading branch information
1 parent
9af51b8
commit 0507deb
Showing
6 changed files
with
23 additions
and
15 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters