Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Develop #347

Draft
wants to merge 102 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
102 commits
Select commit Hold shift + click to select a range
fe8af17
initial banana
invocamanman May 22, 2024
f6a98fb
banana changes
invocamanman May 22, 2024
dbe6f84
clean
invocamanman May 22, 2024
10b6bd4
clean
invocamanman May 22, 2024
115f831
test+fix chainID feature
ignasirv May 22, 2024
0009824
Merge pull request #259 from 0xPolygonHermez/feature/chainID-test
invocamanman May 22, 2024
960ba93
Fix all tests except rollup manager
ignasirv May 22, 2024
52af114
Merge pull request #260 from 0xPolygonHermez/feature/fix-tests
invocamanman May 23, 2024
6ddcc4d
lint
invocamanman May 22, 2024
6060a73
mini update
invocamanman May 22, 2024
63a23e5
fix
invocamanman May 22, 2024
55a6a5b
initialize
invocamanman May 23, 2024
b24c006
mini fix
invocamanman May 24, 2024
342ece5
Merge pull request #261 from 0xPolygonHermez/feature/bananaMiniUpdate
invocamanman Jun 6, 2024
a6ae212
update
invocamanman Jun 7, 2024
0ab3f10
mini udpates
invocamanman Jun 10, 2024
4f06270
mini validium udpate
invocamanman Jun 10, 2024
c4eda49
fix upsie
invocamanman Jun 11, 2024
ac968ab
mini test
invocamanman Jun 11, 2024
4ed59b2
Fix all tests except rollup manager
ignasirv May 22, 2024
98011e8
Fixed all tests except upgrade
ignasirv Jun 13, 2024
57f3184
finish test, add audit fixe
invocamanman Jun 17, 2024
5184e5b
fix update totalVerifiedBatches!
invocamanman Jun 18, 2024
027f5fd
Merge pull request #266 from 0xPolygonHermez/feature/fix-tests
invocamanman Jun 19, 2024
6cbe0dd
Merge pull request #258 from 0xPolygonHermez/feature/banana
invocamanman Jun 19, 2024
0c78d12
rename depositCount to leafIndex
joanestebanr Jul 10, 2024
5336413
Merge pull request #274 from 0xPolygonHermez/feature/rename_depositcount
invocamanman Jul 12, 2024
c3aa262
Merge pull request #277 from 0xPolygonHermez/feature/banana
invocamanman Jul 16, 2024
87db591
add event updateL1InfotreeV2
krlosMata Jul 19, 2024
9094f21
Merge pull request #290 from 0xPolygonHermez/feature/update-l1-info-t…
invocamanman Jul 22, 2024
e307104
add support for forkID in the tool 'deployVerifier'
krlosMata Jul 16, 2024
9d18f3d
rebase fixes
invocamanman Jul 22, 2024
7fb18b1
codeowners & update gha actions versions
krlosMata Jul 22, 2024
ff61ce2
Merge pull request #293 from 0xPolygonHermez/feature/rebase-main2
krlosMata Jul 22, 2024
a095522
initial banana
invocamanman May 22, 2024
e8577f1
banana changes
invocamanman May 22, 2024
df3b98c
clean
invocamanman May 22, 2024
e8521e8
clean
invocamanman May 22, 2024
f1ef3fb
test+fix chainID feature
ignasirv May 22, 2024
c51a7e3
Fix all tests except rollup manager
ignasirv May 22, 2024
294fb74
lint
invocamanman May 22, 2024
db2d1d6
mini update
invocamanman May 22, 2024
2a55454
fix
invocamanman May 22, 2024
21be8ad
initialize
invocamanman May 23, 2024
a075f1a
mini fix
invocamanman May 24, 2024
956fa00
update
invocamanman Jun 7, 2024
fdd5d61
mini udpates
invocamanman Jun 10, 2024
d9ecb7f
mini validium udpate
invocamanman Jun 10, 2024
b238626
fix upsie
invocamanman Jun 11, 2024
f0a0228
mini test
invocamanman Jun 11, 2024
ab841b7
Fix all tests except rollup manager
ignasirv May 22, 2024
9f03a18
Fixed all tests except upgrade
ignasirv Jun 13, 2024
8c4db91
finish test, add audit fixe
invocamanman Jun 17, 2024
eb563c4
fix update totalVerifiedBatches!
invocamanman Jun 18, 2024
f745dc9
rename depositCount to leafIndex
joanestebanr Jul 10, 2024
01f7513
add event updateL1InfotreeV2
krlosMata Jul 19, 2024
2b6350f
rebase fixes
invocamanman Jul 22, 2024
0c95fb2
codeowners & update gha actions versions
krlosMata Jul 22, 2024
fa1069a
rebase changes
invocamanman Jul 23, 2024
eb68ab4
Merge pull request #297 from 0xPolygonHermez/feature/rebaseWithMain
invocamanman Jul 23, 2024
6977cd6
leafCount
krlosMata Jul 30, 2024
6e81fd5
Merge pull request #304 from 0xPolygonHermez/feature/rename-to-leaf-c…
invocamanman Jul 30, 2024
30714da
fix build docker
laisolizq Jul 31, 2024
1eeaff6
Merge pull request #305 from 0xPolygonHermez/feature/fix-build-docker
invocamanman Aug 2, 2024
a9b4f74
update verifier for v8.0.0-rc.1-fork.12
zkronos73 Aug 8, 2024
7865e50
Merge pull request #308 from 0xPolygonHermez/feature/verifier-v8.0.0-…
invocamanman Aug 9, 2024
3c9fefd
upgrade scirp
invocamanman Aug 9, 2024
6388d8e
fixes
invocamanman Aug 9, 2024
949b0b9
Merge pull request #309 from 0xPolygonHermez/feature/upgradeScriptBanana
invocamanman Aug 16, 2024
a6d3998
fix error message
krlosMata Aug 30, 2024
166b365
Merge pull request #317 from 0xPolygonHermez/feature/fix-error-message
invocamanman Sep 5, 2024
28eb15d
verifier v8.0.0-rc.9-fork.12
zkronos73 Sep 5, 2024
3f5d847
Merge pull request #321 from 0xPolygonHermez/feature/verifier-v8.0.0-…
invocamanman Sep 6, 2024
6da9eb3
set verifiers forkID & add README in updateRollup tool
krlosMata Sep 10, 2024
d214bea
remove default Verifier
krlosMata Sep 10, 2024
922d548
Merge pull request #323 from 0xPolygonHermez/feature/verifiers-number
krlosMata Sep 12, 2024
d0ec0b0
rename indexL1 to leafCount
krlosMata Sep 13, 2024
0b27044
Merge pull request #327 from 0xPolygonHermez/feature/rename-index
invocamanman Sep 13, 2024
0bf1561
minor fixes on tools
krlosMata Sep 5, 2024
d78c801
cherry-pick 4af640cfb84b4841450d335dc5a5c0cd4d800cea
krlosMata Sep 15, 2024
a1ab154
Merge pull request #329 from 0xPolygonHermez/feature/cherry-pick-main
invocamanman Sep 16, 2024
7c9a96d
update claim compressor
invocamanman Sep 17, 2024
69ade56
Merge pull request #331 from 0xPolygonHermez/feature/fixClaimScript
invocamanman Sep 17, 2024
fe26605
disable initializer=false
krlosMata Sep 23, 2024
f1839aa
Merge pull request #335 from 0xPolygonHermez/feature/fix-deployments-…
invocamanman Sep 23, 2024
bf45a82
Add tests to docker build
ignasirv Sep 25, 2024
727c10b
Review fixes
ignasirv Sep 26, 2024
1987a3b
Fix script
ignasirv Sep 30, 2024
b3ada8e
Separate building and testing
ignasirv Sep 30, 2024
537b1f8
remove docker push gha
ignasirv Oct 2, 2024
273cb68
Merge pull request #339 from 0xPolygonHermez/feature/fix-docker
invocamanman Oct 7, 2024
8362931
decode timelock tx in upgrade-banana
krlosMata Oct 15, 2024
12bdfc7
Merge pull request #345 from 0xPolygonHermez/feature/improve-upgrade-…
invocamanman Oct 15, 2024
f0c8104
Merge branch 'main' into feature/rebase-main-to-develop
krlosMata Oct 16, 2024
66468b7
execute githook
krlosMata Oct 16, 2024
d6ac1c1
Merge pull request #346 from 0xPolygonHermez/feature/rebase-main-to-d…
invocamanman Oct 17, 2024
e0f53f6
info upgade-banana & rollup-types 6 and 7
krlosMata Oct 17, 2024
cf40aeb
add audit report
krlosMata Oct 18, 2024
172cbe4
verifier v9.0.0-rc.1-fork.13
zkronos73 Oct 18, 2024
fb877be
renamed FflonkVerifier
zkronos73 Oct 21, 2024
0500394
Merge pull request #350 from 0xPolygonHermez/feature/verifier-v9.0.0-…
invocamanman Oct 24, 2024
7dd2bec
Merge pull request #348 from 0xPolygonHermez/feature/info-ugrade-and-…
invocamanman Oct 29, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .githooks/pre-commit
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@ if npm run lint; then
cp artifacts/contracts/mocks/PolygonZkEVMMock.sol/PolygonZkEVMMock.json compiled-contracts/
cp artifacts/contracts/mocks/VerifierRollupHelperMock.sol/VerifierRollupHelperMock.json compiled-contracts/
cp artifacts/contracts/PolygonZkEVM.sol/PolygonZkEVM.json compiled-contracts/
cp artifacts/contracts/verifiers/FflonkVerifier.sol/FflonkVerifier.json compiled-contracts/
cp artifacts/contracts/verifiers/FflonkVerifier_10.sol/FflonkVerifier_10.json compiled-contracts/FflonkVerifier.json
cp artifacts/@openzeppelin/contracts/proxy/transparent/ProxyAdmin.sol/ProxyAdmin.json compiled-contracts/
cp artifacts/@openzeppelin/contracts/proxy/transparent/TransparentUpgradeableProxy.sol/TransparentUpgradeableProxy.json compiled-contracts/
cp artifacts/contracts/deployment/PolygonZkEVMDeployer.sol/PolygonZkEVMDeployer.json compiled-contracts/
cp artifacts/contracts/PolygonZkEVMTimelock.sol/PolygonZkEVMTimelock.json compiled-contracts/

cp artifacts/contracts/v2/PolygonRollupManager.sol/PolygonRollupManager.json compiled-contracts/
cp artifacts/contracts/v2/mocks/PolygonRollupManagerMock.sol/PolygonRollupManagerMock.json compiled-contracts/
cp artifacts/contracts/v2/mocks/PolygonRollupManagerMockInternalTest.sol/PolygonRollupManagerMockInternalTest.json compiled-contracts/
Expand Down
5 changes: 5 additions & 0 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# global owner
* @invocamanman

# src owners
/contracts/ @invocamanman @krlosMata @ignasirv @laisolizq
76 changes: 25 additions & 51 deletions .github/workflows/build-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,57 +4,31 @@
name: Build-Docker image

on:
push:
branches: [main]
push:
branches: [main, develop, feature/ongoingPP]
pull_request:
branches: [main, develop, feature/ongoingPP]
jobs:
build:
runs-on: ubuntu-latest
build:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [16.x]
strategy:
matrix:
node-version: [18.x]

steps:
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Set int-bot SSH key
run: |
touch /tmp/ssh-key
echo "${{ secrets.INT_BOT_SSH_KEY }}" > /tmp/ssh-key
chmod 400 /tmp/ssh-key
eval "$(ssh-agent -s)"
ssh-add /tmp/ssh-key
- name: Checkout code
uses: actions/checkout@v2
- name: setup
run: |
eval "$(ssh-agent -s)"
ssh-add /tmp/ssh-key
npm i
sudo curl -L "https://github.com/docker/compose/releases/download/1.26.0/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
- name: Login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build docker
run: npm run docker:contracts
- name: Push docker image
run: npm run push:docker:contracts
# Steps to push multi-platform image, it relies on the previous step:
# npm run docker:contracts
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Build and push
uses: docker/build-push-action@v2
with:
platforms: linux/amd64,linux/arm64
push: true
tags: hermeznetwork/geth-zkevm-contracts:1.5-integration
file: docker/Dockerfile
context: .
steps:
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Checkout code
uses: actions/checkout@v3
- name: Setup docker
run: |
npm i
sudo curl -L "https://github.com/docker/compose/releases/download/1.26.0/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
- name: Build docker
run: npm run dockerv2:contracts
- name: Test docker
run: npm run docker:tests
32 changes: 32 additions & 0 deletions .github/workflows/compile.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# 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: [feature/ongoingPP]
pull_request:
branches: [feature/ongoingPP]

jobs:
lint-and-test:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [18.x]

steps:
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Checkout code
uses: actions/checkout@v3
- name: setup
run: npm i
- name: linter
run: npm run lint
- name: compile
run: npm run compile
45 changes: 22 additions & 23 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,30 +4,29 @@
name: Main CI

on:
push:
branches: [main, develop]
pull_request:
branches: [main, develop]
push:
branches: [main, develop]
pull_request:
branches: [main, develop]

jobs:
lint-and-test:
runs-on: ubuntu-latest
lint-and-test:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [16.x]
strategy:
matrix:
node-version: [18.x]

steps:
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Checkout code
uses: actions/checkout@v2
- name: setup
run: npm i
- name: linter
run: npm run lint
- name: test
run: npm run test

steps:
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Checkout code
uses: actions/checkout@v3
- name: setup
run: npm i
- name: linter
run: npm run lint
- name: test
run: npm run test
Binary file not shown.
Loading
Loading