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