Commit Graph

410 Commits

Author SHA1 Message Date
A91y
41417aa7cf updated 2by2 multisig desc 2025-01-06 16:01:29 +05:30
A91y
6e0b575324 added 2by2 multisig proposal/tx execution 2025-01-06 15:55:11 +05:30
A91y
9900627ad4 added 2by2 multisig proposal rejection 2025-01-06 15:51:33 +05:30
A91y
2e22cadd27 added 2by2 multisig proposal approval 2025-01-06 15:48:49 +05:30
A91y
b5afb035f1 added 2by2 multisig proposal creation 2025-01-06 15:45:48 +05:30
A91y
14c7bd451e added 2by2 multisig transaction creation 2025-01-06 15:42:32 +05:30
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