-
Notifications
You must be signed in to change notification settings - Fork 5
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
Split FaultProof initialization to new function initializeAnchorStateRegistry() #286
base: celo10
Are you sure you want to change the base?
Conversation
…Registry(). Don't deploy testing FP types
…ests and legacy systems
3d16ab7
to
4a7ecb6
Compare
No dependency changes detected. Learn more about Socket for GitHub ↗︎ 👍 No dependency changes detected in pull request |
@SocketSecurity ignore pypi/[email protected] |
This PR is stale because it has been open 14 days with no activity. Remove stale label or comment or this will be closed in 5 days. |
83d2311
to
380a18f
Compare
What is meant by
Are those taken from step 1? |
waitReachable(config.client.l1.public, 10_000), | ||
waitReachable(config.client.l2.public, 10_000), | ||
waitForNextGame(config.client.l1.public, chainConfig.l2, 60_000), | ||
waitReachable(config.client.l1.public, 60_000), |
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.
Are those changes related to this PR?
@@ -1,5 +1,5 @@ | |||
certifi==2024.7.4 | |||
cffi==1.15.1 | |||
cffi==1.17.1 |
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.
Also, related to the fault registry changes?
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.
Contract changes look good from my side, maybe let @pahor167 have a look as well.
* mark it as executable * allow running on both MacOS and linux (GNU vs BSD tool differences) * terminate on errors * less strict go.mod matching to allow applying it directly to upstream
* [Automatic] - Update op-geth dependencies Update the go package dependency and the devnet docker container reference of the `l2` service to the latest commit (`0162ce9d029819807bcba2dc94875888c72aa88d`) in the `celo10` ref. * Adapt address-getters to op-geth library changes * Update cffi python package --------- Co-authored-by: Javier Cortejoso <[email protected]>
The PR splits the FaultProof initialization to new function initializeAnchorStateRegistry(). Also removes the "testing" fault proof game times (Alphabet, Asterisc, Fast) that are not intended for production networks.
With these changes, L1 deployment process would look like:
Deploy.s.sol
run() function as normally. With the changes, Fault Game implementations are not deployed, and AnchorStateRegistry is not initialized (and cannot be initialized at this point without registering a game by the admin, with errorexecution reverted: Proxy: implementation not initialized
). Command to deploy the L1 contracts:Proceed with the deployment. Generate L2
genesis.json
androllup.json
. Get theoutputRoot
for the L2 migration block (or genesis if a new testnet) and replace the valuesfaultGameGenesisBlock
andfaultGameGenesisOutputRoot
in the rollup config.Initialize the Fault Proofs, with the command: