-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
e2e test for withdrawals L2-initiate -> forking -> L1-finalize (#143)
This test simulates the withdrawal process after a fork At chainstart the genesis is similar to the output of the genesis script form this repo In the next block a test account makes a deposit of 10 native tokens (forkonomic tokens) on L2 into the bridge. The transaction was created with the script despoitForkonomicTokenIntoBridgeInL2.js. Then this state advancement with the deposit is verified with a snark proof and submitted. See this PR for the actual state advancement: preparing proof inputs for withdrawal e2e test zkevm-commonjs#2 After that the fork is initiated and executed. We then test the withdrawal process.
- Loading branch information
Showing
17 changed files
with
46,691 additions
and
31,145 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 |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node | ||
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions | ||
|
||
name: Main CI | ||
|
||
on: | ||
push: | ||
branches: [main, develop] | ||
pull_request: | ||
branches: [main, develop] | ||
|
||
|
||
jobs: | ||
lint-and-test: | ||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
matrix: | ||
node-version: [16.x] | ||
os: [ubuntu-latest] | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: 16 | ||
cache: 'npm' | ||
cache-dependency-path: ./package-lock.json | ||
- run: npm install | ||
- run: npx hardhat test |
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.