-
Notifications
You must be signed in to change notification settings - Fork 4
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
Remove duplication of deployment steps in executeFork, make a function that can do the genesis deploy from the ForkingManager #265
base: main
Are you sure you want to change the base?
Conversation
…ation from executeFork, replace with AddressPair with a struct per fork.
…n the original genesis deploy. (Haven't changed the deployment script yet).
…or the rollup verifier for consistency
yeah I think generally its nicer to do it that way. Maybe the gas price for such big transaction are a little bit higher, but i think its fine. |
Great, I'll have a go at hacking this into the deploy and see if it works in practice. I think the gas cost should be OK because it's only adding the proxies and initializing them. The part where you deploy the implementation contracts is still done from JavaScript and it's simple so I should be able to get the |
…ntation, as its address is used when making zkevm params
… implementation, as its address is used when making zkevm params" This reverts commit 70a31bd.
…c, deploy with spawnInstance
…w, restructure slightly with a view to making the scripts testable in future
…t instead of relying on another file
…be called from a test etc
We'd ended up with a lot of duplication of all the
initialize
steps passing a lot of similar arguments into various contracts:assert
checks)This PR channels all initialization through a single function, and creates a
spawnInstance
function that can be called against theForkingManager
implementation to do the initial deployment of all the other forkable parts.Next step (apart from tidying up) would be to replace parts of the JavaScript deployment scripts with a call to
spawnInstance
.