Commit 096e967
authored
BET-553: Remove L2-related bridging code (#2)
* refactor: remove L2 bridging infrastructure for L1-only deployment
- Remove all L2 bridge code (src/L2/, src/common/bridge/)
- Remove bridge deployment scripts and tests
- Remove pre-migration script and related tests
- Remove ITokenObserver from PermissionedRegistry
- Remove ejector role from deployment configuration
- Refactor migration controllers to register directly to ETH_REGISTRY
- Create MigrationTypes.sol with TransferData and MigrationData structs
- Keep minimal BridgeRolesLib stub for ETHTLDResolver compatibility
BREAKING CHANGE: Cross-chain bridging functionality removed
* docs: update documentation to remove L1/L2 terminology
- Remove L2 Scalability, Cross-Chain Support, and ejection features
- Add Gas Efficiency feature instead
- Delete L2 Components section (dead links to removed files)
- Rename L1 Components to Core Components
- Update ETHTLDResolver docs to describe v1/v2 resolution
- Delete Cross-Chain Bridge section
- Simplify devnet docs to single chain
- Remove dead L2 file comments from deploy/constants.ts
Also includes directory restructuring:
- Flatten src/common/* and src/L1/* into src/
- Rename L1*MigrationController to *MigrationController
- Remove TOKEN_OBSERVER role and shift subsequent roles
- Delete BridgeRolesLib and L1BridgeController
* docs: improve README markdown formatting
* refactor: remove ejection and unregister functionality
Remove cross-chain ejection code and ROLE_UNREGISTER since migration
now means staying on the same chain but adding a name to the v2 registry.
- Remove POST_EJECTION state and branch from ETHTLDResolver
- Remove unregister() from PermissionedRegistry and IStandardRegistry
- Remove ROLE_UNREGISTER and ROLE_UNREGISTER_ADMIN constants
- Remove bridgeName() function from testNames.ts
- Delete ejection.test.ts and remove ejection tests
- Update migration controller tests to remove ROLE_UNREGISTER grants
* fix(ci): increase Node.js heap size for type checking
Add NODE_OPTIONS with 8GB max heap size to the check-types CI job
to prevent JavaScript heap out of memory errors when TypeScript
processes the large generated artifacts file.
* wip
* chore: wip
* fix: earlier issues
* fix: resolve TypeScript type errors and Solidity lint issues
- Simplify deployVerifiableProxy function signature to avoid complex
EncodeFunctionDataParameters intersection type inference issues
- Fix Solidity import order in MigratedWrappedNameRegistry, UserRegistry,
ETHTLDResolver, and LockedNamesLib to properly group parent and
current directory imports
- Fix prettier formatting in DNSAliasResolver
* fix(ci): increase bun test timeout for e2e tests
Increase the timeout from default 5s to 30s to accommodate slower
devnet operations (EVM snapshot restoration and sync) on CI.
* refactor(resolver): remove pre-migration code from ETHTLDResolver
Remove all traces of pre-migration functionality which was used to
indicate names that hadn't migrated from V1 yet. This state (address 0x1)
is no longer needed.
Changes:
- Remove PRE_MIGRATION from NameState enum
- Remove _determineInflightResolver and _nameStateFrom functions
- Simplify getResolverCallback and resolveNamechainCallback to pure
- Update resolveNamechainCallback to directly revert UnreachableName
- Remove pre-migration file entries from .gitignore
* refactor: remove ETHTLDResolver and related deployment scripts
Remove the ETHTLDResolver contract which was used for unified
ENSv2/ENSv1 resolution. This includes:
- Delete ETHTLDResolver.sol contract
- Remove deploy scripts 04_ETHTLDResolver.ts and 05_SetETHTLDResolver.ts
- Remove ETHTLDResolver integration tests
- Update references in setup scripts, e2e tests, and documentation1 parent 9e31679 commit 096e967
File tree
164 files changed
+642
-15194
lines changed- .github/workflows
- alto
- contracts
- deploy
- l1
- l2
- universalResolver
- script
- src
- L1
- bridge
- resolver
- L2
- bridge
- registrar
- interfaces
- libraries
- access-control
- interfaces
- libraries
- common
- bridge
- interfaces
- libraries
- registry/interfaces
- dns
- libraries
- erc1155
- interfaces
- hca
- interfaces
- migration
- libraries
- types
- registry
- interfaces
- libraries
- resolver
- interfaces
- libraries
- universalResolver/libraries
- utils
- test
- e2e
- integration
- bridge
- common
- fixtures
- l1
- mocks
- unit
- L1/bridge
- L2
- bridge
- registrar
- libraries
- access-control
- common/bridge
- libraries
- dns
- libraries
- hca
- migration
- libraries
- registry
- resolver
- libraries
- universalResolver
- libraries
- utils
- utils
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
164 files changed
+642
-15194
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
| 21 | + | |
20 | 22 | | |
21 | 23 | | |
22 | 24 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
| 10 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
71 | | - | |
| 71 | + | |
72 | 72 | | |
73 | | - | |
74 | | - | |
75 | 73 | | |
76 | 74 | | |
77 | 75 | | |
| |||
This file was deleted.
This file was deleted.
File renamed without changes.
File renamed without changes.
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
| 3 | + | |
File renamed without changes.
0 commit comments