Skip to content

chore: Use sdk test utils#2886

Closed
fusmanii wants to merge 17 commits intomasterfrom
faisal/use-sdk-test-utils
Closed

chore: Use sdk test utils#2886
fusmanii wants to merge 17 commits intomasterfrom
faisal/use-sdk-test-utils

Conversation

@fusmanii
Copy link
Copy Markdown
Contributor

@fusmanii fusmanii commented Jan 16, 2026

Follow up after contracts repo test utils have been migrated to sdk in here

Copy link
Copy Markdown
Collaborator

@pxrl pxrl left a comment

Choose a reason for hiding this comment

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

Nice - great to see some more dependencies dropping off!

Comment thread .eslintrc.js
files: ["test/**/*.ts", "hardhat.config.ts", "tasks/*.ts"],
rules: {
"no-restricted-imports": "off",
"node/no-missing-import": "off",
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

@fusmanii Curious on this one - what issue does it solve?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I am importing test utils from "@across-protocol/sdk/test-utils" and the linter doesn't seem to like that, gives me error "@across-protocol/sdk/test-utils" is not found node/no-missing-import

fusmanii and others added 13 commits January 22, 2026 12:30
The SDK's BundleDataClient skips historical deposit queries for fills
with non-infinite fill deadlines. Since current SpokePool contracts
don't allow infinite fill deadlines, the historical query path can't
be triggered with new deposits. Updated tests to expect fills without
in-memory deposits to be marked as invalid rather than found via
historical query.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
The SDK's BundleDataClient skips historical deposit queries for slow
fill requests with non-infinite fill deadlines. Since current SpokePool
contracts don't allow infinite fill deadlines, the historical query
path can't be triggered with new deposits. Updated tests to expect
slow fill requests without in-memory deposits to be marked as invalid
rather than found via historical query.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@@ -697,7 +697,8 @@ describe("Dataworker: Load bundle data", async function () {
const fills = spokePoolClient_2.getFills();
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I think these tests fixes are needed because of this, claude did the heavy lifting here, ptal

@fusmanii fusmanii marked this pull request as ready for review February 5, 2026 18:50
@fusmanii fusmanii requested a review from pxrl February 5, 2026 18:50
@fusmanii fusmanii closed this Feb 23, 2026
@pxrl pxrl deleted the faisal/use-sdk-test-utils branch March 20, 2026 15:03
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.

2 participants