Skip to content
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

feat: integrate Mayan SDK #322

Merged
merged 12 commits into from
Feb 19, 2025
Merged

feat: integrate Mayan SDK #322

merged 12 commits into from
Feb 19, 2025

Conversation

zoli
Copy link
Contributor

@zoli zoli commented Feb 9, 2025

Relates to:

Enables GOAT using Mayan SDK to bridge tokens (Solana <-> EVM)

Background

Mayan is a cross-chain swap auction protocol with the goal of offering the best swap rates using auction mechanism.

What does this PR do?

Adds Mayan plugin introducing 2 tools enabling brige:

  1. From Solana to Solana/EVM/SUI
  2. From EVM to Solana/EVM/SUI

Also can support bridging from SUI but SolanaKeypairWalletClient wasn't exported from @goat-sdk/wallet-sui so I couldn't test it and commented it for now.

Testing

  1. Build and import the plugin
  2. Provide the appropriate wallet regarding the source chain you want to bridge
  3. Execute bridge action

Detailed testing results

Method Prompt Screenshot Transaction Link
Swap from Arbitrum to Polygon swap 20 arb from arbitrum to usdc on polygon receiving at 0xc2d3024d64f27d85e05c40056674Fd18772dd922. 1739103744-wayshot Transaction link
Swap from Solana to Solana swap 0.1 sol from solana to usdt on solana destination address 4ZgCP2idpqrxuQNfsjakJEm9nFyZ2xnT4CrDPKPULJPk 1739111367-wayshot Transaction link
Swap from Solana to SUI swap 0.05 sol from solana to sui on sui receiving at 0xa28f76674a00e9374d0ea31c9a1c4678d2a7ee518cc8dd83505ca18cdc84365b 1739115163-wayshot Transaction link
Swap from Polygon to Arbitrum swap 19 usdc from polygon to usdt on arbitrum receiving at 0xc2d3024d64f27d85e05c40056674Fd18772dd922. 1739268083-wayshot Transaction link

Docs

Added README file for plugin.

For plugins

  • I have tested this change locally with key pair wallets
  • I have tested this change locally with hosted wallets (e.g. Crossmint Smart Wallets, etc.)
  • Package exists in the goat workspace file

Discord username

Copy link

changeset-bot bot commented Feb 9, 2025

⚠️ No Changeset found

Latest commit: e6cf818

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.

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

zoli added 4 commits February 10, 2025 13:03
* main:
  Release packages (goat-sdk#328)
  Feat/safe wallet readme update (goat-sdk#324)
  Fix PlunderSwap plugin API: remove ignored tool parameter. (goat-sdk#313)
@zoli zoli marked this pull request as draft February 11, 2025 09:21
@zoli zoli marked this pull request as ready for review February 11, 2025 10:07
@zoli
Copy link
Contributor Author

zoli commented Feb 11, 2025

I think now the lint and build are fixed. Also added another test (requiring allowance and erc20 permit).

@0xaguspunk 0xaguspunk merged commit f68960d into goat-sdk:main Feb 19, 2025
2 checks passed
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