Skip to main content

spherenet_program_whitelist_interface/
ids.rs

1//! Program identifiers
2
3// Program
4pub(crate) const PROGRAM_WHITELIST_PROGRAM_ID: &str = "PwL1111111111111111111111111111111111111111";
5
6// Account PDA: find_program_address(&[SEED], &PROGRAM_ID) → ACCOUNT_ID (bump: 254)
7pub const PROGRAM_WHITELIST_SEED: &[u8] = b"000000000038250e";
8pub(crate) const PROGRAM_WHITELIST_ACCOUNT_ID: &str = "PwLEsb9Yng69Kxxt4hYyhZ3JAyePgWaWtpBLXvsEgiL";
9
10/// Program ID for the Program Whitelist program
11pub mod program {
12    pinocchio_pubkey::declare_id!(crate::ids::PROGRAM_WHITELIST_PROGRAM_ID);
13}
14
15/// Pubkey for the Program Whitelist account
16pub mod account {
17    pinocchio_pubkey::declare_id!(crate::ids::PROGRAM_WHITELIST_ACCOUNT_ID);
18}
19
20//////// SOLANA_PROGRAM ////////
21
22/// Program ID for the Program Whitelist program (solana-program)
23#[cfg(feature = "solana-p")]
24pub mod program_solana {
25    solana_program::declare_id!(crate::ids::PROGRAM_WHITELIST_PROGRAM_ID);
26}
27
28/// Pubkey for the Program Whitelist account (solana-program)
29#[cfg(feature = "solana-p")]
30pub mod account_solana {
31    solana_program::declare_id!(crate::ids::PROGRAM_WHITELIST_ACCOUNT_ID);
32}