Module lazer

Source
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§

ext_pyth_lazer

Structs§

EmaData
EMA price/confidence for a feed, following the same fixed-point expo as the spot price.
FeedData
The latest stored data for one Lazer feed. Prices/exponent follow the Pyth fixed-point convention (value * 10^expo); the timestamp is stored as Nanoseconds.

Traits§

PythLazer
Feed-id-keyed read ABI of the Pyth Lazer adapter (contract/pyth-lazer). Feeds are addressed by their native u32 id; the adapter serves the raw stored FeedData and the consumer projects it (mirroring the RedStone adapter, which serves redstone::FeedData).

Type Aliases§

FeedDataResponse
Response shape of the adapter’s feed-id-keyed read (get_feeds_data): the raw stored feed for each requested u32 feed id (None when the feed is absent).