Skip to content

Commit 096e967

Browse files
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 documentation
1 parent 9e31679 commit 096e967

File tree

164 files changed

+642
-15194
lines changed

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

.github/workflows/main.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ jobs:
1717

1818
- name: Compile and check types
1919
run: cd contracts && bun compile:hardhat && bun check:types
20+
env:
21+
NODE_OPTIONS: --max-old-space-size=8192
2022

2123
e2e-tests:
2224
name: E2E Tests

.gitignore

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,4 @@ node_modules/
77

88
.claude/settings.local.json
99

10-
.devdocs/
11-
12-
# pre-migration
13-
preMigration-checkpoint.json
14-
preMigration-errors.log
15-
preMigration.log
10+
.devdocs/

Dockerfile

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,10 +68,8 @@ RUN cd /app && bun install --production
6868
# Clean up other unnecessary files
6969
RUN rm -rf /app/.git /app/contracts/.git 2>/dev/null || true
7070

71-
# Expose ports for L1 and L2
71+
# Expose port for devnet
7272
EXPOSE 8545
73-
EXPOSE 8546
74-
EXPOSE 8547
7573

7674
# Run devnet
7775
WORKDIR /app/contracts

alto/alto-config-l2-local.json

Lines changed: 0 additions & 17 deletions
This file was deleted.

alto/alto-config-l2.json

Lines changed: 0 additions & 17 deletions
This file was deleted.

contracts/README.md

Lines changed: 68 additions & 159 deletions
Large diffs are not rendered by default.

contracts/bunfig.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
[test]
2-
preload = ["./test/e2e/test-setup.ts"]
2+
preload = ["./test/e2e/test-setup.ts"]
3+
timeout = 30000
File renamed without changes.

0 commit comments

Comments
 (0)