-
Notifications
You must be signed in to change notification settings - Fork 347
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'sync-layer-stable' of ssh://github.com/matter-labs/era-…
…contracts into kl/interop
- Loading branch information
Showing
540 changed files
with
20,006 additions
and
9,802 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,6 +11,7 @@ | |
"no-console": "off" | ||
}, | ||
"ignorePatterns": [ | ||
"**/lib/*" | ||
"**/lib/*", | ||
"lib/*" | ||
] | ||
} |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,17 @@ | ||
[submodule "l1-contracts/lib/forge-std"] | ||
path = l1-contracts/lib/forge-std | ||
url = https://github.com/foundry-rs/forge-std | ||
[submodule "l1-contracts/lib/murky"] | ||
path = l1-contracts/lib/murky | ||
[submodule "lib/murky"] | ||
path = lib/murky | ||
url = https://github.com/dmfxyz/murky | ||
[submodule "l1-contracts/lib/openzeppelin-contracts-upgradeable"] | ||
path = l1-contracts/lib/openzeppelin-contracts-upgradeable | ||
[submodule "lib/openzeppelin-contracts-upgradeable-v4"] | ||
path = lib/openzeppelin-contracts-upgradeable-v4 | ||
url = https://github.com/Openzeppelin/openzeppelin-contracts-upgradeable | ||
branch = release-v4.9 | ||
[submodule "l1-contracts/lib/openzeppelin-contracts"] | ||
path = l1-contracts/lib/openzeppelin-contracts | ||
[submodule "lib/openzeppelin-contracts-v4"] | ||
path = lib/openzeppelin-contracts-v4 | ||
url = https://github.com/Openzeppelin/openzeppelin-contracts | ||
branch = release-v4.9 | ||
[submodule "lib/forge-std"] | ||
path = lib/forge-std | ||
url = https://github.com/foundry-rs/forge-std | ||
[submodule "lib/@matterlabs/zksync-contracts"] | ||
path = lib/@matterlabs/zksync-contracts | ||
url = https://github.com/matter-labs/v2-testnet-contracts |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
// SPDX-License-Identifier: MIT | ||
pragma solidity ^0.8.21; | ||
|
||
// 0x53dee67b | ||
error PubdataCommitmentsEmpty(); | ||
// 0x7734c31a | ||
error PubdataCommitmentsTooBig(); | ||
// 0x53e6d04d | ||
error InvalidPubdataCommitmentsSize(); | ||
// 0xafd53e2f | ||
error BlobHashCommitmentError(uint256 index, bool blobHashEmpty, bool blobCommitmentEmpty); | ||
// 0xfc7ab1d3 | ||
error EmptyBlobVersionHash(uint256 index); | ||
// 0x92290acc | ||
error NonEmptyBlobVersionHash(uint256 index); | ||
// 0x8d5851de | ||
error PointEvalCallFailed(bytes); | ||
// 0x4daa985d | ||
error PointEvalFailed(bytes); |
Oops, something went wrong.