Skip to content

feat(typescript): Add EVM Swap support for EVM Smart Accounts #165

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

Open
wants to merge 26 commits into
base: main
Choose a base branch
from

Conversation

derek-cb
Copy link
Contributor

@derek-cb derek-cb commented May 29, 2025

Description

Added support for EVM Smart Account swaps:

  • evmSmartAccount.quoteSwap()
  • evmSmartAccount.swap()
  • swapQuote.execute() (for a swap quote generated by an EVM Smart Account)

DevX: see README.md

Miscellaneous:

  • Fixed an IdempotencyError when passing the optional idempotencyKey param into *.swap(), as the same idempotencyKey was being used to sign two subsequent API calls.
  • Added idempotency support for createSwapQuote

Tests

Checklist

A couple of things to include in your PR for completeness:

@cb-heimdall
Copy link

cb-heimdall commented May 29, 2025

🟡 Heimdall Review Status

Requirement Status More Info
Reviews 🟡 0/1
Denominator calculation
Show calculation
1 if user is bot 0
1 if user is external 0
2 if repo is sensitive 0
From .codeflow.yml 1
Additional review requirements
Show calculation
Max 0
0
From CODEOWNERS 0
Global minimum 0
Max 1
1
1 if commit is unverified 0
Sum 1

@derek-cb derek-cb force-pushed the evm-swap-support-smartaccounts branch from bb9a5ea to 551a687 Compare June 11, 2025 20:20
Copy link
Contributor Author

Choose a reason for hiding this comment

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

renamed

@derek-cb derek-cb marked this pull request as ready for review June 12, 2025 18:24
@derek-cb derek-cb requested review from 0xRAG and yuga-cb June 12, 2025 18:24
@derek-cb derek-cb requested a review from 0xRAG June 12, 2025 23:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants