@mysten/deepbook-v3 2.8.2 → 2.9.1
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 +28 -0
- package/PREDICT.md +26 -13
- package/dist/client.d.mts +2 -2
- package/dist/contracts/account/account.d.mts +23 -23
- package/dist/contracts/account/account.d.mts.map +1 -1
- package/dist/contracts/account/account_events.d.mts +20 -20
- package/dist/contracts/account/account_events.d.mts.map +1 -1
- package/dist/contracts/account/account_registry.d.mts +19 -19
- package/dist/contracts/account/account_registry.d.mts.map +1 -1
- 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/admin.d.mts.map +1 -1
- package/dist/contracts/deepbook_predict/builder_code.d.mts +11 -11
- package/dist/contracts/deepbook_predict/builder_code.d.mts.map +1 -1
- package/dist/contracts/deepbook_predict/builder_code_events.d.mts +10 -10
- package/dist/contracts/deepbook_predict/config_events.d.mts +86 -81
- package/dist/contracts/deepbook_predict/config_events.d.mts.map +1 -1
- package/dist/contracts/deepbook_predict/config_events.mjs +9 -0
- package/dist/contracts/deepbook_predict/config_events.mjs.map +1 -1
- package/dist/contracts/deepbook_predict/expiry_market.d.mts +59 -59
- package/dist/contracts/deepbook_predict/market_lifecycle_cap.d.mts +5 -5
- package/dist/contracts/deepbook_predict/market_lifecycle_cap.d.mts.map +1 -1
- package/dist/contracts/deepbook_predict/market_manager.d.mts +33 -28
- package/dist/contracts/deepbook_predict/market_manager.d.mts.map +1 -1
- package/dist/contracts/deepbook_predict/market_manager.mjs +5 -3
- package/dist/contracts/deepbook_predict/market_manager.mjs.map +1 -1
- package/dist/contracts/deepbook_predict/order_events.d.mts +50 -50
- package/dist/contracts/deepbook_predict/pause_cap.d.mts +5 -5
- package/dist/contracts/deepbook_predict/pause_cap.d.mts.map +1 -1
- package/dist/contracts/deepbook_predict/plp.d.mts +74 -74
- package/dist/contracts/deepbook_predict/plp.d.mts.map +1 -1
- package/dist/contracts/deepbook_predict/pool_valuation_cap.d.mts +5 -5
- package/dist/contracts/deepbook_predict/pool_valuation_cap.d.mts.map +1 -1
- package/dist/contracts/deepbook_predict/predict_account.d.mts +14 -14
- package/dist/contracts/deepbook_predict/predict_account.d.mts.map +1 -1
- package/dist/contracts/deepbook_predict/pricing.d.mts +67 -67
- package/dist/contracts/deepbook_predict/pricing.d.mts.map +1 -1
- package/dist/contracts/deepbook_predict/protocol_config.d.mts +82 -82
- package/dist/contracts/deepbook_predict/range_codec.d.mts +2 -2
- package/dist/contracts/deepbook_predict/range_codec.d.mts.map +1 -1
- package/dist/contracts/deepbook_predict/registry.d.mts +108 -36
- package/dist/contracts/deepbook_predict/registry.d.mts.map +1 -1
- package/dist/contracts/deepbook_predict/registry.mjs +111 -7
- package/dist/contracts/deepbook_predict/registry.mjs.map +1 -1
- package/dist/contracts/deepbook_predict/vault_events.d.mts +131 -131
- package/dist/contracts/deepbook_predict_math/lazer_price.d.mts +13 -13
- package/dist/contracts/deepbook_predict_math/math.d.mts +14 -14
- package/dist/contracts/deepbook_predict_orders/delayed_execution_config.d.mts +30 -30
- package/dist/contracts/deepbook_predict_orders/desk.d.mts +28 -28
- package/dist/contracts/deepbook_predict_orders/desk.d.mts.map +1 -1
- package/dist/contracts/deepbook_predict_orders/order_queue.d.mts +187 -187
- package/dist/contracts/deepbook_predict_orders/queue.d.mts +49 -49
- package/dist/contracts/deepbook_predict_orders/queue_events.d.mts +140 -140
- package/dist/contracts/deepbook_sessions/session_config.d.mts +8 -8
- package/dist/contracts/deepbook_sessions/session_config.d.mts.map +1 -1
- package/dist/contracts/deepbook_sessions/sessions.d.mts +27 -27
- package/dist/contracts/deepbook_sessions/sessions.d.mts.map +1 -1
- package/dist/deployments/testnet.mjs +1 -1
- package/dist/deployments/testnet.mjs.map +1 -1
- package/dist/predict/bindings/expiry-market.d.mts +5 -5
- package/dist/predict/bindings/expiry-market.d.mts.map +1 -1
- package/dist/predict/bindings/protocol-config.d.mts +3 -3
- package/dist/predict/bindings/protocol-config.d.mts.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/marginPool.d.mts +18 -18
- package/dist/transactions/marginPool.d.mts.map +1 -1
- package/dist/transactions/marginRegistry.d.mts +16 -16
- package/dist/transactions/marginTPSL.d.mts +10 -10
- package/dist/transactions/poolProxy.d.mts +8 -8
- package/dist/transactions/poolProxy.d.mts.map +1 -1
- package/dist/utils/constants.d.mts.map +1 -1
- package/dist/utils/constants.mjs +14 -4
- package/dist/utils/constants.mjs.map +1 -1
- package/package.json +1 -1
- package/src/contracts/deepbook_predict/config_events.ts +8 -0
- package/src/contracts/deepbook_predict/market_manager.ts +11 -5
- package/src/contracts/deepbook_predict/registry.ts +162 -6
- package/src/contracts/propbook/block_scholes_store.ts +48 -3
- package/src/contracts/propbook/registry.ts +45 -0
- package/src/deployments/testnet.ts +1 -1
- package/src/utils/constants.ts +24 -9
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ConfigValue, MoveStruct, RawTransactionArgument } from "../utils/index.mjs";
|
|
2
|
-
import * as
|
|
3
|
-
import * as
|
|
2
|
+
import * as _mysten_sui_bcs444 from "@mysten/sui/bcs";
|
|
3
|
+
import * as _mysten_sui_transactions227 from "@mysten/sui/transactions";
|
|
4
4
|
import { Transaction, TransactionArgument } from "@mysten/sui/transactions";
|
|
5
5
|
|
|
6
6
|
//#region src/contracts/deepbook_predict_orders/queue.d.ts
|
|
@@ -8,18 +8,18 @@ declare namespace queue_d_exports {
|
|
|
8
8
|
export { AdminRefundArguments, AdminRefundOptions, ClaimParkedArguments, ClaimParkedOptions, CleanupArguments, CleanupOptions, CommitArguments, CommitOptions, CreateAndShareArguments, CreateAndShareOptions, DeskIdArguments, DeskIdOptions, EnqueueExactAmountArguments, EnqueueExactAmountOptions, EnqueueExactCostArguments, EnqueueExactCostOptions, EnqueueExactQuantityArguments, EnqueueExactQuantityOptions, EnqueueRedeemOpenArguments, EnqueueRedeemOpenOptions, ExpiryMarketIdArguments, ExpiryMarketIdOptions, IdArguments, IdOptions, MarketQueue, OldestUnfinishedTauMsArguments, OldestUnfinishedTauMsOptions, OrderArguments, OrderOptions, PayOpenArguments, PayOpenOptions, PayoutProgressArguments, PayoutProgressOptions, PendingCountsArguments, PendingCountsOptions, PhaseDoneOptions, PhaseDrainOptions, PhasePayOptions, QueueHeadsArguments, QueueHeadsOptions, QueueIdArguments, QueueIdOptions, QueueStuckArguments, QueueStuckOptions, QuoteRedeemOpenArguments, QuoteRedeemOpenOptions, RefundArguments, RefundOptions, ResolveArguments, ResolveOptions, SettleStepArguments, SettleStepOptions, WaitingCohortsArguments, WaitingCohortsOptions, WaitingOrdersArguments, WaitingOrdersOptions, adminRefund, claimParked, cleanup, commit, createAndShare, deskId, enqueueExactAmount, enqueueExactCost, enqueueExactQuantity, enqueueRedeemOpen, expiryMarketId, id, oldestUnfinishedTauMs, order, payOpen, payoutProgress, pendingCounts, phaseDone, phaseDrain, phasePay, queueHeads, queueId, queueStuck, quoteRedeemOpen, refund, resolve, settleStep, waitingCohorts, waitingOrders };
|
|
9
9
|
}
|
|
10
10
|
declare const MarketQueue: MoveStruct<{
|
|
11
|
-
id:
|
|
12
|
-
desk_id:
|
|
13
|
-
expiry_market_id:
|
|
11
|
+
id: _mysten_sui_bcs444.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
12
|
+
desk_id: _mysten_sui_bcs444.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
13
|
+
expiry_market_id: _mysten_sui_bcs444.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
14
14
|
book: MoveStruct<{
|
|
15
15
|
orders: MoveStruct<{
|
|
16
|
-
id:
|
|
17
|
-
size:
|
|
16
|
+
id: _mysten_sui_bcs444.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
17
|
+
size: _mysten_sui_bcs444.BcsType<bigint, string | number | bigint, "u64">;
|
|
18
18
|
}, "0x2::table::Table<phantom K, phantom V>">;
|
|
19
|
-
next_id:
|
|
20
|
-
resolve_head:
|
|
21
|
-
payout_cursor:
|
|
22
|
-
cohorts:
|
|
19
|
+
next_id: _mysten_sui_bcs444.BcsType<bigint, string | number | bigint, "u64">;
|
|
20
|
+
resolve_head: _mysten_sui_bcs444.BcsType<bigint, string | number | bigint, "u64">;
|
|
21
|
+
payout_cursor: _mysten_sui_bcs444.BcsType<bigint, string | number | bigint, "u64">;
|
|
22
|
+
cohorts: _mysten_sui_bcs444.BcsType<{
|
|
23
23
|
tau_ms: bigint;
|
|
24
24
|
deadline_ms: bigint;
|
|
25
25
|
first_id: bigint;
|
|
@@ -38,18 +38,18 @@ declare const MarketQueue: MoveStruct<{
|
|
|
38
38
|
}> & {
|
|
39
39
|
length: number;
|
|
40
40
|
}, string>;
|
|
41
|
-
last_tau_ms:
|
|
42
|
-
last_committed_tau_ms:
|
|
43
|
-
last_deadline_ms:
|
|
44
|
-
last_channel:
|
|
41
|
+
last_tau_ms: _mysten_sui_bcs444.BcsType<bigint, string | number | bigint, "u64">;
|
|
42
|
+
last_committed_tau_ms: _mysten_sui_bcs444.BcsType<bigint, string | number | bigint, "u64">;
|
|
43
|
+
last_deadline_ms: _mysten_sui_bcs444.BcsType<bigint, string | number | bigint, "u64">;
|
|
44
|
+
last_channel: _mysten_sui_bcs444.BcsType<number, number, "u8">;
|
|
45
45
|
per_account: MoveStruct<{
|
|
46
|
-
id:
|
|
47
|
-
size:
|
|
46
|
+
id: _mysten_sui_bcs444.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
47
|
+
size: _mysten_sui_bcs444.BcsType<bigint, string | number | bigint, "u64">;
|
|
48
48
|
}, "0x2::table::Table<phantom K, phantom V>">;
|
|
49
|
-
pending_mints:
|
|
50
|
-
pending_sells:
|
|
49
|
+
pending_mints: _mysten_sui_bcs444.BcsType<bigint, string | number | bigint, "u64">;
|
|
50
|
+
pending_sells: _mysten_sui_bcs444.BcsType<bigint, string | number | bigint, "u64">;
|
|
51
51
|
}, "@local-pkg/deepbook_predict_orders::order_queue::OrderBook">; /** Set by the `settle_step` call that emits `MarketPayoutsCompleted`. */
|
|
52
|
-
payouts_completed:
|
|
52
|
+
payouts_completed: _mysten_sui_bcs444.BcsType<boolean, boolean, "bool">;
|
|
53
53
|
}, "@local-pkg/deepbook_predict_orders::queue::MarketQueue">;
|
|
54
54
|
interface PhaseDrainOptions {
|
|
55
55
|
package?: string;
|
|
@@ -58,7 +58,7 @@ interface PhaseDrainOptions {
|
|
|
58
58
|
predictOrdersPackageId?: string;
|
|
59
59
|
};
|
|
60
60
|
}
|
|
61
|
-
declare function phaseDrain(options?: PhaseDrainOptions): (tx: Transaction) =>
|
|
61
|
+
declare function phaseDrain(options?: PhaseDrainOptions): (tx: Transaction) => _mysten_sui_transactions227.TransactionResult;
|
|
62
62
|
interface PhasePayOptions {
|
|
63
63
|
package?: string;
|
|
64
64
|
arguments?: [];
|
|
@@ -66,7 +66,7 @@ interface PhasePayOptions {
|
|
|
66
66
|
predictOrdersPackageId?: string;
|
|
67
67
|
};
|
|
68
68
|
}
|
|
69
|
-
declare function phasePay(options?: PhasePayOptions): (tx: Transaction) =>
|
|
69
|
+
declare function phasePay(options?: PhasePayOptions): (tx: Transaction) => _mysten_sui_transactions227.TransactionResult;
|
|
70
70
|
interface PhaseDoneOptions {
|
|
71
71
|
package?: string;
|
|
72
72
|
arguments?: [];
|
|
@@ -74,7 +74,7 @@ interface PhaseDoneOptions {
|
|
|
74
74
|
predictOrdersPackageId?: string;
|
|
75
75
|
};
|
|
76
76
|
}
|
|
77
|
-
declare function phaseDone(options?: PhaseDoneOptions): (tx: Transaction) =>
|
|
77
|
+
declare function phaseDone(options?: PhaseDoneOptions): (tx: Transaction) => _mysten_sui_transactions227.TransactionResult;
|
|
78
78
|
interface QueueIdArguments {
|
|
79
79
|
registryId: RawTransactionArgument<string>;
|
|
80
80
|
expiryMarketId: RawTransactionArgument<string>;
|
|
@@ -90,7 +90,7 @@ interface QueueIdOptions {
|
|
|
90
90
|
* Return the ID of `expiry_market_id`'s queue under the queue registry
|
|
91
91
|
* `registry_id`, whether or not it exists yet. For PTB construction.
|
|
92
92
|
*/
|
|
93
|
-
declare function queueId(options: QueueIdOptions): (tx: Transaction) =>
|
|
93
|
+
declare function queueId(options: QueueIdOptions): (tx: Transaction) => _mysten_sui_transactions227.TransactionResult;
|
|
94
94
|
interface IdArguments {
|
|
95
95
|
queue: RawTransactionArgument<string>;
|
|
96
96
|
}
|
|
@@ -101,7 +101,7 @@ interface IdOptions {
|
|
|
101
101
|
predictOrdersPackageId?: string;
|
|
102
102
|
};
|
|
103
103
|
}
|
|
104
|
-
declare function id(options: IdOptions): (tx: Transaction) =>
|
|
104
|
+
declare function id(options: IdOptions): (tx: Transaction) => _mysten_sui_transactions227.TransactionResult;
|
|
105
105
|
interface DeskIdArguments {
|
|
106
106
|
queue: RawTransactionArgument<string>;
|
|
107
107
|
}
|
|
@@ -112,7 +112,7 @@ interface DeskIdOptions {
|
|
|
112
112
|
predictOrdersPackageId?: string;
|
|
113
113
|
};
|
|
114
114
|
}
|
|
115
|
-
declare function deskId(options: DeskIdOptions): (tx: Transaction) =>
|
|
115
|
+
declare function deskId(options: DeskIdOptions): (tx: Transaction) => _mysten_sui_transactions227.TransactionResult;
|
|
116
116
|
interface ExpiryMarketIdArguments {
|
|
117
117
|
queue: RawTransactionArgument<string>;
|
|
118
118
|
}
|
|
@@ -123,7 +123,7 @@ interface ExpiryMarketIdOptions {
|
|
|
123
123
|
predictOrdersPackageId?: string;
|
|
124
124
|
};
|
|
125
125
|
}
|
|
126
|
-
declare function expiryMarketId(options: ExpiryMarketIdOptions): (tx: Transaction) =>
|
|
126
|
+
declare function expiryMarketId(options: ExpiryMarketIdOptions): (tx: Transaction) => _mysten_sui_transactions227.TransactionResult;
|
|
127
127
|
interface OrderArguments {
|
|
128
128
|
queue: RawTransactionArgument<string>;
|
|
129
129
|
recordId: RawTransactionArgument<number | bigint>;
|
|
@@ -136,7 +136,7 @@ interface OrderOptions {
|
|
|
136
136
|
};
|
|
137
137
|
}
|
|
138
138
|
/** Return one record, or `none` for a missing or deleted record ID. */
|
|
139
|
-
declare function order(options: OrderOptions): (tx: Transaction) =>
|
|
139
|
+
declare function order(options: OrderOptions): (tx: Transaction) => _mysten_sui_transactions227.TransactionResult;
|
|
140
140
|
interface QueueHeadsArguments {
|
|
141
141
|
queue: RawTransactionArgument<string>;
|
|
142
142
|
}
|
|
@@ -151,7 +151,7 @@ interface QueueHeadsOptions {
|
|
|
151
151
|
* Return `(resolve_head, next_id, last_tau_ms, last_committed_tau_ms)`.
|
|
152
152
|
* `resolve_head` is a lower bound on the first unfinished record.
|
|
153
153
|
*/
|
|
154
|
-
declare function queueHeads(options: QueueHeadsOptions): (tx: Transaction) =>
|
|
154
|
+
declare function queueHeads(options: QueueHeadsOptions): (tx: Transaction) => _mysten_sui_transactions227.TransactionResult;
|
|
155
155
|
interface PayoutProgressArguments {
|
|
156
156
|
queue: RawTransactionArgument<string>;
|
|
157
157
|
}
|
|
@@ -166,7 +166,7 @@ interface PayoutProgressOptions {
|
|
|
166
166
|
* Return `(payout_cursor, next_id, payouts_completed)`. The settlement payout walk
|
|
167
167
|
* is finished once `payouts_completed` is set.
|
|
168
168
|
*/
|
|
169
|
-
declare function payoutProgress(options: PayoutProgressOptions): (tx: Transaction) =>
|
|
169
|
+
declare function payoutProgress(options: PayoutProgressOptions): (tx: Transaction) => _mysten_sui_transactions227.TransactionResult;
|
|
170
170
|
interface WaitingCohortsArguments {
|
|
171
171
|
queue: RawTransactionArgument<string>;
|
|
172
172
|
}
|
|
@@ -182,7 +182,7 @@ interface WaitingCohortsOptions {
|
|
|
182
182
|
* `(cohort count, oldest uncommitted τ, oldest uncommitted τ above last_committed_tau_ms)`.
|
|
183
183
|
* The third value is the cohort the stuck gate's first rule watches.
|
|
184
184
|
*/
|
|
185
|
-
declare function waitingCohorts(options: WaitingCohortsOptions): (tx: Transaction) =>
|
|
185
|
+
declare function waitingCohorts(options: WaitingCohortsOptions): (tx: Transaction) => _mysten_sui_transactions227.TransactionResult;
|
|
186
186
|
interface QueueStuckArguments {
|
|
187
187
|
queue: RawTransactionArgument<string>;
|
|
188
188
|
desk?: RawTransactionArgument<string>;
|
|
@@ -199,7 +199,7 @@ interface QueueStuckOptions {
|
|
|
199
199
|
* Whether placement would refuse a new order as stuck right now (both rules of the
|
|
200
200
|
* stuck gate). Drives the app's "pricing delayed" banner.
|
|
201
201
|
*/
|
|
202
|
-
declare function queueStuck(options: QueueStuckOptions): (tx: Transaction) =>
|
|
202
|
+
declare function queueStuck(options: QueueStuckOptions): (tx: Transaction) => _mysten_sui_transactions227.TransactionResult;
|
|
203
203
|
interface PendingCountsArguments {
|
|
204
204
|
queue: RawTransactionArgument<string>;
|
|
205
205
|
}
|
|
@@ -214,7 +214,7 @@ interface PendingCountsOptions {
|
|
|
214
214
|
* Return `(pending_mints, pending_sells)`, the unfinished orders counted against
|
|
215
215
|
* the policy capacities.
|
|
216
216
|
*/
|
|
217
|
-
declare function pendingCounts(options: PendingCountsOptions): (tx: Transaction) =>
|
|
217
|
+
declare function pendingCounts(options: PendingCountsOptions): (tx: Transaction) => _mysten_sui_transactions227.TransactionResult;
|
|
218
218
|
interface WaitingOrdersArguments {
|
|
219
219
|
queue: RawTransactionArgument<string>;
|
|
220
220
|
accountId: RawTransactionArgument<string>;
|
|
@@ -233,7 +233,7 @@ interface WaitingOrdersOptions {
|
|
|
233
233
|
* expiry it can overstate what the account still has waiting. Read `order` for
|
|
234
234
|
* each record's status instead.
|
|
235
235
|
*/
|
|
236
|
-
declare function waitingOrders(options: WaitingOrdersOptions): (tx: Transaction) =>
|
|
236
|
+
declare function waitingOrders(options: WaitingOrdersOptions): (tx: Transaction) => _mysten_sui_transactions227.TransactionResult;
|
|
237
237
|
interface OldestUnfinishedTauMsArguments {
|
|
238
238
|
queue: RawTransactionArgument<string>;
|
|
239
239
|
}
|
|
@@ -245,7 +245,7 @@ interface OldestUnfinishedTauMsOptions {
|
|
|
245
245
|
};
|
|
246
246
|
}
|
|
247
247
|
/** Return τ of the oldest cohort with an unfinished order, for monitoring. */
|
|
248
|
-
declare function oldestUnfinishedTauMs(options: OldestUnfinishedTauMsOptions): (tx: Transaction) =>
|
|
248
|
+
declare function oldestUnfinishedTauMs(options: OldestUnfinishedTauMsOptions): (tx: Transaction) => _mysten_sui_transactions227.TransactionResult;
|
|
249
249
|
interface QuoteRedeemOpenArguments {
|
|
250
250
|
queue: RawTransactionArgument<string>;
|
|
251
251
|
market: RawTransactionArgument<string>;
|
|
@@ -270,7 +270,7 @@ interface QuoteRedeemOpenOptions {
|
|
|
270
270
|
* as `quote_close` does. Does not check that the account owns the record. For SDK
|
|
271
271
|
* and devInspect pricing before `enqueue_redeem_open`.
|
|
272
272
|
*/
|
|
273
|
-
declare function quoteRedeemOpen(options: QuoteRedeemOpenOptions): (tx: Transaction) =>
|
|
273
|
+
declare function quoteRedeemOpen(options: QuoteRedeemOpenOptions): (tx: Transaction) => _mysten_sui_transactions227.TransactionResult;
|
|
274
274
|
interface CreateAndShareArguments {
|
|
275
275
|
registry?: RawTransactionArgument<string>;
|
|
276
276
|
desk?: RawTransactionArgument<string>;
|
|
@@ -292,7 +292,7 @@ interface CreateAndShareOptions {
|
|
|
292
292
|
* trading call reads, so creation never contends with trading on the desk. Aborts
|
|
293
293
|
* `EWrongDesk` for another desk's registry.
|
|
294
294
|
*/
|
|
295
|
-
declare function createAndShare(options: CreateAndShareOptions): (tx: Transaction) =>
|
|
295
|
+
declare function createAndShare(options: CreateAndShareOptions): (tx: Transaction) => _mysten_sui_transactions227.TransactionResult;
|
|
296
296
|
interface EnqueueExactQuantityArguments {
|
|
297
297
|
queue: RawTransactionArgument<string>;
|
|
298
298
|
market: RawTransactionArgument<string>;
|
|
@@ -335,7 +335,7 @@ interface EnqueueExactQuantityOptions {
|
|
|
335
335
|
* applies its gates, the order's own limits at the clock, and the market's spare
|
|
336
336
|
* cash.
|
|
337
337
|
*/
|
|
338
|
-
declare function enqueueExactQuantity(options: EnqueueExactQuantityOptions): (tx: Transaction) =>
|
|
338
|
+
declare function enqueueExactQuantity(options: EnqueueExactQuantityOptions): (tx: Transaction) => _mysten_sui_transactions227.TransactionResult;
|
|
339
339
|
interface EnqueueExactAmountArguments {
|
|
340
340
|
queue: RawTransactionArgument<string>;
|
|
341
341
|
market: RawTransactionArgument<string>;
|
|
@@ -369,7 +369,7 @@ interface EnqueueExactAmountOptions {
|
|
|
369
369
|
* Escrows `min(max_cost, available - order_fee)` and the order fee. Refuses orders
|
|
370
370
|
* like `enqueue_exact_quantity`. Returns the new record ID.
|
|
371
371
|
*/
|
|
372
|
-
declare function enqueueExactAmount(options: EnqueueExactAmountOptions): (tx: Transaction) =>
|
|
372
|
+
declare function enqueueExactAmount(options: EnqueueExactAmountOptions): (tx: Transaction) => _mysten_sui_transactions227.TransactionResult;
|
|
373
373
|
interface EnqueueExactCostArguments {
|
|
374
374
|
queue: RawTransactionArgument<string>;
|
|
375
375
|
market: RawTransactionArgument<string>;
|
|
@@ -403,7 +403,7 @@ interface EnqueueExactCostOptions {
|
|
|
403
403
|
* mandatory here too: the unlimited value is refused. Refuses orders like
|
|
404
404
|
* `enqueue_exact_quantity`. Returns the new record ID.
|
|
405
405
|
*/
|
|
406
|
-
declare function enqueueExactCost(options: EnqueueExactCostOptions): (tx: Transaction) =>
|
|
406
|
+
declare function enqueueExactCost(options: EnqueueExactCostOptions): (tx: Transaction) => _mysten_sui_transactions227.TransactionResult;
|
|
407
407
|
interface EnqueueRedeemOpenArguments {
|
|
408
408
|
queue: RawTransactionArgument<string>;
|
|
409
409
|
market: RawTransactionArgument<string>;
|
|
@@ -446,7 +446,7 @@ interface EnqueueRedeemOpenOptions {
|
|
|
446
446
|
* the keeper funds the market before τ, and resolve refunds a sell the market
|
|
447
447
|
* still cannot cover.
|
|
448
448
|
*/
|
|
449
|
-
declare function enqueueRedeemOpen(options: EnqueueRedeemOpenOptions): (tx: Transaction) =>
|
|
449
|
+
declare function enqueueRedeemOpen(options: EnqueueRedeemOpenOptions): (tx: Transaction) => _mysten_sui_transactions227.TransactionResult;
|
|
450
450
|
interface CommitArguments {
|
|
451
451
|
queue: RawTransactionArgument<string>;
|
|
452
452
|
market: RawTransactionArgument<string>;
|
|
@@ -484,7 +484,7 @@ interface CommitOptions {
|
|
|
484
484
|
* Uses Lazer's v1 `Update`, which Pyth marked deprecated on Mainnet but still
|
|
485
485
|
* serves; v2 arrives with a later library constructor.
|
|
486
486
|
*/
|
|
487
|
-
declare function commit(options: CommitOptions): (tx: Transaction) =>
|
|
487
|
+
declare function commit(options: CommitOptions): (tx: Transaction) => _mysten_sui_transactions227.TransactionResult;
|
|
488
488
|
interface ResolveArguments {
|
|
489
489
|
queue: RawTransactionArgument<string>;
|
|
490
490
|
market: RawTransactionArgument<string>;
|
|
@@ -517,7 +517,7 @@ interface ResolveOptions {
|
|
|
517
517
|
* parks it in the record when the receive address is denied. Returns 0 on a
|
|
518
518
|
* settled market, whose waiting orders the settlement drain refunds.
|
|
519
519
|
*/
|
|
520
|
-
declare function resolve(options: ResolveOptions): (tx: Transaction) =>
|
|
520
|
+
declare function resolve(options: ResolveOptions): (tx: Transaction) => _mysten_sui_transactions227.TransactionResult;
|
|
521
521
|
interface RefundArguments {
|
|
522
522
|
queue: RawTransactionArgument<string>;
|
|
523
523
|
market: RawTransactionArgument<string>;
|
|
@@ -544,7 +544,7 @@ interface RefundOptions {
|
|
|
544
544
|
* take is parked in its record. Returns how many orders it refunded: `0`, without
|
|
545
545
|
* aborting, when none is due.
|
|
546
546
|
*/
|
|
547
|
-
declare function refund(options: RefundOptions): (tx: Transaction) =>
|
|
547
|
+
declare function refund(options: RefundOptions): (tx: Transaction) => _mysten_sui_transactions227.TransactionResult;
|
|
548
548
|
interface AdminRefundArguments {
|
|
549
549
|
queue: RawTransactionArgument<string>;
|
|
550
550
|
market: RawTransactionArgument<string>;
|
|
@@ -568,7 +568,7 @@ interface AdminRefundOptions {
|
|
|
568
568
|
* and finished IDs are skipped, and a refund the receive address cannot take is
|
|
569
569
|
* parked in its record.
|
|
570
570
|
*/
|
|
571
|
-
declare function adminRefund(options: AdminRefundOptions): (tx: Transaction) =>
|
|
571
|
+
declare function adminRefund(options: AdminRefundOptions): (tx: Transaction) => _mysten_sui_transactions227.TransactionResult;
|
|
572
572
|
interface CleanupArguments {
|
|
573
573
|
queue: RawTransactionArgument<string>;
|
|
574
574
|
market: RawTransactionArgument<string>;
|
|
@@ -590,7 +590,7 @@ interface CleanupOptions {
|
|
|
590
590
|
* are skipped; `QueuedOrdersCleaned` is emitted only when a record was deleted.
|
|
591
591
|
* Takes `&Clock` only to stamp the event.
|
|
592
592
|
*/
|
|
593
|
-
declare function cleanup(options: CleanupOptions): (tx: Transaction) =>
|
|
593
|
+
declare function cleanup(options: CleanupOptions): (tx: Transaction) => _mysten_sui_transactions227.TransactionResult;
|
|
594
594
|
interface SettleStepArguments {
|
|
595
595
|
queue: RawTransactionArgument<string>;
|
|
596
596
|
market: RawTransactionArgument<string>;
|
|
@@ -629,7 +629,7 @@ interface SettleStepOptions {
|
|
|
629
629
|
*
|
|
630
630
|
* The keeper sends one call per transaction until it returns `phase_done()`.
|
|
631
631
|
*/
|
|
632
|
-
declare function settleStep(options: SettleStepOptions): (tx: Transaction) =>
|
|
632
|
+
declare function settleStep(options: SettleStepOptions): (tx: Transaction) => _mysten_sui_transactions227.TransactionResult;
|
|
633
633
|
interface PayOpenArguments {
|
|
634
634
|
queue: RawTransactionArgument<string>;
|
|
635
635
|
market: RawTransactionArgument<string>;
|
|
@@ -655,7 +655,7 @@ interface PayOpenOptions {
|
|
|
655
655
|
* and leaves it Open if the cause persists. A missing or non-Open record is left
|
|
656
656
|
* alone. Aborts `EMarketNotSettled` before Predict settles the market.
|
|
657
657
|
*/
|
|
658
|
-
declare function payOpen(options: PayOpenOptions): (tx: Transaction) =>
|
|
658
|
+
declare function payOpen(options: PayOpenOptions): (tx: Transaction) => _mysten_sui_transactions227.TransactionResult;
|
|
659
659
|
interface ClaimParkedArguments {
|
|
660
660
|
queue: RawTransactionArgument<string>;
|
|
661
661
|
desk?: RawTransactionArgument<string>;
|
|
@@ -677,7 +677,7 @@ interface ClaimParkedOptions {
|
|
|
677
677
|
* changes nothing for a missing or unfinished record, one with nothing parked, or
|
|
678
678
|
* an address still denied.
|
|
679
679
|
*/
|
|
680
|
-
declare function claimParked(options: ClaimParkedOptions): (tx: Transaction) =>
|
|
680
|
+
declare function claimParked(options: ClaimParkedOptions): (tx: Transaction) => _mysten_sui_transactions227.TransactionResult;
|
|
681
681
|
//#endregion
|
|
682
682
|
export { queue_d_exports };
|
|
683
683
|
//# sourceMappingURL=queue.d.mts.map
|