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/// Bonk program ID as Pubkey constant
14pub const BONK_PROGRAM_ID: Pubkey = pubkey!("DjVE6JNiYqPL2QXyCUUh8rNjHrbz9hXHNYt99MQ59qw1");
15
16/// PumpSwap program ID as Pubkey constant
17pub const PUMPSWAP_PROGRAM_ID: Pubkey = pubkey!("pAMMBay6oceH9fJKBRHGP5D4bD4sWpmSwMn52FMfXEA");
18
19/// Pump Fees (`pump_fees`) program — 见 `idls/pump_fees.json`
20pub const PUMP_FEES_PROGRAM_ID: Pubkey = pubkey!("pfeeUxB6jkeY1Hxd7CsFCAjcbHA9rWtchMGdZ6VojVZ");
21
22/// Raydium CLMM program ID as Pubkey constant
23/// Note: Original string was too long, using corrected version
24pub const RAYDIUM_CLMM_PROGRAM_ID: Pubkey = pubkey!("CAMMCzo5YL8w4VFF8KVHrK22GGUQpMDdHFWF5LCATdCR");
25
26/// Raydium CPMM program ID as Pubkey constant
27pub const RAYDIUM_CPMM_PROGRAM_ID: Pubkey = pubkey!("CPMMoo8L3F4NbTegBCKVNunggL7H1ZpdTHKxQB5qKP1C");
28
29/// Raydium AMM V4 program ID as Pubkey constant
30pub const RAYDIUM_AMM_V4_PROGRAM_ID: Pubkey =
31    pubkey!("675kPX9MHTjS2zt1qfr1NYHuzeLXfQM9H24wFSUt1Mp8");
32
33/// Orca Whirlpool program ID as Pubkey constant
34pub const ORCA_WHIRLPOOL_PROGRAM_ID: Pubkey =
35    pubkey!("whirLbMiicVdio4qvUfM5KAg6Ct8VwpYzGff3uctyCc");
36
37/// Meteora Pools program ID as Pubkey constant
38pub const METEORA_POOLS_PROGRAM_ID: Pubkey =
39    pubkey!("Eo7WjKq67rjJQSZxS6z3YkapzY3eMj6Xy8X5EQVn5UaB");
40
41/// Meteora DAMM V2 program ID as Pubkey constant
42pub const METEORA_DAMM_V2_PROGRAM_ID: Pubkey =
43    pubkey!("cpamdpZCGKUy5JxQXB4dcpGPiikHawvSWAd6mEn1sGG");
44
45/// Meteora DLMM program ID as Pubkey constant
46pub const METEORA_DLMM_PROGRAM_ID: Pubkey = pubkey!("LBUZKhRxPF3XUpBCjp4YzTKgLccjZhTSDM9YuVaPwxo");