Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
350 commits
Select commit Hold shift + click to select a range
6fee775
should work
invocamanman Sep 3, 2025
7227ca1
lower not upgraded
invocamanman Sep 3, 2025
1c63265
pr fixes
invocamanman Sep 3, 2025
f7f2b27
final fixes
invocamanman Sep 3, 2025
cd4d3dd
natspec
invocamanman Sep 3, 2025
a95247d
update commetns
invocamanman Sep 4, 2025
f652d12
update
invocamanman Sep 4, 2025
4867e85
agglayer gateway consistent
invocamanman Sep 4, 2025
02eb08b
comments
invocamanman Sep 4, 2025
6ab36bb
udpate comment
invocamanman Sep 4, 2025
131c3ea
fix: review remediations
ignasirv Sep 5, 2025
ad3a3c0
fix: update token wrapped bridge runs optimization
ignasirv Sep 5, 2025
719eb0f
pr fixes
invocamanman Sep 5, 2025
bcfe27f
Merge pull request #517 from agglayer/feature/pr_fixes
krlosMata Sep 5, 2025
2d2e397
fix: last remediation iteration
ignasirv Sep 5, 2025
21ff5d0
small docs fixes
invocamanman Sep 5, 2025
8219e40
Merge pull request #519 from agglayer/feature/informationals_fixes
krlosMata Sep 5, 2025
8ef6061
Merge pull request #520 from agglayer/feature/pr_fixes
krlosMata Sep 5, 2025
e2a6846
Merge pull request #504 from agglayer/feature/outposts
krlosMata Sep 5, 2025
d9491b8
feat: Finished upgrade contracts to v12 script
ignasirv Sep 9, 2025
f1e4e04
feat: improvements
ignasirv Sep 9, 2025
c97353f
Move verification results to utils
ignasirv Sep 10, 2025
3488111
feat: First iteration, simple approach
ignasirv Sep 10, 2025
ff95f94
Merge pull request #522 from agglayer/feature/upgrade-v12-script
krlosMata Sep 10, 2025
c8d0a42
Support for aggchainmanager transaction on 4_createRollup
ignasirv Sep 10, 2025
71a7e0b
remediations
invocamanman Sep 12, 2025
527adb5
Merge pull request #528 from agglayer/feature/v12_fixes
krlosMata Sep 15, 2025
b7e021e
all global owners
krlosMata Sep 15, 2025
cd6a497
fix: patch contracts verification script (#531)
tnobayashi Sep 16, 2025
dcc53ec
comments: check params
krlosMata Sep 16, 2025
4af560f
Merge pull request #524 from agglayer/feature/initialize-tool-refactor
krlosMata Sep 16, 2025
fbd110c
PolygonRollupManager -> AgglayerManager
laisolizq Sep 10, 2025
70c00f5
PolygonZkEVMGlobalExitRootV2 -> AgglayerGER
laisolizq Sep 10, 2025
93ac621
PolygonZkEVMGlobalExitRootL2 -> LegacyAgglayerGERL2
laisolizq Sep 10, 2025
15828bf
PolygonZkEVMBridgeV2 -> AgglayerBridge
laisolizq Sep 10, 2025
5a76c92
BridgeL2SovereignChain -> AgglayerBridgeL2
laisolizq Sep 10, 2025
d794ad7
GlobalExitRootManagerL2SovereignChain -> AgglayerGERL2
laisolizq Sep 10, 2025
a19ed74
IBasePolygonZkEVMGlobalExitRoot -> IBaseLegacyAgglayerGER
laisolizq Sep 10, 2025
0619fd9
PolygonZkEVMGlobalExitRootBaseStorage -> LegacyAgglayerGERBaseStorage
laisolizq Sep 10, 2025
7aa0193
fix lint
laisolizq Sep 10, 2025
abc7f7a
rebase & update upgradeV12
laisolizq Sep 15, 2025
af10369
add test-vectors multisig-hash. update aggchainHash testvectors
krlosMata Sep 16, 2025
2219e98
PolygonRollupManagerNotUpgraded -> AgglayerManagerNotUpgraded, AggLay…
laisolizq Sep 16, 2025
ecc7df9
allow aggchainECDSAMultig with isVanillaClient = false. Add batchData…
krlosMata Sep 17, 2025
1746d41
fix linter
krlosMata Sep 17, 2025
4e2270f
Merge pull request #529 from agglayer/feature/global-owners
krlosMata Sep 18, 2025
427d89c
Merge pull request #532 from agglayer/feature/fix-create-rollup
krlosMata Sep 18, 2025
c6ad19a
review fixes
laisolizq Sep 19, 2025
c44ff1c
reorg v2 -> contracts
laisolizq Sep 10, 2025
c5c7bc1
Merge pull request #525 from agglayer/feature/renaming-agglayer
krlosMata Sep 23, 2025
9002eb8
update typechain-types tests
laisolizq Sep 23, 2025
ecb19a1
Merge pull request #526 from agglayer/feature/reorg-v2
krlosMata Sep 23, 2025
67ce44d
fix genesis bridgeLib + inconsistencies
krlosMata Sep 23, 2025
c2a988c
review copilot
krlosMata Sep 23, 2025
3df541a
Merge pull request #536 from agglayer/feature/fix-1-create-genesis
krlosMata Sep 23, 2025
1c00e15
feat: remove root check at migration flow
ignasirv Sep 17, 2025
856c6e8
AG35-01
ignasirv Sep 22, 2025
c74c68f
AG35-04
ignasirv Sep 22, 2025
2055377
AG35-05
ignasirv Sep 22, 2025
d504ceb
AG35-07
ignasirv Sep 22, 2025
76b2b5d
AG35-08
ignasirv Sep 23, 2025
2280478
#200
ignasirv Sep 23, 2025
cb917f7
fix comments aggchainFEP & aggchain_hash
krlosMata Sep 23, 2025
c3ccb67
add aggOracle report
krlosMata Sep 24, 2025
dc924c4
threshold aglayerGateway internal
krlosMata Sep 24, 2025
1ce3c5c
Merge pull request #534 from agglayer/feature/fix-migration
krlosMata Sep 24, 2025
3a10d04
fixes copilot & codex
krlosMata Sep 24, 2025
3e6f73e
Merge pull request #538 from agglayer/feature/informational-remediations
krlosMata Sep 24, 2025
26c2d38
Merge pull request #537 from agglayer/feature/audit-remediations
krlosMata Sep 24, 2025
60f6077
renaming timelock
invocamanman Sep 29, 2025
a88bdb5
Merge pull request #542 from agglayer/feature/renaming_timelock
invocamanman Sep 30, 2025
f9a0d72
update deploy sovereign test
invocamanman Jun 4, 2025
c01773e
Merge pull request #527 from agglayer/feature/udpate_tools
invocamanman Sep 30, 2025
e05b928
fix upgradeV12 test
laisolizq Oct 1, 2025
7c0924e
fix bridgeLib hardhatconfig
laisolizq Oct 1, 2025
853352f
full upgrade
invocamanman Oct 3, 2025
c13c536
update test
invocamanman Oct 3, 2025
a14fbfa
works
invocamanman Oct 3, 2025
a3814a1
test passes
invocamanman Oct 3, 2025
3fac87e
update test to test all timelock txs!
invocamanman Oct 3, 2025
b7dfd0f
importOZ info
invocamanman Oct 3, 2025
95d852d
fix lint
invocamanman Oct 3, 2025
5c354a7
etherscan veirifcation
invocamanman Oct 3, 2025
62aeb83
delete tools
laisolizq Oct 6, 2025
7714a84
Merge pull request #544 from agglayer/feature/full_upgrade_v12
krlosMata Oct 6, 2025
d1a1b7e
Merge pull request #543 from agglayer/feature/fix-upgradeV12
krlosMata Oct 6, 2025
236cf04
compare genesis tool
ToniRamirezM Oct 6, 2025
a4e2dcd
feat: add Foundry support and enhance testing framework
JDawg287 Oct 9, 2025
53f9179
fix sovereign genesis tool
krlosMata Oct 10, 2025
8f27a07
fix lint
krlosMata Oct 10, 2025
848b278
Merge pull request #546 from agglayer/feature/fix-sovereign-genesis-tool
krlosMata Oct 13, 2025
029f156
add final report v0.3.5
krlosMata Oct 13, 2025
6482810
Merge pull request #549 from agglayer/feature/add-final-audit-v0.3.5
krlosMata Oct 13, 2025
0d04d66
add tests tools
laisolizq Oct 13, 2025
c733514
Update CHANGELOG.md v12.1.2
laisolizq Oct 14, 2025
63e8a08
Merge pull request #551 from agglayer/feature/changelog-v12.1.2
krlosMata Oct 15, 2025
1c402f6
update compare genesis
invocamanman Oct 16, 2025
8b7c75c
add script upgrade gerL2 etrog to sovereign
laisolizq Oct 16, 2025
40cba32
add spearbits audit
krlosMata Oct 16, 2025
248710c
update README upgrade gerL2
laisolizq Oct 16, 2025
59ecf4e
Merge pull request #555 from agglayer/feature/v0.3.5-spearbits-audit
krlosMata Oct 16, 2025
af586c4
reviews changes
laisolizq Oct 17, 2025
79e02cf
update README upgrade GERL2 to sovereign
laisolizq Oct 20, 2025
36da2cd
Merge pull request #554 from agglayer/feature/upgrade-ger
krlosMata Oct 21, 2025
76c7ed6
minor fixes
krlosMata Oct 21, 2025
5cbb4e7
full delete comment
krlosMata Oct 21, 2025
77e23c6
fix lint
krlosMata Oct 21, 2025
896b37d
Merge pull request #557 from agglayer/feature/fix-fee-handling-and-sh…
invocamanman Oct 21, 2025
e9b6594
add test claim reentrancy
laisolizq Jun 19, 2025
ab370d7
test claim reentrancy, bridgeAsset, etc
laisolizq Jun 26, 2025
13bb9a5
lint fixes
laisolizq Jun 26, 2025
58689cb
update test with dif amounts
laisolizq Jul 4, 2025
0f02ed2
fix: add constructor
tnobayashi Oct 28, 2025
3c866d2
Merge pull request #558 from agglayer/tnobayashi/fix-deploy-aggoracle…
krlosMata Oct 29, 2025
1a085d0
deployOutpost: delete not used example params
krlosMata Oct 29, 2025
eb47ff1
Merge pull request #559 from agglayer/feature/outpost-deployment-fix-…
krlosMata Oct 29, 2025
49a1f19
rename test reentrancy with AgglayerBridge
laisolizq Oct 30, 2025
cb73eb5
fix path genesis test docker
laisolizq Oct 30, 2025
692a856
Merge pull request #485 from agglayer/feature/test-claim-reentrancy
krlosMata Oct 30, 2025
bce91ea
Merge pull request #550 from agglayer/feature/update-test-docker-tools
krlosMata Oct 30, 2025
6e10130
docs: update README
JDawg287 Oct 31, 2025
06a7fb2
Merge pull request #547 from agglayer/feature/foundry-compile
krlosMata Nov 4, 2025
fe3dfda
Remove boilerplate consts
alrevuelta Nov 5, 2025
5b470ff
Cleanup old testnets
alrevuelta Nov 5, 2025
3315b89
Move to constants file and replace everywhere
alrevuelta Nov 5, 2025
b992bd1
Merge pull request #561 from agglayer/cleanup-test-1
krlosMata Nov 5, 2025
7410260
Merge pull request #562 from agglayer/cleanup-testnets
alrevuelta Nov 5, 2025
bc5012e
Cleanup upgrade to v2
alrevuelta Nov 5, 2025
79e5678
minor fix
alrevuelta Nov 5, 2025
f078f95
revert mainnet folder
alrevuelta Nov 6, 2025
5ee07e0
support previous genesis-base versions
krlosMata Nov 6, 2025
50709ae
Merge pull request #564 from agglayer/remove-upgrade-v1-v2
alrevuelta Nov 6, 2025
a75ce7e
codex review
krlosMata Nov 7, 2025
cf163c3
Copilot review
krlosMata Nov 7, 2025
546e3cd
fix linter
krlosMata Nov 7, 2025
d7190e7
Copilot: fix comment
krlosMata Nov 7, 2025
672eb16
Merge pull request #545 from agglayer/feauture/compareGenesisTool
krlosMata Nov 7, 2025
9f75ee5
Merge pull request #566 from agglayer/feature/fix-supported-bridges-n…
krlosMata Nov 11, 2025
9861c04
script push docker all release
laisolizq Nov 12, 2025
75dea94
Remove old unused tests
alrevuelta Nov 13, 2025
d0c33ae
Undo index and run with test
alrevuelta Nov 13, 2025
d45bc83
add detailed event, ongoing
invocamanman Nov 11, 2025
df85551
cursor comments
invocamanman Nov 11, 2025
16ebc9c
bytecode opt
invocamanman Nov 11, 2025
cac6187
bytecode optimizations
invocamanman Nov 11, 2025
1417025
update init approach
invocamanman Nov 12, 2025
295c088
easies approach... for no
invocamanman Nov 12, 2025
024e872
update test
invocamanman Nov 12, 2025
b2ec86f
set claim bytes32
invocamanman Nov 13, 2025
fdd84cf
update genesis scripts
invocamanman Nov 13, 2025
19b4fb6
update bridge version
invocamanman Nov 13, 2025
5d8c57a
fix udpate vanilla genesis
invocamanman Nov 13, 2025
ecdde63
fix commnets
invocamanman Nov 13, 2025
54f79f0
udpate nonce
invocamanman Nov 14, 2025
522bd5a
pr fixes
invocamanman Nov 14, 2025
076f3c6
fix
invocamanman Nov 14, 2025
a59759c
test(foundry): remove unnecessary deployment methods
JDawg287 Nov 14, 2025
66d042a
chore: disable foundry lint on build
JDawg287 Nov 14, 2025
43ce0aa
feat: obsolete rollup type id script
JDawg287 Oct 9, 2025
1a3af8a
chore: add README for the obsolete rollup script
JDawg287 Nov 6, 2025
d17d57d
chore: add reminders
JDawg287 Nov 6, 2025
bc64d0e
Revert "chore: add reminders"
JDawg287 Nov 14, 2025
60be784
fix lint SC
krlosMata Nov 19, 2025
ef1739a
fix: refactor script to be feature complete
JDawg287 Nov 21, 2025
cfdd8a0
test: handle if the address is the proxy admin
JDawg287 Nov 21, 2025
6a662d9
fix: remove unused function
JDawg287 Nov 21, 2025
50f54b9
fix: remove unused lib
JDawg287 Nov 21, 2025
2ea6027
Merge pull request #572 from agglayer/cleanup2
krlosMata Nov 25, 2025
4820ba0
Improve tool grantRoles --> manageRoles
krlosMata Nov 27, 2025
a4add91
Add timelock roles + review copilot
krlosMata Nov 27, 2025
6fc5746
copilot review
krlosMata Nov 27, 2025
1bd9f6d
copilot review 2
krlosMata Nov 27, 2025
5bc5f44
Merge pull request #548 from agglayer/feature/obsolete-rollup
invocamanman Nov 28, 2025
683c273
pure overriden functions
invocamanman Nov 28, 2025
ad93476
Merge pull request #573 from agglayer/fix/foundry-tests
invocamanman Dec 1, 2025
0322b8f
remove bytecode storer in case it exists
invocamanman Dec 1, 2025
f27cc65
Merge pull request #568 from agglayer/feature/emit_detailed_events
invocamanman Dec 1, 2025
92984ae
copilot review 3
krlosMata Dec 2, 2025
7000168
copilot review 4
krlosMata Dec 2, 2025
4c9de23
fix lint
krlosMata Dec 2, 2025
6bb50e0
add script build docker all
laisolizq Nov 12, 2025
84c180f
Merge pull request #569 from agglayer/feature/docker-all-push
krlosMata Dec 3, 2025
4cef048
check json validity at the top of the scipt
krlosMata Dec 3, 2025
d23726a
Merge pull request #579 from agglayer/feature/improve-tool-manage-roles
krlosMata Dec 3, 2025
ab67049
upgrade script etrog -> sovereign
laisolizq Sep 18, 2025
b0dbcce
Add README & comments upgradeEtrogToSovereign
laisolizq Sep 19, 2025
cb805c3
add unsafeMode and more checks
laisolizq Sep 19, 2025
f3f1dd0
add check initialized version
laisolizq Sep 22, 2025
cc1142f
update with initialize setLBT
laisolizq Sep 29, 2025
9ee0053
add initialize LBT script
laisolizq Oct 3, 2025
b6a70cf
update getLBT
laisolizq Oct 8, 2025
246aad7
review changes
laisolizq Oct 10, 2025
1911c7b
codex review
laisolizq Oct 10, 2025
b222c57
reviews
laisolizq Oct 10, 2025
bd202fe
updates script upgradeEtrogToSovereign
laisolizq Oct 16, 2025
6bda16a
update upgrade etrog with prepare manifest
laisolizq Oct 16, 2025
287593e
reviews fixes
laisolizq Nov 27, 2025
f937c67
paralelize getLBT tool + small improvements
krlosMata Nov 27, 2025
8748166
copilot fixes
krlosMata Nov 27, 2025
27058ca
second review copilot
krlosMata Nov 27, 2025
23480ca
copilot review 3
krlosMata Nov 27, 2025
3f4535c
fix lint
laisolizq Nov 27, 2025
5580317
merge
laisolizq Nov 27, 2025
0c6e0c7
mini fixes
laisolizq Nov 27, 2025
b45633b
add eth leaf LBT
laisolizq Nov 28, 2025
79eb81c
add flag lbt path
laisolizq Nov 28, 2025
6ea7ee9
mini fixes
laisolizq Nov 28, 2025
4792852
new test
laisolizq Nov 28, 2025
a548687
WIP new approach upgrade etrog
laisolizq Dec 3, 2025
424b160
review new upgrade etrog
laisolizq Dec 4, 2025
b9ad33b
update test upgrade etrog
laisolizq Dec 4, 2025
dc530b1
update shadow fork test
laisolizq Dec 4, 2025
91176a1
WIP review
laisolizq Dec 4, 2025
310d5a2
script check rollup versions
invocamanman Dec 13, 2025
5a71add
fix contract adn script
invocamanman Dec 15, 2025
fc65972
udpate test!
invocamanman Dec 15, 2025
b415c87
test finished
invocamanman Dec 15, 2025
cf5ffcb
update scripts and readme
invocamanman Dec 15, 2025
e49c349
script upgrade bridge
invocamanman Dec 15, 2025
0bffe17
udpate scripts
invocamanman Dec 15, 2025
e7126bd
small change
invocamanman Dec 15, 2025
82b3f34
better UX
invocamanman Dec 15, 2025
ceed2ef
update LBT
invocamanman Dec 15, 2025
e973c5f
update script upgrade etrog
invocamanman Dec 15, 2025
2af091f
git ignore
invocamanman Dec 15, 2025
24ba635
finally
invocamanman Dec 15, 2025
13d321f
add quick guide
invocamanman Dec 15, 2025
2d160bc
done
invocamanman Dec 15, 2025
3089dee
lint contract
invocamanman Dec 15, 2025
3e89c3b
update readme
invocamanman Dec 16, 2025
b8f2861
udpate shadow fork
invocamanman Dec 17, 2025
ae543bb
update fork and LBT
invocamanman Dec 17, 2025
986749e
update gitignore
invocamanman Dec 17, 2025
6e10dc8
lint
invocamanman Dec 17, 2025
87d395c
Merge pull request #533 from agglayer/feature/upgrade-etrog-sovereign
krlosMata Dec 17, 2025
8c693b3
Merge branch 'develop' into feature/v12
krlosMata Dec 17, 2025
d6fff16
update changelog v12.2.1
laisolizq Dec 18, 2025
a38c614
Merge pull request #585 from agglayer/feature/v12-changelog
krlosMata Dec 18, 2025
a2ce05f
readme update
krlosMata Dec 19, 2025
8ea5760
ObsoleteRollup tool
krlosMata Nov 11, 2025
fd9d4ac
fix linter. codex & copilot review
krlosMata Nov 13, 2025
b9b16b1
purge mode, improve fetching, improve README.md
krlosMata Nov 13, 2025
d994e29
fix eslint
krlosMata Nov 13, 2025
b4dcca9
Merge pull request #571 from agglayer/feature/tool-obsolete-rollups
krlosMata Dec 19, 2025
b6b4aa3
Merge pull request #586 from agglayer/feature/readme-update
krlosMata Dec 19, 2025
077f34b
fix push docker release
laisolizq Dec 19, 2025
e30a478
Merge pull request #587 from agglayer/feature/fix-push-docker
krlosMata Dec 19, 2025
97cad9a
Merge pull request #584 from agglayer/feature/v12
krlosMata Dec 19, 2025
e8b9316
fix deploy outpost proxiedTokensManager
laisolizq Jan 12, 2026
7f1de4f
Merge pull request #590 from agglayer/fix/proxied-tokens-manager
krlosMata Jan 13, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,6 @@ module.exports = {
'import/extensions': 'off',
'@typescript-eslint/no-unused-vars': ['error'],
'@typescript-eslint/explicit-function-return-type': 'off',
'@typescript-eslint/no-explicit-any': 'warn',
'@typescript-eslint/no-explicit-any': 'off',
},
};
41 changes: 20 additions & 21 deletions .githooks/pre-commit
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,19 @@ if npm run lint; then

## copy contracts ABI to be exposed
## V1 contracts
cp artifacts/contracts/PolygonZkEVMGlobalExitRootL2.sol/PolygonZkEVMGlobalExitRootL2.json compiled-contracts/
cp artifacts/contracts/LegacyAgglayerGERL2.sol/LegacyAgglayerGERL2.json compiled-contracts/
cp artifacts/contracts/lib/TokenWrapped.sol/TokenWrapped.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/AgglayerTimelock.sol/AgglayerTimelock.json compiled-contracts/

## Mocks
cp artifacts/contracts/mocks/PolygonZkEVMBridgeMock.sol/PolygonZkEVMBridgeMock.json compiled-contracts/
cp artifacts/contracts/mocks/ERC20PermitMock.sol/ERC20PermitMock.json compiled-contracts/
cp artifacts/contracts/mocks/PolygonZkEVMGlobalExitRootL2Mock.sol/PolygonZkEVMGlobalExitRootL2Mock.json compiled-contracts/
cp artifacts/contracts/mocks/LegacyAgglayerGERL2Mock.sol/LegacyAgglayerGERL2Mock.json compiled-contracts/
cp artifacts/contracts/mocks/PolygonZkEVMGlobalExitRootMock.sol/PolygonZkEVMGlobalExitRootMock.json compiled-contracts/
cp artifacts/contracts/mocks/PolygonZkEVMMock.sol/PolygonZkEVMMock.json compiled-contracts/
cp artifacts/contracts/mocks/VerifierRollupHelperMock.sol/VerifierRollupHelperMock.json compiled-contracts/
cp artifacts/contracts/v2/mocks/PolygonRollupManagerMock.sol/PolygonRollupManagerMock.json compiled-contracts/
cp artifacts/contracts/mocks/AgglayerManagerMock.sol/AgglayerManagerMock.json compiled-contracts/

## Verifiers
cp artifacts/contracts/verifiers/FflonkVerifier_10.sol/FflonkVerifier_10.json compiled-contracts/FflonkVerifier.json
Expand All @@ -29,35 +29,34 @@ if npm run lint; then
cp artifacts/contracts/deployment/PolygonZkEVMDeployer.sol/PolygonZkEVMDeployer.json compiled-contracts/
cp artifacts/contracts/verifiers/v4.0.0-rc.3/SP1VerifierPlonk.sol/SP1VerifierPlonk.json compiled-contracts/SP1VerifierPlonk.json
cp artifacts/contracts/deployment/PolygonZkEVMDeployer.sol/PolygonZkEVMDeployer.json compiled-contracts/
cp artifacts/contracts/PolygonZkEVMTimelock.sol/PolygonZkEVMTimelock.json compiled-contracts/

## openzeppelin
cp artifacts/@openzeppelin/contracts4/proxy/transparent/ProxyAdmin.sol/ProxyAdmin.json compiled-contracts/
cp artifacts/@openzeppelin/contracts4/proxy/transparent/TransparentUpgradeableProxy.sol/TransparentUpgradeableProxy.json compiled-contracts/

## V2 General
cp artifacts/contracts/v2/PolygonRollupManager.sol/PolygonRollupManager.json compiled-contracts/
cp artifacts/contracts/v2/PolygonZkEVMBridgeV2.sol/PolygonZkEVMBridgeV2.json compiled-contracts/
cp artifacts/contracts/v2/PolygonZkEVMGlobalExitRootV2.sol/PolygonZkEVMGlobalExitRootV2.json compiled-contracts/
cp artifacts/contracts/v2/PolygonZkEVMGlobalExitRootV2.sol/PolygonZkEVMGlobalExitRootV2.json compiled-contracts/
cp artifacts/contracts/AgglayerManager.sol/AgglayerManager.json compiled-contracts/
cp artifacts/contracts/AgglayerBridge.sol/AgglayerBridge.json compiled-contracts/
cp artifacts/contracts/AgglayerGER.sol/AgglayerGER.json compiled-contracts/
cp artifacts/contracts/AgglayerGER.sol/AgglayerGER.json compiled-contracts/

## V2 Consensus
cp artifacts/contracts/v2/consensus/zkEVM/PolygonZkEVMEtrog.sol/PolygonZkEVMEtrog.json compiled-contracts/
cp artifacts/contracts/v2/consensus/zkEVM/PolygonZkEVMExistentEtrog.sol/PolygonZkEVMExistentEtrog.json compiled-contracts/
cp artifacts/contracts/v2/consensus/validium/PolygonValidiumEtrog.sol/PolygonValidiumEtrog.json compiled-contracts/
cp artifacts/contracts/v2/consensus/validium/PolygonDataCommittee.sol/PolygonDataCommittee.json compiled-contracts/
cp artifacts/contracts/v2/consensus/pessimistic/PolygonPessimisticConsensus.sol/PolygonPessimisticConsensus.json compiled-contracts/
cp artifacts/contracts/consensus/zkEVM/PolygonZkEVMEtrog.sol/PolygonZkEVMEtrog.json compiled-contracts/
cp artifacts/contracts/consensus/zkEVM/PolygonZkEVMExistentEtrog.sol/PolygonZkEVMExistentEtrog.json compiled-contracts/
cp artifacts/contracts/consensus/validium/PolygonValidiumEtrog.sol/PolygonValidiumEtrog.json compiled-contracts/
cp artifacts/contracts/consensus/validium/PolygonDataCommittee.sol/PolygonDataCommittee.json compiled-contracts/
cp artifacts/contracts/consensus/pessimistic/PolygonPessimisticConsensus.sol/PolygonPessimisticConsensus.json compiled-contracts/

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

## al-v0.3.0
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/
cp artifacts/contracts/v2/aggchains/AggchainFEP.sol/AggchainFEP.json compiled-contracts/
cp artifacts/contracts/sovereignChains/AgglayerGERL2.sol/AgglayerGERL2.json compiled-contracts/
cp artifacts/contracts/sovereignChains/AgglayerBridgeL2.sol/AgglayerBridgeL2.json compiled-contracts/
cp artifacts/contracts/AgglayerGateway.sol/AgglayerGateway.json compiled-contracts/
cp artifacts/contracts/lib/AggchainBase.sol/AggchainBase.json compiled-contracts/
cp artifacts/contracts/aggchains/AggchainECDSA.sol/AggchainECDSA.json compiled-contracts/
cp artifacts/contracts/aggchains/AggchainFEP.sol/AggchainFEP.json compiled-contracts/

git add compiled-contracts

Expand Down
5 changes: 1 addition & 4 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -1,5 +1,2 @@
# global owner
* @invocamanman

# src owners
/contracts/ @invocamanman @krlosMata @ignasirv @laisolizq
* @invocamanman @krlosMata @alrevuelta @laisolizq
5 changes: 5 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE/release.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
## PR Description

## Checklist
- [ ] The CHANGELOG file has been updated.
- [ ] The release change information has been added in more detail to the documentation [repository](https://github.com/agglayer/protocol-team-docs).
31 changes: 31 additions & 0 deletions .github/RELEASE_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
> This template is not meant to be automatically generated in GitHub, but it is useful to have it easily accessible when we create a release.

## Contracts Versions
* ⚠️ `AgglayerManager`: ~~v0.0.0~~ -> v1.0.0
* `AgglayerBridge`: v1.0.0
* `AgglayerGER`: v1.0.0
* `AgglayerGateway`: v1.0.0
* `AgglayerBridgeL2`: v1.0.0
* `AgglayerGERL2`: v1.0.0
* `AggchainFEP`: v1.0.0
* `AggchainECDSA`: v1.0.0

## 🚀 What's New
- [Brief description of new features]

## ⚠️ Breaking Changes
- **Config File Changes**: [Describe any configuration file modifications]
- **API Changes**: [Document any breaking API modifications]
- **Deprecated Features**: [List any features being removed]

## 📋 Configuration Updates
- **Config Diff**: [Link to diff showing configuration changes]
- **Updated Config File**: [Direct GitHub link to the exact config file version]
- **Migration Guide**: [Step-by-step instructions for updating existing configs]

## ✅ Testing & Validation
- **Passing CI Run**: [Link to successful e2e test execution]
- **Test Coverage**: [Confirmation of test coverage for new features]

## 📦 Full Changelog
[Auto-generated PR list and detailed changes]
4 changes: 4 additions & 0 deletions .github/pull_request_template_config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
blank_issues_enabled: true
pull_request_templates:
- name: Release PR
path: .github/PULL_REQUEST_TEMPLATE/release.md
34 changes: 34 additions & 0 deletions .github/workflows/build-docker-all.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# 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: Build-Docker all image

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

strategy:
matrix:
node-version: [22.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 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:all
- name: Test docker
run: npm run docker:tests
Comment on lines +13 to +34

Check warning

Code scanning / CodeQL

Workflow does not contain permissions Medium

Actions job or workflow does not limit the permissions of the GITHUB_TOKEN. Consider setting an explicit permissions block, using the following as a minimal starting point: {contents: read}
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/ongoing-v0.3.0]
branches: [main, develop, feature/v12, feature/outposts]
pull_request:
branches: [main, develop, feature/ongoing-v0.3.0]
branches: [main, develop, feature/v12, feature/outposts]
jobs:
build:
runs-on: ubuntu-latest
Expand Down
138 changes: 138 additions & 0 deletions .github/workflows/build-push-docker-all.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,138 @@
name: Push Docker all image

on:
release:
types: [created, published]

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true

permissions:
contents: write
packages: write

env:
REGISTRY: ghcr.io
REGISTRY_IMAGE: ghcr.io/${{ github.repository }}
REGEX_IMAGE: ${{ github.repository }}:\\d+.\\d+.\\d+

jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
platform:
- linux/amd64
- linux/arm64
outputs:
IMAGE_NAME: ${{ steps.image_builder.outputs.IMAGE }}
TAGS: ${{ steps.meta.outputs.tags }}
VERSION: ${{ steps.meta.outputs.version }}
steps:

- name: Prepare
run: |
platform=${{ matrix.platform }}
echo "PLATFORM_PAIR=${platform//\//-}" >> $GITHUB_ENV

- name: Checkout
uses: actions/checkout@v4

- name: setup
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: Docker meta
id: meta
uses: docker/metadata-action@v5
with:
images: ${{ env.REGISTRY_IMAGE }}
tags: |
type=ref,event=branch,suffix=-all
type=ref,event=pr,suffix=-all
type=semver,pattern={{version}}-all
type=semver,pattern={{major}}.{{minor}}-all

- name: Image name builder
id: image_builder
run: |
IMAGE=$(jq -ecr '.tags | map(select(match("${{ env.REGEX_IMAGE }}", "i"))) | first| sub(":.*$";"")' <<< "$DOCKER_METADATA_OUTPUT_JSON")
echo "IMAGE=$IMAGE" >> $GITHUB_OUTPUT

- name: Set up QEMU
uses: docker/setup-qemu-action@v3

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Login to Docker Hub
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build docker
run: npm run dockerv2:contracts:all
- name: Build and push by digest
id: build
uses: docker/build-push-action@v6
with:
context: .
push: false
file: docker/Dockerfile
platforms: ${{ matrix.platform }}
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=gha
cache-to: type=gha,mode=max
outputs: type=image,name=${{ steps.image_builder.outputs.IMAGE }},push-by-digest=true,push=true

- name: Export digest
run: |
mkdir -p /tmp/digests
digest="${{ steps.build.outputs.digest }}"
touch "/tmp/digests/${digest#sha256:}"

- name: Upload digest
uses: actions/upload-artifact@v4
with:
name: digests-${{ env.PLATFORM_PAIR }}
path: /tmp/digests/*
if-no-files-found: error
retention-days: 1

merge:
runs-on: ubuntu-latest
needs:
- build
steps:
- name: Download digests
uses: actions/download-artifact@v4
with:
path: /tmp/digests
pattern: digests-*
merge-multiple: true

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Login to Docker Hub
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Create manifest list and push
working-directory: /tmp/digests
run: |
docker buildx imagetools create $(jq -cRr 'split("\n") | map(gsub("\\s+";"")) | map("-t "+ .) | join(" ")' <<< '${{ needs.build.outputs.TAGS }}') \
$(printf '${{ needs.build.outputs.IMAGE_NAME }}@sha256:%s ' *)

- name: Inspect image
run: |
docker buildx imagetools inspect ${{ needs.build.outputs.IMAGE_NAME }}:${{ needs.build.outputs.VERSION }}
2 changes: 1 addition & 1 deletion .github/workflows/build-push-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Push Docker image

on:
release:
types: [created]
types: [created, published]

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
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: Linter and compile contracts

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

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: Run Tests

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

jobs:
lint-and-test:
Expand Down
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,15 @@ docker/gethData/
typechain-types/
create_rollup_parameters.json
create_rollup_output_*
dependencies/
lcov.info

docker/deploymentOutput

.DS_Store

*upgrade_output.json
manifest-from-*
LBT.json
tokens.json
import_params.json
8 changes: 3 additions & 5 deletions .solhintignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
contracts/verifiers/*
contracts/v2/utils/ClaimCompressor.sol
contracts/v2/previousVersions/*
contracts/v2/mocks/*
contracts/previousVersions/*
contracts/mocks/*
contracts/v2/periphery/*
contracts/v2/lib/LegacyZKEVMStateVariables.sol
contracts/periphery/*
contracts/lib/LegacyZKEVMStateVariables.sol
Loading
Loading