Skip to content

Commit 0e885e3

Browse files
feature: export merkle price update (#1428)
* export MerklePriceUpdate * CI --------- Co-authored-by: Silviu Troscot <[email protected]>
1 parent a632ee4 commit 0e885e3

File tree

1 file changed

+1
-6
lines changed
  • target_chains/solana/programs/pyth-solana-receiver/src

1 file changed

+1
-6
lines changed

target_chains/solana/programs/pyth-solana-receiver/src/lib.rs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
pub use pythnet_sdk::wire::v1::MerklePriceUpdate;
12
use {
23
crate::error::ReceiverError,
34
anchor_lang::prelude::*,
@@ -18,7 +19,6 @@ use {
1819
wire::{
1920
from_slice,
2021
v1::{
21-
MerklePriceUpdate,
2222
WormholeMessage,
2323
WormholePayload,
2424
},
@@ -53,7 +53,6 @@ declare_id!(pyth_solana_receiver_sdk::ID);
5353
pub mod pyth_solana_receiver {
5454
use super::*;
5555

56-
5756
pub fn initialize(ctx: Context<Initialize>, initial_config: Config) -> Result<()> {
5857
require!(
5958
initial_config.minimum_signatures > 0,
@@ -90,7 +89,6 @@ pub mod pyth_solana_receiver {
9089
Ok(())
9190
}
9291

93-
9492
pub fn set_data_sources(
9593
ctx: Context<Governance>,
9694
valid_data_sources: Vec<DataSource>,
@@ -212,7 +210,6 @@ pub mod pyth_solana_receiver {
212210
&params.merkle_price_update,
213211
)?;
214212

215-
216213
Ok(())
217214
}
218215

@@ -353,7 +350,6 @@ pub struct PostUpdateParams {
353350
pub treasury_id: u8,
354351
}
355352

356-
357353
fn deserialize_guardian_set_checked(
358354
account_info: &AccountInfo<'_>,
359355
wormhole: &Pubkey,
@@ -384,7 +380,6 @@ fn deserialize_guardian_set_checked(
384380
Ok(guardian_set)
385381
}
386382

387-
388383
struct VaaComponents {
389384
verification_level: VerificationLevel,
390385
emitter_address: [u8; 32],

0 commit comments

Comments
 (0)