1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
use anchor_spl::token::TokenAccount;

pub mod aggregator;
pub mod decimal;
pub mod error;
pub mod history_buffer;
pub mod vrf;

pub use aggregator::AggregatorAccountData;
pub use history_buffer::AggregatorHistoryBuffer;
pub use vrf::VrfAccountData;
pub use vrf::VrfRequestRandomness;

/// Mainnet program id for Switchboard v2. Prints out as "SW1TCH7qEPTdLsDHRgPuMQjbQxKdH2aBStViMFnt64f"
pub const SWITCHBOARD_V2_MAINNET: solana_program::pubkey::Pubkey =
    solana_program::pubkey::Pubkey::new_from_array([
        6, 136, 81, 198, 140, 104, 50, 240, 47, 165, 129, 177, 191, 73, 27, 119, 202, 65, 119, 107,
        162, 185, 136, 181, 166, 250, 186, 142, 227, 162, 236, 144,
    ]);

/// Devnet program id for Switchboard v2. Prints out as "2TfB33aLaneQb5TNVwyDz3jSZXS6jdW2ARw1Dgf84XCG"
pub const SWITCHBOARD_V2_DEVNET: solana_program::pubkey::Pubkey =
    solana_program::pubkey::Pubkey::new_from_array([
        21, 175, 243, 73, 45, 68, 245, 12, 42, 213, 156, 141, 129, 194, 65, 181, 115, 202, 11, 225,
        119, 62, 247, 42, 73, 206, 175, 81, 212, 253, 178, 45,
    ]);