Skip to content

Commit af2d7b6

Browse files
committed
feat: add serializers for pyth formats
1 parent 3e5b4bb commit af2d7b6

File tree

9 files changed

+1723
-67
lines changed

9 files changed

+1723
-67
lines changed

pythnet/pythnet_sdk/Cargo.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,14 @@ name = "pythnet_sdk"
1414
bincode = "1.3.1"
1515
borsh = "0.9.1"
1616
bytemuck = { version = "1.11.0", features = ["derive"] }
17+
byteorder = "1.4.3"
1718
fast-math = "0.1"
1819
hex = { version = "0.4.3", features = ["serde"] }
1920
serde = { version = "1.0.144", features = ["derive"] }
2021
serde_wormhole = { git = "https://github.com/wormhole-foundation/wormhole", tag = "v2.17.1"}
2122
sha3 = "0.10.4"
2223
slow_primes = "0.1.14"
24+
thiserror = "1.0.40"
2325
wormhole-sdk = { git = "https://github.com/wormhole-foundation/wormhole", tag = "v2.17.1" }
2426

2527
[dev-dependencies]

pythnet/pythnet_sdk/examples/generate_pyth_data.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
// #![feature(proc_macro_hygiene)]
55

66
use {
7+
pythnet_sdk::pythnet::PYTH_PID,
78
serde_json::json,
89
solana_client::rpc_client::RpcClient,
9-
solana_pyth::PYTH_PID,
1010
solana_sdk::pubkey::Pubkey,
1111
std::{
1212
io::Write,

pythnet/pythnet_sdk/src/lib.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
pub mod accumulators;
22
pub mod hashers;
3-
pub mod payload;
3+
pub mod wire;
44
pub mod wormhole;
55

66
pub(crate) type Pubkey = [u8; 32];
7-
pub(crate) type PriceId = Pubkey;
87

98
/// Official Message Buffer Program Id
109
/// pubkey!("7Vbmv1jt4vyuqBZcpYPpnVhrqVe5e6ZPb6JxDcffRHUM");

pythnet/pythnet_sdk/src/payload.rs

Lines changed: 0 additions & 64 deletions
This file was deleted.

0 commit comments

Comments
 (0)