Skip to content

Conversation

@oscarwroche
Copy link

@oscarwroche oscarwroche commented Oct 27, 2025

Explanation

References

Checklist

  • I've updated the test suite for new or updated code as appropriate
  • I've updated documentation (JSDoc, Markdown, etc.) for new or updated code as appropriate
  • I've communicated my changes to consumers by updating changelogs for packages I've changed, highlighting breaking changes as necessary
  • I've prepared draft pull requests for clients and consumer packages to resolve any breaking changes

Note

Replaces IntentManager with a new CrossChain API client for submitting and polling intent orders, adds intent order types/status mapping, and updates history/metrics handling accordingly.

  • BridgeStatusController:
    • Replace @metamask/intent-manager with CrossChain API integration via new IntentApiImpl (submitIntent, getOrderStatus).
    • Update intent polling to fetch status with IntentApiImpl.getOrderStatus using orderId, aggregatorId, and chainId (as strings); remove IntentManager field/setter.
    • Map intent provider statuses (IntentOrderStatus) to TransactionStatus and update corresponding TransactionController entries; merge tx receipts/hashes when available.
    • Maintain intent history entries using intent:-prefixed IDs; consolidate tx hashes from txHash and metadata.txHashes.
    • Minor parameter/data tweaks: use srcChainId.toString(), pass quoteId/order in submission, keep originalTransactionId for syncing.
  • New types/files:
    • Add intent-api.ts (API client), intent-order-status.ts (status enum), and intent-order.ts (order shape).
  • Changelog:
    • Mark breaking change: use CrossChain API instead of intent manager for intent order submission.

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

@oscarwroche oscarwroche force-pushed the wip/intent-swap-architecture-refactoring-with-crosschain-api branch 10 times, most recently from bffb7ca to abcb815 Compare November 3, 2025 17:58
@oscarwroche oscarwroche changed the title Wip/intent swap architecture refactoring with crosschain api feat!: (wip) use crosschain api instead of intent manager for intent order submission Nov 3, 2025
@oscarwroche oscarwroche force-pushed the wip/intent-swap-architecture-refactoring-with-crosschain-api branch from abcb815 to 65963f9 Compare November 3, 2025 19:27
@oscarwroche oscarwroche force-pushed the wip/intent-swap-architecture-refactoring-with-crosschain-api branch from 65963f9 to 490fad2 Compare November 3, 2025 19:29
@oscarwroche oscarwroche force-pushed the wip/intent-swap-architecture-refactoring-with-crosschain-api branch from 48a7cc7 to 1c3bb8b Compare November 4, 2025 10:48
@oscarwroche oscarwroche marked this pull request as ready for review November 4, 2025 11:11
@oscarwroche oscarwroche requested review from a team as code owners November 4, 2025 11:11
@oscarwroche oscarwroche merged commit 2e2ad4c into wip/intent-swap-architecture-refactory Nov 4, 2025
18 of 23 checks passed
@oscarwroche oscarwroche deleted the wip/intent-swap-architecture-refactoring-with-crosschain-api branch November 4, 2025 11:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants