use crate::*;
use lazy_static::lazy_static;
#[allow(unused_imports)]
use std::str::FromStr;
use solana_program::pubkey::Pubkey;

/// Program id for the Switchboard oracle program
/// SW1TCH7qEPTdLsDHRgPuMQjbQxKdH2aBStViMFnt64f
pub const SWITCHBOARD_PROGRAM_ID: Pubkey = pubkey!("SW1TCH7qEPTdLsDHRgPuMQjbQxKdH2aBStViMFnt64f");

// Program id for the Switchboard oracle program
// sbattyXrzedoNATfc4L31wC9Mhxsi1BmFhTiN8gDshx
#[cfg(not(feature = "pid_override"))]
lazy_static! {
    pub static ref SWITCHBOARD_ATTESTATION_PROGRAM_ID: Pubkey =
        pubkey!("sbattyXrzedoNATfc4L31wC9Mhxsi1BmFhTiN8gDshx");
}
#[cfg(feature = "pid_override")]
lazy_static! {
    pub static ref SWITCHBOARD_ATTESTATION_PROGRAM_ID: Pubkey =
        Pubkey::from_str(&std::env::var("SWITCHBOARD_ATTESTATION_PROGRAM_ID").unwrap()).unwrap();
}
