Commit Graph

523 Commits

Author SHA1 Message Date
quangkeu95
1e00dab4ff fix: Bump alpha vault sdk to 1.1.7 2025-01-13 12:21:51 +07:00
quangkeu95
2f0695400f chore: Merge main 2025-01-13 12:11:00 +07:00
quangkeu95
4f72b557af fix: Update script to create meteora dlmm pool 2025-01-13 10:54:00 +07:00
quangkeu95
872427a44b --amend 2025-01-13 08:38:24 +07:00
quangkeu95
89b4bc05c7 fix: Parse float number to BN error 2025-01-13 08:37:58 +07:00
aryan
fcbb2e18c6 chore: docs + version 2025-01-13 03:33:04 +05:30
aryan
4c4cbb013e chore: update contribution docs, unify squads tools, add actions (#191)
# Pull Request Description

## Changes Made
This PR adds the following changes:
<!-- List the key changes made in this PR -->
- Update contribution docs on how to add your own tool
- Update docs
- Unify squads tools
- Add actions for squads tools
- Add other missing actions
- Cleanup code
  
## 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
- [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
2025-01-12 22:55:23 +05:30
aryan
87db99a996 Implement Discord bot starter template (#129)
# Pull Request Description

## Changes Made
This PR introduces a starter template example project for creating a
Discord Bot built to interact with the user and perform actions using
the Solana Agent Kit.

## Implementation Details
The bot uses the latest version of discord.js and has an ability to
process DMs on Discord, perform actions using the agent kit and reply
back to the user.

[Link to demo
video](https://bafybeidjub6alzloxx2on5df6j5dhfse7txemivcbjohxzlqkxuz5ymqlm.ipfs.web3approved.com/?token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJjaWQiOiJiYWZ5YmVpZGp1YjZhbHpsb3h4Mm9uNWRmNmo1ZGhmc2U3dHhlbWl2Y2Jqb2h4emxxa3h1ejV5bXFsbSIsInByb2plY3RfdXVpZCI6IjRlOTEzNjIzLTI0N2ItNDAwMC1iNjUwLTgyNzI0MzBhMzk3MCIsImlhdCI6MTczNTk4Njc5Niwic3ViIjoiSVBGUy10b2tlbiJ9.vF6R99GnycpALTbPPmVJUXWvqXHYGkhfBIMaF1wVvkk)

## 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
2025-01-12 14:32:55 +05:30
Arihant Bansal
bb6d51471c feat: fix merge 2025-01-12 09:52:11 +05:30
aryan
8e2fe87c1c Added advanced telegram bot examples (#193)
# Pull Request Description

## Related Issue
Fixes #192 

## Changes Made
This PR adds the following changes:

Now we have the below detailed examples in the tg bot examples:

1. **Basic TG Bot**: This guide explains how to run a simple Solana
Agent Kit on a Telegram bot for a single user.

2. **Advanced TG Bot**: This guide includes advanced features such as:
    - Storing chat history for each user in a PostgreSQL database.
    - Maintaining a unique wallet for each user in a Firebase database.
    - Managing the chats of multiple users simultaneously.

3. **Group TG Bot**: This example demonstrates how to create a Telegram
bot using the Solana Agent Kit by Send AI. It includes advanced features
such as:
    - Storing chat history for each user in a PostgreSQL database.
    - Maintaining a unique wallet for each user in a Firebase database.
- This special bot can be run in Telegram groups and handle private
conversations, such as wallet addresses, in private chats. It works in
groups, maintains a separate context for each user, responds to each
user by tagging them, and can handle multiple requests simultaneously.
It will only reply if the bot is tagged in the group or its message is
replied to.

## Checklist
- [ x ] I have tested these changes locally
2025-01-12 02:56:46 +05:30
aryan
eb25c6b07b feat: move to tsx (#194)
Doing this because couple of folks (including myself) have faced issues
running `pnpm run test` on our local machines. `ts-node` has an open
issue on this, where it occasionally won't execute ESM files with the
new Typescript version (post v5.5)
https://github.com/TypeStrong/ts-node/issues/2086
2025-01-12 02:55:58 +05:30
aryan
dca508bda6 Refactored code to separate files protocol wise (#180)
Refactored code to separate files on a protocol folder basis and updated
agent code to be more maintainable..
This pull request was created for
https://app.gib.work/bounties/0b78790e-6d48-4ec3-b67f-46c96dac6b7d in an
attempt to solve a bounty #173 . Payment for the bounty is immediately
sent to the contributor after merge.
2025-01-12 02:51:32 +05:30
Arihant Bansal
338cc410ea feat: move to tsx 2025-01-12 00:16:13 +05:30
Arpit Singh Bhatia
14d4d468bb Minor changes 2025-01-11 23:50:21 +05:30
Arihant Bansal
8eb9e9be81 chore: docs 2025-01-11 23:33:36 +05:30
Arihant Bansal
ba9f6a9423 feat: add rest of squads actions 2025-01-11 23:33:14 +05:30
Arihant Bansal
ea6430129b feat: add more squads actions 2025-01-11 23:24:58 +05:30
Arihant Bansal
cd72af002e feat: add squads actions 2025-01-11 23:15:37 +05:30
Arihant Bansal
b93b961a9e fix 2025-01-11 23:04:53 +05:30
Arihant Bansal
b8d02de046 chore: fix contribution docs 2025-01-11 22:59:21 +05:30
Arihant Bansal
83a7616367 chore: combine all multisig tools in one 2025-01-11 22:44:45 +05:30
Arihant Bansal
9aa74ceab0 chore: remove unnecessary commented function 2025-01-11 22:39:52 +05:30
Arihant Bansal
80fb0c4d5f fix 2025-01-11 22:38:46 +05:30
0xCipherCoder
a6f9b05e2a Updated protocol name instead of library name 2025-01-11 21:27:54 +05:30
quangkeu95
7b20437790 feat: Add Meteora to langchain 2025-01-11 16:45:41 +07:00
0xCipherCoder
af85a502e0 Removed types in solayer 2025-01-11 14:42:51 +05:30
0xCipherCoder
48c81ac7e0 Added fix for the issue 2025-01-11 14:41:55 +05:30
0xCipherCoder
f1b8a118ac Merged main 2025-01-11 10:09:56 +05:30
0xCipherCoder
04a27f974c Merged main 2025-01-11 10:09:09 +05:30
quangkeu95
b966069de5 feat: Add Meteora to langchain index 2025-01-11 11:26:02 +07:00
quangkeu95
e5fb59dd47 fix: Update initPrice when creating DLMM pool 2025-01-11 08:59:49 +07:00
Hashira
dd8ef31205 Merge pull request #2 from quangkeu95/feat/meteora
chore: Format code
2025-01-11 08:49:26 +07:00
quangkeu95
d859da4809 chore: Format code 2025-01-11 08:45:33 +07:00
Hashira
58a190d13c Merge pull request #1 from quangkeu95/feat/meteora
Feat/meteora
2025-01-11 08:45:02 +07:00
quangkeu95
835a42aaec fix: Update tests for Meteora 2025-01-11 08:39:51 +07:00
quangkeu95
2aaf3f86b7 Rebase upstream 2025-01-11 07:46:45 +07:00
quangkeu95
4695e15488 chore: Update imports 2025-01-11 07:46:40 +07:00
quangkeu95
25f301599e fix(meteora): Exclude alpha vault due to package conflict 2025-01-11 07:46:40 +07:00
quangkeu95
0e5e1b276c fix(meteora): Update imports 2025-01-11 07:46:26 +07:00
quangkeu95
f85fe669d7 feat: Add functions to create Meteora pools + alpha vault 2025-01-11 07:45:46 +07:00
aryan
677d17491c chore: docs + lint 2025-01-11 02:29:52 +05:30
aryan
88023dfe2d Update browser wallet for Whirlpools SDK (#182)
# Pull Request Description

## Related Issue
Fixes # (issue number)

## Changes Made
This PR adds the following changes:
- Created a custom Wallet class to support browser use of Orca tools


## Transaction executed by agent 
Example transaction:
https://solscan.io/tx/GNmgxM4ZRHURDWcgmhLmBrSG5RgF9yw5B4jzEXzWX2jpNvCbUsQyaMdkkH77au7pisJ89hJdrcs8dv54U8H3J8V?cluster=devnet

## Prompt Used
Using Devnet
```
i want to open a single sided position in pool 7MghXMotsf9CLr6Z9obV8g9Kt2y1Mqn6wXm2mdPhRnMe
```
then provide details

## Additional Notes

## 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
2025-01-11 02:27:33 +05:30
calintje
e5e25b0ab0 Fix 2025-01-10 20:39:43 +01:00
0xCipherCoder
3548321198 Removed tooling added 2025-01-10 19:33:55 +05:30
0xCipherCoder
054f825b97 Removed tooling added 2025-01-10 19:33:07 +05:30
0xCipherCoder
76bfa9764b Removed tooling added 2025-01-10 19:29:58 +05:30
0xCipherCoder
85eabc2263 Removed tooling added 2025-01-10 19:15:37 +05:30
0xCipherCoder
7032ed7d99 Added refactoring changes for agent, action and tools 2025-01-10 17:34:13 +05:30
Damjan Dimitrov
793330b0a1 Merge branch 'main' into main 2025-01-10 11:35:22 +01:00
aryan
fc92d443cf adding 2/2 multisig \w agent & user (#88)
# Pull Request Description

## Related Issue
Fixes #149 

## Changes Made
This PR adds the following changes:
- added create squads multisig
- deposit to multisig
- tx from multisig
- create proposal from multisig
- approve proposal from multisig
- reject proposal from multisig
- exexute proposal from multisig
  
## Implementation Details
<!-- Provide technical details about the implementation -->
- added `@sqds/multisig` sdk

## Tests are added in comment below

## Transaction Links:

https://explorer.solana.com/tx/4weMdQnnkV3SW3JAngdpZz3WEeugWni2ep2MP71KTbtLGHTLF7ok2EVKZP9Ug8T4twqr9HsB3tjLUyrGLnngzYVS?cluster=devnet

https://explorer.solana.com/tx/4QUxE5VQGWZw1LCYbj3BYtzGfn2o45Zk71K8LBkTva8hAdv4o1jUNEwWmuQRMJpXY9yKKwiwD59tZRh6oXgd4Jzc?cluster=devnet

https://explorer.solana.com/tx/TVuzkLBkCtJ5PvroXLnnW1PTeLMQ4R9NeoiHeoHhsGR2gJX3cLjq1Ndq6DVD72dQLLbJM6CqnJZDYu9VSp4YbxV?cluster=devnet

https://explorer.solana.com/tx/62PDfY46rGFezTnVCbDHUeCMyoVCEfWdGJWkkDhFL1GoAcfznWgCYXo2DnSgpgZu59vvYuaNj5C32bjAkNnJZvtJ?cluster=devnet

https://explorer.solana.com/tx/3Pxvyo2MVEEbqcPcQ6Q6ErFTEu9EGHPwgciMuXUXzLsB8XTdyCZbxfrscxJbCbW8DgRVA6AomTXX6Uup9Bnubzpu?cluster=devnet

https://explorer.solana.com/tx/5MyWxoTUzL3Zb4rStXzqsX1Cp3L3ToQdYyPq2sDDHBHsJV9idoHZYcKQjzfmgkGdwg3mtJZdUeywuTGvhcdvzkGU?cluster=devnet

https://explorer.solana.com/tx/3haMJ9EoLfDA7H5ACPb1K1A9Eyezfx9DtB2eCUgNE38CkQd95KtZNEjRopaMva2bqtRvTzRNqkLVvbVcu2Gjzphs?cluster=devnet

https://explorer.solana.com/tx/4Rn1AD9bUGwQzN661pexyPEffp25bUujRUXk18NvfxinZD12rrBLdeASdtnb7QnDfgvwkfzwk2akgU4Sf8ek7XwR?cluster=devnet

## 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
2025-01-10 05:18:08 +05:30