Skip to content

Commit ad6f08a

Browse files
authored
feat(superchain): add GovernedByOptimism field to chain config (#718)
* 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
1 parent 327d7af commit ad6f08a

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+237
-50
lines changed

chainList.json

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
"https://explorer.optimism.io"
1111
],
1212
"superchainLevel": 1,
13+
"governedByOptimism": true,
1314
"dataAvailabilityType": "eth-da",
1415
"parent": {
1516
"type": "L2",
@@ -27,6 +28,7 @@
2728
"https://explorer.ata.network"
2829
],
2930
"superchainLevel": 0,
31+
"governedByOptimism": false,
3032
"dataAvailabilityType": "alt-da",
3133
"parent": {
3234
"type": "L2",
@@ -45,6 +47,7 @@
4547
"https://explorer.base.org"
4648
],
4749
"superchainLevel": 0,
50+
"governedByOptimism": false,
4851
"dataAvailabilityType": "eth-da",
4952
"parent": {
5053
"type": "L2",
@@ -62,6 +65,7 @@
6265
"https://cyberscan.co/"
6366
],
6467
"superchainLevel": 0,
68+
"governedByOptimism": false,
6569
"dataAvailabilityType": "alt-da",
6670
"parent": {
6771
"type": "L2",
@@ -79,6 +83,7 @@
7983
"https://ernscan.io"
8084
],
8185
"superchainLevel": 0,
86+
"governedByOptimism": false,
8287
"dataAvailabilityType": "eth-da",
8388
"parent": {
8489
"type": "L2",
@@ -96,6 +101,7 @@
96101
"https://funki.superscan.network"
97102
],
98103
"superchainLevel": 0,
104+
"governedByOptimism": false,
99105
"dataAvailabilityType": "alt-da",
100106
"parent": {
101107
"type": "L2",
@@ -113,6 +119,7 @@
113119
"https://blockscout.lisk.com"
114120
],
115121
"superchainLevel": 0,
122+
"governedByOptimism": false,
116123
"dataAvailabilityType": "eth-da",
117124
"parent": {
118125
"type": "L2",
@@ -130,6 +137,7 @@
130137
"https://explorer.lyra.finance"
131138
],
132139
"superchainLevel": 0,
140+
"governedByOptimism": false,
133141
"dataAvailabilityType": "alt-da",
134142
"parent": {
135143
"type": "L2",
@@ -147,6 +155,7 @@
147155
"https://explorer.metall2.com"
148156
],
149157
"superchainLevel": 0,
158+
"governedByOptimism": true,
150159
"dataAvailabilityType": "eth-da",
151160
"parent": {
152161
"type": "L2",
@@ -164,6 +173,7 @@
164173
"https://explorer.mode.network"
165174
],
166175
"superchainLevel": 0,
176+
"governedByOptimism": true,
167177
"dataAvailabilityType": "eth-da",
168178
"parent": {
169179
"type": "L2",
@@ -181,6 +191,7 @@
181191
"https://explorer.orderly.network"
182192
],
183193
"superchainLevel": 0,
194+
"governedByOptimism": false,
184195
"dataAvailabilityType": "alt-da",
185196
"parent": {
186197
"type": "L2",
@@ -198,6 +209,7 @@
198209
"https://racescan.io/"
199210
],
200211
"superchainLevel": 0,
212+
"governedByOptimism": false,
201213
"dataAvailabilityType": "eth-da",
202214
"parent": {
203215
"type": "L2",
@@ -215,6 +227,7 @@
215227
"https://shape-mainnet.explorer.alchemy.com/"
216228
],
217229
"superchainLevel": 0,
230+
"governedByOptimism": false,
218231
"dataAvailabilityType": "eth-da",
219232
"parent": {
220233
"type": "L2",
@@ -232,6 +245,7 @@
232245
"https://swanscan.io"
233246
],
234247
"superchainLevel": 0,
248+
"governedByOptimism": false,
235249
"dataAvailabilityType": "eth-da",
236250
"parent": {
237251
"type": "L2",
@@ -249,6 +263,7 @@
249263
"https://explorer.swellnetwork.io"
250264
],
251265
"superchainLevel": 0,
266+
"governedByOptimism": true,
252267
"dataAvailabilityType": "eth-da",
253268
"parent": {
254269
"type": "L2",
@@ -266,6 +281,7 @@
266281
"https://explorer.thebinaryholdings.com"
267282
],
268283
"superchainLevel": 0,
284+
"governedByOptimism": false,
269285
"dataAvailabilityType": "eth-da",
270286
"parent": {
271287
"type": "L2",
@@ -284,6 +300,7 @@
284300
"https://worldchain-mainnet.explorer.alchemy.com/"
285301
],
286302
"superchainLevel": 0,
303+
"governedByOptimism": false,
287304
"dataAvailabilityType": "eth-da",
288305
"parent": {
289306
"type": "L2",
@@ -301,6 +318,7 @@
301318
"https://explorer.zora.energy"
302319
],
303320
"superchainLevel": 0,
321+
"governedByOptimism": true,
304322
"dataAvailabilityType": "eth-da",
305323
"parent": {
306324
"type": "L2",
@@ -318,6 +336,7 @@
318336
"https://sepolia-optimistic.etherscan.io"
319337
],
320338
"superchainLevel": 1,
339+
"governedByOptimism": true,
321340
"dataAvailabilityType": "eth-da",
322341
"parent": {
323342
"type": "L2",
@@ -335,6 +354,7 @@
335354
"https://sepolia-explorer.base.org"
336355
],
337356
"superchainLevel": 0,
357+
"governedByOptimism": false,
338358
"dataAvailabilityType": "eth-da",
339359
"parent": {
340360
"type": "L2",
@@ -352,6 +372,7 @@
352372
"https://testnet.cyberscan.co/"
353373
],
354374
"superchainLevel": 0,
375+
"governedByOptimism": false,
355376
"dataAvailabilityType": "eth-da",
356377
"parent": {
357378
"type": "L2",
@@ -369,6 +390,7 @@
369390
"https://testnet.ernscan.io"
370391
],
371392
"superchainLevel": 0,
393+
"governedByOptimism": false,
372394
"dataAvailabilityType": "eth-da",
373395
"parent": {
374396
"type": "L2",
@@ -386,6 +408,7 @@
386408
"https://sepolia-sandbox.funkichain.com/"
387409
],
388410
"superchainLevel": 0,
411+
"governedByOptimism": false,
389412
"dataAvailabilityType": "alt-da",
390413
"parent": {
391414
"type": "L2",
@@ -403,6 +426,7 @@
403426
"https://explorer-sepolia.inkonchain.com"
404427
],
405428
"superchainLevel": 0,
429+
"governedByOptimism": true,
406430
"dataAvailabilityType": "eth-da",
407431
"parent": {
408432
"type": "L2",
@@ -420,6 +444,7 @@
420444
"https://sepolia-blockscout.lisk.com"
421445
],
422446
"superchainLevel": 0,
447+
"governedByOptimism": false,
423448
"dataAvailabilityType": "eth-da",
424449
"parent": {
425450
"type": "L2",
@@ -437,6 +462,7 @@
437462
"https://testnet.explorer.metall2.com"
438463
],
439464
"superchainLevel": 0,
465+
"governedByOptimism": true,
440466
"dataAvailabilityType": "eth-da",
441467
"parent": {
442468
"type": "L2",
@@ -454,6 +480,7 @@
454480
"https://soneium-minato.blockscout.com/"
455481
],
456482
"superchainLevel": 0,
483+
"governedByOptimism": false,
457484
"dataAvailabilityType": "eth-da",
458485
"parent": {
459486
"type": "L2",
@@ -471,6 +498,7 @@
471498
"https://sepolia.explorer.mode.network"
472499
],
473500
"superchainLevel": 0,
501+
"governedByOptimism": true,
474502
"dataAvailabilityType": "eth-da",
475503
"parent": {
476504
"type": "L2",
@@ -488,6 +516,7 @@
488516
"https://testnet.racescan.io/"
489517
],
490518
"superchainLevel": 0,
519+
"governedByOptimism": false,
491520
"dataAvailabilityType": "eth-da",
492521
"parent": {
493522
"type": "L2",
@@ -505,6 +534,7 @@
505534
"https://shape-sepolia.explorer.alchemy.com/"
506535
],
507536
"superchainLevel": 0,
537+
"governedByOptimism": false,
508538
"dataAvailabilityType": "eth-da",
509539
"parent": {
510540
"type": "L2",
@@ -522,6 +552,7 @@
522552
"https://explorer.sepolia.thebinaryholdings.com"
523553
],
524554
"superchainLevel": 0,
555+
"governedByOptimism": false,
525556
"dataAvailabilityType": "eth-da",
526557
"parent": {
527558
"type": "L2",
@@ -540,6 +571,7 @@
540571
"https://sepolia.uniscan.xyz"
541572
],
542573
"superchainLevel": 0,
574+
"governedByOptimism": false,
543575
"dataAvailabilityType": "eth-da",
544576
"parent": {
545577
"type": "L2",
@@ -557,6 +589,7 @@
557589
"https://worldchain-sepolia.explorer.alchemy.com/"
558590
],
559591
"superchainLevel": 0,
592+
"governedByOptimism": false,
560593
"dataAvailabilityType": "eth-da",
561594
"parent": {
562595
"type": "L2",
@@ -574,6 +607,7 @@
574607
"https://sepolia.explorer.zora.energy"
575608
],
576609
"superchainLevel": 0,
610+
"governedByOptimism": true,
577611
"dataAvailabilityType": "eth-da",
578612
"parent": {
579613
"type": "L2",
@@ -591,6 +625,7 @@
591625
""
592626
],
593627
"superchainLevel": 0,
628+
"governedByOptimism": false,
594629
"dataAvailabilityType": "eth-da",
595630
"parent": {
596631
"type": "L2",
@@ -608,6 +643,7 @@
608643
""
609644
],
610645
"superchainLevel": 0,
646+
"governedByOptimism": true,
611647
"dataAvailabilityType": "eth-da",
612648
"parent": {
613649
"type": "L2",

0 commit comments

Comments
 (0)