Skip to content

Conversation

ashwinrava
Copy link
Member

  • Created new hooks: useExecuteSwapQuote, useSwapQuote, useSwapChains and useSwapTokens
  • Updated Bridge component to use swap API instead of legacy quote system
  • Changed quote config to use swap API parameters (originChainId, destinationChainId, inputToken, outputToken, amount, depositor, recipient)
  • Changed token selector to allow any supported input and output token for given chains without depending on route since that's handled internally in the API now

Tested some bridges/swaps and they worked.

USDC bridge:

Screenshot 2025-08-28 at 4 35 01 PM

USDC to AERO destination swap:

Screenshot 2025-09-02 at 4 07 42 PM

Origin txn: https://optimistic.etherscan.io/tx/0x7a2903debf607ab3921a04683d6b4b6e8e1637714df2a2b8cbc82c9e0a0c0b65

Destination txn: https://basescan.org/tx/0xe740a921b241db7c4b313d81bb954450771916d416d71439473041c38c3a4bb8

Copy link

linear bot commented Sep 2, 2025

Copy link

changeset-bot bot commented Sep 2, 2025

⚠️ No Changeset found

Latest commit: f8c81c7

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

Copy link

vercel bot commented Sep 2, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
toolkit-example Ready Ready Preview Comment Sep 3, 2025 10:03pm

Copy link
Collaborator

@dohaki dohaki left a comment

Choose a reason for hiding this comment

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

Code looks great! I would like to test but the Vercel preview deployment doesn't seem to reflect your changes for some reason 🤔
image

@ashwinrava ashwinrava force-pushed the ashwin/acx-4323-migrate-example-app-to-use-swap-quote-method branch from 7460db2 to f8c81c7 Compare September 3, 2025 22:02
@dohaki dohaki self-requested a review September 4, 2025 07:58
Copy link
Collaborator

@dohaki dohaki left a comment

Choose a reason for hiding this comment

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

Great work!

@ashwinrava ashwinrava merged commit 6799df9 into master Sep 4, 2025
3 of 6 checks passed
@ashwinrava ashwinrava deleted the ashwin/acx-4323-migrate-example-app-to-use-swap-quote-method branch September 4, 2025 12:28
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