Skip to content

Commit

Permalink
feat: Added script to compute hashes from L1, L2 and system contracts (
Browse files Browse the repository at this point in the history
  • Loading branch information
mm-zk authored Jan 9, 2025
1 parent 3e2dad0 commit 2cc0621
Show file tree
Hide file tree
Showing 4 changed files with 2,458 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/l1-contracts-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,45 @@ jobs:
- name: Lint errors
run: yarn l1 errors-lint --check

check-hashes:
needs: [build]
runs-on: ubuntu-latest

steps:
- name: Checkout the repository
uses: actions/checkout@v4

- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: 18.18.0
cache: yarn
- name: Install dependencies
run: yarn

- name: Restore artifacts cache
uses: actions/cache/restore@v3
with:
fail-on-cache-miss: true
key: artifacts-l1-${{ github.sha }}
path: |
da-contracts/out
l1-contracts/cache-forge
l1-contracts/out
l1-contracts/zkout
l2-contracts/cache-forge
l2-contracts/zkout
system-contracts/zkout
- name: Check contents
run: |
pwd
ls -R l2-contracts/zkout
ls -R system-contracts/zkout
- name: Check hashes
run: yarn calculate-hashes:check

test-foundry:
needs: [build, lint]
runs-on: ubuntu-latest
Expand Down
Loading

0 comments on commit 2cc0621

Please sign in to comment.