switchboard_solana/
program_id.rs

1use crate::*;
2pub use anchor_lang::prelude::*;
3pub use anchor_lang::solana_program;
4pub use anchor_lang::solana_program::*;
5pub use anchor_lang::solana_program::{pubkey, pubkey::Pubkey};
6use lazy_static::lazy_static;
7#[allow(unused_imports)]
8use std::str::FromStr;
9
10/// Program id for the Switchboard oracle program
11/// SW1TCH7qEPTdLsDHRgPuMQjbQxKdH2aBStViMFnt64f
12lazy_static! {
13    pub static ref SWITCHBOARD_PROGRAM_ID: Pubkey =
14        Pubkey::from_str("SW1TCH7qEPTdLsDHRgPuMQjbQxKdH2aBStViMFnt64f").unwrap();
15}
16
17// Program id for the Switchboard oracle program
18// sbattyXrzedoNATfc4L31wC9Mhxsi1BmFhTiN8gDshx
19#[cfg(not(feature = "pid_override"))]
20lazy_static! {
21    pub static ref SWITCHBOARD_ATTESTATION_PROGRAM_ID: Pubkey =
22        Pubkey::from_str("sbattyXrzedoNATfc4L31wC9Mhxsi1BmFhTiN8gDshx").unwrap();
23}
24#[cfg(feature = "pid_override")]
25lazy_static! {
26    pub static ref SWITCHBOARD_ATTESTATION_PROGRAM_ID: Pubkey =
27        Pubkey::from_str(&std::env::var("SWITCHBOARD_ATTESTATION_PROGRAM_ID").unwrap()).unwrap();
28}