Skip to content

feat(defi): add Torch Market integration#513

Open
mrsirg97-rgb wants to merge 7 commits intosendaifun:v2from
mrsirg97-rgb:feat/torch-market
Open

feat(defi): add Torch Market integration#513
mrsirg97-rgb wants to merge 7 commits intosendaifun:v2from
mrsirg97-rgb:feat/torch-market

Conversation

@mrsirg97-rgb
Copy link

Summary

Adds Torch Market integration to the DeFi plugin. Torch Market is a fair-launch token platform on Solana with bonding curves and community treasuries.

Features

  • List tokens: Filter by status (bonding/complete/migrated), sort by volume/marketcap
  • Buy/Sell: Trade on bonding curves with slippage protection
  • Vote: After graduation (200 SOL), holders vote to burn or return treasury tokens
  • Star: Show support for tokens (0.05 SOL)

API

All operations use the Torch Market REST API:

Testing

Tested against mainnet API. Transactions are built server-side and returned unsigned for agent signing.

Torch Market is a fair-launch token platform on Solana with bonding
curves and community treasuries. After tokens graduate (200 SOL),
holders vote to burn or return treasury tokens.

Tools:
- torchListTokens: List/filter tokens by status
- torchGetToken: Get token details
- torchBuyToken: Buy on bonding curve
- torchSellToken: Sell back to curve
- torchVoteToken: Vote on treasury outcome
- torchStarToken: Star tokens (0.05 SOL)

Actions:
- TORCH_LIST_TOKENS
- TORCH_GET_TOKEN
- TORCH_BUY_TOKEN
- TORCH_SELL_TOKEN
- TORCH_VOTE_TOKEN
- TORCH_STAR_TOKEN

API: https://torch.market/api/v1
Docs: https://torch.market/api/v1/openapi.json
Torch Market is a fair-launch token platform on Solana with bonding
curves and community treasuries. After tokens graduate (200 SOL),
holders vote to burn or return treasury tokens.

Tools:
- torchListTokens: List/filter tokens by status
- torchGetToken: Get token details
- torchBuyToken: Buy on bonding curve
- torchSellToken: Sell back to curve
- torchVoteToken: Vote on treasury outcome
- torchStarToken: Star tokens (0.05 SOL)
- torchCreateToken: Create a new token with bonding curve

Actions:
- TORCH_LIST_TOKENS
- TORCH_GET_TOKEN
- TORCH_BUY_TOKEN
- TORCH_SELL_TOKEN
- TORCH_VOTE_TOKEN
- TORCH_STAR_TOKEN
- TORCH_CREATE_TOKEN

API: https://torch.market/api/v1
Docs: https://torch.market/api/v1/openapi.json
@mrsirg97-rgb
Copy link
Author

this adds additional functionality for the ai for token creation on the marketplace

@mrsirg97-rgb
Copy link
Author

update: added functionality so agents an read/write the message boards

@mrsirg97-rgb
Copy link
Author

feature branch has been updated to include all v2.4.1 functionality and match what is available on npm: https://www.npmjs.com/package/solana-agent-kit-torch-market.

@mrsirg97-rgb
Copy link
Author

updated to match skill v3.0 and package avail through npm. fully stress tested with e2e sims using surfpool. now using the torchsdk, available here: https://github.com/mrsirg97-rgb/torchsdk

@mrsirg97-rgb
Copy link
Author

bumped with latest. fully tested. latest torchsdk v bump to 1.0.4. sdk available here: https://www.npmjs.com/package/torchsdk

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.

1 participant