feature: export merkle price update (#1428)
* export MerklePriceUpdate * CI --------- Co-authored-by: Silviu Troscot <silviu.troscot10@gmail.com>
This commit is contained in:
parent
a632ee4bd2
commit
0e885e3ca7
|
@ -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 {
|
|||
¶ms.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],
|
||||
|
|
Loading…
Reference in New Issue