-
Notifications
You must be signed in to change notification settings - Fork 791
Feature/add sanctum #342
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
Feature/add sanctum #342
Conversation
e437314
to
54c7ac2
Compare
54c7ac2
to
3648153
Compare
@thearyanag @michaelessiet As you may know, Sanctum is not deployed on Devnet. All tests were conducted on Mainnet. Please refer to the Solscan link. |
@thearyanag @michaelessiet Can review? |
b4fa23a
to
c1ec632
Compare
@thearyanag @michaelessiet Any feedback plz? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Copilot reviewed 30 out of 30 changed files in this pull request and generated 4 comments.
fef3367
to
b35e9e9
Compare
9b1781f
to
d49cd21
Compare
commit f4693a3233974c1b2ebd5b54e304d40cea2bc017 Merge: f566471d 2dfece7b Author: aryan <[email protected]> Date: Mon May 5 21:10:40 2025 +0530 fix: metaplex nft collection creation and nft creation (#407) # Pull Request Description This PR fixes the failure when launching an NFT and an NFT collection. It was identified by @scriptscrypt ## Changes Made This PR adds the following changes: <!-- List the key changes made in this PR --> - Update transaction signing and sending of multiple transactions - Partially sign nft creation and collection creation transactions with the asset and collection signers respectively ## Transaction executed by agent <!-- If applicable, provide example usage, transactions, or screenshots --> Example transaction: https://solscan.io/tx/3CvYHSMViM5cJPCBL2tkjkKRcLzNRT4kXHM62G2Xnd2kZHTbaa6np63pJV6Ts72Y9oThhZaFP87AzU8eWF2ySCVM ## Prompt Used <!-- If relevant, include the prompt or configuration used --> ``` please create an NFT colleciton using this metadata URI https://gateway.pinata.cloud/ipfs/QmPmu3ZkKSBPJqBJaAaVBuj5M8JprJCT6xBZUDfmZUnv2s , and name "test" use default values for all other fields ``` ## Checklist - [x] I have tested these changes locally - [ ] I have updated the documentation - [x] I have added a transaction link - [x] I have added the prompt used to test it commit 2dfece7b8c852d6ae5c81cf5b1a9209e7ca14818 Author: michaelessiet <[email protected]> Date: Mon May 5 16:26:17 2025 +0100 fix: metaplex nft collection creation and nft creation commit f566471d0fa6a2ecac6a27798544d94a68a6d817 Merge: 181f7e57 11a1696b Author: aryan <[email protected]> Date: Sat May 3 03:42:38 2025 +0400 chore: version (#405) commit 11a1696b488c3ffb843b50e77b510c5d9bfee5fd Author: aryan <[email protected]> Date: Fri May 2 14:37:23 2025 +0400 chore: version commit 181f7e57aa99187cbfbbfdb834ceab8ec7fcb5ff Merge: 542688c4 a975cc03 Author: aryan <[email protected]> Date: Thu May 1 02:01:51 2025 +0530 persistent-agent (#387) # Pull Request Description It is an example of persistent agent which remembers the chats even after the agent is restarted It uses a PostgresDB in LangChain. I checked all changed locally, we can simply do pnpm run dev and see that it remembers the chats. Added docs in the README file of this example ## Checklist - [x] I have tested these changes locally - [x ] I have updated the documentation - [ ] I have added a transaction link - [x] I have added the prompt used to test it commit 542688c4ea32e43540c646b520f4fa88c76de62f Merge: 8cd3a7f4 c0f11d71 Author: aryan <[email protected]> Date: Thu May 1 02:01:12 2025 +0530 fix: json import attribute in mayan finance plugin (#403) # Pull Request Description This fixes an issue pointed out by @scriptscrypt when testing with `mjs` or just normal `js` files with type set to module. It adds a import attribute assertion to the ERC20Permit.json import in the mayan finance swap plugin. ## Changes Made This PR adds the following changes: <!-- List the key changes made in this PR --> - Add the `with {type: "json"}` import assertion - I needed to change the compiler options target for the `esm` build to `esnext` in order for the import assertions to be bundled into the tsup result. ## Checklist - [x] I have tested these changes locally - [ ] I have updated the documentation - [ ] I have added a transaction link - [ ] I have added the prompt used to test it commit c0f11d717e1a76f8d7b5b53996d6aa6ab3d497f2 Merge: c2c69b19 8cd3a7f4 Author: Michael Essiet <[email protected]> Date: Wed Apr 30 19:22:36 2025 +0100 Merge branch 'v2' into fix/json-import-attribute commit 8cd3a7f457a9f8e4f2769e3022408f66d46ea11a Merge: 98cd9ca2 ede8cbaf Author: Michael Essiet <[email protected]> Date: Wed Apr 30 19:22:13 2025 +0100 Tg-bot-starter example (#404) # Pull Request Description All Tg-bot starter examples for sak v2 done. Tested locally all of them and docs in respective readme. ## Checklist - [x] I have tested these changes locally - [x] I have updated the documentation - [ ] I have added a transaction link - [ ] I have added the prompt used to test it commit ede8cbaf0da9853da420a1db0f335cc1e3c6b63a Author: Arpit Singh Bhatia <[email protected]> Date: Wed Apr 30 22:03:28 2025 +0530 Minor changes commit c2c69b1943808e9073f01e8b539e66bb3087f62e Author: michaelessiet <[email protected]> Date: Mon Apr 28 22:48:43 2025 +0100 fix: json import attribute in mayan finance plugin commit 98cd9ca278e68aaa35e14f96eb503755ca9dc517 Merge: 08d02015 72bc7d99 Author: aryan <[email protected]> Date: Fri Apr 25 16:37:41 2025 +0530 Fix broken LangGraph docs link (#401) Replaced outdated LangGraph documentation link (/docs/modules/graphs) with a working one: https://js.langchain.com/docs/tutorials/graph The previous link returned a 404 error. commit 72bc7d9913d130bd2bc263877cee1e98c256bae0 Author: PixelPilot <[email protected]> Date: Fri Apr 25 11:52:19 2025 +0200 Update langgraph.mdx commit 08d02015852b764130b8136c814bf3c42464e4d8 Merge: 693b463c bcac37cc Author: aryan <[email protected]> Date: Thu Apr 24 16:29:05 2025 +0530 fix: remove tiplink (#400) # Pull Request Description This PR removes tiplink from the miscellaneous plugin as it breaks it in the browser. ## Changes Made This PR adds the following changes: <!-- List the key changes made in this PR --> - The PR removes the tiplink directory and all children files - Removed the tiplink/api package ## Checklist - [x] I have tested these changes locally - [x] I have updated the documentation - [ ] I have added a transaction link - [ ] I have added the prompt used to test it commit 693b463c7ea33af9f467bef50c205159bb0a9da6 Merge: 43585d93 3046289e Author: aryan <[email protected]> Date: Thu Apr 24 12:59:17 2025 +0530 Feat: docs for Sanctum & Ranger (#396) # Pull Request Description Docs added for Ranger.finance and Sanctum ## Changes Made This PR adds the following changes: - added mdx files for both - and linked in docs.json ## Checklist - [x] I have tested these changes locally - [x] I have updated the documentation commit bcac37cc6fb0a68c5a4af1fec0d9ea5fadcb117c Merge: c7c81c16 43585d93 Author: michaelessiet <[email protected]> Date: Wed Apr 23 22:27:15 2025 +0100 merge v2 commit c7c81c1677ce8c8102b030f14f73b816cf8722a3 Author: michaelessiet <[email protected]> Date: Wed Apr 23 22:25:19 2025 +0100 chore: remove tiplink from readme commit f75bcb52d9338ce02c62ba73848a04bba5e6bebc Author: michaelessiet <[email protected]> Date: Wed Apr 23 22:22:43 2025 +0100 fix: turbo config and some other things commit 43585d93f39318c091dc55fa7d0d0a8e37bdc416 Merge: e4623677 431ee239 Author: aryan <[email protected]> Date: Thu Apr 24 02:39:42 2025 +0530 chore: migration and philosophy guide (#393) # Pull Request Description This PR adds the migration and philosophy guide ## Changes Made This PR adds the following changes: <!-- List the key changes made in this PR --> - Add a MIGRATING.md file that addresses the key differences between V1 and V2 and how to migrate commit e462367795ccf271a59ab4d92f1d69c935ca063a Merge: 1bd2880f b43ffb99 Author: aryan <[email protected]> Date: Thu Apr 24 02:37:35 2025 +0530 fix: upgrade cks-systems/manifest-sdk package version (#397) # Pull Request Description This PR bumps up the version of cks-systems/manifest-sdk package to one that properly references the esm module commit 6f894d0472644078b44aee34ee8e49d3d1c9e09f Author: michaelessiet <[email protected]> Date: Wed Apr 23 22:07:08 2025 +0100 fix: remove tiplink commit 3046289e33f366c9b65f44965aff9c921ccade87 Merge: 45a3dedb 1bd2880f Author: Michael Essiet <[email protected]> Date: Wed Apr 23 21:20:10 2025 +0100 Merge branch 'v2' into v2 commit b43ffb9970dd0073c181951ea93e702ed60edb51 Merge: 4007c601 1bd2880f Author: Michael Essiet <[email protected]> Date: Wed Apr 23 21:19:36 2025 +0100 Merge branch 'v2' into fix/defi-browser-compat commit 1bd2880f96c3b9c667009617d91f24e020c64ec1 Merge: f35038d2 d09684cc Author: Michael Essiet <[email protected]> Date: Wed Apr 23 10:48:32 2025 +0100 Replace broken Jupiter token-list API link with updated token API docs (#398) Ensures users and developers are guided to valid, up-to-date API documentation. Prevents 404 errors and improves reliability of resources listed in the docs. commit d09684cc43cb9d0363ce33108240585cbb308153 Author: NeoByteX <[email protected]> Date: Wed Apr 23 10:44:55 2025 +0200 Update rugcheck_token_retrieval.mdx commit 4007c60113c6143b6dbd925ff8d5a05ba6bcc129 Author: michaelessiet <[email protected]> Date: Tue Apr 22 21:45:35 2025 +0100 fix: upgrade cks-systems/manifest-sdk package version commit 45a3dedb5317ebe9ca49bca1747fd5d80e7fb332 Author: Scriptscrypt <[email protected]> Date: Tue Apr 22 15:54:09 2025 +0530 Fix: typos & add tools to plugin readme commit 4b484d6acfbfc5b9d3d28a5ca913749630a95349 Author: Scriptscrypt <[email protected]> Date: Tue Apr 22 15:42:28 2025 +0530 Feat: docs for Sanctum & Ranger commit f35038d2584792759be601aa5c16016fa37253a5 Merge: 6f11e066 338c3cd3 Author: aryan <[email protected]> Date: Tue Apr 22 14:56:39 2025 +0530 feat: add ranger.finance integration (#391) # Ranger Integration https://ranger.finance/ ## Changes Made This PR adds the following changes: - Implements a full actions for the Ranger API in `packages/plugin-defi/src/ranger` - Adds all SOR (write/trade) and Data API (read) actions as individual files with Zod schemas and async handlers - Exports all actions from `actions/index.ts` for easy integration - Exports all tools (schemas and handlers) from `tools/index.ts` for agentic workflows - Updates the `README.md` with a full list of features, usage examples, and documentation links ## Implementation Details - Each Ranger API endpoint is implemented as a separate action file, following the structure and style of the Adrena plugin - All actions use Zod for input validation and provide minimal, correct async handlers for HTTP calls - The `actions/index.ts` and `tools/index.ts` files export all available actions and tools for discoverability and agent compatibility - The `README.md` is updated to reflect all available actions, setup instructions, and usage examples ## Transaction executed by agent Example transaction: ```ts const quote = await getQuote({ fee_payer: 'YOUR_PUBLIC_KEY', symbol: 'SOL', side: 'Long', size: 1.0, collateral: 10.0, size_denomination: 'SOL', collateral_denomination: 'USDC', adjustment_type: 'Increase', }, process.env.RANGER_API_KEY); ``` ## Additional Notes - All endpoints are currently set to use the staging Ranger API URLs. Update these to production as needed. - The structure is modular and ready for further extension or integration with agentic workflows. ## Checklist - [x] I have tested these changes locally - [x] I have updated the documentation - [x] I have added a transaction link - [x] I have added the prompt used to test it commit 338c3cd3e7940cef0e8f5045440b45fc406b0604 Author: YK <[email protected]> Date: Tue Apr 22 02:06:54 2025 -0700 Discard changes to packages/plugin-defi/src/flash/tools/flash_close_trade.ts commit 6f11e06668df4f4182593fbf7a4ad0b69e6e03d3 Merge: d80e809e ca471a83 Author: Michael Essiet <[email protected]> Date: Tue Apr 22 10:02:27 2025 +0100 fix: helius `getAssetsByOwner` (#395) # Fix Helius `GetAssetsByOwner` api tool ## Related Issue Fixes #323 ## Changes Made This PR adds the following changes: <!-- List the key changes made in this PR --> - add types for option params for the endpoint - fix static value of the api params ## Transaction executed by agent sample script `test.ts`(place under `plugin-misc`) ```ts import { Keypair, PublicKey } from "@solana/web3.js"; import { SolanaAgentKit, KeypairWallet } from "solana-agent-kit"; import { getAssetsByOwner } from "./src/helius/tools"; // Generate a new keypair for testing const keypair = Keypair.generate(); const wallet = new KeypairWallet(keypair, process.env.RPC_URL!); const agent = new SolanaAgentKit(wallet, process.env.RPC_URL!, { OPENAI_API_KEY: process.env.OPENAI_API_KEY!, HELIUS_API_KEY: process.env.HELIUS_API_KEY!, }); (async () => { try { const assets = await getAssetsByOwner( agent, new PublicKey("8341f191d8310e8a3118a7e8a7742c1b4fa34270"), 100 ); console.log(assets); } catch (error) { console.error("Error:", error); } })(); ``` and run it from root wih `.env` ```zsh npx dotenvx run -- tsx packages/plugin-misc/test.ts ``` <details> <summary>confirmed response</summary> ```js [ { interface: 'FungibleToken', id: 'J1toso1uCk3RLmjorhTtrVwY9HJ7X8V9yYac6Y7kGCPn', content: { '$schema': 'https://schema.metaplex.com/nft1.0.json', json_uri: 'https://storage.googleapis.com/token-metadata/JitoSOL.json', files: [Array], metadata: [Object], links: [Object] }, authorities: [ [Object] ], compression: { eligible: false, compressed: false, data_hash: '', creator_hash: '', asset_hash: '', tree: '', seq: 0, leaf_id: 0 }, grouping: [], royalty: { royalty_model: 'creators', target: null, percent: 0, basis_points: 0, primary_sale_happened: false, locked: false }, creators: [], ownership: { frozen: false, delegated: false, delegate: null, ownership_model: 'token', owner: '86oHY5tUBn4gqHSQAZJSUX6MU7WJVpg8bn8MZ4jKEb63' }, supply: null, mutable: true, burnt: false, token_info: { token_accounts: [Array], symbol: 'JitoSOL', balance: 682235891, supply: 14494553869703636, decimals: 9, token_program: 'TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA', associated_token_address: 'AZfTreEEgtCyoCwXZNY4nzYX49QaBPt8TfvX59yMvzaV', price_info: [Object], mint_authority: '6iQKfEyhr3bZMotVkW6beNZz5CPAkiwvgV2CTje9pVSS' } }, { interface: 'FungibleToken', id: 'GMzuntWYJLpNuCizrSR7ZXggiMdDzTNiEmSNHHunpump', content: { '$schema': 'https://schema.metaplex.com/nft1.0.json', json_uri: 'https://ipfs.io/ipfs/QmSgJWjQvWp8hrGM92sH2WwJPQHWWTShmbs6eatcwUYptF', files: [Array], metadata: [Object], links: [Object] }, authorities: [ [Object] ], compression: { eligible: false, compressed: false, data_hash: '', creator_hash: '', asset_hash: '', tree: '', seq: 0, leaf_id: 0 }, grouping: [], royalty: { royalty_model: 'creators', target: null, percent: 0, basis_points: 0, primary_sale_happened: false, locked: false }, creators: [], ownership: { frozen: false, delegated: false, delegate: null, ownership_model: 'token', owner: '86oHY5tUBn4gqHSQAZJSUX6MU7WJVpg8bn8MZ4jKEb63' }, supply: null, mutable: false, burnt: false, token_info: { token_accounts: [Array], symbol: 'dreams', balance: 3835442512, supply: 999772590700002, decimals: 6, token_program: 'TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA', associated_token_address: '2StgXonSY9YMkF2zPnRGUBvn8KL92vH33Ca4s5yW9ykK', price_info: [Object] } }, { interface: 'FungibleToken', id: 'FtUEW73K6vEYHfbkfpdBZfWpxgQar2HipGdbutEhpump', content: { '$schema': 'https://schema.metaplex.com/nft1.0.json', json_uri: 'https://ipfs.io/ipfs/QmVpqYB7nzSKmpzcCS2MYSi9f2mmd8gDhQK1BQ46ft5bna', files: [Array], metadata: [Object], links: [Object] }, authorities: [ [Object] ], compression: { eligible: false, compressed: false, data_hash: '', creator_hash: '', asset_hash: '', tree: '', seq: 0, leaf_id: 0 }, grouping: [], royalty: { royalty_model: 'creators', target: null, percent: 0, basis_points: 0, primary_sale_happened: false, locked: false }, creators: [], ownership: { frozen: false, delegated: false, delegate: null, ownership_model: 'token', owner: '86oHY5tUBn4gqHSQAZJSUX6MU7WJVpg8bn8MZ4jKEb63' }, supply: null, mutable: false, burnt: false, token_info: { token_accounts: [Array], symbol: 'titcoin', balance: 4733011126, supply: 999505193154424, decimals: 6, token_program: 'TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA', associated_token_address: '6KQLdKqBJW6SeFGKp279jCQmH27Ra2M2WmrQ7syo4LLj', price_info: [Object] } } ] ``` </details> ## Additional Notes <!-- Any additional information that reviewers should know --> ## Checklist - [x] I have tested these changes locally - [ ] I have updated the documentation - [ ] I have added a transaction link - [ ] I have added the prompt used to test it commit ca471a83df3745f4256bead0e2c091e5014da62b Merge: b7302e83 d80e809e Author: Michael Essiet <[email protected]> Date: Tue Apr 22 10:01:57 2025 +0100 Merge branch 'v2' into fix/getAssetsByOwner commit 1186dd42e5ea5fd2747e1c1a41ce97c7ad5734e1 Author: Yong Kang <[email protected]> Date: Tue Apr 22 15:40:02 2025 +0800 revert commit eb8178433eb1e566b9de8859001fc6c6719e12ae Author: Yong Kang <[email protected]> Date: Tue Apr 22 15:39:14 2025 +0800 revert commit aec42d7605d9497dfe6ed0b58cb55c16f0f25c3e Author: Yong Kang <[email protected]> Date: Tue Apr 22 08:44:18 2025 +0800 docs: enhance README with visual elements and branding for Ranger Finance Plugin commit da77743a81baae0a050bdd35d4e3f84c058644ac Merge: c2a5bed8 d80e809e Author: YK <[email protected]> Date: Mon Apr 21 17:41:17 2025 -0700 Merge branch 'v2' into v2 commit c2a5bed8cee94c88a22116e4ef35e0318d1172ab Author: Yong Kang <[email protected]> Date: Mon Apr 21 22:47:16 2025 +0800 feat: implement SOR API integration for trading actions in Ranger - Added API calls for opening, closing, increasing, and decreasing perp trades. - Implemented balance and collateral withdrawal actions using SOR API. - Enhanced error handling for API responses and transaction signing process. - Updated function signatures to include API key and adjusted parameters for improved clarity. commit 49e694f1e59bedcb355b37de4b35dea1dbaf2293 Author: Yong Kang <[email protected]> Date: Mon Apr 21 21:50:10 2025 +0800 fix: apply message pattern Calls the SOR API endpoint Decodes the base64 transaction message Deserializes it to a Solana transaction Adds a recent blockhash Signs and sends the transaction Returns the transaction signature and meta commit afa312e034c91f5bd945f07e897c24133b86ed5f Author: Yong Kang <[email protected]> Date: Mon Apr 21 21:28:27 2025 +0800 feat: update action handlers in Ranger API to use SolanaAgentKit type for improved type safety commit d80e809eb31f285503d2993d15d7888439aca189 Merge: 41df7436 3f5244db Author: Michael Essiet <[email protected]> Date: Mon Apr 21 12:16:17 2025 +0100 Fix Typographical Errors and Update Method Names (#385) ### Description This pull request addresses several minor issues in the codebase: 1. **README.md**: Corrected the method name from `deployToken2022` to `deployToken2022` to ensure consistency and prevent potential errors during execution. 2. **flashUtils.ts**: Fixed a typo in the property name `perpComposabilityProgramId` to `perpComposabilityProgramId` for accurate reference to the configuration object. 3. **sanctum_remove_liquidity.ts**: Corrected the JSDoc comment from `transaction` to `transaction` to maintain proper documentation standards. These changes are intended to improve code readability and prevent potential issues related to incorrect method or property names. commit 3f5244dbe76413535a4119abb340bfa32f84627d Merge: b79a0fcb 41df7436 Author: Michael Essiet <[email protected]> Date: Mon Apr 21 12:15:10 2025 +0100 Merge branch 'v2' into v2 commit 41df7436975708f4b8d7123bca371fe07ef57f8b Merge: 8b888a79 7d367d2e Author: Michael Essiet <[email protected]> Date: Mon Apr 21 12:12:24 2025 +0100 Fix: adapter mcp in docs (#394) # Pull Request Description Fixed wrong npm pacakge in docs for mcp ## Related Issue Fixes # (issue number) ## Changes Made This PR adds the following changes: <!-- List the key changes made in this PR --> - - ## Implementation Details <!-- Provide technical details about the implementation --> - - ## Transaction executed by agent <!-- If applicable, provide example usage, transactions, or screenshots --> Example transaction: ## Prompt Used <!-- If relevant, include the prompt or configuration used --> ``` ``` ## Additional Notes <!-- Any additional information that reviewers should know --> ## Checklist - [ ] I have tested these changes locally - [ ] I have updated the documentation - [ ] I have added a transaction link - [ ] I have added the prompt used to test it commit 431ee23935583cd36b5149393ade922674f1b1fe Author: michaelessiet <[email protected]> Date: Mon Apr 21 12:08:41 2025 +0100 fix: createPlugin funciton is not neeeded commit b7302e83393441d8810a8ea6b5c13da71ac2663e Author: Asuma Yamada <[email protected]> Date: Mon Apr 21 17:08:34 2025 +0900 fix: lint commit b0947983e47e8695d4e36bd9fa3e3463550612b4 Author: Asuma Yamada <[email protected]> Date: Mon Apr 21 17:07:17 2025 +0900 fix: default options commit 9fbb1ac737f809d008f5305fb4fd5e07a0a061b4 Author: Asuma Yamada <[email protected]> Date: Mon Apr 21 17:02:01 2025 +0900 fix: format commit 23d1bd18cf6e15f1f9f7b35eb98ca4548cf95f19 Author: Asuma Yamada <[email protected]> Date: Mon Apr 21 17:00:49 2025 +0900 fix: param and type for getAssetsByOwner commit 7d367d2ea3ed777a26eed0688df31df4cce5fd40 Author: Scriptscrypt <[email protected]> Date: Sun Apr 20 09:57:54 2025 +0530 Fix: quickstarts with typos commit c8613df4b8e97a4dc9608957df7c0aeded39496e Author: Scriptscrypt <[email protected]> Date: Sat Apr 19 22:53:48 2025 +0530 Fix: added MCP npm pacage commit 0a06c1a8e0102cbda568180dc17ada689bbaa7df Author: Scriptscrypt <[email protected]> Date: Sat Apr 19 22:35:33 2025 +0530 Fix: adapter mcp commit 1d97f7e5c130ddbb578d50a0c8189d9f2a2b3d91 Author: michaelessiet <[email protected]> Date: Fri Apr 18 22:22:26 2025 +0100 chore: migration and philosophy guide commit 85e3fec0b6d6b8a46aa66cd4a3480c5ee03bba0b Author: Yong Kang <[email protected]> Date: Fri Apr 18 21:03:45 2025 +0800 feat: implement action handlers for funding rates and liquidations in Ranger API with context interfaces commit d3d8e695ccce2a77062c24da9d5288c6d4fdb4bb Author: Yong Kang <[email protected]> Date: Fri Apr 18 20:03:15 2025 +0800 feat: enhance Ranger API actions with context interfaces and improved type definitions commit 40660788eb912958a6eb1099d1f0de287715b940 Author: Yong Kang <[email protected]> Date: Fri Apr 18 19:40:12 2025 +0800 docs: update README to reflect Ranger Finance Plugin for Solana Agent Kit commit c9f72bae4ef7e90531632c5d2f15e543757693f6 Author: Yong Kang <[email protected]> Date: Fri Apr 18 19:38:37 2025 +0800 feat: implement action handlers for position management and balance withdrawals in Ranger API commit 5cf971626c2ab7781484a283a088cc2f5527b915 Author: Yong Kang <[email protected]> Date: Fri Apr 18 19:27:09 2025 +0800 feat: refactor API base URLs for ranger actions to use environment variables commit f5960f656fc018d8da54b0353d6b7ef14a79ce31 Author: Yong Kang <[email protected]> Date: Fri Apr 18 19:01:18 2025 +0800 feat: add new actions and tools for position management and funding rates commit 42db6d7cd3c781915c1f8dbd7941012af6fdb227 Author: Yong Kang <[email protected]> Date: Fri Apr 18 19:00:06 2025 +0800 feat: ranger.finance integration commit 8b888a79b56a9c392a634c89ec187c3d1c68925b Merge: 46a7faed 0233bf85 Author: aryan <[email protected]> Date: Fri Apr 18 02:04:21 2025 +0530 Fix: docs (#389) # Pull Request Description ## Related Issue Fixes # (issue number) ## Changes Made This PR adds the following changes: <!-- List the key changes made in this PR --> - - ## Implementation Details <!-- Provide technical details about the implementation --> - - ## Transaction executed by agent <!-- If applicable, provide example usage, transactions, or screenshots --> Example transaction: ## Prompt Used <!-- If relevant, include the prompt or configuration used --> ``` ``` ## Additional Notes <!-- Any additional information that reviewers should know --> ## Checklist - [ ] I have tested these changes locally - [ ] I have updated the documentation - [ ] I have added a transaction link - [ ] I have added the prompt used to test it commit 0233bf85ddb8f5cbf8b36926824b33ee1dced3a1 Author: Scriptscrypt <[email protected]> Date: Fri Apr 18 01:30:38 2025 +0530 Fix: typo commit ad10bccfdbf88679cc99807f3db3beff2e626244 Author: Scriptscrypt <[email protected]> Date: Fri Apr 18 01:25:11 2025 +0530 Fix: phantom in readme commit 5c76cc8672c12c2489813c00708a191b16b63a80 Author: Scriptscrypt <[email protected]> Date: Fri Apr 18 01:15:14 2025 +0530 Fix: demos in docs commit 16d63fedf2794c57d64b33ccf22e24510bb2e9a4 Author: Scriptscrypt <[email protected]> Date: Fri Apr 18 00:49:53 2025 +0530 Fix: docs commit 46a7faed3e2c853b3dee4e783696fc1353e6a097 Merge: 8dc59d94 d71beb7b Author: aryan <[email protected]> Date: Thu Apr 17 22:11:20 2025 +0530 feat: phantom (#388) # Pull Request Description Add phantom support commit d71beb7b59fb8e98010b6eb4766e4fa7304f24a2 Author: aryan <[email protected]> Date: Thu Apr 17 22:08:46 2025 +0530 feat: phantom commit a975cc039c492c58a9dc77540be72495b3da88f1 Author: Arpit Singh Bhatia <[email protected]> Date: Thu Apr 17 20:34:22 2025 +0530 persistent agent commit 095f54106eca6e31c67e01790e8be822179c79ea Author: Arpit Singh Bhatia <[email protected]> Date: Thu Apr 17 20:31:29 2025 +0530 persistent-agent commit 8dc59d94f63cf1726ed0b36ffcfde37497a0c5cd Merge: cbb63007 fb9465f7 Author: aryan <[email protected]> Date: Thu Apr 17 19:34:57 2025 +0530 v2:fix: Login for crossmint example (#386) # Pull Request Description This PR fixes an issue with the crossmint v2 example identified by @scriptscrypt and I during testing. ## Changes Made This PR adds the following changes: <!-- List the key changes made in this PR --> - Sign user into database once crossmint sign in is successful - Add missing packages to packages.json ## Checklist - [x] I have tested these changes locally - [ ] I have updated the documentation - [ ] I have added a transaction link - [ ] I have added the prompt used to test it commit fb9465f70122ad71184276634a0139aae9863deb Author: michaelessiet <[email protected]> Date: Thu Apr 17 14:04:38 2025 +0100 fix: crossmint example commit b79a0fcbb485183e9be88c1b3791cb7ffef6859d Author: leopardracer <[email protected]> Date: Thu Apr 17 15:21:12 2025 +0300 Update sanctum_remove_liquidity.ts commit 5db942996ceb9ec791d99ab3a16dba77d3531646 Author: leopardracer <[email protected]> Date: Thu Apr 17 15:18:54 2025 +0300 Update flashUtils.ts commit 84fd2e0e62ad3f262209c4c676449704adf23450 Author: leopardracer <[email protected]> Date: Thu Apr 17 15:17:52 2025 +0300 Update README.md commit cbb63007a290fa989818529e40c36e90861a9970 Author: aryan <[email protected]> Date: Thu Apr 17 16:28:39 2025 +0530 fix: pnpm lock files outdated commit 2011871247438da5e3d898b61cb05002dba9fad9 Author: aryan <[email protected]> Date: Thu Apr 17 16:20:56 2025 +0530 fix: readme commit 18986087b3830903e3436d81914f10ed876ba16a Merge: 3c28e773 6499be3b Author: aryan <[email protected]> Date: Thu Apr 17 16:11:58 2025 +0530 feat: v2 (#384) # Pull Request Description v2 commit 6499be3b7e28eca4b0430120e7a3d1f767eb3d84 Author: aryan <[email protected]> Date: Thu Apr 17 16:08:29 2025 +0530 feat: v2 commit 3c28e773e02be2e798eb306eb990136b8fc87c77 Merge: 622731de bff9843f Author: aryan <[email protected]> Date: Thu Apr 17 15:37:43 2025 +0530 feat: add an example for privy server wallets using nextjs (#383) # Pull Request Description This PR adds an example for building an agent using privy server wallets, SAK and nextjs ## Changes Made This PR adds the following changes: <!-- List the key changes made in this PR --> - Added the privy server wallet example to the examples/misc directory ## Implementation Details <!-- Provide technical details about the implementation --> - In the privy server wallet example, I made use of SAK on the server as opposed to on the client like it is used in the embedded wallet examples - The wallets are all managed by privy and are assigned based on unique user IDs and wallet IDs in postgres database ## Transaction executed by agent <!-- If applicable, provide example usage, transactions, or screenshots --> Example transaction: https://solscan.io/tx/5mDp5eCE3n9ospGBV2Hir2o4GaZt7PMSd3Q4pYCWvaZTHapf3LmzzKQdZWLEcr7VUFW3H9ZHFDAGbQ5cbRURUnAQ ## Prompt Used <!-- If relevant, include the prompt or configuration used --> ``` What is my wallet address ``` ``` Send 0.05 SOL to <x-address> ``` ## Additional Notes <!-- Any additional information that reviewers should know --> ## Checklist - [x] I have tested these changes locally - [x] I have updated the documentation - [x] I have added a transaction link - [x] I have added the prompt used to test it commit bff9843fbc525f95897b0960c20f3efea7608ce3 Author: michaelessiet <[email protected]> Date: Thu Apr 17 11:04:14 2025 +0100 chore: docs commit 622731de284791ad64149bd1ec56894ccda46cfa Author: aryan <[email protected]> Date: Thu Apr 17 15:29:17 2025 +0530 feat: demo n9n commit efcba8e3c27be0ce3dcb6cb4d69d1a6947bad1f7 Author: michaelessiet <[email protected]> Date: Thu Apr 17 10:51:03 2025 +0100 feat: add an example for privy server wallets using nextjs commit 39589abdaeea2bdf7366b94e686415a7bc3b4746 Author: aryan <[email protected]> Date: Thu Apr 17 15:11:58 2025 +0530 feat: turnkey demo commit ce1cfccc5d5ca3954b0af588490b9e7dbc1ca963 Author: aryan <[email protected]> Date: Thu Apr 17 15:05:30 2025 +0530 feat: RN demo commit 0519a02a9039c244354f573dba4c79ded965272a Author: aryan <[email protected]> Date: Thu Apr 17 14:51:21 2025 +0530 fix: video demo commit a00e832867c0b9d54808d25ff0337770ae15b152 Merge: 84d170d2 085d9428 Author: aryan <[email protected]> Date: Thu Apr 17 14:13:38 2025 +0530 Docs and UI enhancement for Privy Starter (#377) # Pull Request Description ## Related Issue Fixes # (issue number) ## Changes Made This PR adds the following changes: <!-- List the key changes made in this PR --> - - ## Implementation Details <!-- Provide technical details about the implementation --> - - ## Transaction executed by agent <!-- If applicable, provide example usage, transactions, or screenshots --> Example transaction: ## Prompt Used <!-- If relevant, include the prompt or configuration used --> ``` ``` ## Additional Notes <!-- Any additional information that reviewers should know --> ## Checklist - [ ] I have tested these changes locally - [ ] I have updated the documentation - [ ] I have added a transaction link - [ ] I have added the prompt used to test it commit 085d9428c429c362d37c3d62b040d1c770e0dc8e Merge: a0037901 84d170d2 Author: Srinivasa <[email protected]> Date: Thu Apr 17 01:45:41 2025 +0530 Merge branch 'v2' into docs-sak-v2 commit a00379015502ec24e3657206b7019000df10078e Author: Scriptscrypt <[email protected]> Date: Thu Apr 17 01:39:28 2025 +0530 Fix: lock file commit 84d170d24ee2fafb4263ea73ac3166bbfe28173e Merge: 7f949c8b 8d8f9b06 Author: aryan <[email protected]> Date: Thu Apr 17 01:18:49 2025 +0530 example/privy-sak-rn-expo (#379) # Pull Request Description ## Related Issue Fixes # (issue number) ## Changes Made This PR adds the following changes: <!-- List the key changes made in this PR --> - Example app using solana-agent-kit v2, privy as auth provider and openAI as model provider ## Implementation Details <!-- Provide technical details about the implementation --> - Tech Stack: React Native, Expo, Node and MongoDb - ## Checklist - [y] I have tested these changes locally - [y] I have updated the documentation commit 7f949c8bcaaae888e0d19b0a9dc975b6b3db2a9b Merge: 2cd45071 a2c3bc4b Author: aryan <[email protected]> Date: Thu Apr 17 01:09:54 2025 +0530 v2:fix: axios incompatibility in React Native (#380) # Pull Request Description This PR fixes an issue identified by Aryan and I when testing the expo example template. ## Changes Made This PR adds the following changes: <!-- List the key changes made in this PR --> - Uninstall axios and replace it with redaxios - Replace axios imports with redaxios imports for files in the packages dir ## Checklist - [x] I have tested these changes locally - [ ] I have updated the documentation - [ ] I have added a transaction link - [ ] I have added the prompt used to test it commit 55142216b82cc1b04331d79d695b553bd8cbfc46 Author: Scriptscrypt <[email protected]> Date: Thu Apr 17 00:59:24 2025 +0530 Fix: refactor pr commit 706f849959e09bb675811436a8080691fe7c7051 Author: Scriptscrypt <[email protected]> Date: Thu Apr 17 00:51:39 2025 +0530 Fix: Crossmint UI commit 8d8f9b06309031ec5a9db6e938d2fcd44658ccbd Author: bhu1tyagi <[email protected]> Date: Wed Apr 16 23:03:08 2025 +0530 refactor/unnecessary-assets-cleanup commit a2c3bc4b519f4b58bd9139e87cd23db66ec13ee6 Merge: b8ad7938 2cd45071 Author: Michael Essiet <[email protected]> Date: Wed Apr 16 18:32:13 2025 +0100 Merge branch 'v2' into fix/axios commit b8ad793811bdd80bea4d0662457cd6369a6a11ef Author: michaelessiet <[email protected]> Date: Wed Apr 16 18:31:39 2025 +0100 fix: paramsSerializer commit 7da2c10dba7328cc1425dd25cd6f8daabcf89120 Author: bhu1tyagi <[email protected]> Date: Wed Apr 16 22:58:00 2025 +0530 example/privy-sak-rn-expo commit 99fa445951675c48b694473be12cd2a716c203eb Author: michaelessiet <[email protected]> Date: Wed Apr 16 18:20:00 2025 +0100 fix: axios incompatibility in React Native commit 7d5cd9167535c9dca6e3aac0a8c8089c02b607f4 Author: Scriptscrypt <[email protected]> Date: Wed Apr 16 21:38:08 2025 +0530 Fix: docs syntax issues commit 683c1b47030787bdbdb6c0e0234e191701225159 Author: Scriptscrypt <[email protected]> Date: Wed Apr 16 21:30:00 2025 +0530 Fix: docs commit b890e2559b20dd7717c3a747e87dd495ad0ce617 Merge: a9de7707 2cd45071 Author: Scriptscrypt <[email protected]> Date: Wed Apr 16 20:55:18 2025 +0530 Feat: merge v2 commit a9de77073fbbfb04c9c005b6fcabace51e9f9a9a Author: Scriptscrypt <[email protected]> Date: Wed Apr 16 19:37:19 2025 +0530 Fix: quickstart dup commit daabc94d72917faf61837bac0116475961c73d3f Author: Scriptscrypt <[email protected]> Date: Wed Apr 16 19:33:16 2025 +0530 Fix: unwanted docs commit cd4082d85b4049271e560134bdea2dfac1e4e85a Author: Scriptscrypt <[email protected]> Date: Wed Apr 16 19:24:34 2025 +0530 Fix: nav links commit f038f6b43e0e4f4a3ecf09337700360140e560a5 Author: Scriptscrypt <[email protected]> Date: Wed Apr 16 18:37:54 2025 +0530 Feat: Docs v2 commit 2cd450716f3b98fa42aedbfd752791daeae1b0e7 Merge: cc963204 1ed4a740 Author: aryan <[email protected]> Date: Wed Apr 16 17:52:12 2025 +0530 fix: spelling lmao (#375) # Pull Request Description Fix spelling commit 1ed4a74016559f5a9e4b8572565eeb75df23ceb3 Author: aryan <[email protected]> Date: Wed Apr 16 17:48:56 2025 +0530 fix: spelling lmao commit cc963204251e597e12cba5edbbb4a7f8e001d1fd Merge: 36039068 f5f75249 Author: aryan <[email protected]> Date: Wed Apr 16 17:47:34 2025 +0530 feat: change example strucutre (#374) # Pull Request Description This PR just shifts around examples to more organised folder, making it easier to navigate. commit f5f7524993ae1cc2a384ac4ddd0975bab5c84c81 Author: aryan <[email protected]> Date: Wed Apr 16 17:35:22 2025 +0530 feat: change example strucutre commit 36039068f74b09e5a41b0dab0b4cc05f0085ad33 Merge: 89d85ce6 a08d7ce9 Author: aryan <[email protected]> Date: Wed Apr 16 17:28:58 2025 +0530 v2:fix: Nextjs bundling issues (#373) # Pull Request Description This PR fixes a Nextjs bundling issue I ran into. Precisely: <img width="628" alt="Screenshot 2025-04-16 at 11 14 52" src="https://github.com/user-attachments/assets/0ffcb203-fde1-46e2-b91a-2a8349b63229" /> ## Changes Made This PR adds the following changes: <!-- List the key changes made in this PR --> - Got rid of some type importations that could possibly conflict with the nextjs bundler - Used file importation for "@mercurial-finance/dynamic-amm-sdk/dist/cjs/src/amm/types/index" instead of "@mercurial-finance/dynamic-amm-sdk/dist/cjs/src/amm/types" ## Implementation Details <!-- Provide technical details about the implementation --> - Nextjs server bundler seems to be targeting ES6 for some reason so "@mercurial-finance/dynamic-amm-sdk/dist/cjs/src/amm/types" wasn't able to be resolved as a folder import so needed to import the index.js file in the folder directly ## Checklist - [x] I have tested these changes locally - [ ] I have updated the documentation - [ ] I have added a transaction link - [ ] I have added the prompt used to test it commit 89d85ce6cb93f1685ac714a97d69e574d565e7c4 Merge: d01565d8 ca786e16 Author: aryan <[email protected]> Date: Wed Apr 16 17:19:16 2025 +0530 V2: added an example using turnkey as an authenticator (#372) # Pull Request Description This adds an example to the SAK v2 which uses turnkey as an embedded wallet. https://github.com/user-attachments/assets/f161c257-89e1-4d93-b7fe-0661eaa1265b ## Checklist - [x] I have tested these changes locally - [x] I have updated the documentation - [ ] I have added a transaction link - [x] I have added the prompt used to test it commit 8d48a57968ef71c6851a44a8efa685e80e815610 Merge: 2f43f327 6d6faa55 Author: Srinivasa <[email protected]> Date: Wed Apr 16 16:21:42 2025 +0530 Merge pull request #2 from michaelessiet/fix/typedoc fix: typedoc configuration commit 6d6faa55d8f5c84284a1d8e4cf671ddc24739abb Merge: 0ce1e4a6 2f43f327 Author: Michael Essiet <[email protected]> Date: Wed Apr 16 11:49:22 2025 +0100 Merge branch 'v2' into fix/typedoc commit ca786e160a013d8ee1c63330b8cca3c884c7eba3 Author: krishna agrawal <[email protected]> Date: Wed Apr 16 10:40:29 2025 +0000 added demo video commit 0ce1e4a633fcfa5cdc5248d12ca8693fcf0e2c1f Author: michaelessiet <[email protected]> Date: Wed Apr 16 11:28:46 2025 +0100 fix: typedoc configuration commit 31e9899e305353a5c1f846ab4c23c2fa1d2350b7 Author: krishna agrawal <[email protected]> Date: Wed Apr 16 10:13:29 2025 +0000 turnkey example commit 2f43f327f4d986d68822677d3ed7860a0e6e28c4 Merge: 2b74906d d01565d8 Author: Scriptscrypt <[email protected]> Date: Wed Apr 16 11:09:36 2025 +0530 Fix: Merge branch v2 origin to fork commit a08d7ce93e164a95a7071025b464d1b67f7ac793 Author: michaelessiet <[email protected]> Date: Tue Apr 15 22:37:16 2025 +0100 fix: remove anything that may hinder nextjs bundling commit d01565d8314c89261231d701336a71dcba5f4bf6 Merge: 9eb0b37c e875cf07 Author: aryan <[email protected]> Date: Tue Apr 15 23:46:42 2025 +0530 feat(n8n): Add n8n Integration for Solana Agent Kit (#357) # Pull Request Description n8n is an open-source, low-code tool for automating workflows by connecting apps and services through a visual, drag-and-drop interface. With over 400 integrations, it links tools like OpenAI, Slack, and custom nodes (e.g., Solana Agent Kit) without coding. For AI automation, users design workflows, e.g., triggering an AI to analyze data and execute blockchain actions, using nodes with simple settings. This no-code approach makes AI accessible to non-developers. ## Changes Made This PR adds the following changes: - Added n8n node integration for Solana Agent Kit - Implemented token and NFT operations support - Added credential management for Solana wallet and OpenAI API keys - Created build pipeline with icon support - Added TypeScript type safety for agent methods ## Checklist - [x] I have tested these changes locally - [ ] I have updated the documentation - [ ] I have added a transaction link - [ ] I have added the prompt used to test it commit e875cf076e093852356b492f9715df285f249841 Author: aryan <[email protected]> Date: Tue Apr 15 23:44:28 2025 +0530 fix: lock issue commit 4eae788cea6e57f73481e2a722f1feaae75cbb0e Merge: 90015f60 9eb0b37c Author: aryan <[email protected]> Date: Tue Apr 15 23:42:49 2025 +0530 Merge branch 'v2' into n8n commit 90015f609774f7d24a21410b091b64861b9619b1 Author: aryan <[email protected]> Date: Tue Apr 15 23:41:40 2025 +0530 fix: merge conflict commit 9eb0b37cde08fc28f4877438bcec22a8ffb33a49 Merge: 6c7b999d 2ec73148 Author: aryan <[email protected]> Date: Tue Apr 15 23:31:26 2025 +0530 v2:fix: type mismatch issue with some wallet providers (#369) # Pull Request Description This PR fixes some encountered when integrating some wallet providers like privy that don't have the sendTransaction method provided. So this PR makes that method optional and also removes the TransactionOrVersioned transaction type to that type inference works more smoothly. Note: #368 should be merged before this ## Changes Made This PR adds the following changes: <!-- List the key changes made in this PR --> - Remove the `TransactionOrVersionedTransaction` type from the wallet provider transaction types. - Make the `sendTransaction` method optional to be compatible with more wallet providers ## Checklist - [x] I have tested these changes locally - [ ] I have updated the documentation - [ ] I have added a transaction link - [ ] I have added the prompt used to test it commit 6c7b999de491d78a6188c778cf42981f9af75446 Merge: 274c5035 0ce14320 Author: aryan <[email protected]> Date: Tue Apr 15 21:20:12 2025 +0530 chore: update nextjs langchain template (#367) # Pull Request Description This PR updates the nextjs langchain template to make use of SAK V2 instead of V1 ## Changes Made This PR adds the following changes: <!-- List the key changes made in this PR --> - Installed Solana agent kit V2 and the Token plugin as a starter - Changed the SAK is initialized to the V2 initialization ## Checklist - [x] I have tested these changes locally - [ ] I have updated the documentation - [ ] I have added a transaction link - [ ] I have added the prompt used to test it commit 0ce143208df5a9e2d4265b3ae6d76c3a3d26e3a0 Merge: 8e611160 274c5035 Author: aryan <[email protected]> Date: Tue Apr 15 21:17:38 2025 +0530 Merge branch 'v2' into example/nextjs commit 274c50350b0fc5c43b48b98dad4fa50ddb46c32b Merge: 6f0d72cc e0e5577e Author: aryan <[email protected]> Date: Tue Apr 15 21:08:12 2025 +0530 v2:Merge: Main(V1) (#368) # Pull Request Description This PR merges the current commit history of main into V2. It also fixes issues with 2 of the sanctum actions. ## Changes Made This PR adds the following changes: <!-- List the key changes made in this PR --> - Merge the commit history of main into v2 - Update the code of some of the sanctum actions code to fix bugs with getting the price of an lst and the apy of an lst ## Transaction executed by agent <!-- If applicable, provide example usage, transactions, or screenshots --> Example transaction: ## Prompt Used <!-- If relevant, include the prompt or configuration used --> ``` what is the apy for this sanctum lst sctmqBfQtZj76PaLmepQ7Xskpu8LNMyWsXqFYAuihML ``` ``` whats the price of this lst sctmqBfQtZj76PaLmepQ7Xskpu8LNMyWsXqFYAuihML ``` ## Additional Notes <!-- Any additional information that reviewers should know --> ## Checklist - [x] I have tested these changes locally - [x] I have updated the documentation - [ ] I have added a transaction link - [x] I have added the prompt used to test it commit 8e6111601b41450f1bf04c691c74ff2901568a64 Merge: 0b13fca4 6f0d72cc Author: Michael Essiet <[email protected]> Date: Tue Apr 15 14:22:38 2025 +0100 Merge branch 'v2' into example/nextjs commit 2ec7314864d73327b420ad3ef3464977e0e47424 Author: michaelessiet <[email protected]> Date: Tue Apr 15 14:14:29 2025 +0100 fix: make sendTransaction optional as not all wallet providers provide it, e.g privy does not commit 54bef753af721908c742f06a9d215148d077df90 Author: michaelessiet <[email protected]> Date: Tue Apr 15 14:11:16 2025 +0100 fix: remove the transactionorversionedtransaction type because of conflicts with external types during integration in the future commit 2b74906da4d1b777d4d51dbebc314219a4e5028f Author: Scriptscrypt <[email protected]> Date: Tue Apr 15 17:57:43 2025 +0530 Feat: added send and changed icons commit 89c08c06fa5b0d9ee659bd6c4c111e5653aa1853 Author: Scriptscrypt <[email protected]> Date: Tue Apr 15 15:05:00 2025 +0530 Fix: Tokens list & images commit efc3d6b3587c6f4b6ef09a163b0b2fd70f66f90e Author: Scriptscrypt <[email protected]> Date: Tue Apr 15 11:38:37 2025 +0530 Feat: Privy Kit UI commit e0e5577e3240497877aa68797af41af5e6e2d9b4 Author: michaelessiet <[email protected]> Date: Mon Apr 14 12:23:50 2025 +0100 lint commit f2bea0e67285831f49de61399a8fe430ccc32331 Merge: 6f0d72cc dfb1bb1f Author: michaelessiet <[email protected]> Date: Mon Apr 14 12:21:21 2025 +0100 merge: main, plus some other corrections commit dfb1bb1f1da97d8b6df31fd23bd673898341c737 Merge: 2f96e31a d49cd214 Author: Michael Essiet <[email protected]> Date: Mon Apr 14 10:09:00 2025 +0100 Feature/add sanctum (#342) # Pull Request Description ## Changes Made This PR adds the following changes: This PR contains implentation of interaction with sanctum. The following are the detailed changes: 1. get LST price deployed on Sanctum 2. get LST APY deployed on Sanctum 3. get LST TVL deployed on Sanctum 4. Add liquidity to Sanctum Infinite Pool 5. Remove liquidity from Sanctum Infinite Pool Basically, I use Sanctum REST API to get LST data or to get unsigned encoded trasaction. The API endpoint is as follows: [Sanctum Stat API](https://extra-api.sanctum.so) [Sanctum Trade API](https://sanctum-s-api.fly.dev) The following five new tools are included in the PR above: - SanctumGetPriceTool - SanctumGetApyTool - SanctumGetTvlTool - SanctumAddLiquidityTool - SanctumRemoveLiquidityTool ## Implementation Details #### Sanctum get LST Price ```typescript const client = axios.create({ baseURL: SANCTUM_STAT_API_URI, }); const response = await client.get("/v1/sol-value/current", { params: { lst: inputs, }, paramsSerializer: (params) => { return params.lst.map((value: string) => `lst=${value}`).join("&"); }, }); ``` #### Sanctum get LST APY ```typescript const client = axios.create({ baseURL: SANCTUM_STAT_API_URI, }); const response = await client.get("/v1/apy/latest", { params: { lst: inputs, }, paramsSerializer: (params) => { return params.lst.map((value: string) => `lst=${value}`).join("&"); }, }); ``` #### Sanctum get LST TVL ```typescript const client = axios.create({ baseURL: SANCTUM_TRADE_API_URI, }); const response = await client.get("/v1/tvl/current", { params: { lst: inputs, }, paramsSerializer: (params) => { return params.lst.map((value: string) => `lst=${value}`).join("&"); }, }); ``` #### Sanctum add Liquidity ```typescript const client = axios.create({ baseURL: SANCTUM_TRADE_API_URI, }); const response = await client.post("/v1/liquidity/add", { amount, dstLstAcc: null, lstMint, priorityFee: { Auto: { max_unit_price_micro_lamports: priorityFee, unit_limit: 300000, }, }, quotedAmount, signer: agent.wallet.publicKey.toBase58(), srcLstAcc: null, }); // After get encoded tranaction signature, deserialize the signature and update blockHash. After this sign with agent.wallet and send transaction ``` #### Sanctum remove Liquidity ```typescript const client = axios.create({ baseURL: SANCTUM_TRADE_API_URI, }); const response = await client.post("/v1/liquidity/remove", { amount, dstLstAcc: null, lstMint, priorityFee: { Auto: { max_unit_price_micro_lamports: priorityFee, unit_limit: 300000, }, }, quotedAmount, signer: agent.wallet.publicKey.toBase58(), srcLstAcc: null, }); // After get encoded tranaction signature, deserialize the signature and update blockHash. After this sign with agent.wallet and send transaction ``` ## Prompt Used SanctumGetPriceTool: ```typescript const systemPrompt = ` You are a helpful agent that can interact onchain using the Solana Agent Kit. You can fetch prices of the LST(Liquid Staking Token) on the Sanctum`; const userPrompt = ` Fetch the price of the LST(Liquid Staking Token) on the Sanctum with following details: mints: ["bSo13r4TkiE4KumL71LsHTPpL2euBYLFx6h9HP3piy1", "7Q2afV64in6N6SeZsAAB81TJzwDoD6zpqmHkzi9Dcavn"] After fetching the price of the LST provide the price. `; ``` SanctumGetApyTool: ```typescript const systemPrompt = ` You are a helpful agent that can interact onchain using the Solana Agent Kit. You can fetch Apy of the LST(Liquid Staking Token) on the Sanctum`; const userPrompt = ` Fetch the APY of the LST(Liquid Staking Token) on the Sanctum with following details: mints: ["bSo13r4TkiE4KumL71LsHTPpL2euBYLFx6h9HP3piy1", "7Q2afV64in6N6SeZsAAB81TJzwDoD6zpqmHkzi9Dcavn"] After fetching the APY of the LST provide the APY. `; ``` SanctumGetTvlTool: ```typescript const systemPrompt = ` You are a helpful agent that can interact onchain using the Solana Agent Kit. You can fetch TVL of the LST(Liquid Staking Token) on the Sanctum`; const userPrompt = ` Fetch the TVL of the LST(Liquid Staking Token) on the Sanctum with following details: mints: ["bSo13r4TkiE4KumL71LsHTPpL2euBYLFx6h9HP3piy1", "7Q2afV64in6N6SeZsAAB81TJzwDoD6zpqmHkzi9Dcavn"] After fetching the TVL of the LST provide the TVL. `; ``` SanctumAddLiquidityTool: ```typescript const systemPrompt = ` You are a helpful agent that can interact onchain using the Solana Agent Kit. You can add liquidity to the Sanctum LST pool `; const userPrompt = ` Add liquidity to the Sanctum LST pool: lstMint: So11111111111111111111111111111111111111112 amount: 100000 quotedAmount: 50000 priorityFee: 5000 After adding liquidity, provide the transaction signature. `; ``` SanctumRemoveLiquidityTool: ```typescript const systemPrompt = ` You are a helpful agent that can interact onchain using the Solana Agent Kit. You can remove liquidity to the Sanctum LST pool `; const userPrompt = ` Remvoe liquidity to the Sanctum LST pool: lstMint: So11111111111111111111111111111111111111112 amount: 100000 quotedAmount: 50000 priorityFee: 5000 After removing liquidity, provide the transaction signature. `; ``` ## Transaction executed by agent SanctumAddLiquidityTool: - [View Tranaction on Solscan](https://solscan.io/tx/592SuE4tjk5gxwRzmpiARGLsKRwJhJxseHSdoWhXvpSKuv9r9AXbanu1fB3m38hiq62rqAQ4m6WCzD3V1W2NZ1NW) SanctumRemoveLiquidityTool: - [View Tranaction on Solscan](https://solscan.io/tx/48DuoypZXYXrqZwMYtSCjtE6tHxHXgdk91axfMoBBMxcUW5y3UTYnneaRSsYBNrXnDu5EZ8P3KYJAeDkyAiV8hb2) Other chains do not generate on-chain transactions. ## Checklist - [x] I have tested these changes locally - [x] I have updated the documentation - [x] I have added a transaction link - [x] I have added the prompt used to test it commit 6209e1055e48a32d52f2ba7811c8f618d09a92f8 Author: Jovian Dsouza <[email protected]> Date: Mon Apr 14 10:44:37 2025 +0530 refactor: migrate to latest version of solana agent kit commit 8d873c27cb0e7a12b0d5da67c4728dc1a29c4aa8 Author: Jovian Dsouza <[email protected]> Date: Sat Apr 12 18:30:09 2025 +0530 feat: add all solana functions commit f74547a0c84929ff4037d3c6a8f9433080bf1ac2 Author: Jovian Dsouza <[email protected]> Date: Sat Apr 12 17:07:09 2025 +0530 feat: change logo to solana commit d411cc0838a8d5aa12d1453041100808ca0fbeec Author: Jovian Dsouza <[email protected]> Date: Sat Apr 12 17:01:02 2025 +0530 feat: add proper n8n node linting config commit 25cffb6278b26e26b79985b2b345bf73ac39ec7b Author: Jovian Dsouza <[email protected]> Date: Wed Apr 9 10:50:41 2025 +0530 fix: add gulp file for exporting images commit ca27a5bc48a0bfce0c1f627cd81e4d3145e29e68 Author: Jovian Dsouza <[email protected]> Date: Wed Apr 9 10:50:25 2025 +0530 fix: n8n tsconfig commit 72dc3a670f1c7117387a0f53d9aafe255c33b2d0 Author: Jovian Dsouza <[email protected]> Date: Wed Apr 9 10:27:12 2025 +0530 feat: add n8n node for solana ai agent commit 0b13fca48476e337b7a76e360d98c893f65205a4 Author: michaelessiet <[email protected]> Date: Sun Apr 13 19:24:45 2025 +0100 chore: update nextjs langchain template commit 6f0d72cc6b731e1282ad45b605c72e750ec6e246 Author: aryan <[email protected]> Date: Sun Apr 13 21:20:10 2025 +0530 chore: pkg commit 4cd3704276fdbd5d74d9e4702a435c4a385fd23b Author: aryan <[email protected]> Date: Sat Apr 12 20:13:14 2025 +0530 fix: version commit 2ed4a2615d690107d7ae8e3520354ae05b0f3171 Author: aryan <[email protected]> Date: Mon Apr 7 23:08:22 2025 +0530 2.0.0-beta.9 commit 35841d52948098121748c6b048c1468d2cedd2b5 Merge: 3e36996d 9ea1ae7c Author: aryan <[email protected]> Date: Sun Apr 13 20:34:49 2025 +0530 v2:fix: MessariAI merge conflict (#366) # Pull Request Description Fixes a merge conflict with miss during the messariAI feature merge. ## Changes Made This PR adds the following changes: <!-- List the key changes made in this PR --> - Fix the merge conflict that we missed in the messariAI PR merge commit 9ea1ae7c688165518ed173a7b229800121ddbc69 Author: michaelessiet <[email protected]> Date: Sun Apr 13 15:21:38 2025 +0100 fix: build issue with misc plugin commit 3e36996df5c1d5239817820303e9dfd6107b1ce3 Merge: dd5aeb58 dce0f027 Author: aryan <[email protected]> Date: Sun Apr 13 16:55:23 2025 +0530 feat/langchain (#363) # Pull Request Description This PR adds the ability to generate langchain tools to the core package using the `createLangchainTools` function. ## Changes Made This PR adds the following changes: <!-- List the key changes made in this PR --> - Add a function that generates langchain tools from list of actions - Add Langchain agent test to agent tests ## Prompt Used <!-- If relevant, include the prompt or configuration used --> <img width="411" alt="Screenshot 2025-04-12 at 13 46 18" src="https://github.com/user-attachments/assets/b065c93e-c760-40e4-b7a3-b84c656b94ac" /> ## Additional Notes <!-- Any additional information that reviewers should know --> ## Checklist - [x] I have tested these changes locally - [x] I have updated the documentation - [ ] I have added a transaction link - [x] I have added the prompt used to test it commit dd5aeb586c1f33e4f114c8945aa6b3d6883fe1cc Merge: afb9b2fd 00dc2bb8 Author: aryan <[email protected]> Date: Sun Apr 13 16:54:41 2025 +0530 v2:Added support for MessariAi (#365) # Pull Request Description added support for [Messari ](https://docs.messari.io/reference/chat-completion) Ai chat completion in SAK V2. ## Changes Made This PR adds the following changes: - Added functionality under the folder `/plugin-misc/messari` - Added MESSARI_API_KEY as a config, under `/packages/core/src/types/index.ts` ## Prompt Used https://github.com/user-attachments/assets/888de694-4f21-493c-9f72-ce3b04948094 ## Checklist - [x] I have tested these changes locally - [ ] I have updated the documentation - [ ] I have added a transaction link - [x] I have added the prompt used to test it commit 00dc2bb8de46ba2865b89fac04f0fae111e797bf Merge: 2cf370cd afb9b2fd Author: krishna agrawal <[email protected]> Date: Sun Apr 13 15:56:31 2025 +0530 - commit 2cf370cdb1a91be8b883ee92a17f43fb4272bbf1 Author: krishna agrawal <[email protected]> Date: Sun Apr 13 15:44:32 2025 +0530 testing done commit d49cd214d895b9e57c6af541d3ff61bf862b24ee Author: resister-boy <[email protected]> Date: Sun Apr 13 08:18:05 2025 +0900 docs: update sanctum docs commit 995b6823888a28ed3b841308437a25e5ac3aa6db Author: resister-boy <[email protected]> Date: Sat Apr 12 19:46:38 2025 +0900 fix: resolve issues commit c0896115cdfd57c787d4c142f9c3ca058bcac2cc Author: resister-boy <[email protected]> Date: Tue Apr 8 10:43:25 2025 +0900 feat: update implementation commit eecb55ec6b07b2f190d488290472ff65903a6982 Author: resister-boy <[email protected]> Date: Tue Apr 8 10:40:11 2025 +0900 feat: add sanctum swap LST commit d15518a80d74d32dd8459c9723f9343599da8704 Author: resister-boy <[email protected]> Date: Tue Apr 8 10:39:06 2025 +0900 feat: add sanctum get owned LST commit 47a3233ac431297b9a03a3a1e78f211b7d611fa4 Author: resister-boy <[email protected]> Date: Fri Mar 28 16:42:24 2025 +0900 docs: add sanctum docs commit c3092a6f547c54bcb958acf0fc7ae1c184a50868 Author: resister-boy <[email protected]> Date: Fri Mar 28 16:00:19 2025 +0900 feat: add sanctum SolanaAgentKit commit df43b76019be0a7b3e5df933813664030d496d14 Author: resister-boy <[email protected]> Date: Fri Mar 28 15:59:49 2025 +0900 feat: add sanctum langchain tool commit c74ff5c5256066d305c0efdd9361f5e6b8d3ce7c Author: resister-boy <[email protected]> Date: Fri Mar 28 15:59:10 2025 +0900 feat: add sanctum actions commit 65291e9eed172d8a47716370d47caeacdc4b69c0 Author: resister-boy <[email protected]> Date: Fri Mar 28 15:58:43 2025 +0900 config: export sanctum commit b4179ef635d3da143abfb090a6d647047c8f210f Author: resister-boy <[email protected]> Date: Fri Mar 28 15:57:31 2025 +0900 const: declare sanctum api base url as constant commit 2f88a161ae88e660cdd9498611da401d0352fee6 Author: resister-boy <[email protected]> Date: Fri Mar 28 15:56:27 2025 +0900 feat: add sanctum remove liquidity commit 6e63b1b02531dc5aaef6856aefb6b64022c675cc Author: resister-boy <[email protected]> Date: Fri Mar 28 15:55:57 2025 +0900 feat: add sanctum add liquidity commit 25cf27a69935d42b06a940be3c07751672cdff5a Author: resister-boy <[email protected]> Date: Fri Mar 28 15:55:23 2025 +0900 feat: add sanctum get LST APY commit 12fc7c581fd388da7e2fab6639c196d897541c1d Author: resister-boy <[email protected]> Date: Fri Mar 28 15:54:37 2025 +0900 feat: add sanctum get LST TVL commit f5af1f4a1316135a2d8ec3692d8b2cca829a8eff Author: resister-boy <[email protected]> Date: Fri Mar 28 15:53:44 2025 +0900 feat: add sanctum get LST price commit dce0f02736c07d467875a0ea8c8395edca902868 Merge: da3849b8 afb9b2fd Author: Michael Essiet <[email protected]> Date: Sat Apr 12 22:32:10 2025 +0100 Merge branch 'v2' into feat/langchain commit afb9b2fd638df12eedad6c45f73d42d024af5f87 Merge: 7a889976 e6331b46 Author: aryan <[email protected]> Date: Sat Apr 12 20:15:55 2025 +0530 v2:chore/biome: Migrate linting and formatting to biome (#360) # Pull Request Description This PR switches from using eslint and prettier for linting and formatting respectively to using biome for both those things. The reason being because biome is faster, requires less config for th…
Pull Request Description
Changes Made
This PR adds the following changes:
This PR contains implentation of interaction with sanctum. The following are the detailed changes:
Basically, I use Sanctum REST API to get LST data or to get unsigned encoded trasaction. The API endpoint is as follows:
Sanctum Stat API
Sanctum Trade API
The following five new tools are included in the PR above:
Implementation Details
Sanctum get LST Price
Sanctum get LST APY
Sanctum get LST TVL
Sanctum add Liquidity
Sanctum remove Liquidity
Prompt Used
SanctumGetPriceTool:
SanctumGetApyTool:
SanctumGetTvlTool:
SanctumAddLiquidityTool:
SanctumRemoveLiquidityTool:
Transaction executed by agent
SanctumAddLiquidityTool:
SanctumRemoveLiquidityTool:
Other chains do not generate on-chain transactions.
Checklist