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

test sovereign #410

Open
wants to merge 63 commits into
base: feature/ongoing-v0.3.0
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
63 commits
Select commit Hold shift + click to select a range
a720dd3
new consesus
krlosMata Nov 20, 2024
9dd8750
WIP
krlosMata Dec 3, 2024
d5f5f6a
WIP
krlosMata Dec 18, 2024
8f481fa
WIP
krlosMata Jan 16, 2025
ed9a927
First iteration
ignasirv Jan 21, 2025
8a8a009
Handle multiple auth keys and other features
ignasirv Jan 21, 2025
ac353f5
Add selector to auth vkey mapping
ignasirv Jan 21, 2025
b1acfb3
New iteration
ignasirv Jan 23, 2025
b65aabc
Upgrade rollup
ignasirv Jan 23, 2025
c07c454
Update selector keys handling
ignasirv Jan 24, 2025
988662c
Join verifiy pessimistic functions
ignasirv Jan 27, 2025
2b1b24c
Fix authenticator storage layout
ignasirv Jan 28, 2025
d2d224a
Working old tests
ignasirv Jan 28, 2025
d7bc68e
Code improvements
ignasirv Feb 1, 2025
2f9d5fd
Updates for transient storage usage
ignasirv Feb 3, 2025
9ca321c
Update test to be compatible with new hardhat and OZ libraries
ignasirv Feb 3, 2025
326975f
Implement agglayer gateway roles
ignasirv Feb 4, 2025
aae1a18
Apply hashchain to globalexitroot sovereign chain remove/insert op
ignasirv Feb 5, 2025
e2aaf80
AggchainECDSA tests
ignasirv Feb 7, 2025
2be4a4b
Add previous contracts
ignasirv Feb 7, 2025
fa27f99
RollupManager AL tests
ignasirv Feb 7, 2025
1a985c7
Rm full coverage
ignasirv Feb 10, 2025
fe18b0b
Refactor aggchain interfaces
ignasirv Feb 10, 2025
7e2df9d
Fix tests
ignasirv Feb 10, 2025
4acaf63
RM upgrade test
ignasirv Feb 10, 2025
a4b4514
add AggLayerGateway unit test
laisolizq Feb 7, 2025
bf54436
add AggchainECDSA unit test
laisolizq Feb 10, 2025
93f88f4
last changes unit tests
laisolizq Feb 10, 2025
ddfc875
unit tests AggchainECDSA & AggLayerGateway coverage 100%
laisolizq Feb 11, 2025
13114b6
Add vKeyManager role at aggchainBase
ignasirv Feb 12, 2025
fddbc6c
update AggchainECDSA unit test vkeymanager
laisolizq Feb 12, 2025
13ec733
Solhint integration
ignasirv Feb 12, 2025
f73e05a
Add previous contracts
ignasirv Feb 13, 2025
64bb7af
Make sovereign contracts backwarrds comp and adapt initialize at ecdsa
ignasirv Feb 15, 2025
1a35510
Move initializer logic back to ecdsa
ignasirv Feb 17, 2025
71ecaba
update unit test aggchainECDSA
laisolizq Feb 17, 2025
5a4e814
first commit test-vectors aggchains
laisolizq Feb 14, 2025
2a7e440
add encodeInitializeBytesCustomChainv1 test-vector test
laisolizq Feb 16, 2025
6a11c73
add comments & update functions names
laisolizq Feb 16, 2025
ae49584
update utils & test-vectors
laisolizq Feb 17, 2025
5a9d547
update tests with utils
laisolizq Feb 17, 2025
5c9212b
Adapt tests to new encode utils
ignasirv Feb 17, 2025
5e7197d
Merge pull request #407 from 0xPolygonHermez/feature/v0.3.0-testvectors
ignasirv Feb 17, 2025
45c28f9
fixes test-vectors
laisolizq Feb 17, 2025
b0fea7e
Add linter + fix
ignasirv Feb 17, 2025
435136a
Update aggchain selector commutation
ignasirv Feb 18, 2025
e7a34d6
Set aggayer roles at initialize
ignasirv Feb 18, 2025
ead3b18
update utils ECDSA % renaming
laisolizq Feb 18, 2025
64b2143
update test aggchainECDSA utils
laisolizq Feb 18, 2025
1a6782b
update tests RollupManager aggchainECDSA utils
laisolizq Feb 18, 2025
cdb2f0c
Refactor test-vectors
laisolizq Feb 18, 2025
aee130e
add some test-vectors
laisolizq Feb 19, 2025
96976cd
remove console.logs
laisolizq Feb 19, 2025
304ef7f
Add script to upgrade + shallow fork test for rollup manager
ignasirv Feb 19, 2025
5a1b97a
update some test-vectors & AggchainBaseMock
laisolizq Feb 19, 2025
afb311f
add some test-vectors
laisolizq Feb 19, 2025
88db664
fix test utils
laisolizq Feb 20, 2025
8282513
Carlos Review
ignasirv Feb 21, 2025
ef0279f
Add new compiled-contracts
ignasirv Feb 21, 2025
4f3fcc5
Add tool upgrade sovereign GER Manager
ignasirv Feb 21, 2025
1b6dd29
minor changes test-vectors
laisolizq Feb 24, 2025
977fbe5
Script deploy AggLayerGateway proxy
ignasirv Feb 24, 2025
2d37933
test sovereign
invocamanman Feb 24, 2025
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
8 changes: 7 additions & 1 deletion .githooks/pre-commit
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,15 @@ if npm run lint; then

cp artifacts/contracts/v2/utils/ClaimCompressor.sol/ClaimCompressor.json compiled-contracts/

cp artifacts/contracts/v2/sovereignChains/GlobalExitRootManagerL2SovereignChain.sol/GlobalExitRootManagerL2SovereignChain.json compiled-contracts/
cp artifacts/contracts/v2/sovereignChains/BridgeL2SovereignChain.sol/BridgeL2SovereignChain.json compiled-contracts/
cp artifacts/contracts/v2/AggLayerGateway.sol/AggLayerGateway.json compiled-contracts/
cp artifacts/contracts/v2/lib/AggchainBase.sol/AggchainBase.json compiled-contracts/
cp artifacts/contracts/v2/aggchains/AggchainECDSA.sol/AggchainECDSA.json compiled-contracts/
## Aggchain FEP is obtained from a private repo, should be updated manually until it is public, therefore it is commented out
## cp artifacts/contracts/v2/aggchains/AggchainFEP.sol/AggchainFEP.json compiled-contracts/
forge selectors ls > docs/selectors.txt
git add docs/selectors.txt

git add compiled-contracts
exit 0
else
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/build-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ name: Build-Docker image

on:
push:
branches: [main, develop, feature/ongoingPP]
branches: [main, develop, feature/ongoing-v0.3.0]
pull_request:
branches: [main, develop, feature/ongoingPP]
branches: [main, develop, feature/ongoing-v0.3.0]
jobs:
build:
runs-on: ubuntu-latest
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/compile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ name: Main CI

on:
push:
branches: [main, develop, feature/ongoingPP]
branches: [main, develop, feature/ongoing-v0.3.0]
pull_request:
branches: [main, develop, feature/ongoingPP]
branches: [main, develop, feature/ongoing-v0.3.0]

jobs:
lint-and-test:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ name: Main CI

on:
push:
branches: [main, develop, feature/ongoingPP]
branches: [main, develop, feature/ongoing-v0.3.0]
pull_request:
branches: [main, develop, feature/ongoingPP]
branches: [main, develop, feature/ongoing-v0.3.0]

jobs:
lint-and-test:
Expand Down
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ coverage
artifacts/
docs/interfaces
docs/mocks
.vscode/launch.json
.vscode
deploy_output.json
deploy_parameters.json
deployments
Expand All @@ -25,4 +25,4 @@ docker/deploymentOutput

.DS_Store

tools/createSovereignGenesisWithHardhat/genesis-sovereign_hardhat.json
*upgrade_output.json
24 changes: 15 additions & 9 deletions .solhint.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,20 @@
{
"extends": "solhint:recommended",
"rules": {
"mark-callable-contracts": "off",
"no-empty-blocks": "off",
"compiler-version": ["error", "0.8.20"],
"private-vars-leading-underscore": "error",
"bracket-align": "off",
"reason-string": "off",
"not-rely-on-time": "off",
"func-visibility": [
"warn",
{
"ignoreConstructors": true
}
],
"no-global-import": "off",
"immutable-vars-naming": [
"warn",
{
"immutablesAsConstants": false
}
],
"no-inline-assembly": "off",
"check-send-result": "off"
"compiler-version": "off"
}
}
}
7 changes: 7 additions & 0 deletions .solhintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
contracts/verifiers/*
contracts/v2/utils/ClaimCompressor.sol
contracts/v2/previousVersions/*
contracts/v2/mocks/*
contracts/mocks/*
contracts/v2/periphery/*
contracts/v2/lib/LegacyZKEVMStateVariables.sol
16 changes: 0 additions & 16 deletions .vscode/settings.json

This file was deleted.

Loading
Loading