-
Notifications
You must be signed in to change notification settings - Fork 32
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(advanced
): foundry-fork-db
#145
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.
cool, this should also demonstrate how to use it with revm, like using the Database API and transacting a transfer for example
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.
nice, lgtm!
I think we should also eventually demonstrate how foundry-fork-db can be plugged into Provider
's call
and estimate_gas
fns to leverage local EVM simulation and caching of individual storage slots
@mattsse needs fork-db release |
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.
cool
Motivation
The fork-db functionality was extracted from foundry as
foundry-fork-db
. This is a generic tool to create and manage forks.foundry's current forking mechanism and management of multiple forks is based on this.
Solution
Demonstrate a minimal example of how this works using
SharedBackend
andBlockchainDb
.PR Checklist