Skip to content

Comments

chore: port test/evm/hardhat/chain-adapters tests to foundry#1219

Merged
grasphoper merged 12 commits intomasterfrom
if/move-tests-to-foundry
Jan 15, 2026
Merged

chore: port test/evm/hardhat/chain-adapters tests to foundry#1219
grasphoper merged 12 commits intomasterfrom
if/move-tests-to-foundry

Conversation

@grasphoper
Copy link
Contributor

Closes ACX-4890

Signed-off-by: Ihor Farion <ihor@umaproject.org>
@linear
Copy link

linear bot commented Dec 12, 2025

Signed-off-by: Ihor Farion <ihor@umaproject.org>
Signed-off-by: Ihor Farion <ihor@umaproject.org>
@grasphoper
Copy link
Contributor Author

This PR migrates the first of the tests under tests/evm/hardhat/chain-adapters

Let's merge it first to have a common base to use (like the fixture code)

@grasphoper grasphoper marked this pull request as ready for review January 7, 2026 21:13
Signed-off-by: Ihor Farion <ihor@umaproject.org>
fusmanii
fusmanii previously approved these changes Jan 8, 2026
@tbwebb22 tbwebb22 self-requested a review January 8, 2026 19:43
tbwebb22
tbwebb22 previously approved these changes Jan 8, 2026
* add CLAUDE.md

Signed-off-by: Ihor Farion <ihor@umaproject.org>

* plan out all tasks

Signed-off-by: Ihor Farion <ihor@umaproject.org>

* migrate ethereum adapter test

Signed-off-by: Ihor Farion <ihor@umaproject.org>

* remove Succinct_Adapter from migration tasks

Signed-off-by: Ihor Farion <ihor@umaproject.org>

* address incorrect constants usage

Signed-off-by: Ihor Farion <ihor@umaproject.org>

* migrate Arbitrum_SendTokensAdapterTest

Signed-off-by: Ihor Farion <ihor@umaproject.org>

* migrate Solana_Adapter

Signed-off-by: Ihor Farion <ihor@umaproject.org>

* port Optimism_Adapter.ts: first draft

* improve the testing pattern

Signed-off-by: Ihor Farion <ihor@umaproject.org>

* port scroll adapter test: impl v0

* improve impl

Signed-off-by: Ihor Farion <ihor@umaproject.org>

* update TASKS.md with mockCall info

Signed-off-by: Ihor Farion <ihor@umaproject.org>

* port PolygonZkEVM adapter test

Signed-off-by: Ihor Farion <ihor@umaproject.org>

* port linea adapter test

Signed-off-by: Ihor Farion <ihor@umaproject.org>

* update CLAUDE.md

Signed-off-by: Ihor Farion <ihor@umaproject.org>

* migrate Polygon Adapter tests

Signed-off-by: Ihor Farion <ihor@umaproject.org>

* consolidate some common functionality

Signed-off-by: Ihor Farion <ihor@umaproject.org>

* update TASKS

Signed-off-by: Ihor Farion <ihor@umaproject.org>

* remove tasks

Signed-off-by: Ihor Farion <ihor@umaproject.org>

---------

Signed-off-by: Ihor Farion <ihor@umaproject.org>
@grasphoper grasphoper dismissed stale reviews from tbwebb22 and fusmanii via e152ecb January 9, 2026 07:12
@fusmanii
Copy link
Contributor

fusmanii commented Jan 9, 2026

Changes look good. Missing Succinct_Adapter tests and OP_Adapter.t.sol is missing a test (the "Correctly routes USDC via the configured OP USDC bridge" test from OP_Adapter.ts).

@grasphoper
Copy link
Contributor Author

Changes look good. Missing Succinct_Adapter tests and OP_Adapter.t.sol is missing a test (the "Correctly routes USDC via the configured OP USDC bridge" test from OP_Adapter.ts).

Succinct adapter test should be removed.
Will migrate the OP adapter test fully, agree.

@grasphoper grasphoper changed the title chore: port hardhat tests to foundry chore: port test/evm/hardhat/chain-adapters tests to foundry Jan 15, 2026
Signed-off-by: Ihor Farion <ihor@umaproject.org>
Signed-off-by: Ihor Farion <ihor@umaproject.org>
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@fusmanii for some reason this got updated. Is this expected?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks like master was out of date, created #1242

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tbwebb22
tbwebb22 previously approved these changes Jan 15, 2026
Signed-off-by: Ihor Farion <ihor@umaproject.org>
…itrum-adapter tests

Signed-off-by: Ihor Farion <ihor@umaproject.org>
@grasphoper grasphoper marked this pull request as draft January 15, 2026 02:11
@grasphoper grasphoper marked this pull request as ready for review January 15, 2026 04:31
@grasphoper grasphoper requested a review from tbwebb22 January 15, 2026 04:32
@grasphoper grasphoper merged commit 75a74ba into master Jan 15, 2026
13 checks passed
@grasphoper grasphoper deleted the if/move-tests-to-foundry branch January 15, 2026 21:29
fusmanii pushed a commit that referenced this pull request Jan 16, 2026
* add Arbitrum_Adapter.t.sol

Signed-off-by: Ihor Farion <ihor@umaproject.org>

* refactor

Signed-off-by: Ihor Farion <ihor@umaproject.org>

* add more asserts to the new test

Signed-off-by: Ihor Farion <ihor@umaproject.org>

* address incorrect constants usage

Signed-off-by: Ihor Farion <ihor@umaproject.org>

* chore: move tests from `chain-adapter` folder (#1233)

* add CLAUDE.md

Signed-off-by: Ihor Farion <ihor@umaproject.org>

* plan out all tasks

Signed-off-by: Ihor Farion <ihor@umaproject.org>

* migrate ethereum adapter test

Signed-off-by: Ihor Farion <ihor@umaproject.org>

* remove Succinct_Adapter from migration tasks

Signed-off-by: Ihor Farion <ihor@umaproject.org>

* address incorrect constants usage

Signed-off-by: Ihor Farion <ihor@umaproject.org>

* migrate Arbitrum_SendTokensAdapterTest

Signed-off-by: Ihor Farion <ihor@umaproject.org>

* migrate Solana_Adapter

Signed-off-by: Ihor Farion <ihor@umaproject.org>

* port Optimism_Adapter.ts: first draft

* improve the testing pattern

Signed-off-by: Ihor Farion <ihor@umaproject.org>

* port scroll adapter test: impl v0

* improve impl

Signed-off-by: Ihor Farion <ihor@umaproject.org>

* update TASKS.md with mockCall info

Signed-off-by: Ihor Farion <ihor@umaproject.org>

* port PolygonZkEVM adapter test

Signed-off-by: Ihor Farion <ihor@umaproject.org>

* port linea adapter test

Signed-off-by: Ihor Farion <ihor@umaproject.org>

* update CLAUDE.md

Signed-off-by: Ihor Farion <ihor@umaproject.org>

* migrate Polygon Adapter tests

Signed-off-by: Ihor Farion <ihor@umaproject.org>

* consolidate some common functionality

Signed-off-by: Ihor Farion <ihor@umaproject.org>

* update TASKS

Signed-off-by: Ihor Farion <ihor@umaproject.org>

* remove tasks

Signed-off-by: Ihor Farion <ihor@umaproject.org>

---------

Signed-off-by: Ihor Farion <ihor@umaproject.org>

* port OP_Adapter test

Signed-off-by: Ihor Farion <ihor@umaproject.org>

* remove ported hardhat tests

Signed-off-by: Ihor Farion <ihor@umaproject.org>

* move chain adapter tests to chain-adapters/

Signed-off-by: Ihor Farion <ihor@umaproject.org>

* fix import paths for chain adapter tests + add missing asserts to arbitrum-adapter tests

Signed-off-by: Ihor Farion <ihor@umaproject.org>

* complete Arbitrum_SendTokensAdapter test

---------

Signed-off-by: Ihor Farion <ihor@umaproject.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants