Commit 5416d68
authored
refactor(op-devstack): remove backward compatibility type aliases to align on single ComponentID type (ethereum-optimism#18877)
* stack: remove backward compatibility type aliases for Phase 6 cleanup
Complete the ID type system refactor by removing all backward compatibility
code. All code now uses ComponentID directly with typed constructor functions.
Changes:
- Remove 19 type aliases from component_id.go (L1ELNodeID, L2BatcherID, etc.)
- Remove Kind = ComponentKind alias
- Update KindProvider interface to use ComponentKind return type
- Update context.go functions to use ComponentKind instead of Kind
- Fix test files using incorrect constructor patterns
The type system is now fully unified:
- Single ComponentID type with kind, shape, key, and chainID fields
- Typed constructors (NewL2BatcherID, NewL2ELNodeID, etc.) return ComponentID
- ComponentKind enum for type discrimination
- Simplified Matcher[E] interface with single type parameter
* fix(op-devstack): drop misplaced kona tests and finalize componentid cleanup
* fix(op-devstack): restore Go build after ComponentID refactor1 parent c489321 commit 5416d68
File tree
151 files changed
+1798
-3269
lines changed- op-acceptance-tests/tests
- base/conductor
- batcher
- throttling
- depreqres
- reqressyncdisabled
- clsync
- divergence
- elsync
- syncmodereqressync
- clsync
- elsync
- fusaka
- interop
- seqwindow
- sync/multisupervisor_interop
- sync_tester
- sync_tester_elsync_multi
- sync_tester_hfs
- sync
- clsync/gap_clp2p
- elsync
- gap_clp2p
- gap_elp2p
- manual
- op-devstack
- dsl
- example
- presets
- shim
- stack
- match
- sysext
- sysgo
- op-up
- rust
- kona/tests
- node
- common
- utils
- supervisor/presets
- op-reth/crates/tests/proofs/utils
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
151 files changed
+1798
-3269
lines changedLines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
53 | | - | |
| 53 | + | |
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
| 20 | + | |
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
| 21 | + | |
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
| 24 | + | |
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
| 27 | + | |
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| |||
0 commit comments