20 Commits

Author SHA1 Message Date
The Dark Jester
f8442704f3 [Fix] Adjust deploy script because beacon is different (#955)
* fix deploy script because beacon is different

* use hre

* Update contracts/deploy/05_deploy_BridgedToken.ts

Co-authored-by: Alain Nicolas <alainncls@users.noreply.github.com>
Signed-off-by: The Dark Jester <thedarkjester@users.noreply.github.com>

---------

Signed-off-by: The Dark Jester <thedarkjester@users.noreply.github.com>
Co-authored-by: Alain Nicolas <alainncls@users.noreply.github.com>
2025-05-07 06:27:40 -07:00
AlexandreBelling
179a3552ae Prover/setup of beta v1.4 for mainnet (#875)
* chores(cfg): create the config-mainnet-full.toml

* feat(contracts): adds PlonkVerifierMainnetFull contract

* dropme(cfg): points to the mainnet test files

* chores(contract): adds a tarball with all the inputs for the contract testing

* move betav1 test

* got to executing rollup case

* minor edit

* did boilerplate for migration test

* new

* fix: update betav1.4 migrations tests

* fix: remove .only in tests

* minor edits

* add new unit test and fix testverifierindex variable

---------

Co-authored-by: kyzooghost <jeffersonzjtang@gmail.com>
Co-authored-by: VGau <victorien.gauch@consensys.net>
2025-04-17 13:28:22 +02:00
The Dark Jester
03bea2be26 lint fixing and logging of setverifieraddress (#811) 2025-04-08 07:29:56 -07:00
kyzooghost
5fbd7ed9aa [Feat] Remove flattened contracts (#640)
* remove TokenBridgeFlatten and L2MessageServiceLineaMainnet

* remove contracts/deploy/04_deploy_L2MessageServiceV1Deployed.ts

* delete 04_deploy_L2MessageServiceImplementation

* give floating pragma to
IntegrationTestTrueVerifier.sol

* added deployed-artifacts

* added versioning to tokenbridge + l2messageservice artifacts

* revert bridge-ui changes

* fix typechain imports in e2e tests

* more artifact typechain fixes

* deploy contracts -> v1

* Revert "deploy contracts -> v1"

This reverts commit 34314bbad26a6c44e1ef311552f63f52275495f8.

* redo add v1 to artifact deployment scripts after merge main

* restore deleted files

* more pr adjustments

* empty to prompt ci
2025-02-05 00:53:43 +11:00
The Dark Jester
b1c8ec57d6 [Chore] - 498 v5 techdebt cleanup (#613)
* initial V5 removal before main coordinator adjust

* fix build issue

* default to V6 and remove V5 references

* force  Web3JLineaRollupSmartContractClientReadOnly

* fix test reference

* remove V5 references
2025-01-29 20:49:23 +00:00
Victorien Gauch
d9353756ee Fix: update contracts folder structure (#420)
* fix: update contracts folder structure

* fix: update contracts documentation

* fix: regenerate docs

* fix: remove .md file in solidity docs folder

* fix: rename Utils contract + update autoupdate script

* fix: update solidity doc

* fix: clean test contracts folder structure

* fix: clean test folder structure

* fix: update autoupdate.sh script

* fix: update solcover file

* fix: remove static nonce in LineaRollup test

* Merge branch 'main' into fix/399-update-contracts-folder-structure

* remove files in merge conflict

* fix prover reference for Mimc.sol

* fix: update docs

* fix: remove unused files

* point to correct folders in readmes

---------

Co-authored-by: thedarkjester <grant.southey@consensys.net>
2025-01-29 10:32:31 +01:00
The Dark Jester
4405f315a9 [Chore] - standardise contract deploy logs (#460)
* standardise contract deploy logs

* apply standardization to hardhat deploy scripts

* Update contracts/common/helpers/deployments.ts

Co-authored-by: kyzooghost <73516204+kyzooghost@users.noreply.github.com>
Signed-off-by: The Dark Jester <thedarkjester@users.noreply.github.com>

* fix copy paste issues

* use refactored deployment logger

* add a lint space

---------

Signed-off-by: The Dark Jester <thedarkjester@users.noreply.github.com>
Co-authored-by: kyzooghost <73516204+kyzooghost@users.noreply.github.com>
2024-12-18 07:13:56 -08:00
The Dark Jester
26140bd287 use correct var name (#400) 2024-12-06 08:02:36 +00:00
The Dark Jester
5fa9eb9bc4 [Chore] -Remove unused validation and standardize fields (#387)
* remove unused validation and standardize fields

* rename to L2MESSAGESERVICE_ADDRESS for consistency

* add  missing Makefile change
2024-12-03 10:09:43 -08:00
The Dark Jester
466d847e34 [Fix] - Add missing roles and encoding for updateDelay (#345)
* add missing roles and encoding for updateDelay

* remove forge-std and ignore in git
2024-11-27 09:50:52 -08:00
The Dark Jester
ad1afca98e correct var on tokenbridge deploy (#337) 2024-11-25 06:40:54 -08:00
The Dark Jester
bb7cd3d50d [Chore] Update current reinitialization script for all contracts (#331)
* current reinitialization script for all contracts

* use shared functions consistently

* add forwarding proxy

* add extra logging and use fallbackOperator name

* use env var for fallback operator
2024-11-25 03:40:39 -08:00
The Dark Jester
4af87b5fe6 [Chore] - First pass contracts and makefile cleanup (#276)
* first pass contracts and makefile cleanup

* remove unused 4844 test files

* Remove Goerli references

* lint fixing

* lint fixing

* remove more Goerli references

* correct folder paths for L2 service tests

* fix pathing and hardhat version

* reinstate deleted file

* correct file pathing
2024-11-06 02:21:14 -08:00
Andrei A.
390d6ff860 Feat/122 Add TokenBridge e2e tests (#210)
* fix: add mutex in account manager to avoid nonce issue

* fix: optimize global setup

* Limiting number of concurrent traces API requests for the local stack to avoid occasional OOM-s

* Limiting number of verticles for Traces API node

* Add E2E TokenBridge tests

* fixing test and adding concurency

* fixing test and adding concurency

* fixing test and adding concurency

* fixing test and adding concurency

* fixing nonce management

* deploying l2token for the L2 -> L1 test

* adjusting accounts for L2->L1 test

* adjusting l2TestContractAddress

* use nonce management for L1->L2 test

* adjusting the TestERC20 contract and tests

* rebasing with fix/133-improve-e2e-tests-performance

* fix: update jest config to exit even if there are open handles

* Trying out Besu untuned and raising limit per endpoint to 2 for traces

* Trying out Besu untuned and raising limit per endpoint to 2 for traces and Shomei node

* Using besu untuned for arithmetization as well

* Compile once and parallelise setRemoteTokenBridge

* feat: deploy smart contracts from artifacts + change e2e tests setup

* fix: update pnpm

* fix: remove compile contracts gradle task

* fix: remove compileContracts gradle task

* fix: refactor genesis generator dockerfile + downgrade l1-el-node besu version

* fix: move abi from e2e folder to contract folder + refactor contracts deployments scripts

* feat: add deployment script from artifacts for LineaRollupV6

* update pnpm version in get-started.md

* fix: update console log in deployment scripts

* fix: update besu version + fix deployment scripts

* correct addresses

* fix import

* use abi and bytecode for deployments

* use upgradable beacon for BridgedToken ABI deploys

* use saved abi and bytecode for TestERC20 deploy

* correct deployBridgedTokenAndTokenBridge casing

* optimize token bridge e2e calls

* use explicit message event data

* use precomputed nonces for e2e stack

---------

Co-authored-by: VGau <victorien.gauch@consensys.net>
Co-authored-by: Victorien Gauch <85494462+VGau@users.noreply.github.com>
Co-authored-by: Roman <4833306+Filter94@users.noreply.github.com>
Co-authored-by: thedarkjester <grant.southey@consensys.net>
Co-authored-by: The Dark Jester <thedarkjester@users.noreply.github.com>
2024-10-31 18:03:53 +01:00
The Dark Jester
b3857464ad Feat/3907 state reconstruction events (#43)
* Remove lastFinalizedShnarf from finalization input
* Emit events state-reconstruction friendly
* Index shnarf on data submitted event

* reinstate public input variable name

* updated V6 ABI

* Coordinator - Allowing endless retries and setting them throughout th… (#89)

* Coordinator - Allowing endless retries and setting them throughout the app

* feat/1731 code coverage in Codecov (#13)

* feat/1731 code coverage in Codecov

* Cancel in progress workflows on new commits (#53)

* Cancel in progress workflows on new commits

* Test - Trigger workflow

* Test - Trigger workflow 2

* Group by only github.ref for branch name

* Add concurrency to more workflows

* Revert "Add concurrency to more workflows"

This reverts commit 86a00aa7b5c8e29d870acdc3d4d25d660b3a59e8.

* Print group

* Remove print steps and amend group

* Test adding concurrency group to testing.yml

* Test concurrency

* Specifying specific groups for child workflows

* Testing concurrency

* Add child groups to build and publish workflows

* Test concurrency

* Remove main workflow concurrency group

* Remove concurrency on pull request merge

* Feat/94 emit version updated event (#98)

* Emit LineaRollupVersionChanged on upgrade

* make padded hex bytes generic

* Use L2MessageService versioned API (#96)

* Stricter path filters for shared jvm-libs module (#52)

* Stricter path filters for shared jvm-libs module

* Update .github/workflows/main.yml

Co-authored-by: Roman Vaseev <4833306+Filter94@users.noreply.github.com>
Signed-off-by: Bradley Bown <bradbown@googlemail.com>

---------

Signed-off-by: Bradley Bown <bradbown@googlemail.com>
Co-authored-by: Roman Vaseev <4833306+Filter94@users.noreply.github.com>

* adding TokenBridge version for completeness (#99)

* Coordinator: DRY refactor test helpers and data for future reuse (#100)

* coordinator: adds slice ByteArrayExtensions.kt

* coordinator: adds testing file system helper

* coordinator: adds testing l1-blob-proof-submission submitter

* coordinator: rename findFile function

* coordinator: move prover responses to common test data for code reuse

* coordinator: fix ByteArray.sliceOf off-by-one bug

* coordinator: remove unnecessary!!

* coordinator: fix gradle deps

* coordinator: fix test

* coordinator: reduce transitive dependencies

* rebuild LineaRollup ABI

* Use finalStateRootHash on DataSubmittedV3

* fix flaky test

* fix regression

* use latest LineaRollup ABI for V6.0

* Add explicit comment for lastFinalizedShnarf

* NatSpec tweak and variable name correction

* Use finalizeBlocks not finalizeBlocksWithoutProof

* Use PAUSE_FINALIZATION_ROLE without WITHPROOF

* remove WithProof from finalize function

* use most up to date ABIs

* use V5 for the current end to end tests

* reinstate format from main

* reset pragma version

* rename file and env var function

---------

Signed-off-by: Bradley Bown <bradbown@googlemail.com>
Co-authored-by: count-sum <andrei.alexandru@consensys.net>
Co-authored-by: Pedro Novais <1478752+jpnovais@users.noreply.github.com>
Co-authored-by: Roman Vaseev <4833306+Filter94@users.noreply.github.com>
Co-authored-by: Bradley Bown <bradbown@googlemail.com>
2024-10-16 05:51:32 -07:00
Victorien Gauch
efbec20b18 Feat: Refactor pause manager structure (#126)
* feat: add PauseType enum

* fix: refactor test utils structure

* fix: add events to PauseManager for pauseType setting

* fix: update linea rollup deployment script

* fix: change utils folder to common

* fix: refactor roles constant and deployment scripts

* fix: add additional check in PermissionManager to prevent empty role assignments

* fix: update initialize functions with an additional param

* fix: update deployment scripts

* fix: update contracts testing

* fix: linting issue

* rename PAUSE_L2_BLOB_SUBMISSION_ROLE to PAUSE_BLOB_SUBMISSION_ROLE
2024-10-04 14:07:01 +02:00
The Dark Jester
405d683059 [Feat] Readd missing tests (#106)
* Use explicit time calculations and add test cover

* remove redundant comments

* use shared expectRevertWithCustomError

* remove .only and expectEvent
2024-09-27 17:55:40 +03:00
Andrei A.
5256e04ced feat(3921): Gateway Operator (#69)
* feat/3921 Gateway Operator

* use last finalized state for gatewayOperator check

* adjusting natspec

* extend existing struct with gatewayoperator

* use  more explicit NatSpec

---------

Co-authored-by: thedarkjester <grant.southey@consensys.net>
Co-authored-by: Victorien Gauch <85494462+VGau@users.noreply.github.com>
2024-09-24 17:30:17 +02:00
Victorien Gauch
fa427235ca feat(3448): create granular roles for contracts (#61)
* Feat/3448 create granular roles for contracts V2

* Initializing minimumFeeInWei

* fixing natspec

---------

Signed-off-by: Victorien Gauch <85494462+VGau@users.noreply.github.com>
Co-authored-by: count-sum <andrei.alexandru@consensys.net>
2024-09-20 18:35:59 +03:00
Julien Marchand
a001342170 chore: Initial commit
Co-authored-by: Franklin Delehelle <franklin.delehelle@odena.eu>
Co-authored-by: Alexandre Belling <alexandrebelling8@gmail.com>
Co-authored-by: Pedro Novais <jpvnovais@gmail.com>
Co-authored-by: Roman Vaseev <4833306+Filter94@users.noreply.github.com>
Co-authored-by: Bradley Bown <bradbown@googlemail.com>
Co-authored-by: Victorien Gauch <85494462+VGau@users.noreply.github.com>
Co-authored-by: Nikolai Golub <nikolai.golub@consensys.net>
Co-authored-by: The Dark Jester <thedarkjester@users.noreply.github.com>
Co-authored-by: jonesho <81145364+jonesho@users.noreply.github.com>
Co-authored-by: Gaurav Ahuja <gauravahuja9@gmail.com>
Co-authored-by: Azam Soleimanian <49027816+Soleimani193@users.noreply.github.com>
Co-authored-by: Andrei A <andrei.alexandru@consensys.net>
Co-authored-by: Arijit Dutta <37040536+arijitdutta67@users.noreply.github.com>
Co-authored-by: Gautam Botrel <gautam.botrel@gmail.com>
Co-authored-by: Ivo Kubjas <ivo.kubjas@consensys.net>
Co-authored-by: gusiri <dreamerty@postech.ac.kr>
Co-authored-by: FlorianHuc <florian.huc@gmail.com>
Co-authored-by: Arya Tabaie <arya.pourtabatabaie@gmail.com>
Co-authored-by: Julink <julien.fontanel@consensys.net>
Co-authored-by: Bogdan Ursu <bogdanursuoffice@gmail.com>
Co-authored-by: Jakub Trąd <jakubtrad@gmail.com>
Co-authored-by: Alessandro Sforzin <alessandro.sforzin@consensys.net>
Co-authored-by: Olivier Bégassat <olivier.begassat.cours@gmail.com>
Co-authored-by: Steve Huang <97596526+stevehuangc7s@users.noreply.github.com>
Co-authored-by: bkolad <blazejkolad@gmail.com>
Co-authored-by: fadyabuhatoum1 <139905934+fadyabuhatoum1@users.noreply.github.com>
Co-authored-by: Blas Rodriguez Irizar <rodrigblas@gmail.com>
Co-authored-by: Eduardo Andrade <eduardofandrade@gmail.com>
Co-authored-by: Ivo Kubjas <tsimmm@gmail.com>
Co-authored-by: Ludcour <ludovic.courcelas@consensys.net>
Co-authored-by: m4sterbunny <harrie.bickle@consensys.net>
Co-authored-by: Alex Panayi <145478258+alexandrospanayi@users.noreply.github.com>
Co-authored-by: Diana Borbe - ConsenSys <diana.borbe@consensys.net>
Co-authored-by: ThomasPiellard <thomas.piellard@gmail.com>
2024-07-31 18:17:20 +02:00