-
Notifications
You must be signed in to change notification settings - Fork 357
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #724 from matter-labs/kl/message-root-update
fix: chainRegistered
- Loading branch information
Showing
75 changed files
with
2,941 additions
and
592 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,6 +26,9 @@ jobs: | |
- name: Build L2 artifacts | ||
run: yarn l2 build | ||
|
||
- name: Build system contract artifacts | ||
run: yarn sc build | ||
|
||
- name: Create cache | ||
uses: actions/cache/save@v3 | ||
with: | ||
|
@@ -37,6 +40,9 @@ jobs: | |
l2-contracts/artifacts-zk | ||
l2-contracts/cache-zk | ||
l2-contracts/typechain | ||
system-contracts/artifacts-zk | ||
system-contracts/cache-zk | ||
system-contracts/typechain | ||
lint: | ||
runs-on: ubuntu-latest | ||
|
@@ -57,6 +63,23 @@ jobs: | |
- name: Lint | ||
run: yarn lint:check | ||
|
||
check-verifier-generator-l2: | ||
needs: [build] | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout the repository | ||
uses: actions/checkout@v4 | ||
with: | ||
submodules: recursive | ||
|
||
- name: Generate Verifier.sol | ||
working-directory: tools | ||
run: cargo run --bin zksync_verifier_contract_generator --release -- --input_path data/scheduler_key.json --l2_mode | ||
|
||
- name: Compare | ||
run: diff tools/data/Verifier.sol l2-contracts/contracts/verifier/Verifier.sol | ||
|
||
test: | ||
needs: [build, lint] | ||
runs-on: ubuntu-latest | ||
|
@@ -88,12 +111,19 @@ jobs: | |
l2-contracts/artifacts-zk | ||
l2-contracts/cache-zk | ||
l2-contracts/typechain | ||
- name: Run Era test node | ||
uses: dutterbutter/[email protected] | ||
|
||
- name: Copy typechain from System Contracts | ||
run: yarn sc build && yarn sc copy:typechain | ||
system-contracts/artifacts-zk | ||
system-contracts/cache-zk | ||
system-contracts/typechain | ||
- name: Install foundry zksync | ||
run: | | ||
wget https://github.com/matter-labs/foundry-zksync/releases/download/nightly-f908ce43834bc1ffb4de6576ea5600eaab49dddb/foundry_nightly_linux_amd64.tar.gz -O foundry-zksync.tar.gz | ||
tar -xzf foundry-zksync.tar.gz | ||
sudo mv forge /usr/local/bin/forge | ||
sudo mv cast /usr/local/bin/cast | ||
sudo chmod +x /usr/local/bin/forge | ||
sudo chmod +x /usr/local/bin/cast | ||
forge --version | ||
- name: Run tests | ||
run: yarn l2 test | ||
run: yarn l2 test:foundry |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.