@mysten/deepbook-v3 2.6.4 → 2.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +153 -0
- package/PREDICT.md +389 -61
- package/dist/contracts/account/account.d.mts +23 -23
- package/dist/contracts/account/account.d.mts.map +1 -1
- package/dist/contracts/account/account_registry.d.mts +13 -13
- package/dist/contracts/deepbook/account.d.mts +18 -18
- package/dist/contracts/deepbook/balances.d.mts +4 -4
- package/dist/contracts/deepbook/deep_price.d.mts +3 -3
- package/dist/contracts/deepbook/order.d.mts +12 -12
- package/dist/contracts/deepbook_predict/admin.d.mts +4 -4
- package/dist/contracts/deepbook_predict/builder_code.d.mts +11 -11
- package/dist/contracts/deepbook_predict/builder_code_events.d.mts +10 -10
- package/dist/contracts/deepbook_predict/config_events.d.mts +93 -68
- package/dist/contracts/deepbook_predict/config_events.d.mts.map +1 -1
- package/dist/contracts/deepbook_predict/config_events.mjs +45 -1
- package/dist/contracts/deepbook_predict/config_events.mjs.map +1 -1
- package/dist/contracts/deepbook_predict/deps/std/type_name.mjs +17 -0
- package/dist/contracts/deepbook_predict/deps/std/type_name.mjs.map +1 -0
- package/dist/contracts/deepbook_predict/expiry_market.d.mts +652 -235
- package/dist/contracts/deepbook_predict/expiry_market.d.mts.map +1 -1
- package/dist/contracts/deepbook_predict/expiry_market.mjs +652 -186
- package/dist/contracts/deepbook_predict/expiry_market.mjs.map +1 -1
- package/dist/contracts/deepbook_predict/lp_book.mjs +1 -1
- package/dist/contracts/deepbook_predict/market_lifecycle_cap.d.mts +5 -5
- package/dist/contracts/deepbook_predict/market_manager.d.mts +27 -27
- package/dist/contracts/deepbook_predict/order_events.d.mts +50 -50
- package/dist/contracts/deepbook_predict/order_events.d.mts.map +1 -1
- package/dist/contracts/deepbook_predict/order_events.mjs +3 -1
- package/dist/contracts/deepbook_predict/order_events.mjs.map +1 -1
- package/dist/contracts/deepbook_predict/pause_cap.d.mts +5 -5
- package/dist/contracts/deepbook_predict/plp.d.mts +184 -82
- package/dist/contracts/deepbook_predict/plp.d.mts.map +1 -1
- package/dist/contracts/deepbook_predict/plp.mjs +126 -7
- package/dist/contracts/deepbook_predict/plp.mjs.map +1 -1
- package/dist/contracts/deepbook_predict/pool_accounting.mjs +1 -1
- package/dist/contracts/deepbook_predict/pool_valuation_cap.d.mts +5 -5
- package/dist/contracts/deepbook_predict/predict_account.d.mts +14 -14
- package/dist/contracts/deepbook_predict/pricing.d.mts +91 -58
- package/dist/contracts/deepbook_predict/pricing.d.mts.map +1 -1
- package/dist/contracts/deepbook_predict/pricing.mjs +30 -3
- package/dist/contracts/deepbook_predict/pricing.mjs.map +1 -1
- package/dist/contracts/deepbook_predict/pricing_config.mjs.map +1 -1
- package/dist/contracts/deepbook_predict/protocol_config.d.mts +400 -92
- package/dist/contracts/deepbook_predict/protocol_config.d.mts.map +1 -1
- package/dist/contracts/deepbook_predict/protocol_config.mjs +451 -61
- package/dist/contracts/deepbook_predict/protocol_config.mjs.map +1 -1
- package/dist/contracts/deepbook_predict/range_codec.d.mts +2 -2
- package/dist/contracts/deepbook_predict/registry.d.mts +28 -28
- package/dist/contracts/deepbook_predict/strike_exposure.mjs +1 -1
- package/dist/contracts/deepbook_predict/strike_payout_tree.mjs +17 -12
- package/dist/contracts/deepbook_predict/strike_payout_tree.mjs.map +1 -1
- package/dist/contracts/deepbook_predict/vault_events.d.mts +154 -106
- package/dist/contracts/deepbook_predict/vault_events.d.mts.map +1 -1
- package/dist/contracts/deepbook_predict/vault_events.mjs +57 -1
- package/dist/contracts/deepbook_predict/vault_events.mjs.map +1 -1
- package/dist/contracts/deepbook_predict_math/config-arguments.d.mts +10 -0
- package/dist/contracts/deepbook_predict_math/config-arguments.d.mts.map +1 -0
- package/dist/contracts/deepbook_predict_math/lazer_price.d.mts +106 -0
- package/dist/contracts/deepbook_predict_math/lazer_price.d.mts.map +1 -0
- package/dist/contracts/deepbook_predict_math/lazer_price.mjs +125 -0
- package/dist/contracts/deepbook_predict_math/lazer_price.mjs.map +1 -0
- package/dist/contracts/deepbook_predict_math/math.d.mts +284 -0
- package/dist/contracts/deepbook_predict_math/math.d.mts.map +1 -0
- package/dist/contracts/deepbook_predict_math/math.mjs +364 -0
- package/dist/contracts/deepbook_predict_math/math.mjs.map +1 -0
- package/dist/contracts/deepbook_predict_orders/config-arguments.d.mts +13 -0
- package/dist/contracts/deepbook_predict_orders/config-arguments.d.mts.map +1 -0
- package/dist/contracts/deepbook_predict_orders/delayed_execution_config.d.mts +215 -0
- package/dist/contracts/deepbook_predict_orders/delayed_execution_config.d.mts.map +1 -0
- package/dist/contracts/deepbook_predict_orders/delayed_execution_config.mjs +215 -0
- package/dist/contracts/deepbook_predict_orders/delayed_execution_config.mjs.map +1 -0
- package/dist/contracts/deepbook_predict_orders/deps/deepbook_predict/expiry_market.mjs +87 -0
- package/dist/contracts/deepbook_predict_orders/deps/deepbook_predict/expiry_market.mjs.map +1 -0
- package/dist/contracts/deepbook_predict_orders/deps/deepbook_predict/pricing.mjs +52 -0
- package/dist/contracts/deepbook_predict_orders/deps/deepbook_predict/pricing.mjs.map +1 -0
- package/dist/contracts/deepbook_predict_orders/deps/fixed_math/i64.mjs +25 -0
- package/dist/contracts/deepbook_predict_orders/deps/fixed_math/i64.mjs.map +1 -0
- package/dist/contracts/deepbook_predict_orders/deps/sui/balance.mjs +21 -0
- package/dist/contracts/deepbook_predict_orders/deps/sui/balance.mjs.map +1 -0
- package/dist/contracts/deepbook_predict_orders/deps/sui/table.mjs +39 -0
- package/dist/contracts/deepbook_predict_orders/deps/sui/table.mjs.map +1 -0
- package/dist/contracts/deepbook_predict_orders/desk.d.mts +187 -0
- package/dist/contracts/deepbook_predict_orders/desk.d.mts.map +1 -0
- package/dist/contracts/deepbook_predict_orders/desk.mjs +261 -0
- package/dist/contracts/deepbook_predict_orders/desk.mjs.map +1 -0
- package/dist/contracts/deepbook_predict_orders/order_queue.d.mts +1042 -0
- package/dist/contracts/deepbook_predict_orders/order_queue.d.mts.map +1 -0
- package/dist/contracts/deepbook_predict_orders/order_queue.mjs +849 -0
- package/dist/contracts/deepbook_predict_orders/order_queue.mjs.map +1 -0
- package/dist/contracts/deepbook_predict_orders/queue.d.mts +683 -0
- package/dist/contracts/deepbook_predict_orders/queue.d.mts.map +1 -0
- package/dist/contracts/deepbook_predict_orders/queue.mjs +912 -0
- package/dist/contracts/deepbook_predict_orders/queue.mjs.map +1 -0
- package/dist/contracts/deepbook_predict_orders/queue_events.d.mts +195 -0
- package/dist/contracts/deepbook_predict_orders/queue_events.d.mts.map +1 -0
- package/dist/contracts/deepbook_predict_orders/queue_events.mjs +187 -0
- package/dist/contracts/deepbook_predict_orders/queue_events.mjs.map +1 -0
- package/dist/contracts/deepbook_sessions/session_config.d.mts +8 -8
- package/dist/contracts/deepbook_sessions/sessions.d.mts +163 -28
- package/dist/contracts/deepbook_sessions/sessions.d.mts.map +1 -1
- package/dist/contracts/deepbook_sessions/sessions.mjs +234 -5
- package/dist/contracts/deepbook_sessions/sessions.mjs.map +1 -1
- package/dist/deployments/mainnet.mjs +7 -4
- package/dist/deployments/mainnet.mjs.map +1 -1
- package/dist/deployments/testnet.mjs +7 -4
- package/dist/deployments/testnet.mjs.map +1 -1
- package/dist/predict/bindings/expiry-market.d.mts +77 -0
- package/dist/predict/bindings/expiry-market.d.mts.map +1 -0
- package/dist/predict/bindings/expiry-market.mjs +139 -0
- package/dist/predict/bindings/expiry-market.mjs.map +1 -0
- package/dist/predict/bindings/protocol-config.d.mts +39 -0
- package/dist/predict/bindings/protocol-config.d.mts.map +1 -0
- package/dist/predict/bindings/protocol-config.mjs +90 -0
- package/dist/predict/bindings/protocol-config.mjs.map +1 -0
- package/dist/predict/bindings/rename.mjs +9 -0
- package/dist/predict/bindings/rename.mjs.map +1 -0
- package/dist/predict/client.d.mts +595 -16
- package/dist/predict/client.d.mts.map +1 -1
- package/dist/predict/client.mjs +986 -10
- package/dist/predict/client.mjs.map +1 -1
- package/dist/predict/config/generated.d.mts +22 -1
- package/dist/predict/config/generated.d.mts.map +1 -1
- package/dist/predict/config/generated.mjs +30 -1
- package/dist/predict/config/generated.mjs.map +1 -1
- package/dist/predict/config/mainnet.mjs +11 -3
- package/dist/predict/config/mainnet.mjs.map +1 -1
- package/dist/predict/config/testnet.mjs +11 -3
- package/dist/predict/config/testnet.mjs.map +1 -1
- package/dist/predict/config/types.d.mts +50 -1
- package/dist/predict/config/types.d.mts.map +1 -1
- package/dist/predict/cost.d.mts +38 -11
- package/dist/predict/cost.d.mts.map +1 -1
- package/dist/predict/cost.mjs +37 -11
- package/dist/predict/cost.mjs.map +1 -1
- package/dist/predict/decode.d.mts +251 -1
- package/dist/predict/decode.d.mts.map +1 -1
- package/dist/predict/decode.mjs +342 -4
- package/dist/predict/decode.mjs.map +1 -1
- package/dist/predict/errors.d.mts +69 -6
- package/dist/predict/errors.d.mts.map +1 -1
- package/dist/predict/errors.mjs +277 -4
- package/dist/predict/errors.mjs.map +1 -1
- package/dist/predict/index.d.mts +21 -10
- package/dist/predict/index.mjs +24 -12
- package/dist/predict/queue-id.d.mts +13 -0
- package/dist/predict/queue-id.d.mts.map +1 -0
- package/dist/predict/queue-id.mjs +19 -0
- package/dist/predict/queue-id.mjs.map +1 -0
- package/dist/predict/queue.d.mts +505 -0
- package/dist/predict/queue.d.mts.map +1 -0
- package/dist/predict/queue.mjs +774 -0
- package/dist/predict/queue.mjs.map +1 -0
- package/dist/predict/reads/balances.mjs +1 -1
- package/dist/predict/reads/markets.mjs +46 -5
- package/dist/predict/reads/markets.mjs.map +1 -1
- package/dist/predict/reads/pool.mjs +1 -1
- package/dist/predict/reads/pricing.d.mts +1 -1
- package/dist/predict/reads/queue.d.mts +105 -0
- package/dist/predict/reads/queue.d.mts.map +1 -0
- package/dist/predict/reads/queue.mjs +445 -0
- package/dist/predict/reads/queue.mjs.map +1 -0
- package/dist/predict/ticks.d.mts +9 -1
- package/dist/predict/ticks.d.mts.map +1 -1
- package/dist/predict/ticks.mjs +18 -1
- package/dist/predict/ticks.mjs.map +1 -1
- package/dist/predict/tx/authed.mjs +1 -1
- package/dist/predict/tx/common.d.mts.map +1 -1
- package/dist/predict/tx/common.mjs +12 -1
- package/dist/predict/tx/common.mjs.map +1 -1
- package/dist/predict/tx/queue.d.mts +220 -0
- package/dist/predict/tx/queue.d.mts.map +1 -0
- package/dist/predict/tx/queue.mjs +399 -0
- package/dist/predict/tx/queue.mjs.map +1 -0
- package/dist/predict/tx/trade.d.mts.map +1 -1
- package/dist/predict/tx/trade.mjs +61 -43
- package/dist/predict/tx/trade.mjs.map +1 -1
- package/dist/sessions.d.mts +90 -2
- package/dist/sessions.d.mts.map +1 -1
- package/dist/sessions.mjs +107 -2
- package/dist/sessions.mjs.map +1 -1
- package/dist/transactions/balanceManager.d.mts +12 -12
- package/dist/transactions/balanceManager.d.mts.map +1 -1
- package/dist/transactions/deepbook.d.mts +20 -20
- package/dist/transactions/deepbook.d.mts.map +1 -1
- package/dist/transactions/deepbookAdmin.d.mts +4 -4
- package/dist/transactions/deepbookAdmin.d.mts.map +1 -1
- package/dist/transactions/marginAdmin.d.mts +7 -7
- package/dist/transactions/marginAdmin.d.mts.map +1 -1
- package/dist/transactions/marginLiquidations.d.mts +3 -3
- package/dist/transactions/marginMaintainer.d.mts +5 -5
- package/dist/transactions/marginMaintainer.d.mts.map +1 -1
- package/dist/transactions/marginManager.d.mts +32 -32
- package/dist/transactions/marginManager.d.mts.map +1 -1
- package/dist/transactions/marginPool.d.mts +18 -18
- package/dist/transactions/marginRegistry.d.mts +16 -16
- package/dist/transactions/marginTPSL.d.mts +10 -10
- package/dist/transactions/marginTPSL.d.mts.map +1 -1
- package/dist/transactions/poolProxy.d.mts +8 -8
- package/dist/transactions/poolProxy.d.mts.map +1 -1
- package/package.json +4 -4
- package/src/contracts/deepbook_predict/config_events.ts +39 -0
- package/src/contracts/deepbook_predict/deps/std/type_name.ts +24 -0
- package/src/contracts/deepbook_predict/expiry_market.ts +960 -169
- package/src/contracts/deepbook_predict/order_events.ts +3 -1
- package/src/contracts/deepbook_predict/plp.ts +150 -9
- package/src/contracts/deepbook_predict/pricing.ts +46 -7
- package/src/contracts/deepbook_predict/pricing_config.ts +3 -1
- package/src/contracts/deepbook_predict/protocol_config.ts +648 -33
- package/src/contracts/deepbook_predict/strike_payout_tree.ts +25 -21
- package/src/contracts/deepbook_predict/vault_events.ts +65 -0
- package/src/contracts/deepbook_predict_math/config-arguments.ts +6 -0
- package/src/contracts/deepbook_predict_math/lazer_price.ts +196 -0
- package/src/contracts/deepbook_predict_math/math.ts +553 -0
- package/src/contracts/deepbook_predict_orders/config-arguments.ts +11 -0
- package/src/contracts/deepbook_predict_orders/delayed_execution_config.ts +430 -0
- package/src/contracts/deepbook_predict_orders/deps/deepbook_predict/expiry_market.ts +108 -0
- package/src/contracts/deepbook_predict_orders/deps/deepbook_predict/pricing.ts +58 -0
- package/src/contracts/deepbook_predict_orders/deps/fixed_math/i64.ts +21 -0
- package/src/contracts/deepbook_predict_orders/deps/sui/balance.ts +19 -0
- package/src/contracts/deepbook_predict_orders/deps/sui/table.ts +37 -0
- package/src/contracts/deepbook_predict_orders/desk.ts +419 -0
- package/src/contracts/deepbook_predict_orders/order_flow.ts +19 -0
- package/src/contracts/deepbook_predict_orders/order_queue.ts +1670 -0
- package/src/contracts/deepbook_predict_orders/queue.ts +1394 -0
- package/src/contracts/deepbook_predict_orders/queue_events.ts +189 -0
- package/src/contracts/deepbook_sessions/sessions.ts +355 -4
- package/src/deployments/mainnet.ts +7 -2
- package/src/deployments/testnet.ts +7 -2
- package/src/deployments/types.ts +14 -1
- package/src/predict/bindings/expiry-market.ts +127 -0
- package/src/predict/bindings/protocol-config.ts +59 -0
- package/src/predict/bindings/rename.ts +14 -0
- package/src/predict/client.ts +2076 -13
- package/src/predict/config/generated.ts +50 -0
- package/src/predict/config/mainnet.ts +16 -2
- package/src/predict/config/testnet.ts +16 -2
- package/src/predict/config/types.ts +51 -1
- package/src/predict/cost.ts +62 -14
- package/src/predict/decode.ts +691 -2
- package/src/predict/errors.ts +391 -14
- package/src/predict/index.ts +87 -6
- package/src/predict/queue-id.ts +22 -0
- package/src/predict/queue.ts +1231 -0
- package/src/predict/reads/markets.ts +30 -0
- package/src/predict/reads/queue.ts +606 -0
- package/src/predict/ticks.ts +35 -0
- package/src/predict/tx/common.ts +25 -1
- package/src/predict/tx/queue.ts +525 -0
- package/src/predict/tx/trade.ts +80 -49
- package/src/sessions.ts +206 -1
|
@@ -0,0 +1,1042 @@
|
|
|
1
|
+
import { MoveStruct } from "../utils/index.mjs";
|
|
2
|
+
import * as _mysten_sui_bcs490 from "@mysten/sui/bcs";
|
|
3
|
+
import * as _mysten_sui_transactions275 from "@mysten/sui/transactions";
|
|
4
|
+
import { Transaction, TransactionArgument } from "@mysten/sui/transactions";
|
|
5
|
+
|
|
6
|
+
//#region src/contracts/deepbook_predict_orders/order_queue.d.ts
|
|
7
|
+
declare namespace order_queue_d_exports {
|
|
8
|
+
export { AccountIdArguments, AccountIdOptions, BudgetArguments, BudgetOptions, CashNeedArguments, CashNeedOptions, CohortSpan, CommittedPrice, CutoffMsArguments, CutoffMsOptions, DeadlineMsArguments, DeadlineMsOptions, EarliestPriceMsArguments, EarliestPriceMsOptions, EscrowArguments, EscrowOptions, FinishedAtMsArguments, FinishedAtMsOptions, FundsArguments, FundsOptions, GenerationUsArguments, GenerationUsOptions, HeldPosition, HigherTickArguments, HigherTickOptions, KindArguments, KindExactAmountOptions, KindExactCostOptions, KindExactQuantityOptions, KindOptions, KindRedeemLiveOptions, KindRedeemOpenOptions, LowerTickArguments, LowerTickOptions, MaxCostArguments, MaxCostOptions, MaxPremiumArguments, MaxPremiumOptions, MaxProbabilityArguments, MaxProbabilityOptions, MinProbabilityArguments, MinProbabilityOptions, MinProceedsArguments, MinProceedsOptions, MinQuantityArguments, MinQuantityOptions, OpenedAtMsArguments, OpenedAtMsOptions, OrderBook, OrderEscrow, OrderFeeArguments, OrderFeeOptions, OrderIdArguments, OrderIdOptions, OrderRequest, OrderResult, OrderTiming, OrderView, PlacedAtMsArguments, PlacedAtMsOptions, PositionArguments, PositionOptions, PriceArguments, PriceOptions, PythChannelArguments, PythChannelOptions, QuantityArguments, QuantityOptions, QueuedOrder, ReasonAdminOptions, ReasonAdmissionOptions, ReasonArguments, ReasonDeadlineOptions, ReasonFreezeOptions, ReasonLimitsOptions, ReasonMissingNodeOptions, ReasonNoCashOptions, ReasonNoPriceOptions, ReasonOptions, ReasonRecipientDeniedOptions, ReceiptStageArguments, ReceiptStageOptions, ReceiveAddressArguments, ReceiveAddressOptions, RequestArguments, RequestOptions, ResultAmountArguments, ResultAmountOptions, ResultArguments, ResultOptions, ResultQuantityArguments, ResultQuantityOptions, RootIdArguments, RootIdOptions, SpotArguments, SpotOptions, StatusArguments, StatusClosedOptions, StatusCommittedOptions, StatusOpenOptions, StatusOptions, StatusPendingOptions, StatusRefundDueOptions, StatusRefundedOptions, SubsidyBoundArguments, SubsidyBoundOptions, SubsidyReservedArguments, SubsidyReservedOptions, TauMsArguments, TauMsOptions, TickMsArguments, TickMsOptions, TimingArguments, TimingOptions, accountId, budget, cashNeed, cutoffMs, deadlineMs, earliestPriceMs, escrow, finishedAtMs, funds, generationUs, higherTick, kind, kindExactAmount, kindExactCost, kindExactQuantity, kindRedeemLive, kindRedeemOpen, lowerTick, maxCost, maxPremium, maxProbability, minProbability, minProceeds, minQuantity, openedAtMs, orderFee, orderId, placedAtMs, position, price, pythChannel, quantity, reason, reasonAdmin, reasonAdmission, reasonDeadline, reasonFreeze, reasonLimits, reasonMissingNode, reasonNoCash, reasonNoPrice, reasonRecipientDenied, receiptStage, receiveAddress, request, result, resultAmount, resultQuantity, rootId, spot, status, statusClosed, statusCommitted, statusOpen, statusPending, statusRefundDue, statusRefunded, subsidyBound, subsidyReserved, tauMs, tickMs, timing };
|
|
9
|
+
}
|
|
10
|
+
declare const CohortSpan: MoveStruct<{
|
|
11
|
+
tau_ms: _mysten_sui_bcs490.BcsType<bigint, string | number | bigint, "u64">;
|
|
12
|
+
deadline_ms: _mysten_sui_bcs490.BcsType<bigint, string | number | bigint, "u64">;
|
|
13
|
+
/**
|
|
14
|
+
* Lower bound on the cohort's first unfinished record. A walker that stops inside
|
|
15
|
+
* the span moves it to the first record it did not visit.
|
|
16
|
+
*/
|
|
17
|
+
first_id: _mysten_sui_bcs490.BcsType<bigint, string | number | bigint, "u64">; /** Exclusive. */
|
|
18
|
+
end_id: _mysten_sui_bcs490.BcsType<bigint, string | number | bigint, "u64">;
|
|
19
|
+
pyth_channel: _mysten_sui_bcs490.BcsType<number, number, "u8">; /** Set once commit attaches the cohort's price. A committed span never grows. */
|
|
20
|
+
committed: _mysten_sui_bcs490.BcsType<boolean, boolean, "bool">; /** Pending, Committed, and RefundDue orders left in the cohort. */
|
|
21
|
+
unfinished: _mysten_sui_bcs490.BcsType<bigint, string | number | bigint, "u64">;
|
|
22
|
+
}, "@local-pkg/deepbook_predict_orders::order_queue::CohortSpan">;
|
|
23
|
+
declare const OrderBook: MoveStruct<{
|
|
24
|
+
/**
|
|
25
|
+
* One record per order, keyed by a sequential record ID. Records stay after they
|
|
26
|
+
* finish until `cleanup` deletes them.
|
|
27
|
+
*/
|
|
28
|
+
orders: MoveStruct<{
|
|
29
|
+
id: _mysten_sui_bcs490.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
30
|
+
size: _mysten_sui_bcs490.BcsType<bigint, string | number | bigint, "u64">;
|
|
31
|
+
}, "0x2::table::Table<phantom K, phantom V>">;
|
|
32
|
+
next_id: _mysten_sui_bcs490.BcsType<bigint, string | number | bigint, "u64">;
|
|
33
|
+
/**
|
|
34
|
+
* Lower bound on the first unfinished record: the first span's `first_id`, or
|
|
35
|
+
* `next_id` when no span remains.
|
|
36
|
+
*/
|
|
37
|
+
resolve_head: _mysten_sui_bcs490.BcsType<bigint, string | number | bigint, "u64">;
|
|
38
|
+
/**
|
|
39
|
+
* Where the next settlement payout call resumes. Only moves forward, and never
|
|
40
|
+
* past `next_id`.
|
|
41
|
+
*/
|
|
42
|
+
payout_cursor: _mysten_sui_bcs490.BcsType<bigint, string | number | bigint, "u64">;
|
|
43
|
+
/**
|
|
44
|
+
* One span per cohort (orders sharing one τ) that still has an unfinished order,
|
|
45
|
+
* in τ order. Inline, so a walk loads no extra object to find them.
|
|
46
|
+
*/
|
|
47
|
+
cohorts: _mysten_sui_bcs490.BcsType<{
|
|
48
|
+
tau_ms: bigint;
|
|
49
|
+
deadline_ms: bigint;
|
|
50
|
+
first_id: bigint;
|
|
51
|
+
end_id: bigint;
|
|
52
|
+
pyth_channel: number;
|
|
53
|
+
committed: boolean;
|
|
54
|
+
unfinished: bigint;
|
|
55
|
+
}[], Iterable<{
|
|
56
|
+
tau_ms: string | number | bigint;
|
|
57
|
+
deadline_ms: string | number | bigint;
|
|
58
|
+
first_id: string | number | bigint;
|
|
59
|
+
end_id: string | number | bigint;
|
|
60
|
+
pyth_channel: number;
|
|
61
|
+
committed: boolean;
|
|
62
|
+
unfinished: string | number | bigint;
|
|
63
|
+
}> & {
|
|
64
|
+
length: number;
|
|
65
|
+
}, string>; /** Keep τ and the deadline non-decreasing along record IDs. */
|
|
66
|
+
last_tau_ms: _mysten_sui_bcs490.BcsType<bigint, string | number | bigint, "u64">;
|
|
67
|
+
/**
|
|
68
|
+
* Newest τ any commit has priced. Never decreases; no new order gets a τ at or
|
|
69
|
+
* below it.
|
|
70
|
+
*/
|
|
71
|
+
last_committed_tau_ms: _mysten_sui_bcs490.BcsType<bigint, string | number | bigint, "u64">;
|
|
72
|
+
last_deadline_ms: _mysten_sui_bcs490.BcsType<bigint, string | number | bigint, "u64">;
|
|
73
|
+
/**
|
|
74
|
+
* The newest order's Pyth channel. A channel change forces the next τ strictly
|
|
75
|
+
* past `last_tau_ms`, so one cohort never mixes channels.
|
|
76
|
+
*/
|
|
77
|
+
last_channel: _mysten_sui_bcs490.BcsType<number, number, "u8">;
|
|
78
|
+
/**
|
|
79
|
+
* Unfinished orders per account. A row is created by the account's first placement
|
|
80
|
+
* in this market and never deleted.
|
|
81
|
+
*/
|
|
82
|
+
per_account: MoveStruct<{
|
|
83
|
+
id: _mysten_sui_bcs490.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
84
|
+
size: _mysten_sui_bcs490.BcsType<bigint, string | number | bigint, "u64">;
|
|
85
|
+
}, "0x2::table::Table<phantom K, phantom V>">; /** Unfinished mints and sells, against the policy capacities. */
|
|
86
|
+
pending_mints: _mysten_sui_bcs490.BcsType<bigint, string | number | bigint, "u64">;
|
|
87
|
+
pending_sells: _mysten_sui_bcs490.BcsType<bigint, string | number | bigint, "u64">;
|
|
88
|
+
}, "@local-pkg/deepbook_predict_orders::order_queue::OrderBook">;
|
|
89
|
+
declare const OrderRequest: MoveStruct<{
|
|
90
|
+
lower_tick: _mysten_sui_bcs490.BcsType<bigint, string | number | bigint, "u64">;
|
|
91
|
+
higher_tick: _mysten_sui_bcs490.BcsType<bigint, string | number | bigint, "u64">;
|
|
92
|
+
quantity: _mysten_sui_bcs490.BcsType<bigint, string | number | bigint, "u64">;
|
|
93
|
+
max_premium: _mysten_sui_bcs490.BcsType<bigint, string | number | bigint, "u64">;
|
|
94
|
+
min_quantity: _mysten_sui_bcs490.BcsType<bigint, string | number | bigint, "u64">;
|
|
95
|
+
max_cost: _mysten_sui_bcs490.BcsType<bigint, string | number | bigint, "u64">;
|
|
96
|
+
max_probability: _mysten_sui_bcs490.BcsType<bigint, string | number | bigint, "u64">;
|
|
97
|
+
min_probability: _mysten_sui_bcs490.BcsType<bigint, string | number | bigint, "u64">;
|
|
98
|
+
min_proceeds: _mysten_sui_bcs490.BcsType<bigint, string | number | bigint, "u64">;
|
|
99
|
+
}, "@local-pkg/deepbook_predict_orders::order_queue::OrderRequest">;
|
|
100
|
+
declare const OrderTiming: MoveStruct<{
|
|
101
|
+
/** t₀, the Sui clock of the placement transaction. */placed_at_ms: _mysten_sui_bcs490.BcsType<bigint, string | number | bigint, "u64">; /** τ itself: a price generated before it never commits the order. */
|
|
102
|
+
earliest_price_ms: _mysten_sui_bcs490.BcsType<bigint, string | number | bigint, "u64">; /** The channel tick the order is priced on. */
|
|
103
|
+
tau_ms: _mysten_sui_bcs490.BcsType<bigint, string | number | bigint, "u64">; /** At or past it the order is refunded, never filled. */
|
|
104
|
+
deadline_ms: _mysten_sui_bcs490.BcsType<bigint, string | number | bigint, "u64">;
|
|
105
|
+
/**
|
|
106
|
+
* `expiry - max(no_trade_window_ms, stall_timeout_ms + 5_000)`; placement requires
|
|
107
|
+
* τ below it.
|
|
108
|
+
*/
|
|
109
|
+
cutoff_ms: _mysten_sui_bcs490.BcsType<bigint, string | number | bigint, "u64">; /** The policy channel at placement. Commit accepts only updates on it. */
|
|
110
|
+
pyth_channel: _mysten_sui_bcs490.BcsType<number, number, "u8">;
|
|
111
|
+
}, "@local-pkg/deepbook_predict_orders::order_queue::OrderTiming">;
|
|
112
|
+
declare const OrderEscrow: MoveStruct<{
|
|
113
|
+
/**
|
|
114
|
+
* USDC locked for the premium and fees, and the fill's all-in cost cap. Sells lock
|
|
115
|
+
* none.
|
|
116
|
+
*/
|
|
117
|
+
budget: _mysten_sui_bcs490.BcsType<bigint, string | number | bigint, "u64">; /** Flat fee charged at placement. */
|
|
118
|
+
order_fee: _mysten_sui_bcs490.BcsType<bigint, string | number | bigint, "u64">;
|
|
119
|
+
/**
|
|
120
|
+
* The admission dry run's pre-subsidy trading fee, capped at the budget. Bounds
|
|
121
|
+
* the subsidy commit reserves.
|
|
122
|
+
*/
|
|
123
|
+
subsidy_bound: _mysten_sui_bcs490.BcsType<bigint, string | number | bigint, "u64">; /** The incentives commit reserved for the order, held with its escrow. */
|
|
124
|
+
subsidy_reserved: _mysten_sui_bcs490.BcsType<bigint, string | number | bigint, "u64">;
|
|
125
|
+
/**
|
|
126
|
+
* Worst-case market cash the fill can consume, counted in Predict's waiting cash
|
|
127
|
+
* need while the order waits.
|
|
128
|
+
*/
|
|
129
|
+
cash_need: _mysten_sui_bcs490.BcsType<bigint, string | number | bigint, "u64">;
|
|
130
|
+
}, "@local-pkg/deepbook_predict_orders::order_queue::OrderEscrow">;
|
|
131
|
+
declare const HeldPosition: MoveStruct<{
|
|
132
|
+
order_id: _mysten_sui_bcs490.BcsType<bigint, string | number | bigint, "u256">;
|
|
133
|
+
root_id: _mysten_sui_bcs490.BcsType<bigint, string | number | bigint, "u256">;
|
|
134
|
+
opened_at_ms: _mysten_sui_bcs490.BcsType<bigint, string | number | bigint, "u64">;
|
|
135
|
+
}, "@local-pkg/deepbook_predict_orders::order_queue::HeldPosition">;
|
|
136
|
+
declare const CommittedPrice: MoveStruct<{
|
|
137
|
+
/** Pyth price normalized to 1e9. */spot: _mysten_sui_bcs490.BcsType<bigint, string | number | bigint, "u64">; /** The update's envelope in ms: τ, or a later backup tick. The fill prices at it. */
|
|
138
|
+
tick_ms: _mysten_sui_bcs490.BcsType<bigint, string | number | bigint, "u64">; /** The feed's own update time, in µs. */
|
|
139
|
+
generation_us: _mysten_sui_bcs490.BcsType<bigint, string | number | bigint, "u64">;
|
|
140
|
+
}, "@local-pkg/deepbook_predict_orders::order_queue::CommittedPrice">;
|
|
141
|
+
declare const OrderResult: MoveStruct<{
|
|
142
|
+
/** `0` for a fill, or a `REASON_*` code. */reason: _mysten_sui_bcs490.BcsType<number, number, "u8">; /** Filled quantity (mint) or closed quantity (sell). */
|
|
143
|
+
quantity: _mysten_sui_bcs490.BcsType<bigint, string | number | bigint, "u64">; /** Cost paid (mint) or proceeds (sell). Zero on a refund. */
|
|
144
|
+
amount: _mysten_sui_bcs490.BcsType<bigint, string | number | bigint, "u64">; /** Sui clock of the finishing transaction. */
|
|
145
|
+
finished_at_ms: _mysten_sui_bcs490.BcsType<bigint, string | number | bigint, "u64">;
|
|
146
|
+
}, "@local-pkg/deepbook_predict_orders::order_queue::OrderResult">;
|
|
147
|
+
declare const QueuedOrder: MoveStruct<{
|
|
148
|
+
/**
|
|
149
|
+
* A `STATUS_*` code. Only moves forward, except that a refunded or partly filled
|
|
150
|
+
* sell returns to Open holding its position.
|
|
151
|
+
*/
|
|
152
|
+
status: _mysten_sui_bcs490.BcsType<number, number, "u8">; /** A `KIND_*` code. */
|
|
153
|
+
kind: _mysten_sui_bcs490.BcsType<number, number, "u8">;
|
|
154
|
+
request: MoveStruct<{
|
|
155
|
+
lower_tick: _mysten_sui_bcs490.BcsType<bigint, string | number | bigint, "u64">;
|
|
156
|
+
higher_tick: _mysten_sui_bcs490.BcsType<bigint, string | number | bigint, "u64">;
|
|
157
|
+
quantity: _mysten_sui_bcs490.BcsType<bigint, string | number | bigint, "u64">;
|
|
158
|
+
max_premium: _mysten_sui_bcs490.BcsType<bigint, string | number | bigint, "u64">;
|
|
159
|
+
min_quantity: _mysten_sui_bcs490.BcsType<bigint, string | number | bigint, "u64">;
|
|
160
|
+
max_cost: _mysten_sui_bcs490.BcsType<bigint, string | number | bigint, "u64">;
|
|
161
|
+
max_probability: _mysten_sui_bcs490.BcsType<bigint, string | number | bigint, "u64">;
|
|
162
|
+
min_probability: _mysten_sui_bcs490.BcsType<bigint, string | number | bigint, "u64">;
|
|
163
|
+
min_proceeds: _mysten_sui_bcs490.BcsType<bigint, string | number | bigint, "u64">;
|
|
164
|
+
}, "@local-pkg/deepbook_predict_orders::order_queue::OrderRequest">;
|
|
165
|
+
account_id: _mysten_sui_bcs490.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">; /** The account's receive address. Refunds and returned escrow go here. */
|
|
166
|
+
receive_address: _mysten_sui_bcs490.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
167
|
+
timing: MoveStruct<{
|
|
168
|
+
/** t₀, the Sui clock of the placement transaction. */placed_at_ms: _mysten_sui_bcs490.BcsType<bigint, string | number | bigint, "u64">; /** τ itself: a price generated before it never commits the order. */
|
|
169
|
+
earliest_price_ms: _mysten_sui_bcs490.BcsType<bigint, string | number | bigint, "u64">; /** The channel tick the order is priced on. */
|
|
170
|
+
tau_ms: _mysten_sui_bcs490.BcsType<bigint, string | number | bigint, "u64">; /** At or past it the order is refunded, never filled. */
|
|
171
|
+
deadline_ms: _mysten_sui_bcs490.BcsType<bigint, string | number | bigint, "u64">;
|
|
172
|
+
/**
|
|
173
|
+
* `expiry - max(no_trade_window_ms, stall_timeout_ms + 5_000)`; placement requires
|
|
174
|
+
* τ below it.
|
|
175
|
+
*/
|
|
176
|
+
cutoff_ms: _mysten_sui_bcs490.BcsType<bigint, string | number | bigint, "u64">; /** The policy channel at placement. Commit accepts only updates on it. */
|
|
177
|
+
pyth_channel: _mysten_sui_bcs490.BcsType<number, number, "u8">;
|
|
178
|
+
}, "@local-pkg/deepbook_predict_orders::order_queue::OrderTiming">;
|
|
179
|
+
escrow: MoveStruct<{
|
|
180
|
+
/**
|
|
181
|
+
* USDC locked for the premium and fees, and the fill's all-in cost cap. Sells lock
|
|
182
|
+
* none.
|
|
183
|
+
*/
|
|
184
|
+
budget: _mysten_sui_bcs490.BcsType<bigint, string | number | bigint, "u64">; /** Flat fee charged at placement. */
|
|
185
|
+
order_fee: _mysten_sui_bcs490.BcsType<bigint, string | number | bigint, "u64">;
|
|
186
|
+
/**
|
|
187
|
+
* The admission dry run's pre-subsidy trading fee, capped at the budget. Bounds
|
|
188
|
+
* the subsidy commit reserves.
|
|
189
|
+
*/
|
|
190
|
+
subsidy_bound: _mysten_sui_bcs490.BcsType<bigint, string | number | bigint, "u64">; /** The incentives commit reserved for the order, held with its escrow. */
|
|
191
|
+
subsidy_reserved: _mysten_sui_bcs490.BcsType<bigint, string | number | bigint, "u64">;
|
|
192
|
+
/**
|
|
193
|
+
* Worst-case market cash the fill can consume, counted in Predict's waiting cash
|
|
194
|
+
* need while the order waits.
|
|
195
|
+
*/
|
|
196
|
+
cash_need: _mysten_sui_bcs490.BcsType<bigint, string | number | bigint, "u64">;
|
|
197
|
+
}, "@local-pkg/deepbook_predict_orders::order_queue::OrderEscrow">;
|
|
198
|
+
/**
|
|
199
|
+
* The position the record holds: a sell's position from placement, or a filled
|
|
200
|
+
* mint's new position. Zero otherwise.
|
|
201
|
+
*/
|
|
202
|
+
position: MoveStruct<{
|
|
203
|
+
order_id: _mysten_sui_bcs490.BcsType<bigint, string | number | bigint, "u256">;
|
|
204
|
+
root_id: _mysten_sui_bcs490.BcsType<bigint, string | number | bigint, "u256">;
|
|
205
|
+
opened_at_ms: _mysten_sui_bcs490.BcsType<bigint, string | number | bigint, "u64">;
|
|
206
|
+
}, "@local-pkg/deepbook_predict_orders::order_queue::HeldPosition">;
|
|
207
|
+
price: MoveStruct<{
|
|
208
|
+
/** Pyth price normalized to 1e9. */spot: _mysten_sui_bcs490.BcsType<bigint, string | number | bigint, "u64">; /** The update's envelope in ms: τ, or a later backup tick. The fill prices at it. */
|
|
209
|
+
tick_ms: _mysten_sui_bcs490.BcsType<bigint, string | number | bigint, "u64">; /** The feed's own update time, in µs. */
|
|
210
|
+
generation_us: _mysten_sui_bcs490.BcsType<bigint, string | number | bigint, "u64">;
|
|
211
|
+
}, "@local-pkg/deepbook_predict_orders::order_queue::CommittedPrice">;
|
|
212
|
+
result: MoveStruct<{
|
|
213
|
+
/** `0` for a fill, or a `REASON_*` code. */reason: _mysten_sui_bcs490.BcsType<number, number, "u8">; /** Filled quantity (mint) or closed quantity (sell). */
|
|
214
|
+
quantity: _mysten_sui_bcs490.BcsType<bigint, string | number | bigint, "u64">; /** Cost paid (mint) or proceeds (sell). Zero on a refund. */
|
|
215
|
+
amount: _mysten_sui_bcs490.BcsType<bigint, string | number | bigint, "u64">; /** Sui clock of the finishing transaction. */
|
|
216
|
+
finished_at_ms: _mysten_sui_bcs490.BcsType<bigint, string | number | bigint, "u64">;
|
|
217
|
+
}, "@local-pkg/deepbook_predict_orders::order_queue::OrderResult">;
|
|
218
|
+
/**
|
|
219
|
+
* Predict's receipt: admitted while the order waits, open while the record holds a
|
|
220
|
+
* position, `none` once the order is refunded or fully closed.
|
|
221
|
+
*/
|
|
222
|
+
receipt: _mysten_sui_bcs490.BcsType<{
|
|
223
|
+
expiry_market_id: string;
|
|
224
|
+
stage: number;
|
|
225
|
+
kind: number;
|
|
226
|
+
parties: {
|
|
227
|
+
account_id: string;
|
|
228
|
+
owner: string;
|
|
229
|
+
receive_address: string;
|
|
230
|
+
referrer_account_id: string | null;
|
|
231
|
+
referrer_receive_address: string | null;
|
|
232
|
+
builder_code_id: string | null;
|
|
233
|
+
};
|
|
234
|
+
lower_tick: bigint;
|
|
235
|
+
higher_tick: bigint;
|
|
236
|
+
quantity: bigint;
|
|
237
|
+
max_premium: bigint;
|
|
238
|
+
min_quantity: bigint;
|
|
239
|
+
max_probability: bigint;
|
|
240
|
+
min_probability: bigint;
|
|
241
|
+
min_proceeds: bigint;
|
|
242
|
+
tau_ms: bigint;
|
|
243
|
+
deadline_ms: bigint;
|
|
244
|
+
channel: number;
|
|
245
|
+
vol: {
|
|
246
|
+
pyth_source_id: number;
|
|
247
|
+
bs_spot: bigint;
|
|
248
|
+
bs_forward: bigint;
|
|
249
|
+
svi_a: {
|
|
250
|
+
magnitude: bigint;
|
|
251
|
+
is_negative: boolean;
|
|
252
|
+
};
|
|
253
|
+
svi_b: bigint;
|
|
254
|
+
svi_rho: {
|
|
255
|
+
magnitude: bigint;
|
|
256
|
+
is_negative: boolean;
|
|
257
|
+
};
|
|
258
|
+
svi_m: {
|
|
259
|
+
magnitude: bigint;
|
|
260
|
+
is_negative: boolean;
|
|
261
|
+
};
|
|
262
|
+
svi_sigma: bigint;
|
|
263
|
+
bs_spot_source_timestamp_ms: bigint;
|
|
264
|
+
bs_forward_source_timestamp_ms: bigint;
|
|
265
|
+
svi_source_timestamp_ms: bigint;
|
|
266
|
+
};
|
|
267
|
+
budget: bigint;
|
|
268
|
+
order_fee: bigint;
|
|
269
|
+
cash_need: bigint;
|
|
270
|
+
subsidy_bound: bigint;
|
|
271
|
+
subsidy_rate: bigint;
|
|
272
|
+
subsidy_reserved: bigint;
|
|
273
|
+
spot: bigint;
|
|
274
|
+
tick_ms: bigint;
|
|
275
|
+
generation_us: bigint;
|
|
276
|
+
order_id: bigint;
|
|
277
|
+
root_id: bigint;
|
|
278
|
+
opened_at_ms: bigint;
|
|
279
|
+
held_quantity: bigint;
|
|
280
|
+
} | null, {
|
|
281
|
+
expiry_market_id: string | Uint8Array<ArrayBufferLike>;
|
|
282
|
+
stage: number;
|
|
283
|
+
kind: number;
|
|
284
|
+
parties: {
|
|
285
|
+
account_id: string | Uint8Array<ArrayBufferLike>;
|
|
286
|
+
owner: string | Uint8Array<ArrayBufferLike>;
|
|
287
|
+
receive_address: string | Uint8Array<ArrayBufferLike>;
|
|
288
|
+
referrer_account_id: string | Uint8Array<ArrayBufferLike> | null | undefined;
|
|
289
|
+
referrer_receive_address: string | Uint8Array<ArrayBufferLike> | null | undefined;
|
|
290
|
+
builder_code_id: string | Uint8Array<ArrayBufferLike> | null | undefined;
|
|
291
|
+
};
|
|
292
|
+
lower_tick: string | number | bigint;
|
|
293
|
+
higher_tick: string | number | bigint;
|
|
294
|
+
quantity: string | number | bigint;
|
|
295
|
+
max_premium: string | number | bigint;
|
|
296
|
+
min_quantity: string | number | bigint;
|
|
297
|
+
max_probability: string | number | bigint;
|
|
298
|
+
min_probability: string | number | bigint;
|
|
299
|
+
min_proceeds: string | number | bigint;
|
|
300
|
+
tau_ms: string | number | bigint;
|
|
301
|
+
deadline_ms: string | number | bigint;
|
|
302
|
+
channel: number;
|
|
303
|
+
vol: {
|
|
304
|
+
pyth_source_id: number;
|
|
305
|
+
bs_spot: string | number | bigint;
|
|
306
|
+
bs_forward: string | number | bigint;
|
|
307
|
+
svi_a: {
|
|
308
|
+
magnitude: string | number | bigint;
|
|
309
|
+
is_negative: boolean;
|
|
310
|
+
};
|
|
311
|
+
svi_b: string | number | bigint;
|
|
312
|
+
svi_rho: {
|
|
313
|
+
magnitude: string | number | bigint;
|
|
314
|
+
is_negative: boolean;
|
|
315
|
+
};
|
|
316
|
+
svi_m: {
|
|
317
|
+
magnitude: string | number | bigint;
|
|
318
|
+
is_negative: boolean;
|
|
319
|
+
};
|
|
320
|
+
svi_sigma: string | number | bigint;
|
|
321
|
+
bs_spot_source_timestamp_ms: string | number | bigint;
|
|
322
|
+
bs_forward_source_timestamp_ms: string | number | bigint;
|
|
323
|
+
svi_source_timestamp_ms: string | number | bigint;
|
|
324
|
+
};
|
|
325
|
+
budget: string | number | bigint;
|
|
326
|
+
order_fee: string | number | bigint;
|
|
327
|
+
cash_need: string | number | bigint;
|
|
328
|
+
subsidy_bound: string | number | bigint;
|
|
329
|
+
subsidy_rate: string | number | bigint;
|
|
330
|
+
subsidy_reserved: string | number | bigint;
|
|
331
|
+
spot: string | number | bigint;
|
|
332
|
+
tick_ms: string | number | bigint;
|
|
333
|
+
generation_us: string | number | bigint;
|
|
334
|
+
order_id: string | number | bigint;
|
|
335
|
+
root_id: string | number | bigint;
|
|
336
|
+
opened_at_ms: string | number | bigint;
|
|
337
|
+
held_quantity: string | number | bigint;
|
|
338
|
+
} | null | undefined, "Option<deepbook_predict::expiry_market::OrderReceipt>">;
|
|
339
|
+
/**
|
|
340
|
+
* The order's escrow: its budget, order fee, and reserved subsidy while it waits.
|
|
341
|
+
* Once it finishes, only what the record could not send to its receive address
|
|
342
|
+
* (parked funds), until `queue::claim_parked` sends it.
|
|
343
|
+
*/
|
|
344
|
+
funds: MoveStruct<{
|
|
345
|
+
value: _mysten_sui_bcs490.BcsType<bigint, string | number | bigint, "u64">;
|
|
346
|
+
}, "0x2::balance::Balance<phantom T>">;
|
|
347
|
+
}, "@local-pkg/deepbook_predict_orders::order_queue::QueuedOrder">;
|
|
348
|
+
declare const OrderView: MoveStruct<{
|
|
349
|
+
status: _mysten_sui_bcs490.BcsType<number, number, "u8">;
|
|
350
|
+
kind: _mysten_sui_bcs490.BcsType<number, number, "u8">;
|
|
351
|
+
request: MoveStruct<{
|
|
352
|
+
lower_tick: _mysten_sui_bcs490.BcsType<bigint, string | number | bigint, "u64">;
|
|
353
|
+
higher_tick: _mysten_sui_bcs490.BcsType<bigint, string | number | bigint, "u64">;
|
|
354
|
+
quantity: _mysten_sui_bcs490.BcsType<bigint, string | number | bigint, "u64">;
|
|
355
|
+
max_premium: _mysten_sui_bcs490.BcsType<bigint, string | number | bigint, "u64">;
|
|
356
|
+
min_quantity: _mysten_sui_bcs490.BcsType<bigint, string | number | bigint, "u64">;
|
|
357
|
+
max_cost: _mysten_sui_bcs490.BcsType<bigint, string | number | bigint, "u64">;
|
|
358
|
+
max_probability: _mysten_sui_bcs490.BcsType<bigint, string | number | bigint, "u64">;
|
|
359
|
+
min_probability: _mysten_sui_bcs490.BcsType<bigint, string | number | bigint, "u64">;
|
|
360
|
+
min_proceeds: _mysten_sui_bcs490.BcsType<bigint, string | number | bigint, "u64">;
|
|
361
|
+
}, "@local-pkg/deepbook_predict_orders::order_queue::OrderRequest">;
|
|
362
|
+
account_id: _mysten_sui_bcs490.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
363
|
+
receive_address: _mysten_sui_bcs490.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
364
|
+
timing: MoveStruct<{
|
|
365
|
+
/** t₀, the Sui clock of the placement transaction. */placed_at_ms: _mysten_sui_bcs490.BcsType<bigint, string | number | bigint, "u64">; /** τ itself: a price generated before it never commits the order. */
|
|
366
|
+
earliest_price_ms: _mysten_sui_bcs490.BcsType<bigint, string | number | bigint, "u64">; /** The channel tick the order is priced on. */
|
|
367
|
+
tau_ms: _mysten_sui_bcs490.BcsType<bigint, string | number | bigint, "u64">; /** At or past it the order is refunded, never filled. */
|
|
368
|
+
deadline_ms: _mysten_sui_bcs490.BcsType<bigint, string | number | bigint, "u64">;
|
|
369
|
+
/**
|
|
370
|
+
* `expiry - max(no_trade_window_ms, stall_timeout_ms + 5_000)`; placement requires
|
|
371
|
+
* τ below it.
|
|
372
|
+
*/
|
|
373
|
+
cutoff_ms: _mysten_sui_bcs490.BcsType<bigint, string | number | bigint, "u64">; /** The policy channel at placement. Commit accepts only updates on it. */
|
|
374
|
+
pyth_channel: _mysten_sui_bcs490.BcsType<number, number, "u8">;
|
|
375
|
+
}, "@local-pkg/deepbook_predict_orders::order_queue::OrderTiming">;
|
|
376
|
+
escrow: MoveStruct<{
|
|
377
|
+
/**
|
|
378
|
+
* USDC locked for the premium and fees, and the fill's all-in cost cap. Sells lock
|
|
379
|
+
* none.
|
|
380
|
+
*/
|
|
381
|
+
budget: _mysten_sui_bcs490.BcsType<bigint, string | number | bigint, "u64">; /** Flat fee charged at placement. */
|
|
382
|
+
order_fee: _mysten_sui_bcs490.BcsType<bigint, string | number | bigint, "u64">;
|
|
383
|
+
/**
|
|
384
|
+
* The admission dry run's pre-subsidy trading fee, capped at the budget. Bounds
|
|
385
|
+
* the subsidy commit reserves.
|
|
386
|
+
*/
|
|
387
|
+
subsidy_bound: _mysten_sui_bcs490.BcsType<bigint, string | number | bigint, "u64">; /** The incentives commit reserved for the order, held with its escrow. */
|
|
388
|
+
subsidy_reserved: _mysten_sui_bcs490.BcsType<bigint, string | number | bigint, "u64">;
|
|
389
|
+
/**
|
|
390
|
+
* Worst-case market cash the fill can consume, counted in Predict's waiting cash
|
|
391
|
+
* need while the order waits.
|
|
392
|
+
*/
|
|
393
|
+
cash_need: _mysten_sui_bcs490.BcsType<bigint, string | number | bigint, "u64">;
|
|
394
|
+
}, "@local-pkg/deepbook_predict_orders::order_queue::OrderEscrow">;
|
|
395
|
+
position: MoveStruct<{
|
|
396
|
+
order_id: _mysten_sui_bcs490.BcsType<bigint, string | number | bigint, "u256">;
|
|
397
|
+
root_id: _mysten_sui_bcs490.BcsType<bigint, string | number | bigint, "u256">;
|
|
398
|
+
opened_at_ms: _mysten_sui_bcs490.BcsType<bigint, string | number | bigint, "u64">;
|
|
399
|
+
}, "@local-pkg/deepbook_predict_orders::order_queue::HeldPosition">;
|
|
400
|
+
price: MoveStruct<{
|
|
401
|
+
/** Pyth price normalized to 1e9. */spot: _mysten_sui_bcs490.BcsType<bigint, string | number | bigint, "u64">; /** The update's envelope in ms: τ, or a later backup tick. The fill prices at it. */
|
|
402
|
+
tick_ms: _mysten_sui_bcs490.BcsType<bigint, string | number | bigint, "u64">; /** The feed's own update time, in µs. */
|
|
403
|
+
generation_us: _mysten_sui_bcs490.BcsType<bigint, string | number | bigint, "u64">;
|
|
404
|
+
}, "@local-pkg/deepbook_predict_orders::order_queue::CommittedPrice">;
|
|
405
|
+
result: MoveStruct<{
|
|
406
|
+
/** `0` for a fill, or a `REASON_*` code. */reason: _mysten_sui_bcs490.BcsType<number, number, "u8">; /** Filled quantity (mint) or closed quantity (sell). */
|
|
407
|
+
quantity: _mysten_sui_bcs490.BcsType<bigint, string | number | bigint, "u64">; /** Cost paid (mint) or proceeds (sell). Zero on a refund. */
|
|
408
|
+
amount: _mysten_sui_bcs490.BcsType<bigint, string | number | bigint, "u64">; /** Sui clock of the finishing transaction. */
|
|
409
|
+
finished_at_ms: _mysten_sui_bcs490.BcsType<bigint, string | number | bigint, "u64">;
|
|
410
|
+
}, "@local-pkg/deepbook_predict_orders::order_queue::OrderResult">;
|
|
411
|
+
/**
|
|
412
|
+
* The receipt's Predict stage (`constants::receipt_stage_*`), `0` when the record
|
|
413
|
+
* holds none.
|
|
414
|
+
*/
|
|
415
|
+
receipt_stage: _mysten_sui_bcs490.BcsType<number, number, "u8">; /** USDC the record holds now: escrow while unfinished, parked funds after. */
|
|
416
|
+
funds: _mysten_sui_bcs490.BcsType<bigint, string | number | bigint, "u64">;
|
|
417
|
+
}, "@local-pkg/deepbook_predict_orders::order_queue::OrderView">;
|
|
418
|
+
interface StatusPendingOptions {
|
|
419
|
+
package?: string;
|
|
420
|
+
arguments?: [];
|
|
421
|
+
config?: {
|
|
422
|
+
predictOrdersPackageId?: string;
|
|
423
|
+
};
|
|
424
|
+
}
|
|
425
|
+
declare function statusPending(options?: StatusPendingOptions): (tx: Transaction) => _mysten_sui_transactions275.TransactionResult;
|
|
426
|
+
interface StatusCommittedOptions {
|
|
427
|
+
package?: string;
|
|
428
|
+
arguments?: [];
|
|
429
|
+
config?: {
|
|
430
|
+
predictOrdersPackageId?: string;
|
|
431
|
+
};
|
|
432
|
+
}
|
|
433
|
+
declare function statusCommitted(options?: StatusCommittedOptions): (tx: Transaction) => _mysten_sui_transactions275.TransactionResult;
|
|
434
|
+
interface StatusOpenOptions {
|
|
435
|
+
package?: string;
|
|
436
|
+
arguments?: [];
|
|
437
|
+
config?: {
|
|
438
|
+
predictOrdersPackageId?: string;
|
|
439
|
+
};
|
|
440
|
+
}
|
|
441
|
+
declare function statusOpen(options?: StatusOpenOptions): (tx: Transaction) => _mysten_sui_transactions275.TransactionResult;
|
|
442
|
+
interface StatusRefundedOptions {
|
|
443
|
+
package?: string;
|
|
444
|
+
arguments?: [];
|
|
445
|
+
config?: {
|
|
446
|
+
predictOrdersPackageId?: string;
|
|
447
|
+
};
|
|
448
|
+
}
|
|
449
|
+
declare function statusRefunded(options?: StatusRefundedOptions): (tx: Transaction) => _mysten_sui_transactions275.TransactionResult;
|
|
450
|
+
interface StatusClosedOptions {
|
|
451
|
+
package?: string;
|
|
452
|
+
arguments?: [];
|
|
453
|
+
config?: {
|
|
454
|
+
predictOrdersPackageId?: string;
|
|
455
|
+
};
|
|
456
|
+
}
|
|
457
|
+
declare function statusClosed(options?: StatusClosedOptions): (tx: Transaction) => _mysten_sui_transactions275.TransactionResult;
|
|
458
|
+
interface StatusRefundDueOptions {
|
|
459
|
+
package?: string;
|
|
460
|
+
arguments?: [];
|
|
461
|
+
config?: {
|
|
462
|
+
predictOrdersPackageId?: string;
|
|
463
|
+
};
|
|
464
|
+
}
|
|
465
|
+
declare function statusRefundDue(options?: StatusRefundDueOptions): (tx: Transaction) => _mysten_sui_transactions275.TransactionResult;
|
|
466
|
+
interface KindExactQuantityOptions {
|
|
467
|
+
package?: string;
|
|
468
|
+
arguments?: [];
|
|
469
|
+
config?: {
|
|
470
|
+
predictOrdersPackageId?: string;
|
|
471
|
+
};
|
|
472
|
+
}
|
|
473
|
+
declare function kindExactQuantity(options?: KindExactQuantityOptions): (tx: Transaction) => _mysten_sui_transactions275.TransactionResult;
|
|
474
|
+
interface KindExactAmountOptions {
|
|
475
|
+
package?: string;
|
|
476
|
+
arguments?: [];
|
|
477
|
+
config?: {
|
|
478
|
+
predictOrdersPackageId?: string;
|
|
479
|
+
};
|
|
480
|
+
}
|
|
481
|
+
declare function kindExactAmount(options?: KindExactAmountOptions): (tx: Transaction) => _mysten_sui_transactions275.TransactionResult;
|
|
482
|
+
interface KindExactCostOptions {
|
|
483
|
+
package?: string;
|
|
484
|
+
arguments?: [];
|
|
485
|
+
config?: {
|
|
486
|
+
predictOrdersPackageId?: string;
|
|
487
|
+
};
|
|
488
|
+
}
|
|
489
|
+
declare function kindExactCost(options?: KindExactCostOptions): (tx: Transaction) => _mysten_sui_transactions275.TransactionResult;
|
|
490
|
+
interface KindRedeemLiveOptions {
|
|
491
|
+
package?: string;
|
|
492
|
+
arguments?: [];
|
|
493
|
+
config?: {
|
|
494
|
+
predictOrdersPackageId?: string;
|
|
495
|
+
};
|
|
496
|
+
}
|
|
497
|
+
declare function kindRedeemLive(options?: KindRedeemLiveOptions): (tx: Transaction) => _mysten_sui_transactions275.TransactionResult;
|
|
498
|
+
interface KindRedeemOpenOptions {
|
|
499
|
+
package?: string;
|
|
500
|
+
arguments?: [];
|
|
501
|
+
config?: {
|
|
502
|
+
predictOrdersPackageId?: string;
|
|
503
|
+
};
|
|
504
|
+
}
|
|
505
|
+
declare function kindRedeemOpen(options?: KindRedeemOpenOptions): (tx: Transaction) => _mysten_sui_transactions275.TransactionResult;
|
|
506
|
+
interface ReasonLimitsOptions {
|
|
507
|
+
package?: string;
|
|
508
|
+
arguments?: [];
|
|
509
|
+
config?: {
|
|
510
|
+
predictOrdersPackageId?: string;
|
|
511
|
+
};
|
|
512
|
+
}
|
|
513
|
+
declare function reasonLimits(options?: ReasonLimitsOptions): (tx: Transaction) => _mysten_sui_transactions275.TransactionResult;
|
|
514
|
+
interface ReasonAdmissionOptions {
|
|
515
|
+
package?: string;
|
|
516
|
+
arguments?: [];
|
|
517
|
+
config?: {
|
|
518
|
+
predictOrdersPackageId?: string;
|
|
519
|
+
};
|
|
520
|
+
}
|
|
521
|
+
declare function reasonAdmission(options?: ReasonAdmissionOptions): (tx: Transaction) => _mysten_sui_transactions275.TransactionResult;
|
|
522
|
+
interface ReasonNoPriceOptions {
|
|
523
|
+
package?: string;
|
|
524
|
+
arguments?: [];
|
|
525
|
+
config?: {
|
|
526
|
+
predictOrdersPackageId?: string;
|
|
527
|
+
};
|
|
528
|
+
}
|
|
529
|
+
declare function reasonNoPrice(options?: ReasonNoPriceOptions): (tx: Transaction) => _mysten_sui_transactions275.TransactionResult;
|
|
530
|
+
interface ReasonMissingNodeOptions {
|
|
531
|
+
package?: string;
|
|
532
|
+
arguments?: [];
|
|
533
|
+
config?: {
|
|
534
|
+
predictOrdersPackageId?: string;
|
|
535
|
+
};
|
|
536
|
+
}
|
|
537
|
+
declare function reasonMissingNode(options?: ReasonMissingNodeOptions): (tx: Transaction) => _mysten_sui_transactions275.TransactionResult;
|
|
538
|
+
interface ReasonDeadlineOptions {
|
|
539
|
+
package?: string;
|
|
540
|
+
arguments?: [];
|
|
541
|
+
config?: {
|
|
542
|
+
predictOrdersPackageId?: string;
|
|
543
|
+
};
|
|
544
|
+
}
|
|
545
|
+
declare function reasonDeadline(options?: ReasonDeadlineOptions): (tx: Transaction) => _mysten_sui_transactions275.TransactionResult;
|
|
546
|
+
interface ReasonFreezeOptions {
|
|
547
|
+
package?: string;
|
|
548
|
+
arguments?: [];
|
|
549
|
+
config?: {
|
|
550
|
+
predictOrdersPackageId?: string;
|
|
551
|
+
};
|
|
552
|
+
}
|
|
553
|
+
declare function reasonFreeze(options?: ReasonFreezeOptions): (tx: Transaction) => _mysten_sui_transactions275.TransactionResult;
|
|
554
|
+
interface ReasonAdminOptions {
|
|
555
|
+
package?: string;
|
|
556
|
+
arguments?: [];
|
|
557
|
+
config?: {
|
|
558
|
+
predictOrdersPackageId?: string;
|
|
559
|
+
};
|
|
560
|
+
}
|
|
561
|
+
declare function reasonAdmin(options?: ReasonAdminOptions): (tx: Transaction) => _mysten_sui_transactions275.TransactionResult;
|
|
562
|
+
interface ReasonNoCashOptions {
|
|
563
|
+
package?: string;
|
|
564
|
+
arguments?: [];
|
|
565
|
+
config?: {
|
|
566
|
+
predictOrdersPackageId?: string;
|
|
567
|
+
};
|
|
568
|
+
}
|
|
569
|
+
declare function reasonNoCash(options?: ReasonNoCashOptions): (tx: Transaction) => _mysten_sui_transactions275.TransactionResult;
|
|
570
|
+
interface ReasonRecipientDeniedOptions {
|
|
571
|
+
package?: string;
|
|
572
|
+
arguments?: [];
|
|
573
|
+
config?: {
|
|
574
|
+
predictOrdersPackageId?: string;
|
|
575
|
+
};
|
|
576
|
+
}
|
|
577
|
+
declare function reasonRecipientDenied(options?: ReasonRecipientDeniedOptions): (tx: Transaction) => _mysten_sui_transactions275.TransactionResult;
|
|
578
|
+
interface StatusArguments {
|
|
579
|
+
view: TransactionArgument;
|
|
580
|
+
}
|
|
581
|
+
interface StatusOptions {
|
|
582
|
+
package?: string;
|
|
583
|
+
arguments: StatusArguments | [view: TransactionArgument];
|
|
584
|
+
config?: {
|
|
585
|
+
predictOrdersPackageId?: string;
|
|
586
|
+
};
|
|
587
|
+
}
|
|
588
|
+
declare function status(options: StatusOptions): (tx: Transaction) => _mysten_sui_transactions275.TransactionResult;
|
|
589
|
+
interface KindArguments {
|
|
590
|
+
view: TransactionArgument;
|
|
591
|
+
}
|
|
592
|
+
interface KindOptions {
|
|
593
|
+
package?: string;
|
|
594
|
+
arguments: KindArguments | [view: TransactionArgument];
|
|
595
|
+
config?: {
|
|
596
|
+
predictOrdersPackageId?: string;
|
|
597
|
+
};
|
|
598
|
+
}
|
|
599
|
+
declare function kind(options: KindOptions): (tx: Transaction) => _mysten_sui_transactions275.TransactionResult;
|
|
600
|
+
interface RequestArguments {
|
|
601
|
+
view: TransactionArgument;
|
|
602
|
+
}
|
|
603
|
+
interface RequestOptions {
|
|
604
|
+
package?: string;
|
|
605
|
+
arguments: RequestArguments | [view: TransactionArgument];
|
|
606
|
+
config?: {
|
|
607
|
+
predictOrdersPackageId?: string;
|
|
608
|
+
};
|
|
609
|
+
}
|
|
610
|
+
declare function request(options: RequestOptions): (tx: Transaction) => _mysten_sui_transactions275.TransactionResult;
|
|
611
|
+
interface AccountIdArguments {
|
|
612
|
+
view: TransactionArgument;
|
|
613
|
+
}
|
|
614
|
+
interface AccountIdOptions {
|
|
615
|
+
package?: string;
|
|
616
|
+
arguments: AccountIdArguments | [view: TransactionArgument];
|
|
617
|
+
config?: {
|
|
618
|
+
predictOrdersPackageId?: string;
|
|
619
|
+
};
|
|
620
|
+
}
|
|
621
|
+
declare function accountId(options: AccountIdOptions): (tx: Transaction) => _mysten_sui_transactions275.TransactionResult;
|
|
622
|
+
interface ReceiveAddressArguments {
|
|
623
|
+
view: TransactionArgument;
|
|
624
|
+
}
|
|
625
|
+
interface ReceiveAddressOptions {
|
|
626
|
+
package?: string;
|
|
627
|
+
arguments: ReceiveAddressArguments | [view: TransactionArgument];
|
|
628
|
+
config?: {
|
|
629
|
+
predictOrdersPackageId?: string;
|
|
630
|
+
};
|
|
631
|
+
}
|
|
632
|
+
declare function receiveAddress(options: ReceiveAddressOptions): (tx: Transaction) => _mysten_sui_transactions275.TransactionResult;
|
|
633
|
+
interface TimingArguments {
|
|
634
|
+
view: TransactionArgument;
|
|
635
|
+
}
|
|
636
|
+
interface TimingOptions {
|
|
637
|
+
package?: string;
|
|
638
|
+
arguments: TimingArguments | [view: TransactionArgument];
|
|
639
|
+
config?: {
|
|
640
|
+
predictOrdersPackageId?: string;
|
|
641
|
+
};
|
|
642
|
+
}
|
|
643
|
+
declare function timing(options: TimingOptions): (tx: Transaction) => _mysten_sui_transactions275.TransactionResult;
|
|
644
|
+
interface EscrowArguments {
|
|
645
|
+
view: TransactionArgument;
|
|
646
|
+
}
|
|
647
|
+
interface EscrowOptions {
|
|
648
|
+
package?: string;
|
|
649
|
+
arguments: EscrowArguments | [view: TransactionArgument];
|
|
650
|
+
config?: {
|
|
651
|
+
predictOrdersPackageId?: string;
|
|
652
|
+
};
|
|
653
|
+
}
|
|
654
|
+
declare function escrow(options: EscrowOptions): (tx: Transaction) => _mysten_sui_transactions275.TransactionResult;
|
|
655
|
+
interface PositionArguments {
|
|
656
|
+
view: TransactionArgument;
|
|
657
|
+
}
|
|
658
|
+
interface PositionOptions {
|
|
659
|
+
package?: string;
|
|
660
|
+
arguments: PositionArguments | [view: TransactionArgument];
|
|
661
|
+
config?: {
|
|
662
|
+
predictOrdersPackageId?: string;
|
|
663
|
+
};
|
|
664
|
+
}
|
|
665
|
+
declare function position(options: PositionOptions): (tx: Transaction) => _mysten_sui_transactions275.TransactionResult;
|
|
666
|
+
interface PriceArguments {
|
|
667
|
+
view: TransactionArgument;
|
|
668
|
+
}
|
|
669
|
+
interface PriceOptions {
|
|
670
|
+
package?: string;
|
|
671
|
+
arguments: PriceArguments | [view: TransactionArgument];
|
|
672
|
+
config?: {
|
|
673
|
+
predictOrdersPackageId?: string;
|
|
674
|
+
};
|
|
675
|
+
}
|
|
676
|
+
declare function price(options: PriceOptions): (tx: Transaction) => _mysten_sui_transactions275.TransactionResult;
|
|
677
|
+
interface ResultArguments {
|
|
678
|
+
view: TransactionArgument;
|
|
679
|
+
}
|
|
680
|
+
interface ResultOptions {
|
|
681
|
+
package?: string;
|
|
682
|
+
arguments: ResultArguments | [view: TransactionArgument];
|
|
683
|
+
config?: {
|
|
684
|
+
predictOrdersPackageId?: string;
|
|
685
|
+
};
|
|
686
|
+
}
|
|
687
|
+
declare function result(options: ResultOptions): (tx: Transaction) => _mysten_sui_transactions275.TransactionResult;
|
|
688
|
+
interface ReceiptStageArguments {
|
|
689
|
+
view: TransactionArgument;
|
|
690
|
+
}
|
|
691
|
+
interface ReceiptStageOptions {
|
|
692
|
+
package?: string;
|
|
693
|
+
arguments: ReceiptStageArguments | [view: TransactionArgument];
|
|
694
|
+
config?: {
|
|
695
|
+
predictOrdersPackageId?: string;
|
|
696
|
+
};
|
|
697
|
+
}
|
|
698
|
+
declare function receiptStage(options: ReceiptStageOptions): (tx: Transaction) => _mysten_sui_transactions275.TransactionResult;
|
|
699
|
+
interface FundsArguments {
|
|
700
|
+
view: TransactionArgument;
|
|
701
|
+
}
|
|
702
|
+
interface FundsOptions {
|
|
703
|
+
package?: string;
|
|
704
|
+
arguments: FundsArguments | [view: TransactionArgument];
|
|
705
|
+
config?: {
|
|
706
|
+
predictOrdersPackageId?: string;
|
|
707
|
+
};
|
|
708
|
+
}
|
|
709
|
+
declare function funds(options: FundsOptions): (tx: Transaction) => _mysten_sui_transactions275.TransactionResult;
|
|
710
|
+
interface LowerTickArguments {
|
|
711
|
+
request: TransactionArgument;
|
|
712
|
+
}
|
|
713
|
+
interface LowerTickOptions {
|
|
714
|
+
package?: string;
|
|
715
|
+
arguments: LowerTickArguments | [request: TransactionArgument];
|
|
716
|
+
config?: {
|
|
717
|
+
predictOrdersPackageId?: string;
|
|
718
|
+
};
|
|
719
|
+
}
|
|
720
|
+
declare function lowerTick(options: LowerTickOptions): (tx: Transaction) => _mysten_sui_transactions275.TransactionResult;
|
|
721
|
+
interface HigherTickArguments {
|
|
722
|
+
request: TransactionArgument;
|
|
723
|
+
}
|
|
724
|
+
interface HigherTickOptions {
|
|
725
|
+
package?: string;
|
|
726
|
+
arguments: HigherTickArguments | [request: TransactionArgument];
|
|
727
|
+
config?: {
|
|
728
|
+
predictOrdersPackageId?: string;
|
|
729
|
+
};
|
|
730
|
+
}
|
|
731
|
+
declare function higherTick(options: HigherTickOptions): (tx: Transaction) => _mysten_sui_transactions275.TransactionResult;
|
|
732
|
+
interface QuantityArguments {
|
|
733
|
+
request: TransactionArgument;
|
|
734
|
+
}
|
|
735
|
+
interface QuantityOptions {
|
|
736
|
+
package?: string;
|
|
737
|
+
arguments: QuantityArguments | [request: TransactionArgument];
|
|
738
|
+
config?: {
|
|
739
|
+
predictOrdersPackageId?: string;
|
|
740
|
+
};
|
|
741
|
+
}
|
|
742
|
+
declare function quantity(options: QuantityOptions): (tx: Transaction) => _mysten_sui_transactions275.TransactionResult;
|
|
743
|
+
interface MaxPremiumArguments {
|
|
744
|
+
request: TransactionArgument;
|
|
745
|
+
}
|
|
746
|
+
interface MaxPremiumOptions {
|
|
747
|
+
package?: string;
|
|
748
|
+
arguments: MaxPremiumArguments | [request: TransactionArgument];
|
|
749
|
+
config?: {
|
|
750
|
+
predictOrdersPackageId?: string;
|
|
751
|
+
};
|
|
752
|
+
}
|
|
753
|
+
declare function maxPremium(options: MaxPremiumOptions): (tx: Transaction) => _mysten_sui_transactions275.TransactionResult;
|
|
754
|
+
interface MinQuantityArguments {
|
|
755
|
+
request: TransactionArgument;
|
|
756
|
+
}
|
|
757
|
+
interface MinQuantityOptions {
|
|
758
|
+
package?: string;
|
|
759
|
+
arguments: MinQuantityArguments | [request: TransactionArgument];
|
|
760
|
+
config?: {
|
|
761
|
+
predictOrdersPackageId?: string;
|
|
762
|
+
};
|
|
763
|
+
}
|
|
764
|
+
declare function minQuantity(options: MinQuantityOptions): (tx: Transaction) => _mysten_sui_transactions275.TransactionResult;
|
|
765
|
+
interface MaxCostArguments {
|
|
766
|
+
request: TransactionArgument;
|
|
767
|
+
}
|
|
768
|
+
interface MaxCostOptions {
|
|
769
|
+
package?: string;
|
|
770
|
+
arguments: MaxCostArguments | [request: TransactionArgument];
|
|
771
|
+
config?: {
|
|
772
|
+
predictOrdersPackageId?: string;
|
|
773
|
+
};
|
|
774
|
+
}
|
|
775
|
+
declare function maxCost(options: MaxCostOptions): (tx: Transaction) => _mysten_sui_transactions275.TransactionResult;
|
|
776
|
+
interface MaxProbabilityArguments {
|
|
777
|
+
request: TransactionArgument;
|
|
778
|
+
}
|
|
779
|
+
interface MaxProbabilityOptions {
|
|
780
|
+
package?: string;
|
|
781
|
+
arguments: MaxProbabilityArguments | [request: TransactionArgument];
|
|
782
|
+
config?: {
|
|
783
|
+
predictOrdersPackageId?: string;
|
|
784
|
+
};
|
|
785
|
+
}
|
|
786
|
+
declare function maxProbability(options: MaxProbabilityOptions): (tx: Transaction) => _mysten_sui_transactions275.TransactionResult;
|
|
787
|
+
interface MinProbabilityArguments {
|
|
788
|
+
request: TransactionArgument;
|
|
789
|
+
}
|
|
790
|
+
interface MinProbabilityOptions {
|
|
791
|
+
package?: string;
|
|
792
|
+
arguments: MinProbabilityArguments | [request: TransactionArgument];
|
|
793
|
+
config?: {
|
|
794
|
+
predictOrdersPackageId?: string;
|
|
795
|
+
};
|
|
796
|
+
}
|
|
797
|
+
declare function minProbability(options: MinProbabilityOptions): (tx: Transaction) => _mysten_sui_transactions275.TransactionResult;
|
|
798
|
+
interface MinProceedsArguments {
|
|
799
|
+
request: TransactionArgument;
|
|
800
|
+
}
|
|
801
|
+
interface MinProceedsOptions {
|
|
802
|
+
package?: string;
|
|
803
|
+
arguments: MinProceedsArguments | [request: TransactionArgument];
|
|
804
|
+
config?: {
|
|
805
|
+
predictOrdersPackageId?: string;
|
|
806
|
+
};
|
|
807
|
+
}
|
|
808
|
+
declare function minProceeds(options: MinProceedsOptions): (tx: Transaction) => _mysten_sui_transactions275.TransactionResult;
|
|
809
|
+
interface PlacedAtMsArguments {
|
|
810
|
+
timing: TransactionArgument;
|
|
811
|
+
}
|
|
812
|
+
interface PlacedAtMsOptions {
|
|
813
|
+
package?: string;
|
|
814
|
+
arguments: PlacedAtMsArguments | [timing: TransactionArgument];
|
|
815
|
+
config?: {
|
|
816
|
+
predictOrdersPackageId?: string;
|
|
817
|
+
};
|
|
818
|
+
}
|
|
819
|
+
declare function placedAtMs(options: PlacedAtMsOptions): (tx: Transaction) => _mysten_sui_transactions275.TransactionResult;
|
|
820
|
+
interface EarliestPriceMsArguments {
|
|
821
|
+
timing: TransactionArgument;
|
|
822
|
+
}
|
|
823
|
+
interface EarliestPriceMsOptions {
|
|
824
|
+
package?: string;
|
|
825
|
+
arguments: EarliestPriceMsArguments | [timing: TransactionArgument];
|
|
826
|
+
config?: {
|
|
827
|
+
predictOrdersPackageId?: string;
|
|
828
|
+
};
|
|
829
|
+
}
|
|
830
|
+
declare function earliestPriceMs(options: EarliestPriceMsOptions): (tx: Transaction) => _mysten_sui_transactions275.TransactionResult;
|
|
831
|
+
interface TauMsArguments {
|
|
832
|
+
timing: TransactionArgument;
|
|
833
|
+
}
|
|
834
|
+
interface TauMsOptions {
|
|
835
|
+
package?: string;
|
|
836
|
+
arguments: TauMsArguments | [timing: TransactionArgument];
|
|
837
|
+
config?: {
|
|
838
|
+
predictOrdersPackageId?: string;
|
|
839
|
+
};
|
|
840
|
+
}
|
|
841
|
+
declare function tauMs(options: TauMsOptions): (tx: Transaction) => _mysten_sui_transactions275.TransactionResult;
|
|
842
|
+
interface DeadlineMsArguments {
|
|
843
|
+
timing: TransactionArgument;
|
|
844
|
+
}
|
|
845
|
+
interface DeadlineMsOptions {
|
|
846
|
+
package?: string;
|
|
847
|
+
arguments: DeadlineMsArguments | [timing: TransactionArgument];
|
|
848
|
+
config?: {
|
|
849
|
+
predictOrdersPackageId?: string;
|
|
850
|
+
};
|
|
851
|
+
}
|
|
852
|
+
declare function deadlineMs(options: DeadlineMsOptions): (tx: Transaction) => _mysten_sui_transactions275.TransactionResult;
|
|
853
|
+
interface CutoffMsArguments {
|
|
854
|
+
timing: TransactionArgument;
|
|
855
|
+
}
|
|
856
|
+
interface CutoffMsOptions {
|
|
857
|
+
package?: string;
|
|
858
|
+
arguments: CutoffMsArguments | [timing: TransactionArgument];
|
|
859
|
+
config?: {
|
|
860
|
+
predictOrdersPackageId?: string;
|
|
861
|
+
};
|
|
862
|
+
}
|
|
863
|
+
declare function cutoffMs(options: CutoffMsOptions): (tx: Transaction) => _mysten_sui_transactions275.TransactionResult;
|
|
864
|
+
interface PythChannelArguments {
|
|
865
|
+
timing: TransactionArgument;
|
|
866
|
+
}
|
|
867
|
+
interface PythChannelOptions {
|
|
868
|
+
package?: string;
|
|
869
|
+
arguments: PythChannelArguments | [timing: TransactionArgument];
|
|
870
|
+
config?: {
|
|
871
|
+
predictOrdersPackageId?: string;
|
|
872
|
+
};
|
|
873
|
+
}
|
|
874
|
+
declare function pythChannel(options: PythChannelOptions): (tx: Transaction) => _mysten_sui_transactions275.TransactionResult;
|
|
875
|
+
interface BudgetArguments {
|
|
876
|
+
escrow: TransactionArgument;
|
|
877
|
+
}
|
|
878
|
+
interface BudgetOptions {
|
|
879
|
+
package?: string;
|
|
880
|
+
arguments: BudgetArguments | [escrow: TransactionArgument];
|
|
881
|
+
config?: {
|
|
882
|
+
predictOrdersPackageId?: string;
|
|
883
|
+
};
|
|
884
|
+
}
|
|
885
|
+
declare function budget(options: BudgetOptions): (tx: Transaction) => _mysten_sui_transactions275.TransactionResult;
|
|
886
|
+
interface OrderFeeArguments {
|
|
887
|
+
escrow: TransactionArgument;
|
|
888
|
+
}
|
|
889
|
+
interface OrderFeeOptions {
|
|
890
|
+
package?: string;
|
|
891
|
+
arguments: OrderFeeArguments | [escrow: TransactionArgument];
|
|
892
|
+
config?: {
|
|
893
|
+
predictOrdersPackageId?: string;
|
|
894
|
+
};
|
|
895
|
+
}
|
|
896
|
+
declare function orderFee(options: OrderFeeOptions): (tx: Transaction) => _mysten_sui_transactions275.TransactionResult;
|
|
897
|
+
interface SubsidyBoundArguments {
|
|
898
|
+
escrow: TransactionArgument;
|
|
899
|
+
}
|
|
900
|
+
interface SubsidyBoundOptions {
|
|
901
|
+
package?: string;
|
|
902
|
+
arguments: SubsidyBoundArguments | [escrow: TransactionArgument];
|
|
903
|
+
config?: {
|
|
904
|
+
predictOrdersPackageId?: string;
|
|
905
|
+
};
|
|
906
|
+
}
|
|
907
|
+
declare function subsidyBound(options: SubsidyBoundOptions): (tx: Transaction) => _mysten_sui_transactions275.TransactionResult;
|
|
908
|
+
interface SubsidyReservedArguments {
|
|
909
|
+
escrow: TransactionArgument;
|
|
910
|
+
}
|
|
911
|
+
interface SubsidyReservedOptions {
|
|
912
|
+
package?: string;
|
|
913
|
+
arguments: SubsidyReservedArguments | [escrow: TransactionArgument];
|
|
914
|
+
config?: {
|
|
915
|
+
predictOrdersPackageId?: string;
|
|
916
|
+
};
|
|
917
|
+
}
|
|
918
|
+
declare function subsidyReserved(options: SubsidyReservedOptions): (tx: Transaction) => _mysten_sui_transactions275.TransactionResult;
|
|
919
|
+
interface CashNeedArguments {
|
|
920
|
+
escrow: TransactionArgument;
|
|
921
|
+
}
|
|
922
|
+
interface CashNeedOptions {
|
|
923
|
+
package?: string;
|
|
924
|
+
arguments: CashNeedArguments | [escrow: TransactionArgument];
|
|
925
|
+
config?: {
|
|
926
|
+
predictOrdersPackageId?: string;
|
|
927
|
+
};
|
|
928
|
+
}
|
|
929
|
+
declare function cashNeed(options: CashNeedOptions): (tx: Transaction) => _mysten_sui_transactions275.TransactionResult;
|
|
930
|
+
interface OrderIdArguments {
|
|
931
|
+
position: TransactionArgument;
|
|
932
|
+
}
|
|
933
|
+
interface OrderIdOptions {
|
|
934
|
+
package?: string;
|
|
935
|
+
arguments: OrderIdArguments | [position: TransactionArgument];
|
|
936
|
+
config?: {
|
|
937
|
+
predictOrdersPackageId?: string;
|
|
938
|
+
};
|
|
939
|
+
}
|
|
940
|
+
declare function orderId(options: OrderIdOptions): (tx: Transaction) => _mysten_sui_transactions275.TransactionResult;
|
|
941
|
+
interface RootIdArguments {
|
|
942
|
+
position: TransactionArgument;
|
|
943
|
+
}
|
|
944
|
+
interface RootIdOptions {
|
|
945
|
+
package?: string;
|
|
946
|
+
arguments: RootIdArguments | [position: TransactionArgument];
|
|
947
|
+
config?: {
|
|
948
|
+
predictOrdersPackageId?: string;
|
|
949
|
+
};
|
|
950
|
+
}
|
|
951
|
+
declare function rootId(options: RootIdOptions): (tx: Transaction) => _mysten_sui_transactions275.TransactionResult;
|
|
952
|
+
interface OpenedAtMsArguments {
|
|
953
|
+
position: TransactionArgument;
|
|
954
|
+
}
|
|
955
|
+
interface OpenedAtMsOptions {
|
|
956
|
+
package?: string;
|
|
957
|
+
arguments: OpenedAtMsArguments | [position: TransactionArgument];
|
|
958
|
+
config?: {
|
|
959
|
+
predictOrdersPackageId?: string;
|
|
960
|
+
};
|
|
961
|
+
}
|
|
962
|
+
declare function openedAtMs(options: OpenedAtMsOptions): (tx: Transaction) => _mysten_sui_transactions275.TransactionResult;
|
|
963
|
+
interface SpotArguments {
|
|
964
|
+
price: TransactionArgument;
|
|
965
|
+
}
|
|
966
|
+
interface SpotOptions {
|
|
967
|
+
package?: string;
|
|
968
|
+
arguments: SpotArguments | [price: TransactionArgument];
|
|
969
|
+
config?: {
|
|
970
|
+
predictOrdersPackageId?: string;
|
|
971
|
+
};
|
|
972
|
+
}
|
|
973
|
+
declare function spot(options: SpotOptions): (tx: Transaction) => _mysten_sui_transactions275.TransactionResult;
|
|
974
|
+
interface TickMsArguments {
|
|
975
|
+
price: TransactionArgument;
|
|
976
|
+
}
|
|
977
|
+
interface TickMsOptions {
|
|
978
|
+
package?: string;
|
|
979
|
+
arguments: TickMsArguments | [price: TransactionArgument];
|
|
980
|
+
config?: {
|
|
981
|
+
predictOrdersPackageId?: string;
|
|
982
|
+
};
|
|
983
|
+
}
|
|
984
|
+
declare function tickMs(options: TickMsOptions): (tx: Transaction) => _mysten_sui_transactions275.TransactionResult;
|
|
985
|
+
interface GenerationUsArguments {
|
|
986
|
+
price: TransactionArgument;
|
|
987
|
+
}
|
|
988
|
+
interface GenerationUsOptions {
|
|
989
|
+
package?: string;
|
|
990
|
+
arguments: GenerationUsArguments | [price: TransactionArgument];
|
|
991
|
+
config?: {
|
|
992
|
+
predictOrdersPackageId?: string;
|
|
993
|
+
};
|
|
994
|
+
}
|
|
995
|
+
declare function generationUs(options: GenerationUsOptions): (tx: Transaction) => _mysten_sui_transactions275.TransactionResult;
|
|
996
|
+
interface ReasonArguments {
|
|
997
|
+
result: TransactionArgument;
|
|
998
|
+
}
|
|
999
|
+
interface ReasonOptions {
|
|
1000
|
+
package?: string;
|
|
1001
|
+
arguments: ReasonArguments | [result: TransactionArgument];
|
|
1002
|
+
config?: {
|
|
1003
|
+
predictOrdersPackageId?: string;
|
|
1004
|
+
};
|
|
1005
|
+
}
|
|
1006
|
+
declare function reason(options: ReasonOptions): (tx: Transaction) => _mysten_sui_transactions275.TransactionResult;
|
|
1007
|
+
interface ResultQuantityArguments {
|
|
1008
|
+
result: TransactionArgument;
|
|
1009
|
+
}
|
|
1010
|
+
interface ResultQuantityOptions {
|
|
1011
|
+
package?: string;
|
|
1012
|
+
arguments: ResultQuantityArguments | [result: TransactionArgument];
|
|
1013
|
+
config?: {
|
|
1014
|
+
predictOrdersPackageId?: string;
|
|
1015
|
+
};
|
|
1016
|
+
}
|
|
1017
|
+
declare function resultQuantity(options: ResultQuantityOptions): (tx: Transaction) => _mysten_sui_transactions275.TransactionResult;
|
|
1018
|
+
interface ResultAmountArguments {
|
|
1019
|
+
result: TransactionArgument;
|
|
1020
|
+
}
|
|
1021
|
+
interface ResultAmountOptions {
|
|
1022
|
+
package?: string;
|
|
1023
|
+
arguments: ResultAmountArguments | [result: TransactionArgument];
|
|
1024
|
+
config?: {
|
|
1025
|
+
predictOrdersPackageId?: string;
|
|
1026
|
+
};
|
|
1027
|
+
}
|
|
1028
|
+
declare function resultAmount(options: ResultAmountOptions): (tx: Transaction) => _mysten_sui_transactions275.TransactionResult;
|
|
1029
|
+
interface FinishedAtMsArguments {
|
|
1030
|
+
result: TransactionArgument;
|
|
1031
|
+
}
|
|
1032
|
+
interface FinishedAtMsOptions {
|
|
1033
|
+
package?: string;
|
|
1034
|
+
arguments: FinishedAtMsArguments | [result: TransactionArgument];
|
|
1035
|
+
config?: {
|
|
1036
|
+
predictOrdersPackageId?: string;
|
|
1037
|
+
};
|
|
1038
|
+
}
|
|
1039
|
+
declare function finishedAtMs(options: FinishedAtMsOptions): (tx: Transaction) => _mysten_sui_transactions275.TransactionResult;
|
|
1040
|
+
//#endregion
|
|
1041
|
+
export { OrderView, order_queue_d_exports };
|
|
1042
|
+
//# sourceMappingURL=order_queue.d.mts.map
|