| Crates.io | sugar-money |
| lib.rs | sugar-money |
| version | 0.1.38 |
| created_at | 2025-07-18 21:36:07.176849+00 |
| updated_at | 2025-09-23 09:52:58.049585+00 |
| description | Official Rust SDK for SugarMoney Protocol - Solana trading and DeFi interactions |
| homepage | https://sugar.money |
| repository | https://github.com/Sugar-Money/sdk |
| max_upload_size | |
| id | 1759707 |
| size | 650,664 |
Lightweight Rust toolkit for building on Sugar Money: typed HTTP API client, on-chain instruction builders/quoters, and a slim Raydium CP-Swap compatibility layer — all in one workspace.
api/ — Async client for the Sugar Money REST/WebSocket API.
reqwest + tokio for HTTP, tokio-tungstenite for realtime.serde.program/ — High-level Solana client for the SugarMoney and pSOL Anchor programs.
raydium_cp_swap/ — Vendored raydium-cp-swap components adapted for off-chain use.
AmmConfig, PoolState), curve math (CurveCalculator), Raydium-compatible swap accounts/args.LICENSE and NOTICE).Cargo.toml snippets and examples.raydium_cp_swap::{accounts, instruction} for swap Ixs; raydium_cp_swap::curve for local math.This repository includes code derived from raydium-cp-swap under Apache-2.0.
See LICENSE and NOTICE for details and a summary of modifications.