sol-parser-sdk 0.5.6

A lightweight Rust library for real-time event streaming from Solana DEX trading programs. Supports PumpFun, PumpSwap, Raydium LaunchLab, and Raydium protocols with Yellowstone gRPC and ShredStream.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use sol_parser_sdk::grpc::program_ids::RAYDIUM_LAUNCHLAB_PROGRAM_ID;
use sol_parser_sdk::grpc::{EventType, EventTypeFilter, Protocol};

fn main() {
    let protocol = Protocol::RaydiumLaunchlab;
    let filter = EventTypeFilter::include_only(vec![EventType::RaydiumLaunchlabMigrateAmm]);

    println!("scenario=raydium_launchlab_migration");
    println!("protocol={protocol:?}");
    println!("program_id={RAYDIUM_LAUNCHLAB_PROGRAM_ID}");
    println!("filter_includes_launchlab={}", filter.includes_raydium_launchlab());
}