Commit Graph

406 Commits

Author SHA1 Message Date
biccsdev
b3555ebded test 2025-01-06 21:39:31 -06:00
biccsdev
4a86c2a688 missed this file 2025-01-06 21:37:54 -06:00
biccsdev
e680ddd4f3 3land tools implementation 2025-01-06 21:37:08 -06:00
aryan
f987d8bda6 Add Market Making mode & Manifest cleanup (#144)
# Pull Request Description
Adds an AI guided Market Making mode and moves all Manifest tools to a
single file

## Changes Made
This PR adds the following changes:
<!-- List the key changes made in this PR -->
- Creates a new mm mode (3) for market making
- Combines all manifest related tools into a single file
  
## Implementation Details
<!-- Provide technical details about the implementation -->
- Added a mode which prompts the user to enter parameters to market make
on Manifest

## Transaction executed by agent 
<!-- If applicable, provide example usage, transactions, or screenshots
-->
Example transaction:
https://solscan.io/tx/5qKGhpPuoFs2GtmQ5kGKQmu6NTZTG39DGY8YZVifXwx3BFQhkA9tANhVHPC3yRcEZYFy7hxy4SAjSh6WTSxUGxap

## Prompt Used
<!-- If relevant, include the prompt or configuration used -->
Prompt for AI guided mm

![image](https://github.com/user-attachments/assets/2dbfe04e-4cfe-4495-86d2-24a9573b7c3f)
Subsequent aiMM

![image](https://github.com/user-attachments/assets/70cecd37-0acd-4cc4-b5d2-fa0ad863c821)

## 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
2025-01-06 22:25:08 +05:30
DonDuala
f03f5dd3ff Move mm agent to examples 2025-01-06 12:35:52 -04:00
DonDuala
57ce14f8b1 Merge branch 'main' into combine 2025-01-06 10:58:38 -05:00
aryan
249cd70d23 fix: pkg version 2025-01-06 20:41:14 +05:30
aryan
2504450e1a chore: docs + lint 2025-01-06 20:39:55 +05:30
aryan
94af73e3a5 Add Flash.Trade to Solana-agent-kit (#147)
# Pull Request Description

## Related Issue
Fixes # (issue number)

## Changes Made
This PR adds the following changes:
<!-- List the key changes made in this PR -->
- /utils/flashUtils.ts
- /tools/flash_open_trade.ts and /tools/flash_close_trade.ts
-
/langchain/index.ts
  
## Implementation Details
<!-- Provide technical details about the implementation -->
- added /utils/flashUtils.ts - includes price fetching from Hermes,
loading for Beast NFT accounts and constants from the flash sdk
- added /tools/flash_open_trade.ts and flash_close_trade.ts to implement
opening and closing of leveraged trade orders using flash-idk
- updated
/langchain/index.ts with prompts JSON extraction and validation

## Transaction executed by agent 
<!-- If applicable, provide example usage, transactions, or screenshots
-->
Example transaction: 
open position:

https://solana.fm/tx/DvLKDvyTJFckhGQSLaJ7Dfj7djNj6UMbpBXXgNNdMFoHycuRcHZsgSGpAeLtTrfszSESFn3PEDQ3JKPb29KCGDT?cluster=mainnet-alpha

close position:

https://solana.fm/tx/dEKkBTzT5wbJSbYT8q2Vtc3G2cLzxSHheC8dZUFAAsxFEUXQES2amfvywkm8zGHu4Pe11dX4h1GbXMDkTwWvrL6?cluster=mainnet-alpha

## Prompt Used
<!-- If relevant, include the prompt or configuration used -->
```prompt to open a trade: open a 5x leveraged trade for SOL on long side using flash trade with 10 USD as collateral

prompt to close an existing trade: Close an existing 10x leveraged trade for SOL on long side
```

## 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-06 19:01:01 +05:30
aryan
3ae4f7c21c Merge branch 'main' into UjjwalGupta49/main 2025-01-06 18:59:03 +05:30
aryan
db41218038 rm: auto doc generation (#150) 2025-01-06 18:55:02 +05:30
aryan
b78667710c rm: auto doc generation 2025-01-06 18:51:46 +05:30
UjjwalGupta49
9adc80ee32 export actions 2025-01-06 17:56:13 +05:30
UjjwalGupta49
de4e724365 move types and created actions 2025-01-06 17:50:39 +05:30
UjjwalGupta49
224d7ff5b3 flash docs 2025-01-06 10:10:48 +05:30
UjjwalGupta49
6f85cbddcd flash open and close position 2025-01-06 10:07:58 +05:30
UjjwalGupta49
d90ee517d6 hermes client for flash price feed 2025-01-05 20:34:28 +05:30
DonDuala
47f19c4a25 Merge branch 'sendaifun:main' into combine 2025-01-05 09:32:49 -05:00
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
UjjwalGupta49
a1088797b3 resolve conflicts 2025-01-05 17:21:25 +05:30
Arihant Bansal
8af1b22e91 fix: install pnpm 2025-01-05 16:09:00 +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
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
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
DonDuala
534d88b47a Combine manifest tool files 2025-01-04 18:14:28 -04:00
DonDuala
deb53b4905 AI guide market making 2025-01-04 18:04:56 -04:00
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
UjjwalGupta49
0b654b064e Revert "update manifest sdk"
This reverts commit aa4dfdf9c3.

revert docs
2025-01-05 00:31:25 +05:30