Commit ad6f08a
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 checks1 parent 327d7af commit ad6f08a
File tree
42 files changed
+237
-50
lines changed- ops/testdata/superchain/configs/sepolia
- superchain
- configs
- mainnet
- sepolia-dev-0
- sepolia
- internal/codegen
- validation
- standard
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| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
13 | 14 | | |
14 | 15 | | |
15 | 16 | | |
| |||
27 | 28 | | |
28 | 29 | | |
29 | 30 | | |
| 31 | + | |
30 | 32 | | |
31 | 33 | | |
32 | 34 | | |
| |||
45 | 47 | | |
46 | 48 | | |
47 | 49 | | |
| 50 | + | |
48 | 51 | | |
49 | 52 | | |
50 | 53 | | |
| |||
62 | 65 | | |
63 | 66 | | |
64 | 67 | | |
| 68 | + | |
65 | 69 | | |
66 | 70 | | |
67 | 71 | | |
| |||
79 | 83 | | |
80 | 84 | | |
81 | 85 | | |
| 86 | + | |
82 | 87 | | |
83 | 88 | | |
84 | 89 | | |
| |||
96 | 101 | | |
97 | 102 | | |
98 | 103 | | |
| 104 | + | |
99 | 105 | | |
100 | 106 | | |
101 | 107 | | |
| |||
113 | 119 | | |
114 | 120 | | |
115 | 121 | | |
| 122 | + | |
116 | 123 | | |
117 | 124 | | |
118 | 125 | | |
| |||
130 | 137 | | |
131 | 138 | | |
132 | 139 | | |
| 140 | + | |
133 | 141 | | |
134 | 142 | | |
135 | 143 | | |
| |||
147 | 155 | | |
148 | 156 | | |
149 | 157 | | |
| 158 | + | |
150 | 159 | | |
151 | 160 | | |
152 | 161 | | |
| |||
164 | 173 | | |
165 | 174 | | |
166 | 175 | | |
| 176 | + | |
167 | 177 | | |
168 | 178 | | |
169 | 179 | | |
| |||
181 | 191 | | |
182 | 192 | | |
183 | 193 | | |
| 194 | + | |
184 | 195 | | |
185 | 196 | | |
186 | 197 | | |
| |||
198 | 209 | | |
199 | 210 | | |
200 | 211 | | |
| 212 | + | |
201 | 213 | | |
202 | 214 | | |
203 | 215 | | |
| |||
215 | 227 | | |
216 | 228 | | |
217 | 229 | | |
| 230 | + | |
218 | 231 | | |
219 | 232 | | |
220 | 233 | | |
| |||
232 | 245 | | |
233 | 246 | | |
234 | 247 | | |
| 248 | + | |
235 | 249 | | |
236 | 250 | | |
237 | 251 | | |
| |||
249 | 263 | | |
250 | 264 | | |
251 | 265 | | |
| 266 | + | |
252 | 267 | | |
253 | 268 | | |
254 | 269 | | |
| |||
266 | 281 | | |
267 | 282 | | |
268 | 283 | | |
| 284 | + | |
269 | 285 | | |
270 | 286 | | |
271 | 287 | | |
| |||
284 | 300 | | |
285 | 301 | | |
286 | 302 | | |
| 303 | + | |
287 | 304 | | |
288 | 305 | | |
289 | 306 | | |
| |||
301 | 318 | | |
302 | 319 | | |
303 | 320 | | |
| 321 | + | |
304 | 322 | | |
305 | 323 | | |
306 | 324 | | |
| |||
318 | 336 | | |
319 | 337 | | |
320 | 338 | | |
| 339 | + | |
321 | 340 | | |
322 | 341 | | |
323 | 342 | | |
| |||
335 | 354 | | |
336 | 355 | | |
337 | 356 | | |
| 357 | + | |
338 | 358 | | |
339 | 359 | | |
340 | 360 | | |
| |||
352 | 372 | | |
353 | 373 | | |
354 | 374 | | |
| 375 | + | |
355 | 376 | | |
356 | 377 | | |
357 | 378 | | |
| |||
369 | 390 | | |
370 | 391 | | |
371 | 392 | | |
| 393 | + | |
372 | 394 | | |
373 | 395 | | |
374 | 396 | | |
| |||
386 | 408 | | |
387 | 409 | | |
388 | 410 | | |
| 411 | + | |
389 | 412 | | |
390 | 413 | | |
391 | 414 | | |
| |||
403 | 426 | | |
404 | 427 | | |
405 | 428 | | |
| 429 | + | |
406 | 430 | | |
407 | 431 | | |
408 | 432 | | |
| |||
420 | 444 | | |
421 | 445 | | |
422 | 446 | | |
| 447 | + | |
423 | 448 | | |
424 | 449 | | |
425 | 450 | | |
| |||
437 | 462 | | |
438 | 463 | | |
439 | 464 | | |
| 465 | + | |
440 | 466 | | |
441 | 467 | | |
442 | 468 | | |
| |||
454 | 480 | | |
455 | 481 | | |
456 | 482 | | |
| 483 | + | |
457 | 484 | | |
458 | 485 | | |
459 | 486 | | |
| |||
471 | 498 | | |
472 | 499 | | |
473 | 500 | | |
| 501 | + | |
474 | 502 | | |
475 | 503 | | |
476 | 504 | | |
| |||
488 | 516 | | |
489 | 517 | | |
490 | 518 | | |
| 519 | + | |
491 | 520 | | |
492 | 521 | | |
493 | 522 | | |
| |||
505 | 534 | | |
506 | 535 | | |
507 | 536 | | |
| 537 | + | |
508 | 538 | | |
509 | 539 | | |
510 | 540 | | |
| |||
522 | 552 | | |
523 | 553 | | |
524 | 554 | | |
| 555 | + | |
525 | 556 | | |
526 | 557 | | |
527 | 558 | | |
| |||
540 | 571 | | |
541 | 572 | | |
542 | 573 | | |
| 574 | + | |
543 | 575 | | |
544 | 576 | | |
545 | 577 | | |
| |||
557 | 589 | | |
558 | 590 | | |
559 | 591 | | |
| 592 | + | |
560 | 593 | | |
561 | 594 | | |
562 | 595 | | |
| |||
574 | 607 | | |
575 | 608 | | |
576 | 609 | | |
| 610 | + | |
577 | 611 | | |
578 | 612 | | |
579 | 613 | | |
| |||
591 | 625 | | |
592 | 626 | | |
593 | 627 | | |
| 628 | + | |
594 | 629 | | |
595 | 630 | | |
596 | 631 | | |
| |||
608 | 643 | | |
609 | 644 | | |
610 | 645 | | |
| 646 | + | |
611 | 647 | | |
612 | 648 | | |
613 | 649 | | |
| |||
0 commit comments