Remove duplication of deployment steps in executeFork, make a function that can do the genesis deploy from the ForkingManager#265
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
initializesteps passing a lot of similar arguments into various contracts:assertchecks)This PR channels all initialization through a single function, and creates a
spawnInstancefunction that can be called against theForkingManagerimplementation 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.