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

feat(superchain): add GovernedByOptimism field to chain config #718

Merged
merged 29 commits into from
Dec 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
6ae7e06
add GovernedByOptimism field to chain config
edobry Nov 27, 2024
b8d5458
set governed_by_optimism on op-mainnet and metal
edobry Nov 27, 2024
3fb8958
lint & run codegen
edobry Nov 27, 2024
3c383b9
update expected configs
edobry Nov 28, 2024
c24680f
add GovernedByOptimismTest
edobry Nov 27, 2024
b1fea18
lint
edobry Nov 27, 2024
babf1d0
use PAO not PA
edobry Dec 2, 2024
c5c6f21
swap expected and actual fields
edobry Dec 2, 2024
0d4dec7
add explicit governed_by_optimism = false
edobry Dec 2, 2024
58f9297
fix test panic
edobry Dec 2, 2024
c839b0b
set governed_by_optimism for mode and zora
edobry Dec 2, 2024
03d4bb5
commit codegen changes
edobry Dec 6, 2024
a987b7a
remove comment
edobry Dec 6, 2024
c412de5
extract resolveAddress
edobry Dec 6, 2024
648232d
check negative case as well
edobry Dec 6, 2024
deefc6c
set governed_by_optimism = true on additional chains
edobry Dec 6, 2024
c20d2b0
commit codegen output
edobry Dec 6, 2024
8db0ded
commit lint fixes
edobry Dec 6, 2024
0c3c664
add back lint-removed fmt import in different order
edobry Dec 6, 2024
b0b637c
validate that PAO role is set
edobry Dec 9, 2024
71a5151
iterate over networks instead of hardcoding
edobry Dec 9, 2024
6158d3e
lint
edobry Dec 9, 2024
462d5bc
rename getAddress in response to PR comment
edobry Dec 10, 2024
5368aaf
set swell & ink sepolia to governed_by_optimism = true
edobry Dec 10, 2024
cc5f0eb
update codegen
edobry Dec 10, 2024
86155af
exclude sepolia-devnet-0 & base-devnet-0 from GovernedByOptimismTest
edobry Dec 10, 2024
ea7fb9d
improve comment for exclusions
edobry Dec 10, 2024
ad7e77b
simplify getAddressFromConfig signature
edobry Dec 10, 2024
29d7349
removed redundant nil checks
edobry Dec 10, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 36 additions & 0 deletions chainList.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
"https://explorer.optimism.io"
],
"superchainLevel": 1,
"governedByOptimism": true,
"dataAvailabilityType": "eth-da",
"parent": {
"type": "L2",
Expand All @@ -27,6 +28,7 @@
"https://explorer.ata.network"
],
"superchainLevel": 0,
"governedByOptimism": false,
"dataAvailabilityType": "alt-da",
"parent": {
"type": "L2",
Expand All @@ -45,6 +47,7 @@
"https://explorer.base.org"
],
"superchainLevel": 0,
"governedByOptimism": false,
"dataAvailabilityType": "eth-da",
"parent": {
"type": "L2",
Expand All @@ -62,6 +65,7 @@
"https://cyberscan.co/"
],
"superchainLevel": 0,
"governedByOptimism": false,
"dataAvailabilityType": "alt-da",
"parent": {
"type": "L2",
Expand All @@ -79,6 +83,7 @@
"https://ernscan.io"
],
"superchainLevel": 0,
"governedByOptimism": false,
"dataAvailabilityType": "eth-da",
"parent": {
"type": "L2",
Expand All @@ -96,6 +101,7 @@
"https://funki.superscan.network"
],
"superchainLevel": 0,
"governedByOptimism": false,
"dataAvailabilityType": "alt-da",
"parent": {
"type": "L2",
Expand All @@ -113,6 +119,7 @@
"https://blockscout.lisk.com"
],
"superchainLevel": 0,
"governedByOptimism": false,
"dataAvailabilityType": "eth-da",
"parent": {
"type": "L2",
Expand All @@ -130,6 +137,7 @@
"https://explorer.lyra.finance"
],
"superchainLevel": 0,
"governedByOptimism": false,
"dataAvailabilityType": "alt-da",
"parent": {
"type": "L2",
Expand All @@ -147,6 +155,7 @@
"https://explorer.metall2.com"
],
"superchainLevel": 0,
"governedByOptimism": true,
"dataAvailabilityType": "eth-da",
"parent": {
"type": "L2",
Expand All @@ -164,6 +173,7 @@
"https://explorer.mode.network"
],
"superchainLevel": 0,
"governedByOptimism": true,
"dataAvailabilityType": "eth-da",
"parent": {
"type": "L2",
Expand All @@ -181,6 +191,7 @@
"https://explorer.orderly.network"
],
"superchainLevel": 0,
"governedByOptimism": false,
"dataAvailabilityType": "alt-da",
"parent": {
"type": "L2",
Expand All @@ -198,6 +209,7 @@
"https://racescan.io/"
],
"superchainLevel": 0,
"governedByOptimism": false,
"dataAvailabilityType": "eth-da",
"parent": {
"type": "L2",
Expand All @@ -215,6 +227,7 @@
"https://shape-mainnet.explorer.alchemy.com/"
],
"superchainLevel": 0,
"governedByOptimism": false,
"dataAvailabilityType": "eth-da",
"parent": {
"type": "L2",
Expand All @@ -232,6 +245,7 @@
"https://swanscan.io"
],
"superchainLevel": 0,
"governedByOptimism": false,
"dataAvailabilityType": "eth-da",
"parent": {
"type": "L2",
Expand All @@ -249,6 +263,7 @@
"https://explorer.swellnetwork.io"
],
"superchainLevel": 0,
"governedByOptimism": true,
"dataAvailabilityType": "eth-da",
"parent": {
"type": "L2",
Expand All @@ -266,6 +281,7 @@
"https://explorer.thebinaryholdings.com"
],
"superchainLevel": 0,
"governedByOptimism": false,
"dataAvailabilityType": "eth-da",
"parent": {
"type": "L2",
Expand All @@ -284,6 +300,7 @@
"https://worldchain-mainnet.explorer.alchemy.com/"
],
"superchainLevel": 0,
"governedByOptimism": false,
"dataAvailabilityType": "eth-da",
"parent": {
"type": "L2",
Expand All @@ -301,6 +318,7 @@
"https://explorer.zora.energy"
],
"superchainLevel": 0,
"governedByOptimism": true,
"dataAvailabilityType": "eth-da",
"parent": {
"type": "L2",
Expand All @@ -318,6 +336,7 @@
"https://sepolia-optimistic.etherscan.io"
],
"superchainLevel": 1,
"governedByOptimism": true,
"dataAvailabilityType": "eth-da",
"parent": {
"type": "L2",
Expand All @@ -335,6 +354,7 @@
"https://sepolia-explorer.base.org"
],
"superchainLevel": 0,
"governedByOptimism": false,
"dataAvailabilityType": "eth-da",
"parent": {
"type": "L2",
Expand All @@ -352,6 +372,7 @@
"https://testnet.cyberscan.co/"
],
"superchainLevel": 0,
"governedByOptimism": false,
"dataAvailabilityType": "eth-da",
"parent": {
"type": "L2",
Expand All @@ -369,6 +390,7 @@
"https://testnet.ernscan.io"
],
"superchainLevel": 0,
"governedByOptimism": false,
"dataAvailabilityType": "eth-da",
"parent": {
"type": "L2",
Expand All @@ -386,6 +408,7 @@
"https://sepolia-sandbox.funkichain.com/"
],
"superchainLevel": 0,
"governedByOptimism": false,
"dataAvailabilityType": "alt-da",
"parent": {
"type": "L2",
Expand All @@ -403,6 +426,7 @@
"https://explorer-sepolia.inkonchain.com"
],
"superchainLevel": 0,
"governedByOptimism": true,
"dataAvailabilityType": "eth-da",
"parent": {
"type": "L2",
Expand All @@ -420,6 +444,7 @@
"https://sepolia-blockscout.lisk.com"
],
"superchainLevel": 0,
"governedByOptimism": false,
"dataAvailabilityType": "eth-da",
"parent": {
"type": "L2",
Expand All @@ -437,6 +462,7 @@
"https://testnet.explorer.metall2.com"
],
"superchainLevel": 0,
"governedByOptimism": true,
"dataAvailabilityType": "eth-da",
"parent": {
"type": "L2",
Expand All @@ -454,6 +480,7 @@
"https://soneium-minato.blockscout.com/"
],
"superchainLevel": 0,
"governedByOptimism": false,
"dataAvailabilityType": "eth-da",
"parent": {
"type": "L2",
Expand All @@ -471,6 +498,7 @@
"https://sepolia.explorer.mode.network"
],
"superchainLevel": 0,
"governedByOptimism": true,
"dataAvailabilityType": "eth-da",
"parent": {
"type": "L2",
Expand All @@ -488,6 +516,7 @@
"https://testnet.racescan.io/"
],
"superchainLevel": 0,
"governedByOptimism": false,
"dataAvailabilityType": "eth-da",
"parent": {
"type": "L2",
Expand All @@ -505,6 +534,7 @@
"https://shape-sepolia.explorer.alchemy.com/"
],
"superchainLevel": 0,
"governedByOptimism": false,
"dataAvailabilityType": "eth-da",
"parent": {
"type": "L2",
Expand All @@ -522,6 +552,7 @@
"https://explorer.sepolia.thebinaryholdings.com"
],
"superchainLevel": 0,
"governedByOptimism": false,
"dataAvailabilityType": "eth-da",
"parent": {
"type": "L2",
Expand All @@ -540,6 +571,7 @@
"https://sepolia.uniscan.xyz"
],
"superchainLevel": 0,
"governedByOptimism": false,
"dataAvailabilityType": "eth-da",
"parent": {
"type": "L2",
Expand All @@ -557,6 +589,7 @@
"https://worldchain-sepolia.explorer.alchemy.com/"
],
"superchainLevel": 0,
"governedByOptimism": false,
"dataAvailabilityType": "eth-da",
"parent": {
"type": "L2",
Expand All @@ -574,6 +607,7 @@
"https://sepolia.explorer.zora.energy"
],
"superchainLevel": 0,
"governedByOptimism": true,
"dataAvailabilityType": "eth-da",
"parent": {
"type": "L2",
Expand All @@ -591,6 +625,7 @@
""
],
"superchainLevel": 0,
"governedByOptimism": false,
"dataAvailabilityType": "eth-da",
"parent": {
"type": "L2",
Expand All @@ -608,6 +643,7 @@
""
],
"superchainLevel": 0,
"governedByOptimism": true,
"dataAvailabilityType": "eth-da",
"parent": {
"type": "L2",
Expand Down
Loading