spherenet-program-whitelist-interface 0.3.0

Interface of SphereNet's Program Whitelist Program
Documentation
//! Program identifiers

// Program
pub(crate) const PROGRAM_WHITELIST_PROGRAM_ID: &str = "PwL1111111111111111111111111111111111111111";

// Account PDA: find_program_address(&[SEED], &PROGRAM_ID) → ACCOUNT_ID (bump: 254)
pub const PROGRAM_WHITELIST_SEED: &[u8] = b"000000000038250e";
pub(crate) const PROGRAM_WHITELIST_ACCOUNT_ID: &str = "PwLEsb9Yng69Kxxt4hYyhZ3JAyePgWaWtpBLXvsEgiL";

/// Program ID for the Program Whitelist program
pub mod program {
    pinocchio_pubkey::declare_id!(crate::ids::PROGRAM_WHITELIST_PROGRAM_ID);
}

/// Pubkey for the Program Whitelist account
pub mod account {
    pinocchio_pubkey::declare_id!(crate::ids::PROGRAM_WHITELIST_ACCOUNT_ID);
}

//////// SOLANA_PROGRAM ////////

/// Program ID for the Program Whitelist program (solana-program)
#[cfg(feature = "solana-p")]
pub mod program_solana {
    solana_program::declare_id!(crate::ids::PROGRAM_WHITELIST_PROGRAM_ID);
}

/// Pubkey for the Program Whitelist account (solana-program)
#[cfg(feature = "solana-p")]
pub mod account_solana {
    solana_program::declare_id!(crate::ids::PROGRAM_WHITELIST_ACCOUNT_ID);
}