Skip to content

Conversation

@Velenir
Copy link
Member

@Velenir Velenir commented Dec 19, 2025

Support for Crosschain Delta Limit Orders


Note

Enhances Delta cross-chain functionality and surfaces bridge metadata.

  • Delta bridge APIs: getBridgeInfo now accepts allowBridgeAndSwap and bridges filters; new getBridgeProtocols returns available bridges (protocol, displayName).
  • Cross-chain pricing: getDeltaPrice supports includeBridges/excludeBridges and allowBridgeAndSwap in query; response typing updated.
  • Types/exports: Export BridgeProtocolResponse; relax BridgePriceInfo.protocolName to string.
  • Tests/snapshots: Add coverage for bridge info/protocols; adjust partnerAndFee expectation (512) and stabilize route snapshots; skip several heavy integration tests.
  • Package: Bump version to 9.3.0 and @paraswap/core to 2.4.1.

Written by Cursor Bugbot for commit 0e5c219. This will update automatically on new commits. Configure here.

@github-actions
Copy link

github-actions bot commented Dec 19, 2025

size-limit report 📦

Path Size
dist/sdk.cjs.production.min.js 15.81 KB (+1.21% 🔺)
dist/sdk.esm.js 15.68 KB (+0.51% 🔺)

@Velenir Velenir marked this pull request as ready for review December 29, 2025 16:45
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR adds support for crosschain delta limit orders by introducing bridge filtering and configuration options.

  • Adds new bridge filtering parameters (includeBridges, excludeBridges) to getDeltaPrice for controlling which bridges can be used
  • Adds allowBridgeAndSwap parameter to control whether swaps on destination chain are allowed after bridging
  • Adds getBridgeProtocols function to retrieve available bridge protocols and enhances getBridgeInfo with filtering capabilities
  • Removes restrictive ProtocolName union type in favor of flexible string type for bridge protocol names

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
package.json Version bump to 9.3.0-dev.1 for new crosschain limit order features
src/methods/delta/helpers/types.ts Changes protocolName from union type to string for flexibility with new bridge protocols
src/methods/delta/getDeltaPrice.ts Adds bridge filtering parameters (includeBridges, excludeBridges, allowBridgeAndSwap) and documentation for bridge-specific fields
src/methods/delta/getBridgeInfo.ts Adds getBridgeProtocols function and enhances getBridgeInfo with filtering parameters
tests/delta.test.ts Adds tests for getBridgeInfo and getBridgeProtocols functions

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines 31 to 34
type BridgeProtocolResponse = {
protocol: string;
displayName: string;
};
Copy link
Contributor

Choose a reason for hiding this comment

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

Let's export this type from SDK? For the consistency with BridgeInfo

Copy link

@cursor cursor bot left a comment

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Bugbot Autofix is OFF. To automatically fix reported issues with Cloud Agents, enable Autofix in the Cursor dashboard.

@Velenir Velenir merged commit 41db4d1 into master Jan 16, 2026
2 of 4 checks passed
@Velenir Velenir deleted the feat/crosschain_LOs branch January 16, 2026 13:11
Copy link

@cursor cursor bot left a comment

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Bugbot Autofix is OFF. To automatically fix reported issues with Cloud Agents, enable Autofix in the Cursor dashboard.

type GetBridgeInfo = (
params?: GetBridgeInfoParams,
requestParams?: RequestParameters
) => Promise<BridgeInfo>;
Copy link

Choose a reason for hiding this comment

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

Breaking API change in getBridgeInfo silently ignores request params

Medium Severity

The getBridgeInfo function signature changed from (requestParams?) to (params?, requestParams?). Existing callers who pass RequestParameters (like { signal: abortController.signal }) as the first argument now have those values interpreted as GetBridgeInfoParams instead. The abort signal and other request options are silently ignored, breaking request cancellation functionality. This is a breaking change introduced in a minor version bump (9.2.1 → 9.3.0).

Additional Locations (1)

Fix in Cursor Fix in Web

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