17 Commits

Author SHA1 Message Date
jonesho
953e7a90a5 feat: added shomei-frontend linea_getProof e2e test (#1077)
* feat: added shomei-frontend linea_getProof e2e test

* feat: revise the e2e test with comments

* feat: make linked library name human readable
2025-06-03 15:29:23 +08:00
kyzooghost
62d0d24c57 [Feat] Precomputed/Counterfactual address for TokenBridge Remote Sender (#678)
* remove reinit function in tokenbridge

* passing tests with removal of setRemoteSender

* remove operational task and dead role reference

* added tokenbridgev1_1 artifact to e2e tests

* adjustments

* fix nonce increment
2025-02-27 20:14:26 +11:00
Pedro Novais
3caceed6f6 Staterecovery part 13 blockhash fixes (#675)
staterecovery: fix blockHash opcode and improve performance of blob fetching from L1

---------

Signed-off-by: Pedro Novais <1478752+jpnovais@users.noreply.github.com>
Co-authored-by: Roman Vaseev <4833306+Filter94@users.noreply.github.com>
2025-02-20 10:14:38 +00:00
The Dark Jester
4700e9078c [Chore] - use defined account for opcode testing (#671)
* use defined account for opcode testing

* add output to show execution
2025-02-11 05:57:10 -08:00
The Dark Jester
c0836063cd use blockhash with current block (#663) 2025-02-07 04:12:45 -08:00
The Dark Jester
b5194c0d5e add contracts and out of gas script linea scenario (#653) 2025-02-04 14:44:38 -08: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
kyzooghost
a83412e247 [Fix] Add more checks to TokenBridge.initialize() (#380)
* added new tests covering TokenBridge.initialise() changes

* ran npx hardhat docgen

* update TokenBridge dynamic artifact

* test verified commit

* reverse verified commit test

* added nonZeroChainId modifier

* Update contracts/contracts/tokenBridge/interfaces/ITokenBridge.sol

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

* update ITokenBridge doc

* add initialization check for default admin

---------

Signed-off-by: kyzooghost <73516204+kyzooghost@users.noreply.github.com>
Co-authored-by: The Dark Jester <thedarkjester@users.noreply.github.com>
Co-authored-by: thedarkjester <grant.southey@consensys.net>
2025-01-06 03:05:28 -08:00
The Dark Jester
c9e67e75b7 [Fix] - Compute genesis shnarf dynamically (#353)
* compute genesis shnarf dynamically

* use newest ABI for V6

* remove validate tags and branch

* use correct var name for council

* Update contracts/deploy/06_deploy_TokenBridge.ts

Co-authored-by: Diana Borbe - ConsenSys <diana.borbe@consensys.net>
Signed-off-by: The Dark Jester <thedarkjester@users.noreply.github.com>

* adjust env var names for consistency

* Fix: remove github actions warnings (#394)

* fix: remove github actions warnings

* fix: bump code ql github action version to v3 (#396)

* use latest OZ link (#395)

* feat: update local compose file for linea-besu delivery39 and plugins (#397)

* fix: update github actions versions (#398)

* [Feat] - Exclude *.md files from triggering CI workflow (#370)

* did .md exclusion rules for workflow files

* test md change

* add markdown exclusion to pull_request event in main.yml

* modify main.yml to ignore *.md file on pull_request

* test if main.yml will ignore yml changes

* adjust paths exclusion for *.md

* test commit

* test commit

* alternate way for main.yml to filter out .md

* test changes to main.yml

* test change to main.yml

* add compound dorny/path-filter param

* fix duplicate workflow id

* removed *.yml test value

* adjust pr 370 as per comments 1 + test markdown change

* revert *.md test change

* clarify main.yml comments

* test

* test

* flip to is-markdown-only

* Revert "flip to is-markdown-only"

This reverts commit 5496a1b08384bcf034264a25322c20456c18df1c.

* trial push down

* test

* test

* test

* test

* test

* test

* test

* remove *.yml

* DO NOT MERGE THIS COMMIT - *.yml for demo purpose

* remove *.yml after demo done

* rename not-markdown-only to has-changes-other-than-markdown

* change to has-code-changes

* DO NOT MERGE - *.yml test

* Revert "DO NOT MERGE - *.yml test"

This reverts commit 807d71b3597204497d21afc2c51b81f68a92f63f.

* add docs to exclusion list, replace image extensions

* DO NOT MERGE - test ci

* Revert "DO NOT MERGE - test ci"

This reverts commit ee8831fe6259967d10ce9aa5c6db96e4ba808d82.

* change to has-changes-requiring-build

---------

Co-authored-by: Victorien Gauch <85494462+VGau@users.noreply.github.com>

* 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>

* Fixing spotless plugin application performance issue when applied to gradle.build files (#405)

* Feat/272 split sdk and postman (#381)

* feat: split postman and sdk

* fix: update postman client and sendMessage script

* fix: clean the sdk

* fix: update sdk dependencies

* fix: remove .env.sample file

* fix: remove testing helpers from the build

* fix: update gas provider in linea sdk and update postman client

* fix: update postman dependencies

* fix: update postman dockerfile and fix tests imports and types

* fix: remove unused code in the sdk + move typechain folder

* fix: remove unused code + fix imports in postman

* fix: pnpm lock file issue

* fix: import issue

* fix: case sensitive file issue

* fix: update sdk fees options and update exports

* fix: remove postman unused code and adjust imports and tests

* fix: update contracts abis + clean error parsing

* fix: update postman based on new SDk changes

* add readme + remove unused interface in postman

* fix: rename Base.ts file to BaseError.ts

* fix: rename Base.ts file to BaseError.ts in postman

* chore: update readme for the postman

* fix: rename maxFeePerGas to maxFeePerGasCap

* fix: update DefaultGasProvider fees check

* fix: default gas provider test issue

* fix: update main ci filter

* fix: issue in default gas provider

* feat: update postman docker image version in local stack (#410)

* Remove V5 from e2e + allow multiple runs no deploy (#411)

* Prover: couple of fixes betav1 (#377)

* fix(execution): a few fixes in the wizard verifier

* feat(dict): pass the dict path from config

* fix: makeBw6Proof returns circuitID instead of -1

* fix(circuitID): make bw6Proof returns the circuitID

* fix(config-testing)

* feat(config): sepolia-full uses full aggregation

* style(naming): renaming the rolling hash fields and documenting the checks in pi-interconnection

* feat: flag for target number of constraints

* fix refactoring oversight

---------

Co-authored-by: Arya Tabaie <arya.pourtabatabaie@gmail.com>

* Revert "Revert: Prover: bump to arithmetization beta-v0.8.0-rc6 (#362) (#371)" (#418)

This reverts commit 8be665e11c.

---------

Signed-off-by: The Dark Jester <thedarkjester@users.noreply.github.com>
Co-authored-by: Diana Borbe - ConsenSys <diana.borbe@consensys.net>
Co-authored-by: Victorien Gauch <85494462+VGau@users.noreply.github.com>
Co-authored-by: jonesho <81145364+jonesho@users.noreply.github.com>
Co-authored-by: kyzooghost <73516204+kyzooghost@users.noreply.github.com>
Co-authored-by: Roman Vaseev <4833306+Filter94@users.noreply.github.com>
Co-authored-by: jonesho <jones.ho@consensys.net>
Co-authored-by: AlexandreBelling <alexandrebelling8@gmail.com>
Co-authored-by: Arya Tabaie <arya.pourtabatabaie@gmail.com>
2025-01-06 02:31:29 -08:00
kyzooghost
4a7b76c90d [Feat] - GASLIMIT opcode test (#412)
* gas-limit test written

* successful pass pnpm:e2e:local for gas limit

* test

* hi

* rename gaslimittest -> opcodetest

* added finalization test for setGasLimit

* fixes to gas-limit.spec.ts

* use erc-7201 for storage in opcodetestcontract

* updated gas-limit e2e test to check >= lineaRollupV6.currentL2BlockNumber

* wrote case for increase gas limit

* working local test of block increase to 35M

* refactor pollForContractMethodReturnValueExceedTarget

---------

Signed-off-by: kyzooghost <73516204+kyzooghost@users.noreply.github.com>
2024-12-20 21:46:15 +11: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
edca2675dc [Chore] - opcode tester contracts (#447)
* initial commit of all opcode testing

* linting

* use better names - refactored + no optimizer

* store timestamp on verbatim execution

* Update contracts/contracts/test-contracts/OpcodeTester.sol

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

* Update contracts/contracts/test-contracts/LondonEvmCodes.yul

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

* deduplicate rollingBlockDetailComputations

* add missing bytecode and cleanup

* order functions by usage order

* correct loops

---------

Signed-off-by: The Dark Jester <thedarkjester@users.noreply.github.com>
Co-authored-by: kyzooghost <73516204+kyzooghost@users.noreply.github.com>
2024-12-17 02:31:08 -08: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
adb097aff4 [Chore] Export contract ABI and use solidity-docgen export (#323)
* export contract ABI and use solidity-docgen export

* add docgen dependency

* lint fixing
2024-11-21 06:49:31 -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
Victorien Gauch
36959fb21b Fix(133): Improve e2e tests performance (#234)
* fix: add mutex in account manager to avoid nonce issue

* fix: optimize global setup

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

* 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

* fix: update submission finalization tests + rename variable
2024-10-30 14:10:24 +01:00