Skip to content

Commit

Permalink
feat: add Solayer staking tool (#116)
Browse files Browse the repository at this point in the history
# 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
  • Loading branch information
thearyanag authored Jan 3, 2025
2 parents 7c3f418 + 058877b commit 61abe10
Show file tree
Hide file tree
Showing 8 changed files with 2,666 additions and 773 deletions.
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ Anyone - whether an SF-based AI researcher or a crypto-native builder - can brin
- Lending by Lulo (Best APR for USDC)
- Send Arcade Games
- JupSOL staking
- Solayer SOL (sSOL)staking

- **Non-Financial Actions**
- Gib Work for registering bounties
Expand Down Expand Up @@ -173,6 +174,15 @@ const signature = await agent.stake(
);
```

### Stake SOL on Solayer

```typescript
const signature = await agent.restake(
1 // amount in SOL to stake
);

```

### Send an SPL Token Airdrop via ZK Compression

```typescript
Expand Down
Loading

0 comments on commit 61abe10

Please sign in to comment.