-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add state override for gas estimates #1358
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm waiting for a full implementation..
I'm a bit of concerned, that we have take into account such a lot of places outside vm, probably it does make sense to introduce new abstraction where we do override on abstraction level which is deeper than storage view and use this abstraction instead of direct connection to the database
core/lib/zksync_core/src/api_server/web3/backend_jsonrpsee/namespaces/eth.rs
Outdated
Show resolved
Hide resolved
…ter-labs/zksync-era into aon-add-override-estimate-gas-tracer
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mostly nits.
Please address the issues with getting balance and setting new value in storage.
…ter-labs/zksync-era into aon-add-override-estimate-gas-tracer
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add tests for state
and stateDiff
overrides after fixing the issue with stateDiff
…e to eth_call and estimate_fee and estimate_l1_to_l2_gas
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Your tests don't cover semantical difference between state
and stateDiff
. Please fix code and change tests so they actually test it.
core/tests/ts-integration/contracts/state-override/StateOverrideTest.sol
Outdated
Show resolved
Hide resolved
No performance difference detected (anymore) |
🤖 I have created a release *beep* *boop* --- ## [24.11.0](core-v24.10.0...core-v24.11.0) (2024-07-23) ### Features * add revert tests (external node) to zk_toolbox ([#2408](#2408)) ([3fbbee1](3fbbee1)) * add state override for gas estimates ([#1358](#1358)) ([761bda1](761bda1)) * added consensus_config to general config ([#2462](#2462)) ([c5650a4](c5650a4)) * added key generation command to EN ([#2461](#2461)) ([9861415](9861415)) * remove leftovers after BWIP ([#2456](#2456)) ([990676c](990676c)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --------- Co-authored-by: zksync-era-bot <[email protected]>
## What ❔ Brush up VM storage overrides as introduced in #1358. ## Why ❔ The overrides implementation looks overly complex and isn't correctly localized by domain (located in the `state` crate, while the functionality is API server-specific). This worsens maintainability. ## Checklist - [x] PR title corresponds to the body of PR (we generate changelog entries from PRs). - [x] Tests for the changes have been added / updated. - [x] Documentation comments have been added / updated. - [x] Code has been formatted via `zk fmt` and `zk lint`.
What ❔
Why ❔
Checklist
zk fmt
andzk lint
.zk spellcheck
.zk linkcheck
.