Skip to content

Commit

Permalink
feat(superchain): add GovernedByOptimism field to chain config (#718)
Browse files Browse the repository at this point in the history
* add GovernedByOptimism field to chain config

* set governed_by_optimism on op-mainnet and metal

* lint & run codegen

* update expected configs

* add GovernedByOptimismTest

* lint

* use PAO not PA

* swap expected and actual fields

* add explicit governed_by_optimism = false

* fix test panic

* set governed_by_optimism for mode and zora

* commit codegen changes

* remove comment

* extract resolveAddress

* check negative case as well

* set governed_by_optimism = true on additional chains

* commit codegen output

* commit lint fixes

* add back lint-removed fmt import in different order

* validate that PAO role is set

* iterate over networks instead of hardcoding

* lint

* rename getAddress in response to PR comment

* set swell &  ink sepolia to governed_by_optimism = true

* update codegen

* exclude sepolia-devnet-0 & base-devnet-0 from GovernedByOptimismTest

* improve comment for exclusions

* simplify getAddressFromConfig signature

* removed redundant nil checks
  • Loading branch information
edobry authored Dec 10, 2024
1 parent 327d7af commit ad6f08a
Show file tree
Hide file tree
Showing 42 changed files with 237 additions and 50 deletions.
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

0 comments on commit ad6f08a

Please sign in to comment.