Skip to content

Commit a3147fe

Browse files
changed anchor serailze/deserailize to borsh (#1765)
* changed anchor serailze/deserailize to borsh * Update Cargo.toml changed pyth-solana-receiver-sdk to 0.3.1 * cargo lock --------- Co-authored-by: Guillermo Bescos <[email protected]>
1 parent 0db4090 commit a3147fe

File tree

3 files changed

+11
-7
lines changed

3 files changed

+11
-7
lines changed

target_chains/solana/Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

target_chains/solana/pyth_solana_receiver_sdk/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "pyth-solana-receiver-sdk"
3-
version = "0.3.0"
3+
version = "0.3.1"
44
description = "SDK for the Pyth Solana Receiver program"
55
authors = ["Pyth Data Association"]
66
repository = "https://github.com/pyth-network/pyth-crosschain"

target_chains/solana/pyth_solana_receiver_sdk/src/lib.rs

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@ use {
33
declare_id,
44
prelude::*,
55
},
6+
borsh::{
7+
BorshDeserialize,
8+
BorshSerialize,
9+
},
610
pythnet_sdk::wire::v1::MerklePriceUpdate,
711
solana_program::{
812
pubkey,
@@ -21,15 +25,15 @@ declare_id!("rec5EKMGg6MxZYaMdyBfgwp4d5rB9T1VQH5pJv5LtFJ");
2125

2226
pub const PYTH_PUSH_ORACLE_ID: Pubkey = pubkey!("pythWSnswVUd12oZpeFP8e9CVaEqJg25g1Vtc2biRsT");
2327

24-
#[derive(Debug, AnchorSerialize, AnchorDeserialize, Clone)]
25-
pub struct PostUpdateAtomicParams {
26-
pub vaa: Vec<u8>,
28+
#[derive(Debug, BorshSerialize, BorshDeserialize, Clone)]
29+
pub struct PostUpdateParams {
2730
pub merkle_price_update: MerklePriceUpdate,
2831
pub treasury_id: u8,
2932
}
3033

31-
#[derive(Debug, AnchorSerialize, AnchorDeserialize, Clone)]
32-
pub struct PostUpdateParams {
34+
#[derive(Debug, BorshSerialize, BorshDeserialize, Clone)]
35+
pub struct PostUpdateAtomicParams {
36+
pub vaa: Vec<u8>,
3337
pub merkle_price_update: MerklePriceUpdate,
3438
pub treasury_id: u8,
3539
}

0 commit comments

Comments
 (0)