-
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
Adding ability to fork EVM blockchain to do things like test transactions #254
Conversation
The author of this PR, joecroninallen, is not an activated member of this organization on Codecov. |
s := bufio.NewScanner(reader) | ||
|
||
for s.Scan() { | ||
// TODO: make this exhautive |
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.
@trajan0x is this todo for this PR?
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.
lgtm
Description
We are adding the ability to fork any EVM blockchain (using foundry's anvil). This can be used for doing things like validating transactions.
Additional context
This PR simply provides a generic way to fork an EVM blockchain by passing in a url and blockchain id.
We have the anvil binary embedded and we take the binary bytes from that and create an executable file and run that.
Then, the user can provide a callback function that takes a client handle to the forked blockchain, which allows the user to submit transactions and make calls to the forked blockchain.
This can be used to validate transactions for example before broadcasting to the main blockchain.
Metadata