Skip to content

feat: gasless swap flows #1497

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 62 commits into
base: master
Choose a base branch
from
Draft

feat: gasless swap flows #1497

wants to merge 62 commits into from

Conversation

dohaki
Copy link
Contributor

@dohaki dohaki commented Mar 12, 2025

No description provided.

dohaki and others added 30 commits November 7, 2024 22:22
* feat: add exact output trade type support uniswap

* test with base

* fixup

* fixup

* fixup

* ci: fix dep review

* fixup

* test uniswap universal

* fixup

* test 1inch

* fixup

* fixup
* feat: cross swap quotes resolve uniswap min output

* add test script

* refine min output and leftover tokens handling
* resolve arbitrary token details

* fixup

* use wrapped addresses to resolve native tokens

* create error class, refactor using multicall

* Update api/_utils.ts

Co-authored-by: Dong-Ha Kim <[email protected]>

* validate inputs, add cause to error

---------

Co-authored-by: Dong-Ha Kim <[email protected]>
* feat: build cross swap tx

* fixup

* fixup

* refactor

* fix

* fixup

* fixup

* feat: add leftover handling type

* fixup

* fixup

* review requests
* feat: build cross swap tx

* fixup

* fixup

* refactor

* fix

* fixup

* fixup

* feat: add leftover handling type

* fixup

* fixup

* feat: support native eth as input/output

* review requests

* refactor leftover type into exact_output and min_output for clarity

* add temp swap and bridge typechain binding and use for testing

* fixup
* add utility for parsing query params with coercion for non string values

* extend api to accept tokenAdress & chainId

* bump sdk version

* bump sdk, fix build error

* small refactor

* update sdk
* feat: handle refund on origin flag

* fixup

* allow custom refund address via origin

* fix: refund address for leftovers

* add refundToken to response

* fixup
* feat: recover old `SwapAndBridge` func + more explicit separation to upcoming periphery contract

* fix: drain leftover swap input tokens to refund

* fixup
* update sdk

* measure by input type

* measure by cross swap type

* measure full run of endpoint

* use console instance without global loglevel restriction

* remove unnecessary awaits
dohaki and others added 20 commits December 30, 2024 13:13
* refactor: deposit and swap types

* feat: add base /relay handler

* feat: add qstash and gelato strategy

* re-introduce requestHash

* fixup

* fixup

* fix: addresses

* fixup

* fix: process message

* feat: local signers strategy

* fixup

* fixup

* fixup

* fix: local signer strategy

* cleanup

* fix: error message

* fixup

* review requests
* feat: unified swap endpoint

* refactor: change DEFAULT_PERMIT_DEADLINE to a constant in PermitSwapQueryParamsSchema

* fixup
* refactor: use common hash domain separator

* feat: align response format of all swap handlers

* test: add unified swap endpoint script
* feat: add stablecoins for a2a bridging

* prevent infinite loop 508

* fixup

* another try to prevent 508

* fix: override vercel dev typescript version

* fixup

* fixup

* fixup

* fixup

* use fallback in indicative quote

* use services
This reverts commit 8f281cf.
Copy link

vercel bot commented Mar 12, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
app-frontend-v3 ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 7, 2025 10:01am
sepolia-frontend-v3 ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 7, 2025 10:01am

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