Skip to content

Conversation

@markin-io
Copy link
Contributor

@markin-io markin-io commented Oct 20, 2025

Description

A follow up to #3735 (comment)

Changes

Refactored test code to use alloy contract bindings and primitives

How to test

$ FORK_URL_MAINNET="...." cargo test -p e2e forked_node_liquidity_source_notification_mainnet -- --ignored

@markin-io markin-io requested a review from a team as a code owner October 20, 2025 14:58
Copy link
Contributor

@squadgazzz squadgazzz left a comment

Choose a reason for hiding this comment

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

Thank you for your contribution. I suppose half of the work alloy should have done automatically already and it can be used in this PR.

Also, could you later look into this issue? #3748

@github-actions
Copy link

This pull request has been marked as stale because it has been inactive a while. Please update this pull request or it will be automatically closed.

@github-actions github-actions bot added the stale label Oct 28, 2025
@markin-io markin-io force-pushed the refactor/e2e/liquorice_api_alloy_bindings branch from 34e6ffd to 1db7ec5 Compare October 28, 2025 18:26
@squadgazzz squadgazzz removed the stale label Oct 28, 2025
Copy link
Contributor

@squadgazzz squadgazzz left a comment

Choose a reason for hiding this comment

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

Thanks a lot, it looks much better now! 🤩

Just a few nits.

Copy link
Contributor

@jmg-duarte jmg-duarte left a comment

Choose a reason for hiding this comment

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

Just have one question, everything else looks ok

)
.manual(
"ILiquoriceSettlement",
"LiquoriceSettlement",
Copy link
Contributor

Choose a reason for hiding this comment

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

Why the replacement between the interface and the contract?

Copy link
Contributor Author

@markin-io markin-io Oct 30, 2025

Choose a reason for hiding this comment

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

Because of the hashSingleOrder function of the contract that used in the e2e test.
The function is not available in the interface since it belongs to the Signing contract that only LiquoriceSettlement extends.

@markin-io markin-io requested a review from jmg-duarte October 30, 2025 10:41
@squadgazzz squadgazzz enabled auto-merge (squash) October 30, 2025 21:13
@squadgazzz squadgazzz merged commit 13ae5c5 into cowprotocol:main Oct 30, 2025
17 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Oct 30, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants