import { MoveStruct } from "../utils/index.mjs"; import * as _mysten_sui_bcs625 from "@mysten/sui/bcs"; //#region src/contracts/deepbook_predict_orders/queue_events.d.ts declare namespace queue_events_d_exports { export { CohortCommitted, DelayedExecutionPolicyUpdated, MarketPayoutsCompleted, OpenRecordPayoutSkipped, OpenRecordSettled, OrderEnqueued, QueuedOrderFilled, QueuedOrderRefunded, QueuedOrdersCleaned, RecordFundsClaimed, RecordFundsParked }; } declare const OrderEnqueued: MoveStruct<{ expiry_market_id: _mysten_sui_bcs625.BcsType, "bytes[32]">; record_id: _mysten_sui_bcs625.BcsType; account_id: _mysten_sui_bcs625.BcsType, "bytes[32]">; /** An `order_queue` kind code. */ kind: _mysten_sui_bcs625.BcsType; request: MoveStruct<{ lower_tick: _mysten_sui_bcs625.BcsType; higher_tick: _mysten_sui_bcs625.BcsType; quantity: _mysten_sui_bcs625.BcsType; max_premium: _mysten_sui_bcs625.BcsType; min_quantity: _mysten_sui_bcs625.BcsType; max_cost: _mysten_sui_bcs625.BcsType; max_probability: _mysten_sui_bcs625.BcsType; min_probability: _mysten_sui_bcs625.BcsType; min_proceeds: _mysten_sui_bcs625.BcsType; }, "@local-pkg/deepbook_predict_orders::order_queue::OrderRequest">; /** The position a sell moved into the record; zero for a mint. */ position: MoveStruct<{ order_id: _mysten_sui_bcs625.BcsType; root_id: _mysten_sui_bcs625.BcsType; opened_at_ms: _mysten_sui_bcs625.BcsType; }, "@local-pkg/deepbook_predict_orders::order_queue::HeldPosition">; timing: MoveStruct<{ placed_at_ms: _mysten_sui_bcs625.BcsType; earliest_price_ms: _mysten_sui_bcs625.BcsType; tau_ms: _mysten_sui_bcs625.BcsType; deadline_ms: _mysten_sui_bcs625.BcsType; cutoff_ms: _mysten_sui_bcs625.BcsType; pyth_channel: _mysten_sui_bcs625.BcsType; }, "@local-pkg/deepbook_predict_orders::order_queue::OrderTiming">; vol: MoveStruct<{ pyth_source_id: _mysten_sui_bcs625.BcsType; bs_spot: _mysten_sui_bcs625.BcsType; bs_forward: _mysten_sui_bcs625.BcsType; svi_a: MoveStruct<{ magnitude: _mysten_sui_bcs625.BcsType; is_negative: _mysten_sui_bcs625.BcsType; }, "fixed_math::i64::I64">; svi_b: _mysten_sui_bcs625.BcsType; svi_rho: MoveStruct<{ magnitude: _mysten_sui_bcs625.BcsType; is_negative: _mysten_sui_bcs625.BcsType; }, "fixed_math::i64::I64">; svi_m: MoveStruct<{ magnitude: _mysten_sui_bcs625.BcsType; is_negative: _mysten_sui_bcs625.BcsType; }, "fixed_math::i64::I64">; svi_sigma: _mysten_sui_bcs625.BcsType; bs_spot_source_timestamp_ms: _mysten_sui_bcs625.BcsType; bs_forward_source_timestamp_ms: _mysten_sui_bcs625.BcsType; svi_source_timestamp_ms: _mysten_sui_bcs625.BcsType; }, "deepbook_predict::pricing::VolSnapshot">; budget: _mysten_sui_bcs625.BcsType; order_fee: _mysten_sui_bcs625.BcsType; /** The order's worst-case cash need, added to the waiting total. */ cash_need: _mysten_sui_bcs625.BcsType; subsidy_bound: _mysten_sui_bcs625.BcsType; builder_code_id: _mysten_sui_bcs625.BcsType | null | undefined, "Option">; referrer_account_id: _mysten_sui_bcs625.BcsType | null | undefined, "Option">; /** The Open record a sell took its position from. `none` for a mint. */ source_record_id: _mysten_sui_bcs625.BcsType">; /** The market's cash, required cash, and waiting cash need after the call. */ market_cash: _mysten_sui_bcs625.BcsType; required_cash: _mysten_sui_bcs625.BcsType; waiting_cash_need: _mysten_sui_bcs625.BcsType; onchain_timestamp_ms: _mysten_sui_bcs625.BcsType; }, "@local-pkg/deepbook_predict_orders::queue_events::OrderEnqueued">; declare const CohortCommitted: MoveStruct<{ expiry_market_id: _mysten_sui_bcs625.BcsType, "bytes[32]">; tau_ms: _mysten_sui_bcs625.BcsType; /** The update's envelope in ms: τ, or the backup tick one channel tick later. */ tick_ms: _mysten_sui_bcs625.BcsType; first_record_id: _mysten_sui_bcs625.BcsType; last_record_id: _mysten_sui_bcs625.BcsType; /** The committed price of the cohort's first order, normalized to 1e9. */ spot: _mysten_sui_bcs625.BcsType; /** That price's own update time, in µs. */ generation_us: _mysten_sui_bcs625.BcsType; pyth_source_id: _mysten_sui_bcs625.BcsType; pyth_channel: _mysten_sui_bcs625.BcsType; /** The transaction sender, so monitoring sees commits by third parties. */ sender: _mysten_sui_bcs625.BcsType, "bytes[32]">; onchain_timestamp_ms: _mysten_sui_bcs625.BcsType; }, "@local-pkg/deepbook_predict_orders::queue_events::CohortCommitted">; declare const QueuedOrderFilled: MoveStruct<{ /** The market's cash, required cash, and waiting cash need after the call. */market_cash: _mysten_sui_bcs625.BcsType; required_cash: _mysten_sui_bcs625.BcsType; waiting_cash_need: _mysten_sui_bcs625.BcsType; expiry_market_id: _mysten_sui_bcs625.BcsType, "bytes[32]">; record_id: _mysten_sui_bcs625.BcsType; account_id: _mysten_sui_bcs625.BcsType, "bytes[32]">; kind: _mysten_sui_bcs625.BcsType; /** Filled quantity (mint) or closed quantity (sell). */ quantity: _mysten_sui_bcs625.BcsType; /** Cost paid (mint) or proceeds (sell). */ amount: _mysten_sui_bcs625.BcsType; trading_fee: _mysten_sui_bcs625.BcsType; builder_fee: _mysten_sui_bcs625.BcsType; referral_fee: _mysten_sui_bcs625.BcsType; order_fee: _mysten_sui_bcs625.BcsType; /** Reserved fee subsidy the fill used. */ subsidy_used: _mysten_sui_bcs625.BcsType; inventory_impact: _mysten_sui_bcs625.BcsType; tau_ms: _mysten_sui_bcs625.BcsType; tick_ms: _mysten_sui_bcs625.BcsType; /** * The position the record now holds: a mint's new position or a partial sell's * replacement; zero after a full close. */ position: MoveStruct<{ order_id: _mysten_sui_bcs625.BcsType; root_id: _mysten_sui_bcs625.BcsType; opened_at_ms: _mysten_sui_bcs625.BcsType; }, "@local-pkg/deepbook_predict_orders::order_queue::HeldPosition">; sender: _mysten_sui_bcs625.BcsType, "bytes[32]">; onchain_timestamp_ms: _mysten_sui_bcs625.BcsType; }, "@local-pkg/deepbook_predict_orders::queue_events::QueuedOrderFilled">; declare const QueuedOrderRefunded: MoveStruct<{ /** The market's cash, required cash, and waiting cash need after the call. */market_cash: _mysten_sui_bcs625.BcsType; required_cash: _mysten_sui_bcs625.BcsType; waiting_cash_need: _mysten_sui_bcs625.BcsType; expiry_market_id: _mysten_sui_bcs625.BcsType, "bytes[32]">; record_id: _mysten_sui_bcs625.BcsType; account_id: _mysten_sui_bcs625.BcsType, "bytes[32]">; kind: _mysten_sui_bcs625.BcsType; /** An `order_queue` reason code. */ reason: _mysten_sui_bcs625.BcsType; escrow_returned: _mysten_sui_bcs625.BcsType; order_fee_returned: _mysten_sui_bcs625.BcsType; subsidy_returned: _mysten_sui_bcs625.BcsType; /** True when a sell's record went back to Open holding its position. */ position_returned: _mysten_sui_bcs625.BcsType; sender: _mysten_sui_bcs625.BcsType, "bytes[32]">; onchain_timestamp_ms: _mysten_sui_bcs625.BcsType; }, "@local-pkg/deepbook_predict_orders::queue_events::QueuedOrderRefunded">; declare const QueuedOrdersCleaned: MoveStruct<{ expiry_market_id: _mysten_sui_bcs625.BcsType, "bytes[32]">; record_ids: _mysten_sui_bcs625.BcsType & { length: number; }, string>; onchain_timestamp_ms: _mysten_sui_bcs625.BcsType; }, "@local-pkg/deepbook_predict_orders::queue_events::QueuedOrdersCleaned">; declare const OpenRecordSettled: MoveStruct<{ expiry_market_id: _mysten_sui_bcs625.BcsType, "bytes[32]">; record_id: _mysten_sui_bcs625.BcsType; account_id: _mysten_sui_bcs625.BcsType, "bytes[32]">; order_id: _mysten_sui_bcs625.BcsType; payout: _mysten_sui_bcs625.BcsType; onchain_timestamp_ms: _mysten_sui_bcs625.BcsType; }, "@local-pkg/deepbook_predict_orders::queue_events::OpenRecordSettled">; declare const OpenRecordPayoutSkipped: MoveStruct<{ expiry_market_id: _mysten_sui_bcs625.BcsType, "bytes[32]">; record_id: _mysten_sui_bcs625.BcsType; account_id: _mysten_sui_bcs625.BcsType, "bytes[32]">; order_id: _mysten_sui_bcs625.BcsType; payout: _mysten_sui_bcs625.BcsType; onchain_timestamp_ms: _mysten_sui_bcs625.BcsType; }, "@local-pkg/deepbook_predict_orders::queue_events::OpenRecordPayoutSkipped">; declare const RecordFundsParked: MoveStruct<{ expiry_market_id: _mysten_sui_bcs625.BcsType, "bytes[32]">; record_id: _mysten_sui_bcs625.BcsType; account_id: _mysten_sui_bcs625.BcsType, "bytes[32]">; receive_address: _mysten_sui_bcs625.BcsType, "bytes[32]">; amount: _mysten_sui_bcs625.BcsType; onchain_timestamp_ms: _mysten_sui_bcs625.BcsType; }, "@local-pkg/deepbook_predict_orders::queue_events::RecordFundsParked">; declare const RecordFundsClaimed: MoveStruct<{ expiry_market_id: _mysten_sui_bcs625.BcsType, "bytes[32]">; record_id: _mysten_sui_bcs625.BcsType; account_id: _mysten_sui_bcs625.BcsType, "bytes[32]">; receive_address: _mysten_sui_bcs625.BcsType, "bytes[32]">; amount: _mysten_sui_bcs625.BcsType; onchain_timestamp_ms: _mysten_sui_bcs625.BcsType; }, "@local-pkg/deepbook_predict_orders::queue_events::RecordFundsClaimed">; declare const MarketPayoutsCompleted: MoveStruct<{ expiry_market_id: _mysten_sui_bcs625.BcsType, "bytes[32]">; onchain_timestamp_ms: _mysten_sui_bcs625.BcsType; }, "@local-pkg/deepbook_predict_orders::queue_events::MarketPayoutsCompleted">; declare const DelayedExecutionPolicyUpdated: MoveStruct<{ desk_id: _mysten_sui_bcs625.BcsType, "bytes[32]">; policy: MoveStruct<{ delay_ms: _mysten_sui_bcs625.BcsType; stall_timeout_ms: _mysten_sui_bcs625.BcsType; stuck_threshold_ms: _mysten_sui_bcs625.BcsType; gap_wait_ms: _mysten_sui_bcs625.BcsType; pyth_price_buffer_ms: _mysten_sui_bcs625.BcsType; pyth_channel: _mysten_sui_bcs625.BcsType; svi_max_age_ms: _mysten_sui_bcs625.BcsType; mint_capacity: _mysten_sui_bcs625.BcsType; sell_capacity: _mysten_sui_bcs625.BcsType; per_account_cap: _mysten_sui_bcs625.BcsType; order_fee: _mysten_sui_bcs625.BcsType; min_sell_quantity: _mysten_sui_bcs625.BcsType; settle_refund_batch: _mysten_sui_bcs625.BcsType; settle_payout_batch: _mysten_sui_bcs625.BcsType; }, "@local-pkg/deepbook_predict_orders::delayed_execution_config::DelayedExecutionPolicy">; onchain_timestamp_ms: _mysten_sui_bcs625.BcsType; }, "@local-pkg/deepbook_predict_orders::queue_events::DelayedExecutionPolicyUpdated">; //#endregion export { OrderEnqueued, queue_events_d_exports }; //# sourceMappingURL=queue_events.d.mts.map