feat: add L1 token, L1 bridge and L2 bridge contracts#93
Merged
Conversation
1c4f2ea to
ca843ff
Compare
ca843ff to
712885f
Compare
There was a problem hiding this comment.
Pull Request Overview
This PR adds L1 token, L1 bridge and L2 bridge contracts to support cross-chain bridging between L1 Ethereum and L2 zkSync Era. It also upgrades the Solidity version from 0.8.23 to 0.8.26 and updates dependencies.
- Creates a complete bridge system with L1Nodl token, L1Bridge, and L2Bridge contracts for cross-chain token transfers
- Upgrades Solidity version from 0.8.23 to 0.8.26 across all contracts and configuration files
- Adds comprehensive test coverage and deployment scripts for the new bridge infrastructure
Reviewed Changes
Copilot reviewed 63 out of 74 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| src/L1Nodl.sol | New L1 NODL token contract with governance features (ERC20Votes, AccessControl) |
| src/bridge/L1Bridge.sol | Main L1 bridge contract handling deposits to L2 and withdrawal finalizations |
| src/bridge/L2Bridge.sol | L2 bridge contract for finalizing deposits and initiating withdrawals |
| src/bridge/interfaces/* | Interface definitions for bridge contracts and withdrawal messages |
| test/bridge/* | Comprehensive test suites for L1 and L2 bridge functionality |
| script/Deploy*.s.sol | Deployment scripts for L1/L2 tokens and bridges |
| ops/*.sh | Operational scripts for deployment orchestration and withdrawal finalization |
| package.json | Dependency updates for zkSync tooling and Node.js version requirements |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
Co-authored-by: Copilot <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.