-
Notifications
You must be signed in to change notification settings - Fork 108
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
feat(superchain): add GovernedByOptimism field to chain config #718
Conversation
1942d41
to
b1e4932
Compare
Two main questions:
I am wondering if this change be accompanied by some edits to this validation check: superchain-registry/validation/key-handover_test.go Lines 12 to 32 in c56b992
EDIT: just spotted the other PR #719. I think it would make sense to commit the changes in a single PR, if possible.
|
My understanding is that the existing "key handover test" is intended only for
More context here It may be possible that the correct path of action could be to reuse the key handover test for this purpose and instead add logic to also run it for chains that have |
aedca82
to
3568b11
Compare
Looks like you'll need to run |
Just chiming in to confirm that this can be the same logic as the key handover test. We are functionally checking the same thing (whether the proxy admin owner is set to the correct address). |
6fad3ba
to
9538f19
Compare
I've updated this PR with several changes:
I explored whether we can reuse the cc @bitwiseguy |
76cf719
to
f478121
Compare
validation/standard/config/networks/mainnet/standard-config-roles-mainnet.toml
Outdated
Show resolved
Hide resolved
validation/standard/config/networks/sepolia-dev-0/standard-versions-sepolia-dev-0.toml
Outdated
Show resolved
Hide resolved
fa008b6
to
db26141
Compare
db26141
to
86155af
Compare
46862bb
to
ad7e77b
Compare
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
This PR adds a boolean
GovernedByOptimism
field to the chain config, which indicates if a certain chain is subject to Optimism governance. It also adds aGovernedByOptimismTest
test to thevalidation
package, which ensures that any chain which has thegoverned_by_optimism
field set totrue
in its config also has itsProxyAdmin
address set to the Optimism multisig.It also sets the new
governed_by_optimism
field on all chain configs as appropriateMetadata