Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add Solayer staking tool #116

Merged
merged 3 commits into from
Jan 3, 2025
Merged

Conversation

JoshuaSum
Copy link
Contributor

@JoshuaSum JoshuaSum commented Jan 2, 2025

Pull Request Description

Related Issue

Fixes # (issue number)

Changes Made

This PR adds the following changes:

  • Add staking to Solayer through a Solana Actions/Blink endpoint

Implementation Details

  • Added stakeWithSolayer action
  • Added stake_with_solayer tool
  • Added tool to langchain

Transaction executed by agent

Example transaction: https://solscan.io/tx/3jauR9XevrX9BFaz7VicPe3m3Xw3co6SPmCfZsj69WVAdkM8D4M3CkUH3Wayd794tEsmdHJ2zoqEmp7i5eX9L6uE

Prompt Used

Additional Notes

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

name = "solana_restake";
description = `This tool can be used to restake your SOL on Solayer to receive Solayer SOL (sSOL) as a Liquid Staking Token (LST).

Inputs ( input is a JSON string ):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you pls remove (input is a JSON string)?

because in LangChain - that is not required for single input tools

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

got it. I have removed that from the langchain tool

@thearyanag
Copy link
Member

hey @JoshuaSum - can you just rebase it once? OR can also merge the main branch and fix the merge conflicts

I fixed them but unable to push to the PR branch

@thearyanag thearyanag merged commit 61abe10 into sendaifun:main Jan 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants