Skip to main content

sol_parser_sdk/instr/
program_ids.rs

1//! Centralized Program ID Constants
2//!
3//! This module contains optimized Pubkey constants for all DEX protocols.
4//! Using Pubkey constants instead of string constants allows for direct
5//! comparison without expensive string conversion operations.
6
7use solana_sdk::pubkey;
8use solana_sdk::pubkey::Pubkey;
9
10/// PumpFun program ID as Pubkey constant
11pub const PUMPFUN_PROGRAM_ID: Pubkey = pubkey!("6EF8rrecthR5Dkzon8Nwu78hRvfCKubJ14M5uBEwF6P");
12
13/// Raydium LaunchLab / Launchpad program ID as Pubkey constant.
14///
15/// The SDK keeps the historical Bonk event names for compatibility, but this
16/// parser routes the Raydium Launchpad IDL (`idl/raydium_launchpad.json`).
17pub const BONK_PROGRAM_ID: Pubkey = pubkey!("LanMV9sAd7wArD4vJFi2qDdfnVhFxYSUg6eADduJ3uj");
18
19/// PumpSwap program ID as Pubkey constant
20pub const PUMPSWAP_PROGRAM_ID: Pubkey = pubkey!("pAMMBay6oceH9fJKBRHGP5D4bD4sWpmSwMn52FMfXEA");
21
22/// Pump Fees (`pump_fees`) program — 见 `idls/pump_fees.json`
23pub const PUMP_FEES_PROGRAM_ID: Pubkey = pubkey!("pfeeUxB6jkeY1Hxd7CsFCAjcbHA9rWtchMGdZ6VojVZ");
24
25/// Raydium CLMM program ID as Pubkey constant
26pub const RAYDIUM_CLMM_PROGRAM_ID: Pubkey = pubkey!("CAMMCzo5YL8w4VFF8KVHrK22GGUsp5VTaW7grrKgrWqK");
27
28/// Raydium CPMM program ID as Pubkey constant
29pub const RAYDIUM_CPMM_PROGRAM_ID: Pubkey = pubkey!("CPMMoo8L3F4NbTegBCKVNunggL7H1ZpdTHKxQB5qKP1C");
30
31/// Raydium AMM V4 program ID as Pubkey constant
32pub const RAYDIUM_AMM_V4_PROGRAM_ID: Pubkey =
33    pubkey!("675kPX9MHTjS2zt1qfr1NYHuzeLXfQM9H24wFSUt1Mp8");
34
35/// Orca Whirlpool program ID as Pubkey constant
36pub const ORCA_WHIRLPOOL_PROGRAM_ID: Pubkey =
37    pubkey!("whirLbMiicVdio4qvUfM5KAg6Ct8VwpYzGff3uctyCc");
38
39/// Meteora Pools program ID as Pubkey constant
40pub const METEORA_POOLS_PROGRAM_ID: Pubkey =
41    pubkey!("Eo7WjKq67rjJQSZxS6z3YkapzY3eMj6Xy8X5EQVn5UaB");
42
43/// Meteora DAMM V2 program ID as Pubkey constant
44pub const METEORA_DAMM_V2_PROGRAM_ID: Pubkey =
45    pubkey!("cpamdpZCGKUy5JxQXB4dcpGPiikHawvSWAd6mEn1sGG");
46
47/// Meteora DLMM program ID as Pubkey constant
48pub const METEORA_DLMM_PROGRAM_ID: Pubkey = pubkey!("LBUZKhRxPF3XUpBCjp4YzTKgLccjZhTSDM9YuVaPwxo");