import { MoveStruct, RawTransactionArgument } from "../utils/index.mjs"; import * as _mysten_sui_bcs764 from "@mysten/sui/bcs"; import * as _mysten_sui_transactions433 from "@mysten/sui/transactions"; import { Transaction, TransactionArgument } from "@mysten/sui/transactions"; //#region src/contracts/deepbook_predict_math/lazer_price.d.ts declare namespace lazer_price_d_exports { export { ChannelArguments, ChannelOptions, EnvelopeUsArguments, EnvelopeUsOptions, FeedIdArguments, FeedIdOptions, FromUpdateArguments, FromUpdateOptions, GenerationUsArguments, GenerationUsOptions, LazerPrice, SpotArguments, SpotOptions, channel, envelopeUs, feedId, fromUpdate, generationUs, spot }; } declare const LazerPrice: MoveStruct<{ feed_id: _mysten_sui_bcs764.BcsType; /** * A Lazer channel id: `channel_fixed_rate_50ms!()`, `channel_fixed_rate_200ms!()`, * or `1` for real-time. */ channel: _mysten_sui_bcs764.BcsType; /** The update's timestamp, in µs. */ envelope_us: _mysten_sui_bcs764.BcsType; /** The feed's own update time, in µs. Never after the envelope. */ generation_us: _mysten_sui_bcs764.BcsType; /** * The price normalized to 1e9, rounded down when the source is finer; positive and * at most `u64::MAX / 100`. */ spot: _mysten_sui_bcs764.BcsType; }, "@local-pkg/deepbook_predict_math::lazer_price::LazerPrice">; interface FromUpdateArguments { update: TransactionArgument; feedId: RawTransactionArgument; } interface FromUpdateOptions { package?: string; arguments: FromUpdateArguments | [update: TransactionArgument, feedId: RawTransactionArgument]; config?: { predictMathPackageId?: string; }; } /** * Decode `feed_id` from a verified Lazer update. `none` when the feed's price or * update time is empty at this tick, or its price does not normalize to a * pricing-safe spot. Aborts `EFeedMissing` when the update does not carry the feed * and `EPropertyNotRequested` when the feed lacks the price, exponent, or * update-time property, because the caller then passed the wrong update, and * `EGenerationAfterEnvelope` when the feed claims an update time after the * envelope that carries it. * * Uses Lazer's v1 `Update`, which Pyth marked deprecated on Mainnet but still * serves; a later library upgrade adds a constructor for v2. */ declare function fromUpdate(options: FromUpdateOptions): (tx: Transaction) => _mysten_sui_transactions433.TransactionResult; interface FeedIdArguments { price: TransactionArgument; } interface FeedIdOptions { package?: string; arguments: FeedIdArguments | [price: TransactionArgument]; config?: { predictMathPackageId?: string; }; } declare function feedId(options: FeedIdOptions): (tx: Transaction) => _mysten_sui_transactions433.TransactionResult; interface ChannelArguments { price: TransactionArgument; } interface ChannelOptions { package?: string; arguments: ChannelArguments | [price: TransactionArgument]; config?: { predictMathPackageId?: string; }; } declare function channel(options: ChannelOptions): (tx: Transaction) => _mysten_sui_transactions433.TransactionResult; interface EnvelopeUsArguments { price: TransactionArgument; } interface EnvelopeUsOptions { package?: string; arguments: EnvelopeUsArguments | [price: TransactionArgument]; config?: { predictMathPackageId?: string; }; } declare function envelopeUs(options: EnvelopeUsOptions): (tx: Transaction) => _mysten_sui_transactions433.TransactionResult; interface GenerationUsArguments { price: TransactionArgument; } interface GenerationUsOptions { package?: string; arguments: GenerationUsArguments | [price: TransactionArgument]; config?: { predictMathPackageId?: string; }; } declare function generationUs(options: GenerationUsOptions): (tx: Transaction) => _mysten_sui_transactions433.TransactionResult; interface SpotArguments { price: TransactionArgument; } interface SpotOptions { package?: string; arguments: SpotArguments | [price: TransactionArgument]; config?: { predictMathPackageId?: string; }; } declare function spot(options: SpotOptions): (tx: Transaction) => _mysten_sui_transactions433.TransactionResult; //#endregion export { lazer_price_d_exports }; //# sourceMappingURL=lazer_price.d.mts.map