45 Commits

Author SHA1 Message Date
Alain Nicolas
32e49d843a chore(deps): update dependencies (#1164) 2025-06-17 11:45:13 +02:00
Alain Nicolas
2a8288f75a chore(deps): update compromised dependencies (#1157) 2025-06-13 15:18:05 +02:00
dependabot[bot]
7b77ce2a26 chore(deps): bump the npm_and_yarn group across 1 directory with 1 update (#1124)
* chore(deps): bump the npm_and_yarn group across 1 directory with 1 update

Bumps the npm_and_yarn group with 1 update in the /operations directory: [axios](https://github.com/axios/axios).


Updates `axios` from 1.8.4 to 1.9.0
- [Release notes](https://github.com/axios/axios/releases)
- [Changelog](https://github.com/axios/axios/blob/v1.x/CHANGELOG.md)
- [Commits](https://github.com/axios/axios/compare/v1.8.4...v1.9.0)

Updates `axios` from 1.8.4 to 1.9.0
- [Release notes](https://github.com/axios/axios/releases)
- [Changelog](https://github.com/axios/axios/blob/v1.x/CHANGELOG.md)
- [Commits](https://github.com/axios/axios/compare/v1.8.4...v1.9.0)

---
updated-dependencies:
- dependency-name: axios
  dependency-version: 1.9.0
  dependency-type: direct:production
  dependency-group: npm_and_yarn
- dependency-name: axios
  dependency-version: 1.9.0
  dependency-type: direct:production
  dependency-group: npm_and_yarn
...

Signed-off-by: dependabot[bot] <support@github.com>

* fix(deps): update pnpm-lock.yaml

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Alain Nicolas <alain.nicolas@consensys.net>
2025-06-13 11:29:43 +02:00
Alain Nicolas
fa82db800b chore(dependencies): update outdated dependencies (#1122) 2025-06-09 16:53:02 +02:00
Victorien Gauch
f31aaa814b fix: update bridge ui lifi, dynamic and viem dependencies (#1116) 2025-06-09 12:51:13 +02:00
kyzooghost
76462593dd Fix/bump next and axios versions as per Dependabot (#1091)
* bumped versions

* bumped versions

* fix next build
2025-06-04 23:37:27 +10:00
kyzooghost
d27699e452 [WIP - Tech Debt] Typescript config cleanup (#1073)
* initial tsconfig.json consolidation

* consolidate skipLibCheck

* more consolidate tsconfig.json

* remove strict duplicates

* remove strict duplicates

* removed lib

* more changes

* more changes

* more changes

* centralize noEmit

* run pnpm dedupe

* catalog for ethers and dotenv

* Revert "catalog for ethers and dotenv"

This reverts commit 8fc18db1c6f754ecbf1b175b34f6ebf08837068a.

* first catalog

* added more dependencies to catalog

* apply catalog to many dev dependencies

* ethers in catalog

* finetune ethers version

* fixes

* empty
2025-06-03 17:33:42 +10:00
Victorien Gauch
19735ced28 fix: update blob compressor lib + update dependencies + use tsup (#976)
* fix: update blob compressor lib + update dependencies + use tsup

* fix: update dict path

* fix: lockfile issue

* fix: bump package json version
2025-06-02 14:43:53 +02:00
The Dark Jester
89e9c2cbca redo transient keyword pr (#1019) 2025-05-19 02:27:19 -07:00
Victorien Gauch
2ea227d2d5 fix: bump layerswap widget version in bridge ui (#997) 2025-05-13 19:28:14 +02:00
The Dark Jester
5d5b56dadd [Chore] Bumping Hardhat and Solidity to latest (#995)
* bumping Hardhat and Solidity to latest

* bump coverage plugin

* add coverage var to command execute

* revert test

* update build script to use 0.8.28
2025-05-13 08:14:07 -07:00
Victorien Gauch
142368897b fix: update bridge ui e2e tests (#994) 2025-05-13 13:57:12 +02:00
viphan007
fc5ed79ff4 feat: restructure and integrate layerswap (#953)
* feat: restructure and integrate layerswap

* fix: remove CEX page from internal nav because it is a duplicate

* fix: update layerswap widget and clean libs

* fix: wagmi connection

* chore: update color and layout

* fix: bump layerswap widget lib to version 0.1.15

* fix: fix widget width

* fix: fix ui issue on mobile

* fix: bump bridge ui version, update release notes and update dockerfile and ci

---------

Co-authored-by: Victorien Gauch <85494462+VGau@users.noreply.github.com>
Co-authored-by: VGau <victorien.gauch@consensys.net>
2025-05-13 11:37:58 +02:00
Babken Mesropyan
570c7c75f6 Layerswap widget integration (#929)
* Add layerswap widget

* update @layerswap/widget version to 0.1.11

* fix: update network logo references from 'ethereum' to 'linea'

* update @layerswap/widget to 0.1.14

* Refactored evm wallet hook

* Renamed nav

* update the pnpm-lock.yml

* fix: lint code

---------

Co-authored-by: Aren <aren@bransfer.io>
Co-authored-by: Victorien Gauch <85494462+VGau@users.noreply.github.com>
Co-authored-by: VGau <victorien.gauch@consensys.net>
2025-05-07 17:25:45 +02:00
The Dark Jester
5d54702a63 bumping hardhat (#901) 2025-04-24 00:53:10 -07:00
Victorien Gauch
b2990e9a3c Feat: Add metrics to postman (#871)
* feat: add metrics to postman

* fix: issue with get message to claim query

* fix: import issues

* fix: update unit tests and fix minor issues

* fix: refator metrics

* fix: update typeorm query

* fix: update postman docker config
2025-04-22 11:44:53 +02:00
Victorien Gauch
1d4deeaf19 Feat: Add Solana support in the bridge UI (#836)
* feat: add solona support in the LiFi widget

* fix: update dockerfile and update bridge ui version

* fix: handle cases where user is connected to non EVM network in native bridge

* fix: bridge ui e2e tests issue
2025-04-04 14:12:30 +02:00
Victorien Gauch
b83d3fccec fix/display-wallet-btn-for-non-connected-users (#819) 2025-03-31 10:45:48 +02:00
kyzooghost
4f346b558d [Feat] Bridge UI Test Workflow (#814)
* add first test

* create connectMetamaskToDapp fixture

* bump testing framework version

* correctly working connectMetamaskToDapp function

* working metamask e2e test

* ci fix

* fix

* some changes

* working transaction history list test

* try version bump

* try version bump

* work on toggleShowTestNetworksInNativeBridgeForm

* try playwright 1.51.1

* ci file change

* test fixture changes

* try

* try

* try

* try

* test

* Revert "test"

This reverts commit 2592b6835530feb912d537a29eefaba37f74560e.

* try fix

* try fix

* test

* test

* Revert "test"

This reverts commit a21634ca9224b3d025290e215ba61917bec043ff.

* working toggle network e2e test

* working confirm and bridge flow on e2e test

* refactor metamask fixtures

* successful e2e case for bridge eth

* did usdc bridge e2e test

* fix pnpm lock

* refactor

* refactor

* lint and try single text

* try

* test

* test ci change

* test

* test ci change

* run once to get cache

* first unit test for bridge-ui

* redo test

* more test logs

* test

* test

* test

* removed console logs

* address one more edge case

* activate all tests

* try

* more comments

* adjust fixture

* did some unit tests

* add more unit tests

* disable unit tests in ci

* new e2e test

* new comment

* new things

* fix

* comment out blockchain tx tests

* add reporter for playwright

* removed pause

* clean-up

* test

* change get token balance mechanic

* fix import

* fixes

* clean up

* test

* try headless

* redo headful
2025-03-28 22:35:59 +11:00
Victorien Gauch
60101122fb Fix: remove native tokens, fix receive amount value and bump next js version (#816)
* fix: remove native tokens that don't have L1 address in the token list + fix receive amount

* fix: bump next js version
2025-03-26 16:43:18 +01:00
kyzooghost
e861b42699 [Fix] Update smart-contract-errors.yaml with script assistance (#809)
* fix

* added more errors to smart-contract-errors.toml

* cross-check against bytecode

* remove redundant comment
2025-03-25 20:34:49 +11:00
Victorien Gauch
5b09005765 Feat: add lifi and small fixes (#798)
* fix: add gitattribute rules for woff2 files

* feat: add lifi widget + fixes minor issues

* fix: remove unused packages + clean constants declaration and config

* fix: update dockerfile and github ci workflows

* fix: env variable naming issue

* fix: bridge mode alt value issue + remove button component
2025-03-24 14:28:42 +01:00
kyzooghost
cc8deee137 [Feat] Bridge UIv2 - CCTPV2 claims for USDC & refactors (#792)
* did refreshCCTPMessageIfNeeded function

* added BridgeTransaction to own @types file

* successful claim tx

* remove constants for cctp contracts

* half way through useClaimingTx

* fix

* did cases for erc20 and eth transfer

* moved claim tx to useClaimingTx

* refactor for abievent types

* add getNativeBridgeMessageClaimedTxHash

* did useBridgeTransactionMessage

* fix build

* fix lint

* implement useCCTPFee

* removed auto-claim for usdc, move messageProof to TransactionDetail

* add loading ui for Claim button

* refactor history.ts file in utils

* fix linting errors

* implement caching of completed tx -> in empirical test cut requests from 24->9, ~2200ms -> ~1600ms response cycle time

* ci fix

* add comment for won't do

* remove 1 redundant cctp api call for claim params

* remove CCTP_TRANSFER_FEE_BUFFER

* did badge

* change linea main logo

* change linea main logo

* address edge case where reattest cause revert to pending

* small pr fixes

* Revert "small pr fixes"

This reverts commit 2404f98419b1b7221bda617ea39f20ab6cad5830.

* fixes applied again

* Update bridge-ui/src/utils/chains.ts

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

* simplified code to handle expired cctp message edge case

* fix cctp casing

* fix casing again

* fix git casing issue

* remove comments

* add dynamiccontextprovider param

* change mobileprovider

---------

Signed-off-by: kyzooghost <73516204+kyzooghost@users.noreply.github.com>
Co-authored-by: Victorien Gauch <85494462+VGau@users.noreply.github.com>
2025-03-21 12:50:02 +00:00
Victorien Gauch
8f75f73db2 Feat/bridge UI v2 (#776)
* feat: linea bridge ui refresh (#597)

* feat: linea bridge ui refresh

* feat: improve ui components

* chore: restore layout.tsx

* chore: update destination address modal

* chore: update bridge ui by feedback

chore: update bridge ui by feedback

* chore: add skeleton loader

* chore: update header nav

* feat: update new ui

* chore: fix skeleton

* fix: build issue

---------

Signed-off-by: Victorien Gauch <85494462+VGau@users.noreply.github.com>
Co-authored-by: Victorien Gauch <85494462+VGau@users.noreply.github.com>
Co-authored-by: VGau <victorien.gauch@consensys.net>

* feat: add dynamic

* fix: update lock file

* fix: change font size and all rem values

* feat: add currency state, amount, prices management

* feat: add fees calculation

* fix: remove react hook form and create a form store

* feat: add bridging feature

* fix: bridging issue

* fix: limit number of decimals for gas fees

* feat: add history

* fix: remove old code + remove dependencies

* fix: clean folders

* fix: manual claiming issue

* fix: remove warnings and optimize rerenders

* fix: adjust ui + fix network switching

* fix: update bridge ui dockerfile and github ci

* fix: update button text, input styling and history styling

* fix: add cctp deposit feature + cctp util functions and hooks

* feature toggle done for getTokenConfig (#780)

* fix: fees calculation issue (#781)

* [Feat] Bridge UI v2 - Transaction List with CCTPV2 transactions (#783)

* much of fetchCCTPBridgeEvents

* add getClaimTx

---------

Signed-off-by: kyzooghost <73516204+kyzooghost@users.noreply.github.com>

* fix: token history issue

* fix: history issue for erc20 + add confirm address modal

* fix: claiming issue

* feat: add usdc banner

* fix: update usdc banner message

* fix: update usdc banner message

* fix: update usdc banner message

* fix: update bridge ui e2e tests ci

* fix: update min storage version

---------

Signed-off-by: Victorien Gauch <85494462+VGau@users.noreply.github.com>
Signed-off-by: kyzooghost <73516204+kyzooghost@users.noreply.github.com>
Co-authored-by: viphan007 <106945122+viphan007@users.noreply.github.com>
Co-authored-by: kyzooghost <73516204+kyzooghost@users.noreply.github.com>
2025-03-18 11:58:12 +01:00
Victorien Gauch
2c63869c40 fix: get github releases by tag name for ts-lib build (#710)
* fix: get github releases by tag name for ts-lib build

* fix: use github release download url directly
2025-02-19 15:28:55 +01:00
Victorien Gauch
12a5c33c82 Feat/673 add events filters to the postman (#683)
* feat: add event filters options to the postman

* fix: update package lock file

* fix: update postman params and event filtering

* fix: update filters format

* fix: update .env.sample

* fix: clean return condition in utility functions regarding events filtering

* fix: change calldata function interface for testing
2025-02-17 11:41:26 +01:00
kyzooghost
aa64956c77 [Feat] L1 contracts bump to solidity 0.8.28 (#656)
* working hardhat compile

* bump solhint version

* bump hardhat version

* remove 0.8.26 refs

* remove solhint join discord cli message

* update upgrades-core dependency

* silence openzeppelin-upgrades error for test fixtures

* fix floating version for integrationtesttrue

* remove 0.8.26
2025-02-07 00:00:02 +11:00
Alain Nicolas
06294fda72 feat(bridge-ui): Simplify the wallet connection modal (#509)
* feat(bridge-ui): Simplify the wallet connection modal

* Fix copy on metadata

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

---------

Signed-off-by: Alain Nicolas <alainncls@users.noreply.github.com>
Co-authored-by: The Dark Jester <thedarkjester@users.noreply.github.com>
2025-01-09 18:37:34 +01:00
Nadeem Bhati
469bb8b925 Add support for foundry compilation and testing (#277)
* step 1/2

* fix

* setup 2/2, foundry test added

* readme added

* fix gitmodules

* fix gitmodule

* fix git module

* :(

* forge install: forge-std

v1.9.4

* readme fix
2025-01-09 02:38:55 -08:00
Victorien Gauch
f9c49099c5 Feat: add winston logger in e2e tests (#489)
* feat: add winston logger in e2e tests

* fix: rename appendTestName function to prefixWithTestName

* fix: change some log level
2025-01-06 10:50:44 +01:00
kyzooghost
a5119c43b0 Feat/husky lint (#431)
* add poc husky lint script

* test commit change

* undo test change

* test change

* undo test change

* test

* test

* test

* test

* do

* test

* test

* test

* test

* test

* test

* test

* test

* test

* test

* refactor to pre-commit to NodeJS script

* add logs for demo

* small refactor of pre-commit.js

* add shebang to pre-commit

* add other folders to husky script

* added postman to pre-commit

* remove test md change

* add comments for pre-commit.js

* adjust lint:fix scripts

* Update .husky/pre-commit.js

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

---------

Signed-off-by: kyzooghost <73516204+kyzooghost@users.noreply.github.com>
Co-authored-by: The Dark Jester <thedarkjester@users.noreply.github.com>
2024-12-20 23:34:59 +11:00
The Dark Jester
eafe6870a9 bump hardhat and reduce lint warnings (#454) 2024-12-16 05:26:46 -08:00
Victorien Gauch
f58c12a455 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
2024-12-09 12:12:45 +01:00
Victorien Gauch
90c4c08f1b Update PNPM version (#373) 2024-12-02 15:37:33 +01:00
kyzooghost
8a20b27f3d [Feat] - Foundry config, supports London EVM_VERSION for L2 Linea contracts (#361)
* forge build working

* poc done

* commit

* did lint command

* remove caret from hardhat-foundry

* add foundry installation to run-smc-tests.yml

* update run-smc-tests.yml
2024-11-29 07:09:07 -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
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
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
Victorien Gauch
215b60c9f0 Feat(#133): run e2e tests in parallel (#164)
* feat: run e2e tests in paralell + refactor test setup

* fix: open handle issue

* fix: sequencer finalized tag test issue + clean l2.spec tests

* fix: refactor config structure

* fix: genesis path issue

* fix: pnpm lock file issue

* fix: make each test run concurrently

* fix: remove nested describes in tests

* fix: refactor coordinator tests + add global L2 traffic generation

* fix: change l2 genesis file for getting whale accounts + refactor utils function

* fix: refactor coordinator restart util function

* fix: remove conflation e2e tests

* fix: add environment variable in e2e test ci workflowk

* fix: coordinator restart test issue

* fix: instanciate account manager only once per test file

* fix: add restart option to zkbesu shomei and postman in docker compose file

* fix: remove getAndIncreaseFeeData function and unsed utils functions

* fix: increase messaging L2 to l1 timeout
2024-10-15 19:26:23 +02:00
Victorien Gauch
7b61cfc893 Fix: update bridge UI dependencies (#165)
* fix: update bridge UI dependencies

* fix: remove axios dependency
2024-10-09 17:57:24 +02:00
Andrei A.
e3d2839fee Feat/30 refactor operational packages (#116)
* refactor Operational packages

* fix: refactor operations package to use oclif

* adjusting Dockerfile

* adjusting github action

* Update all-tools.yml

Signed-off-by: Andrei A. <andrei.alexandru@consensys.net>

* adjusting github action

---------

Signed-off-by: Andrei A. <andrei.alexandru@consensys.net>
Co-authored-by: VGau <victorien.gauch@consensys.net>
2024-10-02 15:55:59 +03:00
Victorien Gauch
bf63a428d6 fix: update hardhat dependencies (#41) 2024-09-17 14:53:27 +02:00
Victorien Gauch
6eb6bd808d Feat(3102): bridge page form (#3919)
* fix: refactor state management

* fix: update pnpm lock file and use fixed version for zustand

* feat: add sidebar menu and mobile menu + transaction history page

* feat: add side bar menu and history page

* fix: remove unused code + update TransactionClaimButton component

* fix: update dockerfile to remove warning during build

* feat: bridging page with erc20 bridging

* fix: clean components

* fix: adjust layout, state management and components

* fix: refactor fee calculation + add eth to usd conversion

* fix: remove unused code

* feat: add fee in transaction history

* fix: token image format

* fix: linting issue

* fix: import issue
2024-09-11 13:46:14 +02:00
Victorien Gauch
7566fab773 Feat(3102): add menu and history page (#3852)
* fix: refactor state management

* fix: update pnpm lock file and use fixed version for zustand

* feat: add sidebar menu and mobile menu + transaction history page

* feat: add side bar menu and history page

* fix: remove unused code + update TransactionClaimButton component

* fix: update dockerfile to remove warning during build
2024-09-10 13:08:37 +02: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