# 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
### 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.
# 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
# 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
# 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

## 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
# 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