Skip to content

Conversation

@AryanGodara
Copy link
Member

@AryanGodara AryanGodara commented Dec 16, 2025

Description

Migrates H256B256 and H160Address primitive types in the e2e crate, removing unnecessary .into_alloy() and .into_legacy() conversions where alloy types are now used directly. Also adds EthUnit trait implementation for f64 to enable cleaner fractional ETH expressions like 0.1.eth()

How to test

just test-e2e-local

@AryanGodara AryanGodara self-assigned this Dec 16, 2025
@AryanGodara AryanGodara changed the title Migrate e2e tests to use alloy B256 and Address types Migrate primitive types in e2e crate to alloy Dec 16, 2025
@AryanGodara AryanGodara marked this pull request as ready for review December 17, 2025 05:17
@AryanGodara AryanGodara requested a review from a team as a code owner December 17, 2025 05:17
@AryanGodara AryanGodara changed the title Migrate primitive types in e2e crate to alloy Migrate primitive types in e2e crate to alloy (H256→B256, H160→Address) Dec 17, 2025
@MartinquaXD
Copy link
Contributor

I want to encourage good PR descriptions but having a wall of text to essentially say "replace ethcontract type with alloy version" doesn't seem that helpful.

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.

LGTM. I have nothing to add to Martin's comments.
Let's just try to avoid overly verbose AI-generated PR descriptions in the future.

@AryanGodara
Copy link
Member Author

LGTM. I have nothing to add to Martin's comments. Let's just try to avoid overly verbose AI-generated PR descriptions in the future.

Yes, I was having trouble finding a common goal for this PR, it was basically migrating primitive types from ethcontract to alloy.

But I'll refrain from asking the LLM to summarize the changes from now on 🫡

Fixing the changes for now, and pushing

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.

LGTM small notes only

Replaces ethcontract H256 and H160 types with alloy B256 and Address types in e2e test setup and test files. Removes unnecessary IntoLegacy conversions when calling get_solver_competition, get_orders_for_tx, and get_orders_for_owner methods.

Signed-off-by: Aryan Godara <aryangodara03@gmail.com>
Replaces ethcontract Address and H256 types with alloy Address and B256 types in e2e test setup and test files. Removes unnecessary IntoAlloy and IntoLegacy conversions throughout the codebase. Updates default_pool_code method to use B256::new constructor.

Signed-off-by: Aryan Godara <aryangodara03@gmail.com>
Signed-off-by: Aryan Godara <aryangodara03@gmail.com>
Signed-off-by: Aryan Godara <aryangodara03@gmail.com>
Signed-off-by: Aryan Godara <aryangodara03@gmail.com>
Signed-off-by: Aryan Godara <aryangodara03@gmail.com>
Signed-off-by: Aryan Godara <aryangodara03@gmail.com>
@AryanGodara AryanGodara force-pushed the aryan/migrate-e2e-h256-h160 branch from cbab82c to fbe5849 Compare December 18, 2025 07:16
Signed-off-by: Aryan Godara <aryangodara03@gmail.com>
@AryanGodara AryanGodara added this pull request to the merge queue Dec 18, 2025
Merged via the queue into main with commit 39801e0 Dec 18, 2025
18 checks passed
@AryanGodara AryanGodara deleted the aryan/migrate-e2e-h256-h160 branch December 18, 2025 08:36
@github-actions github-actions bot locked and limited conversation to collaborators Dec 18, 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.

5 participants