Skip to content

Commit a60279a

Browse files
authored
[solana-receiver] Post price update (#1189)
* Do it * Remove keypairs * add check comment * Works * Cleanup deps * Next * Add better docs
1 parent 4aa6045 commit a60279a

File tree

14 files changed

+240
-367
lines changed

14 files changed

+240
-367
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,6 @@ repos:
108108
- id: cargo-clippy-pyth-solana-receiver
109109
name: Cargo clippy for solana target chain contract
110110
language: "rust"
111-
entry: cargo +nightly-2023-03-01 clippy --manifest-path ./target_chains/solana/Cargo.toml --tests --fix --allow-dirty --allow-staged --features devnet -- -D warnings
111+
entry: cargo +nightly-2023-03-01 clippy --manifest-path ./target_chains/solana/Cargo.toml --tests --fix --allow-dirty --allow-staged -- -D warnings
112112
pass_filenames: false
113113
files: target_chains/solana

pythnet/pythnet_sdk/src/messages.rs

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,14 @@
11
#[cfg(feature = "quickcheck")]
22
use quickcheck::Arbitrary;
3-
use serde::{
4-
Deserialize,
5-
Serialize,
3+
use {
4+
borsh::{
5+
BorshDeserialize,
6+
BorshSerialize,
7+
},
8+
serde::{
9+
Deserialize,
10+
Serialize,
11+
},
612
};
713

814
/// Message format for sending data to other chains via the accumulator program
@@ -68,7 +74,9 @@ impl Arbitrary for Message {
6874
pub type FeedId = [u8; 32];
6975

7076
#[repr(C)]
71-
#[derive(Debug, Copy, Clone, PartialEq, Serialize, Deserialize)]
77+
#[derive(
78+
Debug, Copy, Clone, PartialEq, Serialize, Deserialize, BorshDeserialize, BorshSerialize,
79+
)]
7280
pub struct PriceFeedMessage {
7381
pub feed_id: FeedId,
7482
pub price: i64,

0 commit comments

Comments
 (0)