Skip to content
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

op-deployer: Support forking live chains #12918

Merged
merged 1 commit into from
Nov 14, 2024
Merged

Conversation

mslipper
Copy link
Collaborator

@mslipper mslipper commented Nov 13, 2024

Integrates op-deployer with the forking functionality added in #11919. With this PR, op-deployer can successfully simulate transactions against a forked remote chain. This dramatically simplifies the deployment pipeline, since there's no need to re-inject state at every step or manually craft calldata during the OP Chain deployment step.

As part of this PR, I simplified how the implementations get set post-OP Chain deployment in the event an existing OPCM is used. I created a ReadImplementationAddresses script that pulls the implementations from the proxies in Solidity, then use the scripting functionality in Go to call the script. This eliminated the need to perform lots of RPC calls and manually decode the results.

Since op-deployer supports deploying v1.6.0, I had to backport the ReadImplementationAddresses script to v1.6.0. You can see the diff between the base v1.6.0 release here. I gave it the tag op-contracts-v160-artifacts-read-implementations-backport so it can be easily found in the future. I also tagged the base v1.6.0 release as op-contracts-v160-artifacts-base for the same reason.

Lastly, I updated the artifacts publishing script to include the Git commit the artifacts were generated from to make determining where a given artifacts bundle was generated from easier in the future.

Closes #12855.

@mslipper mslipper force-pushed the feat/deployer-forking branch 4 times, most recently from d3c480b to 368510d Compare November 13, 2024 22:15
@mslipper mslipper force-pushed the feat/deployer-forking branch from 368510d to 9e4b45b Compare November 13, 2024 22:16
@mslipper mslipper marked this pull request as ready for review November 13, 2024 22:17
@mslipper mslipper requested review from a team as code owners November 13, 2024 22:17
@mslipper mslipper requested review from mbaxter, geoknee, blmalone and mds1 and removed request for mbaxter and geoknee November 13, 2024 22:17
Copy link
Contributor

@blmalone blmalone left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome!

@mslipper mslipper added this pull request to the merge queue Nov 14, 2024
Merged via the queue into develop with commit 50564d4 Nov 14, 2024
49 checks passed
@mslipper mslipper deleted the feat/deployer-forking branch November 14, 2024 19:28
boyuan-chen pushed a commit to bobanetwork/boba that referenced this pull request Nov 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add support for forking an existing chain
2 participants