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// Authority
11pub(crate) const INITIALIZE_WHITELIST_AUTHORITY: &str =
12    "PwLauth111111111111111111111111111111111111";
13
14/// Program ID for the Program Whitelist program
15pub mod program {
16    pinocchio_pubkey::declare_id!(crate::ids::PROGRAM_WHITELIST_PROGRAM_ID);
17}
18
19/// Pubkey for the Program Whitelist account
20pub mod account {
21    pinocchio_pubkey::declare_id!(crate::ids::PROGRAM_WHITELIST_ACCOUNT_ID);
22}
23
24pub mod initialize_whitelist_authority {
25    pinocchio_pubkey::declare_id!(crate::ids::INITIALIZE_WHITELIST_AUTHORITY);
26}
27
28//////// SOLANA_PROGRAM ////////
29
30/// Program ID for the Program Whitelist program (solana-program)
31#[cfg(feature = "solana-p")]
32pub mod program_solana {
33    solana_program::declare_id!(crate::ids::PROGRAM_WHITELIST_PROGRAM_ID);
34}
35
36/// Pubkey for the Program Whitelist account (solana-program)
37#[cfg(feature = "solana-p")]
38pub mod account_solana {
39    solana_program::declare_id!(crate::ids::PROGRAM_WHITELIST_ACCOUNT_ID);
40}
41
42pub mod initialize_whitelist_authority_solana {
43    solana_program::declare_id!(crate::ids::INITIALIZE_WHITELIST_AUTHORITY);
44}