pyth_solana_receiver_sdk_legacy/
lib.rs

1use {
2    anchor_lang::{
3        declare_id,
4        prelude::*,
5    },
6    pythnet_sdk::wire::v1::MerklePriceUpdate,
7    solana_program::{
8        pubkey,
9        pubkey::Pubkey,
10    },
11};
12
13pub mod config;
14pub mod cpi;
15pub mod error;
16pub mod pda;
17pub mod price_update;
18pub mod program;
19
20declare_id!("rec5EKMGg6MxZYaMdyBfgwp4d5rB9T1VQH5pJv5LtFJ");
21
22pub const PYTH_PUSH_ORACLE_ID: Pubkey = pubkey!("pythWSnswVUd12oZpeFP8e9CVaEqJg25g1Vtc2biRsT");
23
24#[derive(Debug, AnchorSerialize, AnchorDeserialize, Clone)]
25pub struct PostUpdateAtomicParams {
26    pub vaa:                 Vec<u8>,
27    pub merkle_price_update: MerklePriceUpdate,
28    pub treasury_id:         u8,
29}
30
31#[derive(Debug, AnchorSerialize, AnchorDeserialize, Clone)]
32pub struct PostUpdateParams {
33    pub merkle_price_update: MerklePriceUpdate,
34    pub treasury_id:         u8,
35}