pyth_min/
lib.rs

1pub mod byte_utils;
2pub mod error;
3pub mod messages;
4pub mod price_update;
5
6pub(crate) type Pubkey = [u8; 32];
7
8/// Official Message Buffer Program Id
9/// pubkey!("7Vbmv1jt4vyuqBZcpYPpnVhrqVe5e6ZPb6JxDcffRHUM");
10pub const MESSAGE_BUFFER_PID: Pubkey = [
11    96, 121, 180, 39, 141, 35, 152, 85, 128, 70, 147, 124, 128, 196, 115, 241, 86, 159, 207, 148,
12    39, 234, 137, 86, 178, 4, 238, 48, 102, 178, 128, 18,
13];
14
15/// Pubkey::find_program_address(&[b"emitter"], &sysvar::accumulator::id());
16/// pubkey!("G9LV2mp9ua1znRAfYwZz5cPiJMAbo1T6mbjdQsDZuMJg");
17pub const ACCUMULATOR_EMITTER_ADDRESS: Pubkey = [
18    225, 1, 250, 237, 172, 88, 81, 227, 43, 155, 35, 181, 249, 65, 26, 140, 43, 172, 74, 174, 62,
19    212, 221, 123, 129, 29, 209, 167, 46, 164, 170, 113,
20];
21
22/// Official Program IDs and Addresses on Pythnet
23pub mod pythnet {
24    use super::Pubkey;
25    /// Official Wormhole Program Address on Pythnet
26    /// pubkey!("H3fxXJ86ADW2PNuDDmZJg6mzTtPxkYCpNuQUTgmJ7AjU");
27    pub const WORMHOLE_PID: Pubkey = [
28        238, 106, 51, 154, 165, 236, 145, 158, 20, 176, 156, 210, 101, 132, 136, 107, 95, 235, 248,
29        189, 230, 34, 185, 117, 208, 26, 214, 142, 191, 11, 208, 35,
30    ];
31
32    /// Pubkey::find_program_address(&[b"Sequence", &emitter_pda_key.to_bytes()], &WORMHOLE_PID);
33    /// pubkey!("8MuVR15V86sSELdpW4UYTyx7WTXRARF1Bj7GJHgTJP3K");
34    pub const ACCUMULATOR_SEQUENCE_ADDR: Pubkey = [
35        109, 92, 198, 114, 10, 119, 5, 31, 13, 197, 193, 195, 132, 17, 12, 3, 77, 111, 158, 247,
36        194, 137, 236, 50, 8, 185, 1, 61, 85, 94, 54, 198,
37    ];
38
39    /// Official Pyth Oracle Program Id on Pythnet
40    /// pubkey!("FsJ3A3u2vn5cTVofAjvy6y5kwABJAqYWpe4975bi2epH");
41    pub const PYTH_PID: Pubkey = [
42        220, 229, 235, 225, 228, 156, 59, 159, 17, 76, 181, 84, 76, 80, 169, 158, 192, 214, 146,
43        214, 63, 86, 121, 90, 224, 41, 172, 131, 217, 234, 139, 226,
44    ];
45
46    /// Official Pyth Oracle Program Id on Devnet/Mainnet
47    /// pubkey!("rec5EKMGg6MxZYaMdyBfgwp4d5rB9T1VQH5pJv5LtFJ");
48    pub const PYTH_FEED_OWNER: Pubkey = [
49        120, 158, 231, 23, 1, 188, 174, 90, 113, 201, 232, 176, 89, 205, 82, 89, 12, 109, 234, 24,
50        110, 13, 69, 16, 16, 84, 225, 20, 19, 25, 94, 53,
51    ];
52}