feature: export merkle price update (#1428)

* export MerklePriceUpdate

* CI

---------

Co-authored-by: Silviu Troscot <silviu.troscot10@gmail.com>
This commit is contained in:
guibescos 2024-04-08 19:44:02 +01:00 committed by GitHub
parent a632ee4bd2
commit 0e885e3ca7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 6 deletions

View File

@ -1,3 +1,4 @@
pub use pythnet_sdk::wire::v1::MerklePriceUpdate;
use {
crate::error::ReceiverError,
anchor_lang::prelude::*,
@ -18,7 +19,6 @@ use {
wire::{
from_slice,
v1::{
MerklePriceUpdate,
WormholeMessage,
WormholePayload,
},
@ -53,7 +53,6 @@ declare_id!(pyth_solana_receiver_sdk::ID);
pub mod pyth_solana_receiver {
use super::*;
pub fn initialize(ctx: Context<Initialize>, initial_config: Config) -> Result<()> {
require!(
initial_config.minimum_signatures > 0,
@ -90,7 +89,6 @@ pub mod pyth_solana_receiver {
Ok(())
}
pub fn set_data_sources(
ctx: Context<Governance>,
valid_data_sources: Vec<DataSource>,
@ -212,7 +210,6 @@ pub mod pyth_solana_receiver {
&params.merkle_price_update,
)?;
Ok(())
}
@ -353,7 +350,6 @@ pub struct PostUpdateParams {
pub treasury_id: u8,
}
fn deserialize_guardian_set_checked(
account_info: &AccountInfo<'_>,
wormhole: &Pubkey,
@ -384,7 +380,6 @@ fn deserialize_guardian_set_checked(
Ok(guardian_set)
}
struct VaaComponents {
verification_level: VerificationLevel,
emitter_address: [u8; 32],