Skip to content

Commit

Permalink
feat(pyth-solana-receiver): add post_twap_update instruction & types (
Browse files Browse the repository at this point in the history
#2172)

* feat: impl post_twap_update and necessary types

* refactor: move TwapPrice to receiver sdk
  • Loading branch information
tejasbadadare authored Dec 7, 2024
1 parent 1e169bd commit 59f3f6f
Show file tree
Hide file tree
Showing 9 changed files with 795 additions and 202 deletions.
4 changes: 3 additions & 1 deletion pythnet/pythnet_sdk/src/messages.rs
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,9 @@ impl Arbitrary for PriceFeedMessage {
}
}

/// Message format for sending Twap data via the accumulator program
/// Message format for sending cumulative price data via the accumulator program.
/// These messages are used to calculate TWAPs for a given time window.
/// The calculated TWAPs are stored as TwapPrices in TwapUpdate accounts.
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Serialize, Deserialize)]
pub struct TwapMessage {
Expand Down
Loading

0 comments on commit 59f3f6f

Please sign in to comment.