import { MoveStruct, MoveTuple } from "../utils/index.mjs"; import * as _mysten_sui_bcs98 from "@mysten/sui/bcs"; import * as _mysten_sui_transactions286 from "@mysten/sui/transactions"; import { Transaction, TransactionArgument } from "@mysten/sui/transactions"; //#region src/contracts/deepbook_predict/pricing.d.ts declare namespace pricing_d_exports { export { FrozenPricer, HigherUpArguments, HigherUpOptions, LowerUpArguments, LowerUpOptions, Pricer, PricingSVI, ProbabilityArguments, ProbabilityOptions, RangePrice, RangePriceArguments, RangePriceOptions, RawSVI, SviKey, UpPriceArguments, UpPriceOptions, VolSnapshot, higherUp, lowerUp, probability, rangePrice, upPrice }; } declare const VolSnapshot: MoveStruct<{ /** * Canonical Propbook Pyth source for the market's underlying; commit finds this * feed in each Lazer update. */ pyth_source_id: _mysten_sui_bcs98.BcsType; /** The matched Block Scholes spot and forward, narrowed to Predict's width. */ bs_spot: _mysten_sui_bcs98.BcsType; bs_forward: _mysten_sui_bcs98.BcsType; /** Raw SVI parameters before roll-down, at 1e9. */ svi_a: MoveStruct<{ magnitude: _mysten_sui_bcs98.BcsType; is_negative: _mysten_sui_bcs98.BcsType; }, "fixed_math::i64::I64">; svi_b: _mysten_sui_bcs98.BcsType; svi_rho: MoveStruct<{ magnitude: _mysten_sui_bcs98.BcsType; is_negative: _mysten_sui_bcs98.BcsType; }, "fixed_math::i64::I64">; svi_m: MoveStruct<{ magnitude: _mysten_sui_bcs98.BcsType; is_negative: _mysten_sui_bcs98.BcsType; }, "fixed_math::i64::I64">; svi_sigma: _mysten_sui_bcs98.BcsType; /** * Provider source timestamps of the three reads. The SVI one is also the roll-down * anchor. */ bs_spot_source_timestamp_ms: _mysten_sui_bcs98.BcsType; bs_forward_source_timestamp_ms: _mysten_sui_bcs98.BcsType; svi_source_timestamp_ms: _mysten_sui_bcs98.BcsType; }, "@local-pkg/deepbook_predict::pricing::VolSnapshot">; declare const PricingSVI: MoveStruct<{ /** SVI `a`, magnitude at 1e18, sign in `a_is_negative`. */a_magnitude: _mysten_sui_bcs98.BcsType; a_is_negative: _mysten_sui_bcs98.BcsType; /** SVI `b`, at 1e18. */ b: _mysten_sui_bcs98.BcsType; rho: MoveStruct<{ magnitude: _mysten_sui_bcs98.BcsType; is_negative: _mysten_sui_bcs98.BcsType; }, "fixed_math::i64::I64">; m: MoveStruct<{ magnitude: _mysten_sui_bcs98.BcsType; is_negative: _mysten_sui_bcs98.BcsType; }, "fixed_math::i64::I64">; sigma: _mysten_sui_bcs98.BcsType; }, "@local-pkg/deepbook_predict::pricing::PricingSVI">; declare const FrozenPricer: MoveStruct<{ expiry_market_id: _mysten_sui_bcs98.BcsType, "bytes[32]">; forward: _mysten_sui_bcs98.BcsType; svi: MoveStruct<{ /** SVI `a`, magnitude at 1e18, sign in `a_is_negative`. */a_magnitude: _mysten_sui_bcs98.BcsType; a_is_negative: _mysten_sui_bcs98.BcsType; /** SVI `b`, at 1e18. */ b: _mysten_sui_bcs98.BcsType; rho: MoveStruct<{ magnitude: _mysten_sui_bcs98.BcsType; is_negative: _mysten_sui_bcs98.BcsType; }, "fixed_math::i64::I64">; m: MoveStruct<{ magnitude: _mysten_sui_bcs98.BcsType; is_negative: _mysten_sui_bcs98.BcsType; }, "fixed_math::i64::I64">; sigma: _mysten_sui_bcs98.BcsType; }, "@local-pkg/deepbook_predict::pricing::PricingSVI">; pyth_spot_source_timestamp_ms: _mysten_sui_bcs98.BcsType; block_scholes_spot_source_timestamp_ms: _mysten_sui_bcs98.BcsType; block_scholes_forward_source_timestamp_ms: _mysten_sui_bcs98.BcsType; block_scholes_svi_source_timestamp_ms: _mysten_sui_bcs98.BcsType; }, "@local-pkg/deepbook_predict::pricing::FrozenPricer">; declare const Pricer: MoveStruct<{ /** Expiry market this snapshot was loaded for. */expiry_market_id: _mysten_sui_bcs98.BcsType, "bytes[32]">; forward: _mysten_sui_bcs98.BcsType; svi: MoveStruct<{ /** SVI `a`, magnitude at 1e18, sign in `a_is_negative`. */a_magnitude: _mysten_sui_bcs98.BcsType; a_is_negative: _mysten_sui_bcs98.BcsType; /** SVI `b`, at 1e18. */ b: _mysten_sui_bcs98.BcsType; rho: MoveStruct<{ magnitude: _mysten_sui_bcs98.BcsType; is_negative: _mysten_sui_bcs98.BcsType; }, "fixed_math::i64::I64">; m: MoveStruct<{ magnitude: _mysten_sui_bcs98.BcsType; is_negative: _mysten_sui_bcs98.BcsType; }, "fixed_math::i64::I64">; sigma: _mysten_sui_bcs98.BcsType; }, "@local-pkg/deepbook_predict::pricing::PricingSVI">; /** * Timestamps of the oracle observations this snapshot validated, as trade events * report them — each observation's own economic clock. Pyth carries its source * timestamp (`0` only when no usable normalized observation exists; a `pricer_at` * Pricer carries the committed update's generation time); Block Scholes spot and * forward carry the provider `value_timestamp`, and SVI carries the provider * `svi_timestamp`. Those timestamps are the clocks freshness gates and SVI * roll-down use. The Pyth timestamp, including its `0` sentinel, is also what * `assert_pyth_spot_fresh` gates live trades on, so it must stay the value the * load's forward selection read. */ pyth_spot_source_timestamp_ms: _mysten_sui_bcs98.BcsType; block_scholes_spot_source_timestamp_ms: _mysten_sui_bcs98.BcsType; block_scholes_forward_source_timestamp_ms: _mysten_sui_bcs98.BcsType; block_scholes_svi_source_timestamp_ms: _mysten_sui_bcs98.BcsType; }, "@local-pkg/deepbook_predict::pricing::Pricer">; declare const RangePrice: MoveStruct<{ lower_up: _mysten_sui_bcs98.BcsType">; higher_up: _mysten_sui_bcs98.BcsType">; }, "@local-pkg/deepbook_predict::pricing::RangePrice">; declare const RawSVI: MoveStruct<{ a: MoveStruct<{ magnitude: _mysten_sui_bcs98.BcsType; is_negative: _mysten_sui_bcs98.BcsType; }, "fixed_math::i64::I64">; b: _mysten_sui_bcs98.BcsType; rho: MoveStruct<{ magnitude: _mysten_sui_bcs98.BcsType; is_negative: _mysten_sui_bcs98.BcsType; }, "fixed_math::i64::I64">; m: MoveStruct<{ magnitude: _mysten_sui_bcs98.BcsType; is_negative: _mysten_sui_bcs98.BcsType; }, "fixed_math::i64::I64">; sigma: _mysten_sui_bcs98.BcsType; }, "@local-pkg/deepbook_predict::pricing::RawSVI">; declare const SviKey: MoveTuple], "@local-pkg/deepbook_predict::pricing::SviKey">; interface UpPriceArguments { pricer: TransactionArgument; strike: TransactionArgument; } interface UpPriceOptions { package?: string; arguments: UpPriceArguments | [pricer: TransactionArgument, strike: TransactionArgument]; config?: { predictPackageId?: string; }; } /** * Return the current UP digital probability for a typed strike. Public PTB and * devInspect reads can compose it with a transaction-local `Pricer`. */ declare function upPrice(options: UpPriceOptions): (tx: Transaction) => _mysten_sui_transactions286.TransactionResult; interface RangePriceArguments { pricer: TransactionArgument; lower: TransactionArgument; higher: TransactionArgument; } interface RangePriceOptions { package?: string; arguments: RangePriceArguments | [pricer: TransactionArgument, lower: TransactionArgument, higher: TransactionArgument]; config?: { predictPackageId?: string; }; } /** * Return both boundary probabilities for `(lower, higher]`. Use `probability()` * for the combined range probability; absent boundaries are infinite sentinels. */ declare function rangePrice(options: RangePriceOptions): (tx: Transaction) => _mysten_sui_transactions286.TransactionResult; interface LowerUpArguments { price: TransactionArgument; } interface LowerUpOptions { package?: string; arguments: LowerUpArguments | [price: TransactionArgument]; config?: { predictPackageId?: string; }; } declare function lowerUp(options: LowerUpOptions): (tx: Transaction) => _mysten_sui_transactions286.TransactionResult; interface HigherUpArguments { price: TransactionArgument; } interface HigherUpOptions { package?: string; arguments: HigherUpArguments | [price: TransactionArgument]; config?: { predictPackageId?: string; }; } declare function higherUp(options: HigherUpOptions): (tx: Transaction) => _mysten_sui_transactions286.TransactionResult; interface ProbabilityArguments { price: TransactionArgument; } interface ProbabilityOptions { package?: string; arguments: ProbabilityArguments | [price: TransactionArgument]; config?: { predictPackageId?: string; }; } /** * Return the combined probability, floored at zero if approximated boundary prices * invert. */ declare function probability(options: ProbabilityOptions): (tx: Transaction) => _mysten_sui_transactions286.TransactionResult; //#endregion export { pricing_d_exports }; //# sourceMappingURL=pricing.d.mts.map