Commit Graph

404 Commits

Author SHA1 Message Date
A91y
d909e8012a add Solana 2-of-2 multisig account creation and deposit tools 2025-01-06 15:35:56 +05:30
A91y
6c29c84f54 fix 2025-01-06 15:24:20 +05:30
A91y
62749519a8 Merge branch 'main' into feat/squads_multisig 2025-01-06 15:19:01 +05:30
aryan
c749ebf7a2 rm explcitiy cache (#141)
fix the cache issue in workflow
2025-01-05 18:33:10 +05:30
aryan
07d058e6e7 lint fix 2025-01-05 18:29:59 +05:30
aryan
da050d0147 rm explcitiy cache 2025-01-05 18:27:05 +05:30
aryan
4be67a90c6 cache pnpm config (#140)
Fix the workflow config
2025-01-05 18:22:06 +05:30
aryan
0aacffb78d rever pull req template + add build 2025-01-05 18:21:47 +05:30
aryan
56d638cd96 cache pnpm config 2025-01-05 18:20:06 +05:30
aryan
90e10a913d fix: install pnpm (#138)
# 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
2025-01-05 18:18:04 +05:30
Arihant Bansal
8af1b22e91 fix: install pnpm 2025-01-05 16:09:00 +05:30
A91y
e1989c8f71 feat: add rejectMultisigProposal method to SolanaAgentKit and implement proposal rejection functionality 2025-01-05 15:51:30 +05:30
A91y
ab39b66e40 feat: add executeMultisigTransaction method to SolanaAgentKit and implement transaction execution functionality 2025-01-05 15:48:45 +05:30
aryan
8ab4d5ad5a Typo fix Update orca_open_centered_position_with_liquidity.ts (#134)
### Title
Typo fix in `orca_open_centered_position_with_liquidity.ts`

### Description
This pull request fixes a typo in the
`orca_open_centered_position_with_liquidity.ts` file. The word "cuurent"
has been corrected to "current."

### Changes
- Corrected the typo in the description: "a basis point (bps) offset
from the cuurent price of the pool" to "a basis point (bps) offset from
the current price of the pool."

### Impact
This is a documentation fix and does not affect the functionality of the
code.
2025-01-05 15:48:36 +05:30
A91y
0f7c119821 refactor: remove unused proposalId parameter from approveMultisigProposal method 2025-01-05 15:48:08 +05:30
aryan
0481aa17d7 feat: add basic ci workflow & pre-commit hooks (#137)
# Pull Request Description

## Changes Made
This PR adds the following changes:
<!-- List the key changes made in this PR -->
- Add husky, lint-staged for pre-commit hooks
- Add github actions workflow for lint, and build
  
## 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-05 15:47:56 +05:30
Arihant Bansal
9cb3477831 chore: husky docs 2025-01-05 15:45:44 +05:30
A91y
0aa4e5f77e feat: add approve proposal functionality to SolanaAgentKit 2025-01-05 15:44:56 +05:30
Arihant Bansal
a8ea9b4821 chore: docs 2025-01-05 12:45:31 +05:30
Arihant Bansal
6a84a16c1c merge fix 2025-01-05 12:44:52 +05:30
aryan
6446244dee Fix manifest integration (#133) 2025-01-05 12:37:43 +05:30
Arihant Bansal
ca38d872b9 chore: docs 2025-01-05 11:21:40 +05:30
Arihant Bansal
0f8edf180a fix 2025-01-05 11:19:38 +05:30
Arihant Bansal
2d3336c532 fix 2025-01-05 11:19:11 +05:30
Arihant Bansal
f9d8261a16 fix 2025-01-05 11:17:41 +05:30
Arihant Bansal
d58417a444 test 2025-01-05 11:15:14 +05:30
Arihant Bansal
b773f43c3c feat: add husky and lint-staged 2025-01-05 11:14:26 +05:30
Arihant Bansal
c5588a0b00 fix 2025-01-05 11:09:07 +05:30
Arihant Bansal
94ffce288e feat: add basic ci workflow 2025-01-05 11:00:08 +05:30
Vini murafa
52adc3f9ba Typo fix Update orca_open_centered_position_with_liquidity.ts 2025-01-04 22:15:28 +01:00
DonDuala
3752d3f656 Fix manifest integration 2025-01-04 16:39:52 -04:00
aryan
805ff71f97 feat: fetch pyth price feed id (#82)
# Pull Request Description

## Related Issue
Fixes #19 

## Changes Made
This PR adds the following changes:
<!-- List the key changes made in this PR -->
- Add method to fetch pyth price feed ID
- Move to using Pyth Hermes API v2
  
## Implementation Details
<!-- Provide technical details about the implementation -->
- Modify Pyth implementation to use hermes v2 api which is not supported
in the SDK yet
- Fetch price feed ID for given token symbol and then price


## Prompt Used
<!-- If relevant, include the prompt or configuration used -->
```
fetch pyth price for SOL
```

<img width="713" alt="image"
src="https://github.com/user-attachments/assets/2c59186f-f31f-4d56-a76b-4c8682a0ca96"
/>


## 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
2025-01-05 00:57:48 +05:30
Arihant Bansal
7fc51c5302 chore: lint + docs 2025-01-05 00:50:19 +05:30
Arihant Bansal
42ffa3da29 fix: pyth price feed 2025-01-05 00:48:31 +05:30
Arihant Bansal
a4f990f4c8 fix: url 2025-01-05 00:40:27 +05:30
aryan
9da44f0be3 fix: manifest sdk 2025-01-05 00:22:04 +05:30
Arihant Bansal
15a5a6b08d merge and docs 2025-01-04 23:41:47 +05:30
Arihant Bansal
8bd0b462d2 feat: update to hermes v2 2025-01-04 23:37:51 +05:30
aryan
06ad5ba728 chore: docs + lint 2025-01-04 15:29:47 +05:30
aryan
b3a15fb019 update FUNDING info 2025-01-04 15:19:44 +05:30
aryan
07fcc7e213 Add Adrena Protocol Open/Close PERP trade support (#108)
# Pull Request Description

## Changes Made
Add support for Open/Close PERP trade in the agent.
  
## Implementation Details
Rely on adrena IDL (anchor) and custom `src/utils/AdrenaClient.ts` to
derive necessary PDA and build `openOrIncreasePositionWithSwapLong`,
`openOrIncreasePositionWithSwapShort`, `closePositionLong` and
`closePositionShort` instructions.

## Transaction executed by agent 
Tested with the following:

```
const signature = await agent.openPerpTradeLong({
  price: 300, // $300 SOL Max price
  collateralAmount: 0.1, // 0.1 jitoSOL in
  collateralMint: new PublicKey("J1toso1uCk3RLmjorhTtrVwY9HJ7X8V9yYac6Y7kGCPn"), // jitoSOL
  leverage: 50000, // x5
  tradeMint: new PublicKey("J1toso1uCk3RLmjorhTtrVwY9HJ7X8V9yYac6Y7kGCPn"), // jitoSOL
  slippage: 0.3, // 0.3%
});
```


https://explorer.solana.com/tx/33iLQ7BrS5xpMfhrXDGzCjrP3g7BHH63Sv6QEQw5qBzP2YnHVjNL9iHEDkDdzw2cF6zYECGVzoUV6qjth7r4wioT

and

```
const signature = await agent.closePerpTradeLong({
  price: 100, 
  tradeMint: new PublicKey("J1toso1uCk3RLmjorhTtrVwY9HJ7X8V9yYac6Y7kGCPn"), // jitoSOL
});
```


https://explorer.solana.com/tx/3stHhJsVvxsJZEeWJwMrmXD6gFT29mM97a7Tj6cqtrY5joqAoHJgT1T6QtndZqNP6hFqdNqptvrtaPzLrxyJgCmZ

## Additional Notes

Can connect to https://app.adrena.xyz/ and see live positions and
positions history

![Screenshot 2025-01-01 at 15 14
46](https://github.com/user-attachments/assets/0d522704-7bb6-4e00-a6bd-72d86d8df0a2)

## 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-04 14:23:46 +05:30
Orex
a68f26d009 Add Adrena Protocol Open/Close PERP trade support 2025-01-04 10:26:12 +04:00
aryan
61abe10b0d feat: add Solayer staking tool (#116)
# Pull Request Description

## Related Issue
Fixes # (issue number)

## Changes Made
This PR adds the following changes:
<!-- List the key changes made in this PR -->
- Add staking to Solayer through a Solana Actions/Blink endpoint
- 
  
## Implementation Details
<!-- Provide technical details about the implementation -->
- Added stakeWithSolayer action
- Added stake_with_solayer tool
- Added tool to langchain

## Transaction executed by agent 
<!-- If applicable, provide example usage, transactions, or screenshots
-->
Example transaction:
[https://solscan.io/tx/3jauR9XevrX9BFaz7VicPe3m3Xw3co6SPmCfZsj69WVAdkM8D4M3CkUH3Wayd794tEsmdHJ2zoqEmp7i5eX9L6uE](https://solscan.io/tx/3jauR9XevrX9BFaz7VicPe3m3Xw3co6SPmCfZsj69WVAdkM8D4M3CkUH3Wayd794tEsmdHJ2zoqEmp7i5eX9L6uE)

## 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
- [x] I have added a transaction link
- [ ] I have added the prompt used to test it
2025-01-04 04:07:11 +05:30
JoshuaSum
058877b4d5 Merge remote-tracking branch 'upstream/main' 2025-01-03 14:35:16 -08:00
aryan
7c3f4180a0 chore: docs + lint 2025-01-04 03:42:56 +05:30
aryan
da09193d9d feat: vercel-ai-sdk (#67)
# Pull Request Description

## Related Issue
Fixes #54 

## Changes Made
This PR adds the following changes:
<!-- List the key changes made in this PR -->
- Adds support for the Vercel AI SDK.
- Adds tests showcasing that the feature addition works.
  
## Implementation Details
<!-- Provide technical details about the implementation -->
- In order to add support for the SDK I installed all required
dependencies such as `ai, @ai-sdk/openai, and zod`
- The overall integration was simple, however, quite tedious as it
required a lot of conversions from the existing langchain integration

## Transaction executed by agent 
<!-- If applicable, provide example usage, transactions, or screenshots
-->
Example transaction: 
- TX link:
[4W5LFS9GnxeSffD1S2teUhg5e6VgL6P2DAQ4LQYqygk2nQJJLTtyi38zj5FaM2RiZe53ZmhRjuVqp47fXgnQwtva](https://solscan.io/tx/4W5LFS9GnxeSffD1S2teUhg5e6VgL6P2DAQ4LQYqygk2nQJJLTtyi38zj5FaM2RiZe53ZmhRjuVqp47fXgnQwtva)
- TX link:
[3oqHWwxUV6iz1ASxSyUikTPwA5MNySiUeBxzb5r2craoxEQXWdtXwtRkLnuDmYECvZZHZe6KvP7kTrydDrckGNXf](https://solscan.io/tx/3oqHWwxUV6iz1ASxSyUikTPwA5MNySiUeBxzb5r2craoxEQXWdtXwtRkLnuDmYECvZZHZe6KvP7kTrydDrckGNXf)
- TX link:
[51Wb8aQz1HE6X9pXmR9QJDoeEbV8chv8uEjzKdyTJfskngNiJj32VeEvRRHD8JKEXR6ydqqbCvfyDygWmdqQHtDx](https://solscan.io/tx/51Wb8aQz1HE6X9pXmR9QJDoeEbV8chv8uEjzKdyTJfskngNiJj32VeEvRRHD8JKEXR6ydqqbCvfyDygWmdqQHtDx)
- TX link:
[5yu133Sj2vztDHa43f7VASkibziDwSrYiZUuv1S9E6ov3S6N1bXyUa7MXDtV2E4XJLK4SfAepRC3fZqMEa4SnNyj](https://solscan.io/tx/5yu133Sj2vztDHa43f7VASkibziDwSrYiZUuv1S9E6ov3S6N1bXyUa7MXDtV2E4XJLK4SfAepRC3fZqMEa4SnNyj)
- Screenshot:
![Screenshot 2024-12-26 at 16 14
54](https://github.com/user-attachments/assets/69bbcdba-0c82-4af2-874d-c07493677124)


## Prompt Used
<!-- If relevant, include the prompt or configuration used -->
- No particular prompt was used. I ran `pnpm run test:vercel-ai`, chose
the autonomous option and let it do it's thing.

## Additional Notes
<!-- Any additional information that reviewers should know -->
The code `_call`/`execute` can be made reusable in case of any future
agent/platform integrations. This could be made into another bounty as
it will be quite tedious as well and type standards would need to be set
for maximum compatibility and least overhead down the line.

## 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-03 23:16:38 +05:30
Michael Essiet
9b96db03f9 Merge branch 'main' into feature/vercel-ai-sdk 2025-01-03 18:27:53 +01:00
aryan
cb0e3a682a Rugcheck API Integrated [Latest] (#109)
# Pull Request Description
Provides a streamlined integration with the RugCheck API for Solana
tokens, allowing developers to access and interact with key features
like token reports, statistics, and voting functionality.
## Related Issue
Fixes # (issue number)
#17 
and it's a followm up and latest pull for this PR #90 

## Changes Made
This PR adds the following changes:
<!-- List the key changes made in this PR -->
Integrated Endpoints and Methods : 
**GET** `/tokens/{mint}/report/summary`: Generate a summary report for a
specific token.
**GET** `/tokens/{mint}/report`: Fetch a detailed report for a specific
token.

## Implementation Details
<!-- Provide technical details about the implementation -->

This integration enables efficient access to RugCheck's token data and
analytics, making it a valuable tool for developers.

**Features** : 
- Generate a summary report for a specific token.
- Retrieve a detailed report for a specific token.

## 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
- [ ] I have updated the documentation
- [ ] I have added a transaction link
- [ ] I have added the prompt used to test it
2025-01-03 22:55:30 +05:30
aryan
b3a02fe24b Merge branch 'main' into main 2025-01-03 22:55:22 +05:30
michaelessiet
014af521aa fix: catch up langchain tool to main 2025-01-03 18:25:01 +01:00