Expand description
Pyth Lazer adapter feed data — the native, feed-id-keyed shape the contract/pyth-lazer
adapter stores and serves. The adapter is a pure store-and-serve oracle: it hands back the raw
FeedData, and each consumer (the proxy-oracle’s Lazer source, the gateway) projects it to
a pyth::Price itself, mirroring redstone::FeedData::to_pyth_price.
Freshness is likewise the consumer’s concern; the adapter applies no age filter on reads.
Modules§
Structs§
- EmaData
- EMA price/confidence for a feed, following the same fixed-point
expoas the spot price. - Feed
Data - The latest stored data for one Lazer feed. Prices/exponent follow the Pyth fixed-point
convention (
value * 10^expo); the timestamp is stored asNanoseconds.
Traits§
- Pyth
Lazer - Feed-id-keyed read ABI of the Pyth Lazer adapter (
contract/pyth-lazer). Feeds are addressed by their nativeu32id; the adapter serves the raw storedFeedDataand the consumer projects it (mirroring the RedStone adapter, which servesredstone::FeedData).
Type Aliases§
- Feed
Data Response - Response shape of the adapter’s feed-id-keyed read (
get_feeds_data): the raw stored feed for each requestedu32feed id (Nonewhen the feed is absent).