1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
//! Oracle quote verification and data extraction
//!
//! This module provides functionality for verifying and extracting data from oracle quotes
//! that have been cryptographically signed by multiple oracles. The main components are:
//!
//! - [`OracleQuote`] - A verified quote containing oracle feed data
//! - [`QuoteVerifier`] - Builder pattern for configuring and performing verification
//! - [`PackedFeedInfo`] and [`PackedQuoteHeader`] - Zero-copy data structures for efficient access
//!
//! # Usage
//!
//! ```rust,ignore
//! use switchboard_on_demand::prelude::*;
//!
//! // Configure the verifier with required accounts
//! let mut verifier = QuoteVerifier::new();
//! verifier
//! .queue(&queue_account)
//! .slothash_sysvar(&slothash_sysvar)
//! .ix_sysvar(&instructions_sysvar)
//! .clock(&clock_sysvar)
//! .max_age(150);
//!
//! // Load and verify the oracle quote
//! let quote = verifier.load_and_verify(0)?;
//!
//! // Access feed data
//! for feed in quote.feeds() {
//! println!("Feed {}: {}", feed.hex_id(), feed.value());
//! }
//! ```
pub use *;
pub use *;
pub use *;
/// Oracle quote account utilities for Anchor integration