Commit Graph

18 Commits

Author SHA1 Message Date
Fluent Crafter
0c7c736830 coordinator: adds config v2 (#853)
* coordinator: adds config v2 sample

* coordinator: update config V2

* coordinator: update config v2

* coordinator: update config v2

* coordinator: config v2 wip

* spotless fix

* coordinator: adds config v2 parsers

* coordinator: adds config v2 classes and parsing tests

* coordinator: adds config v2 classes and parsing tests

* remove end2end changes from staterecovery test trigger

* coordinator: config v2 - fix prover directory config

* coordinator: add getChaindId to EthApiClient.kt

* coordinator: improve EIP1559GasProvider validation

* coordinator: add createReadOnly to Web3JL2MessageServiceSmartContractClient

* coordinator: add validation to FeeHistoryFetcherImpl

* coordinator: add more configs to v2

* coordinator: extend Web3JFactory

* coordinator: addapt CoordinatorApp to new V2 configs

* coordinator: adapt local stack coordinator configs

* coordinator: log4j clients.l1 debug

* coordinator: revert attempt to use web3signer on CI ONly :(

* coordinator: fix test and configs

* coordinator: fix test and configs

* coordinator: fix traces node address

* coordinator: remove unnecessary file

* coordinator: hardcode tracesVersion to v2.1.0 to match prover regex

* Update config/coordinator/coordinator-config-v2.toml

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Signed-off-by: Fluent Crafter <205769460+fluentcrafter@users.noreply.github.com>

* Apply suggestions from code review

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Roman Vaseev <4833306+Filter94@users.noreply.github.com>
Signed-off-by: Fluent Crafter <205769460+fluentcrafter@users.noreply.github.com>

* coordinator: default targetBlobsPerTransaction=7u

* coordinator: hardcode tracesVersion to 2.1.0 to match prover regex

* coordinator: fix agg configs

* coordinator: strict configs log warning when config is not used

* coordinator: add carved out config files

* coordinator: add opt-in to avoid annoying warning log

* feat: update Makefile for new coordinator config file and variable name

* localstack: remove coordinator forced platform

* coordinator: add missing config on gas-price-cap-calculation

* coordinator: remove old configs

---------

Signed-off-by: Fluent Crafter <205769460+fluentcrafter@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Roman Vaseev <4833306+Filter94@users.noreply.github.com>
Co-authored-by: jonesho <81145364+jonesho@users.noreply.github.com>
Co-authored-by: jonesho <jones.ho@consensys.net>
2025-06-06 11:15:01 +01:00
Fluent Crafter
c5563c38fa coordinator: rename anchoring and contracts modules (#975) 2025-05-13 08:50:42 +01:00
jonesho
47a9d07d4f feat: remove switch-to-linea-besu, counter-v1, conflation-v1, file-ma… (#952)
* feat: remove switch-to-linea-besu, counter-v1, conflation-v1, file-manager related configs and their reference codes in L1DependentApp

* fix: spotless

* feat: remove traces-api-facade module

* feat: remove traces-counter-v1 from coordinator config and removed TracesFileManager, TracesRpcClientV1, TraceCounterV1WatcherClient classes

* feat: removed TracesCounterV1 and update tests

* feat: removed TracingModuleV1 and traces-limits-v1 toml files

* feat: removed TracesClientV1, TracesClientV2Adapter, and revised codes accordingly

* feat: removed FileManager in CoordinatorConfig and updated test case for assertConsecutiveBlocksRange

* feat: updated l2-node-besu docker-compose configs

* feat: rename traces-node-v2 to traces-node in all places

* feat: use prover v3 compression proofs for tests

* fix: spotless
2025-05-09 19:52:46 +08:00
Fluent Crafter
99692fedab Message anchoring v2 part7 - clean up of legacy clients (#913)
* coordinator: order MessageSentEvent.kt params for better reading

* coordinator: fix MessageSentEvent.kt serialization

* coordinator: WIP implementation of new Web3JL2MessageServiceSmartContractClient

* coordinator: use new anchoring implementation

* coordinator: use version from maven

* coordinator: minor generics tweak

* add .java-version to gitignore

* coordinator: remove old anchoring implementation

* coordinator: move Anchoring events to common interfaces packages

* coordinator: add factory method

* coordinator: use factory method

* coordinator: clean unused method

* coordinator: adapt AggregationL2StateProviderImpl to new interfaces

* coordinator: adapt ZkProofCreationCoordinatorImpl and Prover client to domain EthClient api

* coordinator: removes unused legacy contract clients

* coordinator: removes unused legacy clients

* coordinator: config error message fix

* coordinator: more cleanup of dead-code and dependencies

* coordinator: more cleanup of dead-code and dependencies

* coordinator: remove deprecated and unused classes

* coordinator: remove teku dependency from web3j extensions

* coordinator: EthApiClient segregate find/get methods

* coordinator: fix AggregationL2StateProviderImpl for 1st aggregation without smart contract deployed

* coordinator: move FakeL2MessageService to shared package

* staterecovery: sort blocks before import

* coordinator: add missing dependency

* coordinator: small code tweaks (PR feedback)

* staterecovery: lower test logs level

* staterecovery: lower test logs level

* coordinator: small code tweaks (PR feedback)
2025-05-08 16:26:58 +01:00
Fluent Crafter
f005044583 Message anchoring v2 part6 (#910)
* coordinator: order MessageSentEvent.kt params for better reading

* coordinator: fix MessageSentEvent.kt serialization

* coordinator: WIP implementation of new Web3JL2MessageServiceSmartContractClient

* coordinator: use new anchoring implementation

* coordinator: use version from maven

* coordinator: minor generics tweak

* add .java-version to gitignore

* coordinator: remove old anchoring implementation

* coordinator: move Anchoring events to common interfaces packages

* coordinator: add factory method

* coordinator: use factory method

* coordinator: clean unused method
2025-04-29 11:55:08 +01:00
Pedro Novais
bf8a00dfc6 update besu libs; improve gradle build; improve make file stack start up (#674) 2025-02-11 16:36:01 +00:00
Pedro Novais
829630b0a1 Coordinator: replace teku ExecutionPlayloadV1 by Domain Block class - fix block encoding (#406)
* coordinator: replace Teku ExecutionPayloadV1.kt by our own Domain Block
* update GHA runners and CI fixes
---------
Signed-off-by: Pedro Novais <1478752+jpnovais@users.noreply.github.com>
Co-authored-by: Roman Vaseev <4833306+Filter94@users.noreply.github.com>
2024-12-16 17:04:38 +00:00
Roman Vaseev
c356dc4016 Introduced spotless checks to gradle scripts. Added publishing logic … (#401)
* Introduced spotless checks to gradle scripts. Added publishing logic to all the generic jvm libs. Removed redundant useJUnitPlatform()

* Removed more useJUnitPlatform()

* feat: update copyShadowJarToLocalBesu in finalized-tag-updater gradle build file

* fix: geth traces-node running in start-all local stack

---------

Co-authored-by: jonesho <jones.ho@consensys.net>
2024-12-06 10:44:00 +01:00
jonesho
5dc02f88d2 feat: separate tx exclusion api integration tests from coordinator (#263)
* feat: separate tx exclusion api integration tests from coordinator

* feat: add integrationTestAllNeeded task for coordinator:app and transaction-exclusion-api:app

* feat: integration test all needed gradle task description update
2024-10-31 02:29:20 +08:00
Pedro Novais
a7be944b82 gradle update to 8.10.2 (#253)
* gradle update 8.10.2 ; Remove java-gnark from coordinator
2024-10-28 09:35:23 +00:00
Roman Vaseev
99583ae232 Coordinator - Fixed config test, added configuration folder to the inputs to fail tests in case configuration changes (#245) 2024-10-25 13:37:33 +02:00
Pedro Novais
e71ec80430 Coordinator use new state manager (#237)
* coordinator: user state manager with Async interface
2024-10-24 11:15:23 +01:00
Roman Vaseev
d2a120f3b4 Simplified executionPayloadV1 testing util (#228) 2024-10-22 18:52:34 +02:00
Pedro Novais
3ab2f91a05 coordinator: remove dep on tuweni in domain model (#227)
* coordinator: remove dep on tuweni in a domain model
2024-10-22 17:03:48 +01:00
jonesho
fad0db4fc6 3822 rejected transaction api service (#101)
* feat: first commit for transaction exclusion api service

* feat: removed debug logs and improved params error handling

* fix: jacocoRootReport error

* feat: improved json request param parsings

* feat: added docker container and github workflow pipeline for transaction exclusion api

* feat: added rejection stage in response and use txHash and rejectReason as primary key of tables

* feat: separate database into read and write config and each with dedicated connection

* fix: e2e testing error

* feat: removed redundant commands in Makefile

* feat: updated transaction exclusion api default image tag in compose file

* feat: added metric and change param name from reasonMessage to reason

* feat: added integration and unit tests and use reasonMessage for both request and response

* fix: transaction-exclusion-api unit test

* feat: added e2e tests and remove reasonMessage from get response and redundant codes

* feat: updated README.md and removed abi file

* feat: updated image version of transaction exclusion api service in compose file

* feat: updated README and added more test cases

* feat: updated transaction exclusion api default image tag in compose file

* feat: decoupled transaction exclusion api from coordinator package

* feat: removed unnecessary dependencies to prover client

* feat: moved persistence:db package to jvm-libs

* feat: removed migration file dir location config from transaction exclusion api

* fix: db migration location for fee history integration test

* changed db column name timestamp to reject_timestamp and add dto for ModuleOverflow to remove all jackson dependencies in core module

* feat: rejected transaction dao and config refactoring

* feat: removed repository service and using persistence retryer

* feat: updated transaction exclusion api default image tag in compose file

* feat: updated log and increase retry backoff delay to avoid repetitive error logs

* feat: added support of list request on save method and added dto for RejectedTransaction

* feat: revised gradle.build dependencies

* feat: switch from shadow jar to zipped jar

* feat: updated transaction exclusion api default image tag in compose file

* feat: updated sql and tables and changes for PR comments

* feat: improved log message for duplicate key error

* feat: updated transaction exclusion api default image tag in compose file

* feat: avoid redundant logs on periodic db cleanup

* feat: revised request handlers plus better test assertions on insertion

* fix: test case

* feat: parse save method json request with jackson

* feat: extracted db migrations from the coordinator and transaction-exclusion app

* feat: decoupled coordinator modules from jvm-libs persistence db test module

* feat: updated dockerfile of transaction-exclusion-api

* feat: removed the find check before metric increment on save rejected transaction

* feat: updated docker base image for tx-exclusion-api image buid and queryable window config

* feat: skip migration scripts on read db instance

* feat: updated more percise jvm-libs change filtering on transaction-exclusion-api

* feat: updated coordinator config for geth node l2 gas pricing recipients

* feat: update runners with specific version and removed the use of retry for transaction exclusion api testing

* feat: add integration test for transaction exclusion app

* feat: update local stack docker compose and workflow for transaction exclusion

* feat: add e2e test for transaction exclusion

* feat: skip the sequencer test in transaction exclusion e2e test

* feat: revert sequencer config poa-block-txs-selection-max-time

* feat: remove incorrect comment

* feat: added explicitly assertion if tx exclusion is not defined and simplify the localStackPostgresDbOnly in build.gradle

* feat: remove beforeAll in test suite with it.concurrent

* feat: set coordinator config blob-compressor-version as V1_0_1 explicitly for traces-v2

* feat: update coordinator config test

* feat: change default prefix not to be coordinator specific

* feat: place persistence:db under jvm-libs:generic and fixed conflicts from latest main

* fix: remove dependency to resolve circular dependency issue

* test: switch from localStackPostgresDbOnlyComposeUp to localStackComposeUp

* feat: replace GITHUB_SHA with github.event.pull_request.head.sha in computing commit tag

* feat: update filter change file lists for transaction exclusion api
2024-10-22 15:50:44 +08:00
Pedro Novais
8bb5fe7ac2 jvm-libs layout rearrange (#213)
* jvm-libs layout rearrange
2024-10-21 14:38:27 +01:00
Bradley Bown
5a6fdf3be1 Coordinator - Remove shadow jar (#3763)
* Coordinator - Remove shadow jar from build

* Coordinator - Replace shadowJar task with jar

* Coordinator - Use distribution plugins distZip job, Dockerfile unzip distribution

* Coordinator - Fix gradle command

* Coordinator - Fix unzip and moving of libs

* Coordinator - Fix unzip and moving of libs 2

* Coordinator - Fix unzip locations
2024-08-14 16:12:33 +01: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