-
Notifications
You must be signed in to change notification settings - Fork 50
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
dohaki
wants to merge
62
commits into
master
Choose a base branch
from
permit-auth-relay
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
feat: gasless swap flows #1497
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
* 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
Co-authored-by: Dong-Ha Kim <[email protected]>
* 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
* 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.
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
No description provided.