percolator_sdk/lib.rs
1//! # Percolator Rust SDK
2//!
3//! A high-performance, type-safe SDK for interacting with the Percolator risk engine on Solana.
4//!
5//! ## Features
6//! - **Instruction Builders**: Type-safe construction of Percolator instructions.
7//! - **Account Decoding**: Fast, size-checked decoding of the `RiskEngine` state.
8//! - **High-Level Client**: Simplified RPC interaction for trading, deposits, and maintenance.
9
10pub mod accounts;
11pub mod client;
12pub mod instructions;
13pub mod percolator;
14
15pub use accounts::*;
16pub use client::*;
17pub use instructions::*;
18
19pub use solana_sdk::{pubkey::Pubkey, signature::{Keypair, Signer}};
20
21/// Re-export core types from the engine for convenience
22pub use percolator::{RiskEngine, Account, RiskParams, InsuranceFund, MAX_ACCOUNTS};