@mysten/deepbook-v3 2.7.0 → 2.8.2
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 +56 -0
- package/PREDICT.md +15 -10
- package/dist/contracts/account/account.d.mts +23 -23
- package/dist/contracts/account/account_events.d.mts +20 -20
- package/dist/contracts/account/account_registry.d.mts +19 -19
- 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 +80 -80
- 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/market_manager.d.mts.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/plp.d.mts +74 -74
- 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/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/range_codec.d.mts +2 -2
- package/dist/contracts/deepbook_predict/registry.d.mts +28 -28
- 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.d.mts.map +1 -1
- 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/mainnet.mjs +7 -4
- package/dist/deployments/mainnet.mjs.map +1 -1
- package/dist/deployments/testnet.mjs +5 -4
- 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/config/mainnet.mjs +11 -3
- package/dist/predict/config/mainnet.mjs.map +1 -1
- package/dist/predict/reads/pricing.d.mts +0 -1
- package/dist/predict/reads/pricing.d.mts.map +1 -1
- package/dist/predict/reads/queue.d.mts +0 -1
- package/dist/predict/reads/queue.d.mts.map +1 -1
- package/dist/sessions.mjs.map +1 -1
- package/dist/transactions/balanceManager.d.mts +12 -12
- package/dist/transactions/deepbook.d.mts +20 -20
- package/dist/transactions/deepbookAdmin.d.mts +4 -4
- package/dist/transactions/marginAdmin.d.mts +7 -7
- package/dist/transactions/marginMaintainer.d.mts +5 -5
- package/dist/transactions/marginManager.d.mts +32 -32
- package/dist/transactions/marginPool.d.mts +18 -18
- package/dist/transactions/marginTPSL.d.mts +10 -10
- package/dist/transactions/poolProxy.d.mts +8 -8
- package/package.json +5 -5
- package/src/deployments/mainnet.ts +7 -2
- package/src/deployments/testnet.ts +5 -4
- package/src/predict/config/mainnet.ts +16 -7
- package/src/sessions.ts +2 -2
|
@@ -1,194 +1,194 @@
|
|
|
1
1
|
import { MoveStruct } from "../utils/index.mjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as _mysten_sui_bcs600 from "@mysten/sui/bcs";
|
|
3
3
|
|
|
4
4
|
//#region src/contracts/deepbook_predict_orders/queue_events.d.ts
|
|
5
5
|
declare namespace queue_events_d_exports {
|
|
6
6
|
export { CohortCommitted, DelayedExecutionPolicyUpdated, MarketPayoutsCompleted, OpenRecordPayoutSkipped, OpenRecordSettled, OrderEnqueued, QueuedOrderFilled, QueuedOrderRefunded, QueuedOrdersCleaned, RecordFundsClaimed, RecordFundsParked };
|
|
7
7
|
}
|
|
8
8
|
declare const OrderEnqueued: MoveStruct<{
|
|
9
|
-
expiry_market_id:
|
|
10
|
-
record_id:
|
|
11
|
-
account_id:
|
|
12
|
-
kind:
|
|
9
|
+
expiry_market_id: _mysten_sui_bcs600.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
10
|
+
record_id: _mysten_sui_bcs600.BcsType<bigint, string | number | bigint, "u64">;
|
|
11
|
+
account_id: _mysten_sui_bcs600.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">; /** An `order_queue` kind code. */
|
|
12
|
+
kind: _mysten_sui_bcs600.BcsType<number, number, "u8">;
|
|
13
13
|
request: MoveStruct<{
|
|
14
|
-
lower_tick:
|
|
15
|
-
higher_tick:
|
|
16
|
-
quantity:
|
|
17
|
-
max_premium:
|
|
18
|
-
min_quantity:
|
|
19
|
-
max_cost:
|
|
20
|
-
max_probability:
|
|
21
|
-
min_probability:
|
|
22
|
-
min_proceeds:
|
|
14
|
+
lower_tick: _mysten_sui_bcs600.BcsType<bigint, string | number | bigint, "u64">;
|
|
15
|
+
higher_tick: _mysten_sui_bcs600.BcsType<bigint, string | number | bigint, "u64">;
|
|
16
|
+
quantity: _mysten_sui_bcs600.BcsType<bigint, string | number | bigint, "u64">;
|
|
17
|
+
max_premium: _mysten_sui_bcs600.BcsType<bigint, string | number | bigint, "u64">;
|
|
18
|
+
min_quantity: _mysten_sui_bcs600.BcsType<bigint, string | number | bigint, "u64">;
|
|
19
|
+
max_cost: _mysten_sui_bcs600.BcsType<bigint, string | number | bigint, "u64">;
|
|
20
|
+
max_probability: _mysten_sui_bcs600.BcsType<bigint, string | number | bigint, "u64">;
|
|
21
|
+
min_probability: _mysten_sui_bcs600.BcsType<bigint, string | number | bigint, "u64">;
|
|
22
|
+
min_proceeds: _mysten_sui_bcs600.BcsType<bigint, string | number | bigint, "u64">;
|
|
23
23
|
}, "@local-pkg/deepbook_predict_orders::order_queue::OrderRequest">; /** The position a sell moved into the record; zero for a mint. */
|
|
24
24
|
position: MoveStruct<{
|
|
25
|
-
order_id:
|
|
26
|
-
root_id:
|
|
27
|
-
opened_at_ms:
|
|
25
|
+
order_id: _mysten_sui_bcs600.BcsType<bigint, string | number | bigint, "u256">;
|
|
26
|
+
root_id: _mysten_sui_bcs600.BcsType<bigint, string | number | bigint, "u256">;
|
|
27
|
+
opened_at_ms: _mysten_sui_bcs600.BcsType<bigint, string | number | bigint, "u64">;
|
|
28
28
|
}, "@local-pkg/deepbook_predict_orders::order_queue::HeldPosition">;
|
|
29
29
|
timing: MoveStruct<{
|
|
30
|
-
placed_at_ms:
|
|
31
|
-
earliest_price_ms:
|
|
32
|
-
tau_ms:
|
|
33
|
-
deadline_ms:
|
|
34
|
-
cutoff_ms:
|
|
35
|
-
pyth_channel:
|
|
30
|
+
placed_at_ms: _mysten_sui_bcs600.BcsType<bigint, string | number | bigint, "u64">;
|
|
31
|
+
earliest_price_ms: _mysten_sui_bcs600.BcsType<bigint, string | number | bigint, "u64">;
|
|
32
|
+
tau_ms: _mysten_sui_bcs600.BcsType<bigint, string | number | bigint, "u64">;
|
|
33
|
+
deadline_ms: _mysten_sui_bcs600.BcsType<bigint, string | number | bigint, "u64">;
|
|
34
|
+
cutoff_ms: _mysten_sui_bcs600.BcsType<bigint, string | number | bigint, "u64">;
|
|
35
|
+
pyth_channel: _mysten_sui_bcs600.BcsType<number, number, "u8">;
|
|
36
36
|
}, "@local-pkg/deepbook_predict_orders::order_queue::OrderTiming">;
|
|
37
37
|
vol: MoveStruct<{
|
|
38
|
-
pyth_source_id:
|
|
39
|
-
bs_spot:
|
|
40
|
-
bs_forward:
|
|
38
|
+
pyth_source_id: _mysten_sui_bcs600.BcsType<number, number, "u32">;
|
|
39
|
+
bs_spot: _mysten_sui_bcs600.BcsType<bigint, string | number | bigint, "u64">;
|
|
40
|
+
bs_forward: _mysten_sui_bcs600.BcsType<bigint, string | number | bigint, "u64">;
|
|
41
41
|
svi_a: MoveStruct<{
|
|
42
|
-
magnitude:
|
|
43
|
-
is_negative:
|
|
42
|
+
magnitude: _mysten_sui_bcs600.BcsType<bigint, string | number | bigint, "u64">;
|
|
43
|
+
is_negative: _mysten_sui_bcs600.BcsType<boolean, boolean, "bool">;
|
|
44
44
|
}, "fixed_math::i64::I64">;
|
|
45
|
-
svi_b:
|
|
45
|
+
svi_b: _mysten_sui_bcs600.BcsType<bigint, string | number | bigint, "u64">;
|
|
46
46
|
svi_rho: MoveStruct<{
|
|
47
|
-
magnitude:
|
|
48
|
-
is_negative:
|
|
47
|
+
magnitude: _mysten_sui_bcs600.BcsType<bigint, string | number | bigint, "u64">;
|
|
48
|
+
is_negative: _mysten_sui_bcs600.BcsType<boolean, boolean, "bool">;
|
|
49
49
|
}, "fixed_math::i64::I64">;
|
|
50
50
|
svi_m: MoveStruct<{
|
|
51
|
-
magnitude:
|
|
52
|
-
is_negative:
|
|
51
|
+
magnitude: _mysten_sui_bcs600.BcsType<bigint, string | number | bigint, "u64">;
|
|
52
|
+
is_negative: _mysten_sui_bcs600.BcsType<boolean, boolean, "bool">;
|
|
53
53
|
}, "fixed_math::i64::I64">;
|
|
54
|
-
svi_sigma:
|
|
55
|
-
bs_spot_source_timestamp_ms:
|
|
56
|
-
bs_forward_source_timestamp_ms:
|
|
57
|
-
svi_source_timestamp_ms:
|
|
54
|
+
svi_sigma: _mysten_sui_bcs600.BcsType<bigint, string | number | bigint, "u64">;
|
|
55
|
+
bs_spot_source_timestamp_ms: _mysten_sui_bcs600.BcsType<bigint, string | number | bigint, "u64">;
|
|
56
|
+
bs_forward_source_timestamp_ms: _mysten_sui_bcs600.BcsType<bigint, string | number | bigint, "u64">;
|
|
57
|
+
svi_source_timestamp_ms: _mysten_sui_bcs600.BcsType<bigint, string | number | bigint, "u64">;
|
|
58
58
|
}, "deepbook_predict::pricing::VolSnapshot">;
|
|
59
|
-
budget:
|
|
60
|
-
order_fee:
|
|
61
|
-
cash_need:
|
|
62
|
-
subsidy_bound:
|
|
63
|
-
builder_code_id:
|
|
64
|
-
referrer_account_id:
|
|
65
|
-
source_record_id:
|
|
66
|
-
market_cash:
|
|
67
|
-
required_cash:
|
|
68
|
-
waiting_cash_need:
|
|
69
|
-
onchain_timestamp_ms:
|
|
59
|
+
budget: _mysten_sui_bcs600.BcsType<bigint, string | number | bigint, "u64">;
|
|
60
|
+
order_fee: _mysten_sui_bcs600.BcsType<bigint, string | number | bigint, "u64">; /** The order's worst-case cash need, added to the waiting total. */
|
|
61
|
+
cash_need: _mysten_sui_bcs600.BcsType<bigint, string | number | bigint, "u64">;
|
|
62
|
+
subsidy_bound: _mysten_sui_bcs600.BcsType<bigint, string | number | bigint, "u64">;
|
|
63
|
+
builder_code_id: _mysten_sui_bcs600.BcsType<string | null, string | Uint8Array<ArrayBufferLike> | null | undefined, "Option<bytes[32]>">;
|
|
64
|
+
referrer_account_id: _mysten_sui_bcs600.BcsType<string | null, string | Uint8Array<ArrayBufferLike> | null | undefined, "Option<bytes[32]>">; /** The Open record a sell took its position from. `none` for a mint. */
|
|
65
|
+
source_record_id: _mysten_sui_bcs600.BcsType<bigint | null, string | number | bigint | null | undefined, "Option<u64>">; /** The market's cash, required cash, and waiting cash need after the call. */
|
|
66
|
+
market_cash: _mysten_sui_bcs600.BcsType<bigint, string | number | bigint, "u64">;
|
|
67
|
+
required_cash: _mysten_sui_bcs600.BcsType<bigint, string | number | bigint, "u64">;
|
|
68
|
+
waiting_cash_need: _mysten_sui_bcs600.BcsType<bigint, string | number | bigint, "u64">;
|
|
69
|
+
onchain_timestamp_ms: _mysten_sui_bcs600.BcsType<bigint, string | number | bigint, "u64">;
|
|
70
70
|
}, "@local-pkg/deepbook_predict_orders::queue_events::OrderEnqueued">;
|
|
71
71
|
declare const CohortCommitted: MoveStruct<{
|
|
72
|
-
expiry_market_id:
|
|
73
|
-
tau_ms:
|
|
74
|
-
tick_ms:
|
|
75
|
-
first_record_id:
|
|
76
|
-
last_record_id:
|
|
77
|
-
spot:
|
|
78
|
-
generation_us:
|
|
79
|
-
pyth_source_id:
|
|
80
|
-
pyth_channel:
|
|
81
|
-
sender:
|
|
82
|
-
onchain_timestamp_ms:
|
|
72
|
+
expiry_market_id: _mysten_sui_bcs600.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
73
|
+
tau_ms: _mysten_sui_bcs600.BcsType<bigint, string | number | bigint, "u64">; /** The update's envelope in ms: τ, or the backup tick one channel tick later. */
|
|
74
|
+
tick_ms: _mysten_sui_bcs600.BcsType<bigint, string | number | bigint, "u64">;
|
|
75
|
+
first_record_id: _mysten_sui_bcs600.BcsType<bigint, string | number | bigint, "u64">;
|
|
76
|
+
last_record_id: _mysten_sui_bcs600.BcsType<bigint, string | number | bigint, "u64">; /** The committed price of the cohort's first order, normalized to 1e9. */
|
|
77
|
+
spot: _mysten_sui_bcs600.BcsType<bigint, string | number | bigint, "u64">; /** That price's own update time, in µs. */
|
|
78
|
+
generation_us: _mysten_sui_bcs600.BcsType<bigint, string | number | bigint, "u64">;
|
|
79
|
+
pyth_source_id: _mysten_sui_bcs600.BcsType<number, number, "u32">;
|
|
80
|
+
pyth_channel: _mysten_sui_bcs600.BcsType<number, number, "u8">; /** The transaction sender, so monitoring sees commits by third parties. */
|
|
81
|
+
sender: _mysten_sui_bcs600.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
82
|
+
onchain_timestamp_ms: _mysten_sui_bcs600.BcsType<bigint, string | number | bigint, "u64">;
|
|
83
83
|
}, "@local-pkg/deepbook_predict_orders::queue_events::CohortCommitted">;
|
|
84
84
|
declare const QueuedOrderFilled: MoveStruct<{
|
|
85
|
-
/** The market's cash, required cash, and waiting cash need after the call. */market_cash:
|
|
86
|
-
required_cash:
|
|
87
|
-
waiting_cash_need:
|
|
88
|
-
expiry_market_id:
|
|
89
|
-
record_id:
|
|
90
|
-
account_id:
|
|
91
|
-
kind:
|
|
92
|
-
quantity:
|
|
93
|
-
amount:
|
|
94
|
-
trading_fee:
|
|
95
|
-
builder_fee:
|
|
96
|
-
referral_fee:
|
|
97
|
-
order_fee:
|
|
98
|
-
subsidy_used:
|
|
99
|
-
inventory_impact:
|
|
100
|
-
tau_ms:
|
|
101
|
-
tick_ms:
|
|
85
|
+
/** The market's cash, required cash, and waiting cash need after the call. */market_cash: _mysten_sui_bcs600.BcsType<bigint, string | number | bigint, "u64">;
|
|
86
|
+
required_cash: _mysten_sui_bcs600.BcsType<bigint, string | number | bigint, "u64">;
|
|
87
|
+
waiting_cash_need: _mysten_sui_bcs600.BcsType<bigint, string | number | bigint, "u64">;
|
|
88
|
+
expiry_market_id: _mysten_sui_bcs600.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
89
|
+
record_id: _mysten_sui_bcs600.BcsType<bigint, string | number | bigint, "u64">;
|
|
90
|
+
account_id: _mysten_sui_bcs600.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
91
|
+
kind: _mysten_sui_bcs600.BcsType<number, number, "u8">; /** Filled quantity (mint) or closed quantity (sell). */
|
|
92
|
+
quantity: _mysten_sui_bcs600.BcsType<bigint, string | number | bigint, "u64">; /** Cost paid (mint) or proceeds (sell). */
|
|
93
|
+
amount: _mysten_sui_bcs600.BcsType<bigint, string | number | bigint, "u64">;
|
|
94
|
+
trading_fee: _mysten_sui_bcs600.BcsType<bigint, string | number | bigint, "u64">;
|
|
95
|
+
builder_fee: _mysten_sui_bcs600.BcsType<bigint, string | number | bigint, "u64">;
|
|
96
|
+
referral_fee: _mysten_sui_bcs600.BcsType<bigint, string | number | bigint, "u64">;
|
|
97
|
+
order_fee: _mysten_sui_bcs600.BcsType<bigint, string | number | bigint, "u64">; /** Reserved fee subsidy the fill used. */
|
|
98
|
+
subsidy_used: _mysten_sui_bcs600.BcsType<bigint, string | number | bigint, "u64">;
|
|
99
|
+
inventory_impact: _mysten_sui_bcs600.BcsType<bigint, string | number | bigint, "u64">;
|
|
100
|
+
tau_ms: _mysten_sui_bcs600.BcsType<bigint, string | number | bigint, "u64">;
|
|
101
|
+
tick_ms: _mysten_sui_bcs600.BcsType<bigint, string | number | bigint, "u64">;
|
|
102
102
|
/**
|
|
103
103
|
* The position the record now holds: a mint's new position or a partial sell's
|
|
104
104
|
* replacement; zero after a full close.
|
|
105
105
|
*/
|
|
106
106
|
position: MoveStruct<{
|
|
107
|
-
order_id:
|
|
108
|
-
root_id:
|
|
109
|
-
opened_at_ms:
|
|
107
|
+
order_id: _mysten_sui_bcs600.BcsType<bigint, string | number | bigint, "u256">;
|
|
108
|
+
root_id: _mysten_sui_bcs600.BcsType<bigint, string | number | bigint, "u256">;
|
|
109
|
+
opened_at_ms: _mysten_sui_bcs600.BcsType<bigint, string | number | bigint, "u64">;
|
|
110
110
|
}, "@local-pkg/deepbook_predict_orders::order_queue::HeldPosition">;
|
|
111
|
-
sender:
|
|
112
|
-
onchain_timestamp_ms:
|
|
111
|
+
sender: _mysten_sui_bcs600.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
112
|
+
onchain_timestamp_ms: _mysten_sui_bcs600.BcsType<bigint, string | number | bigint, "u64">;
|
|
113
113
|
}, "@local-pkg/deepbook_predict_orders::queue_events::QueuedOrderFilled">;
|
|
114
114
|
declare const QueuedOrderRefunded: MoveStruct<{
|
|
115
|
-
/** The market's cash, required cash, and waiting cash need after the call. */market_cash:
|
|
116
|
-
required_cash:
|
|
117
|
-
waiting_cash_need:
|
|
118
|
-
expiry_market_id:
|
|
119
|
-
record_id:
|
|
120
|
-
account_id:
|
|
121
|
-
kind:
|
|
122
|
-
reason:
|
|
123
|
-
escrow_returned:
|
|
124
|
-
order_fee_returned:
|
|
125
|
-
subsidy_returned:
|
|
126
|
-
position_returned:
|
|
127
|
-
sender:
|
|
128
|
-
onchain_timestamp_ms:
|
|
115
|
+
/** The market's cash, required cash, and waiting cash need after the call. */market_cash: _mysten_sui_bcs600.BcsType<bigint, string | number | bigint, "u64">;
|
|
116
|
+
required_cash: _mysten_sui_bcs600.BcsType<bigint, string | number | bigint, "u64">;
|
|
117
|
+
waiting_cash_need: _mysten_sui_bcs600.BcsType<bigint, string | number | bigint, "u64">;
|
|
118
|
+
expiry_market_id: _mysten_sui_bcs600.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
119
|
+
record_id: _mysten_sui_bcs600.BcsType<bigint, string | number | bigint, "u64">;
|
|
120
|
+
account_id: _mysten_sui_bcs600.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
121
|
+
kind: _mysten_sui_bcs600.BcsType<number, number, "u8">; /** An `order_queue` reason code. */
|
|
122
|
+
reason: _mysten_sui_bcs600.BcsType<number, number, "u8">;
|
|
123
|
+
escrow_returned: _mysten_sui_bcs600.BcsType<bigint, string | number | bigint, "u64">;
|
|
124
|
+
order_fee_returned: _mysten_sui_bcs600.BcsType<bigint, string | number | bigint, "u64">;
|
|
125
|
+
subsidy_returned: _mysten_sui_bcs600.BcsType<bigint, string | number | bigint, "u64">; /** True when a sell's record went back to Open holding its position. */
|
|
126
|
+
position_returned: _mysten_sui_bcs600.BcsType<boolean, boolean, "bool">;
|
|
127
|
+
sender: _mysten_sui_bcs600.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
128
|
+
onchain_timestamp_ms: _mysten_sui_bcs600.BcsType<bigint, string | number | bigint, "u64">;
|
|
129
129
|
}, "@local-pkg/deepbook_predict_orders::queue_events::QueuedOrderRefunded">;
|
|
130
130
|
declare const QueuedOrdersCleaned: MoveStruct<{
|
|
131
|
-
expiry_market_id:
|
|
132
|
-
record_ids:
|
|
131
|
+
expiry_market_id: _mysten_sui_bcs600.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
132
|
+
record_ids: _mysten_sui_bcs600.BcsType<bigint[], Iterable<string | number | bigint> & {
|
|
133
133
|
length: number;
|
|
134
134
|
}, string>;
|
|
135
|
-
onchain_timestamp_ms:
|
|
135
|
+
onchain_timestamp_ms: _mysten_sui_bcs600.BcsType<bigint, string | number | bigint, "u64">;
|
|
136
136
|
}, "@local-pkg/deepbook_predict_orders::queue_events::QueuedOrdersCleaned">;
|
|
137
137
|
declare const OpenRecordSettled: MoveStruct<{
|
|
138
|
-
expiry_market_id:
|
|
139
|
-
record_id:
|
|
140
|
-
account_id:
|
|
141
|
-
order_id:
|
|
142
|
-
payout:
|
|
143
|
-
onchain_timestamp_ms:
|
|
138
|
+
expiry_market_id: _mysten_sui_bcs600.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
139
|
+
record_id: _mysten_sui_bcs600.BcsType<bigint, string | number | bigint, "u64">;
|
|
140
|
+
account_id: _mysten_sui_bcs600.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
141
|
+
order_id: _mysten_sui_bcs600.BcsType<bigint, string | number | bigint, "u256">;
|
|
142
|
+
payout: _mysten_sui_bcs600.BcsType<bigint, string | number | bigint, "u64">;
|
|
143
|
+
onchain_timestamp_ms: _mysten_sui_bcs600.BcsType<bigint, string | number | bigint, "u64">;
|
|
144
144
|
}, "@local-pkg/deepbook_predict_orders::queue_events::OpenRecordSettled">;
|
|
145
145
|
declare const OpenRecordPayoutSkipped: MoveStruct<{
|
|
146
|
-
expiry_market_id:
|
|
147
|
-
record_id:
|
|
148
|
-
account_id:
|
|
149
|
-
order_id:
|
|
150
|
-
payout:
|
|
151
|
-
onchain_timestamp_ms:
|
|
146
|
+
expiry_market_id: _mysten_sui_bcs600.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
147
|
+
record_id: _mysten_sui_bcs600.BcsType<bigint, string | number | bigint, "u64">;
|
|
148
|
+
account_id: _mysten_sui_bcs600.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
149
|
+
order_id: _mysten_sui_bcs600.BcsType<bigint, string | number | bigint, "u256">;
|
|
150
|
+
payout: _mysten_sui_bcs600.BcsType<bigint, string | number | bigint, "u64">;
|
|
151
|
+
onchain_timestamp_ms: _mysten_sui_bcs600.BcsType<bigint, string | number | bigint, "u64">;
|
|
152
152
|
}, "@local-pkg/deepbook_predict_orders::queue_events::OpenRecordPayoutSkipped">;
|
|
153
153
|
declare const RecordFundsParked: MoveStruct<{
|
|
154
|
-
expiry_market_id:
|
|
155
|
-
record_id:
|
|
156
|
-
account_id:
|
|
157
|
-
receive_address:
|
|
158
|
-
amount:
|
|
159
|
-
onchain_timestamp_ms:
|
|
154
|
+
expiry_market_id: _mysten_sui_bcs600.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
155
|
+
record_id: _mysten_sui_bcs600.BcsType<bigint, string | number | bigint, "u64">;
|
|
156
|
+
account_id: _mysten_sui_bcs600.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
157
|
+
receive_address: _mysten_sui_bcs600.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
158
|
+
amount: _mysten_sui_bcs600.BcsType<bigint, string | number | bigint, "u64">;
|
|
159
|
+
onchain_timestamp_ms: _mysten_sui_bcs600.BcsType<bigint, string | number | bigint, "u64">;
|
|
160
160
|
}, "@local-pkg/deepbook_predict_orders::queue_events::RecordFundsParked">;
|
|
161
161
|
declare const RecordFundsClaimed: MoveStruct<{
|
|
162
|
-
expiry_market_id:
|
|
163
|
-
record_id:
|
|
164
|
-
account_id:
|
|
165
|
-
receive_address:
|
|
166
|
-
amount:
|
|
167
|
-
onchain_timestamp_ms:
|
|
162
|
+
expiry_market_id: _mysten_sui_bcs600.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
163
|
+
record_id: _mysten_sui_bcs600.BcsType<bigint, string | number | bigint, "u64">;
|
|
164
|
+
account_id: _mysten_sui_bcs600.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
165
|
+
receive_address: _mysten_sui_bcs600.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
166
|
+
amount: _mysten_sui_bcs600.BcsType<bigint, string | number | bigint, "u64">;
|
|
167
|
+
onchain_timestamp_ms: _mysten_sui_bcs600.BcsType<bigint, string | number | bigint, "u64">;
|
|
168
168
|
}, "@local-pkg/deepbook_predict_orders::queue_events::RecordFundsClaimed">;
|
|
169
169
|
declare const MarketPayoutsCompleted: MoveStruct<{
|
|
170
|
-
expiry_market_id:
|
|
171
|
-
onchain_timestamp_ms:
|
|
170
|
+
expiry_market_id: _mysten_sui_bcs600.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
171
|
+
onchain_timestamp_ms: _mysten_sui_bcs600.BcsType<bigint, string | number | bigint, "u64">;
|
|
172
172
|
}, "@local-pkg/deepbook_predict_orders::queue_events::MarketPayoutsCompleted">;
|
|
173
173
|
declare const DelayedExecutionPolicyUpdated: MoveStruct<{
|
|
174
|
-
desk_id:
|
|
174
|
+
desk_id: _mysten_sui_bcs600.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
175
175
|
policy: MoveStruct<{
|
|
176
|
-
delay_ms:
|
|
177
|
-
stall_timeout_ms:
|
|
178
|
-
stuck_threshold_ms:
|
|
179
|
-
gap_wait_ms:
|
|
180
|
-
pyth_price_buffer_ms:
|
|
181
|
-
pyth_channel:
|
|
182
|
-
svi_max_age_ms:
|
|
183
|
-
mint_capacity:
|
|
184
|
-
sell_capacity:
|
|
185
|
-
per_account_cap:
|
|
186
|
-
order_fee:
|
|
187
|
-
min_sell_quantity:
|
|
188
|
-
settle_refund_batch:
|
|
189
|
-
settle_payout_batch:
|
|
176
|
+
delay_ms: _mysten_sui_bcs600.BcsType<bigint, string | number | bigint, "u64">;
|
|
177
|
+
stall_timeout_ms: _mysten_sui_bcs600.BcsType<bigint, string | number | bigint, "u64">;
|
|
178
|
+
stuck_threshold_ms: _mysten_sui_bcs600.BcsType<bigint, string | number | bigint, "u64">;
|
|
179
|
+
gap_wait_ms: _mysten_sui_bcs600.BcsType<bigint, string | number | bigint, "u64">;
|
|
180
|
+
pyth_price_buffer_ms: _mysten_sui_bcs600.BcsType<bigint, string | number | bigint, "u64">;
|
|
181
|
+
pyth_channel: _mysten_sui_bcs600.BcsType<number, number, "u8">;
|
|
182
|
+
svi_max_age_ms: _mysten_sui_bcs600.BcsType<bigint, string | number | bigint, "u64">;
|
|
183
|
+
mint_capacity: _mysten_sui_bcs600.BcsType<bigint, string | number | bigint, "u64">;
|
|
184
|
+
sell_capacity: _mysten_sui_bcs600.BcsType<bigint, string | number | bigint, "u64">;
|
|
185
|
+
per_account_cap: _mysten_sui_bcs600.BcsType<bigint, string | number | bigint, "u64">;
|
|
186
|
+
order_fee: _mysten_sui_bcs600.BcsType<bigint, string | number | bigint, "u64">;
|
|
187
|
+
min_sell_quantity: _mysten_sui_bcs600.BcsType<bigint, string | number | bigint, "u64">;
|
|
188
|
+
settle_refund_batch: _mysten_sui_bcs600.BcsType<bigint, string | number | bigint, "u64">;
|
|
189
|
+
settle_payout_batch: _mysten_sui_bcs600.BcsType<bigint, string | number | bigint, "u64">;
|
|
190
190
|
}, "@local-pkg/deepbook_predict_orders::delayed_execution_config::DelayedExecutionPolicy">;
|
|
191
|
-
onchain_timestamp_ms:
|
|
191
|
+
onchain_timestamp_ms: _mysten_sui_bcs600.BcsType<bigint, string | number | bigint, "u64">;
|
|
192
192
|
}, "@local-pkg/deepbook_predict_orders::queue_events::DelayedExecutionPolicyUpdated">;
|
|
193
193
|
//#endregion
|
|
194
194
|
export { OrderEnqueued, queue_events_d_exports };
|
|
@@ -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_bcs0 from "@mysten/sui/bcs";
|
|
3
|
+
import * as _mysten_sui_transactions0 from "@mysten/sui/transactions";
|
|
4
4
|
import { Transaction } from "@mysten/sui/transactions";
|
|
5
5
|
|
|
6
6
|
//#region src/contracts/deepbook_sessions/session_config.d.ts
|
|
@@ -8,11 +8,11 @@ declare namespace session_config_d_exports {
|
|
|
8
8
|
export { BumpVersionWatermarkArguments, BumpVersionWatermarkOptions, IdArguments, IdOptions, SessionsAdminCap, SessionsConfig, VersionWatermarkArguments, VersionWatermarkOptions, bumpVersionWatermark, id, versionWatermark };
|
|
9
9
|
}
|
|
10
10
|
declare const SessionsConfig: MoveStruct<{
|
|
11
|
-
id:
|
|
12
|
-
version_watermark:
|
|
11
|
+
id: _mysten_sui_bcs0.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
12
|
+
version_watermark: _mysten_sui_bcs0.BcsType<bigint, string | number | bigint, "u64">;
|
|
13
13
|
}, "@local-pkg/deepbook_sessions::session_config::SessionsConfig">;
|
|
14
14
|
declare const SessionsAdminCap: MoveStruct<{
|
|
15
|
-
id:
|
|
15
|
+
id: _mysten_sui_bcs0.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
16
16
|
}, "@local-pkg/deepbook_sessions::session_config::SessionsAdminCap">;
|
|
17
17
|
interface IdArguments {
|
|
18
18
|
config?: RawTransactionArgument<string>;
|
|
@@ -26,7 +26,7 @@ interface IdOptions {
|
|
|
26
26
|
};
|
|
27
27
|
}
|
|
28
28
|
/** Return the config object ID for external PTB construction. */
|
|
29
|
-
declare function id(options: IdOptions): (tx: Transaction) =>
|
|
29
|
+
declare function id(options: IdOptions): (tx: Transaction) => _mysten_sui_transactions0.TransactionResult;
|
|
30
30
|
interface VersionWatermarkArguments {
|
|
31
31
|
config?: RawTransactionArgument<string>;
|
|
32
32
|
}
|
|
@@ -39,7 +39,7 @@ interface VersionWatermarkOptions {
|
|
|
39
39
|
};
|
|
40
40
|
}
|
|
41
41
|
/** Return the minimum Sessions package version accepted by gated entrypoints. */
|
|
42
|
-
declare function versionWatermark(options: VersionWatermarkOptions): (tx: Transaction) =>
|
|
42
|
+
declare function versionWatermark(options: VersionWatermarkOptions): (tx: Transaction) => _mysten_sui_transactions0.TransactionResult;
|
|
43
43
|
interface BumpVersionWatermarkArguments {
|
|
44
44
|
config?: RawTransactionArgument<string>;
|
|
45
45
|
AdminCap: RawTransactionArgument<string>;
|
|
@@ -57,7 +57,7 @@ interface BumpVersionWatermarkOptions {
|
|
|
57
57
|
* so an upgraded package can retire older versions, and it cannot accept a
|
|
58
58
|
* caller-selected target.
|
|
59
59
|
*/
|
|
60
|
-
declare function bumpVersionWatermark(options: BumpVersionWatermarkOptions): (tx: Transaction) =>
|
|
60
|
+
declare function bumpVersionWatermark(options: BumpVersionWatermarkOptions): (tx: Transaction) => _mysten_sui_transactions0.TransactionResult;
|
|
61
61
|
//#endregion
|
|
62
62
|
export { session_config_d_exports };
|
|
63
63
|
//# sourceMappingURL=session_config.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"session_config.d.mts","names":[],"sources":["../../../src/contracts/deepbook_sessions/session_config.ts"],"mappings":";;;;;;;;;cAgBa,cAAA,EAAc,UAAA;;;;cAOd,gBAAA,EAAgB,UAAA;;;UAMZ,WAAA;EAChB,MAAA,GAAS,sBAAA;AAAA;AAAA,UAEO,SAAA;EAChB,OAAA;EACA,SAAA,GAAY,WAAA;EACZ,MAAA;IACC,cAAA,EAAgB,WAAA;IAChB,iBAAA;EAAA;AAAA;;iBAIc,EAAA,CAAG,OAAA,EAAS,SAAA,IAKnB,EAAA,EAAI,WAAA,KAAW,
|
|
1
|
+
{"version":3,"file":"session_config.d.mts","names":[],"sources":["../../../src/contracts/deepbook_sessions/session_config.ts"],"mappings":";;;;;;;;;cAgBa,cAAA,EAAc,UAAA;;;;cAOd,gBAAA,EAAgB,UAAA;;;UAMZ,WAAA;EAChB,MAAA,GAAS,sBAAA;AAAA;AAAA,UAEO,SAAA;EAChB,OAAA;EACA,SAAA,GAAY,WAAA;EACZ,MAAA;IACC,cAAA,EAAgB,WAAA;IAChB,iBAAA;EAAA;AAAA;;iBAIc,EAAA,CAAG,OAAA,EAAS,SAAA,IAKnB,EAAA,EAAI,WAAA,KAAW,yBAAA,CAAA,iBAAA;AAAA,UAeP,yBAAA;EAChB,MAAA,GAAS,sBAAA;AAAA;AAAA,UAEO,uBAAA;EAChB,OAAA;EACA,SAAA,GAAY,yBAAA;EACZ,MAAA;IACC,cAAA,EAAgB,WAAA;IAChB,iBAAA;EAAA;AAAA;;iBAIc,gBAAA,CAAiB,OAAA,EAAS,uBAAA,IAKjC,EAAA,EAAI,WAAA,KAAW,yBAAA,CAAA,iBAAA;AAAA,UAeP,6BAAA;EAChB,MAAA,GAAS,sBAAA;EACT,QAAA,EAAU,sBAAA;AAAA;AAAA,UAEM,2BAAA;EAChB,OAAA;EACA,SAAA,EAAW,6BAAA;EACX,MAAA;IACC,cAAA,EAAgB,WAAA;IAChB,iBAAA;EAAA;AAAA;;;;;AAzEF;iBAiFgB,oBAAA,CAAqB,OAAA,EAAS,2BAAA,IAKrC,EAAA,EAAI,WAAA,KAAW,yBAAA,CAAA,iBAAA"}
|
|
@@ -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_bcs2 from "@mysten/sui/bcs";
|
|
3
|
+
import * as _mysten_sui_transactions2 from "@mysten/sui/transactions";
|
|
4
4
|
import { Transaction, TransactionArgument } from "@mysten/sui/transactions";
|
|
5
5
|
|
|
6
6
|
//#region src/contracts/deepbook_sessions/sessions.d.ts
|
|
@@ -8,11 +8,11 @@ declare namespace sessions_d_exports {
|
|
|
8
8
|
export { AuthorizeSessionArguments, AuthorizeSessionOptions, CancelLiveOrderArguments, CancelLiveOrderOptions, CancelLiveOrdersArguments, CancelLiveOrdersOptions, EnqueueExactAmountArguments, EnqueueExactAmountOptions, EnqueueExactCostArguments, EnqueueExactCostOptions, EnqueueExactQuantityArguments, EnqueueExactQuantityOptions, EnqueueRedeemOpenArguments, EnqueueRedeemOpenOptions, MintExactAmountArguments, MintExactAmountOptions, MintExactCostArguments, MintExactCostOptions, MintExactQuantityArguments, MintExactQuantityOptions, PlaceLimitOrderArguments, PlaceLimitOrderOptions, PlaceMarketOrderArguments, PlaceMarketOrderOptions, RedeemLiveArguments, RedeemLiveOptions, RedeemSettledArguments, RedeemSettledOptions, RevokeSessionArguments, RevokeSessionOptions, SessionAuthorized, SessionExpirationMsArguments, SessionExpirationMsOptions, SessionRevoked, SessionsApp, SessionsData, WithdrawSettledAmountsArguments, WithdrawSettledAmountsOptions, authorizeSession, cancelLiveOrder, cancelLiveOrders, enqueueExactAmount, enqueueExactCost, enqueueExactQuantity, enqueueRedeemOpen, mintExactAmount, mintExactCost, mintExactQuantity, placeLimitOrder, placeMarketOrder, redeemLive, redeemSettled, revokeSession, sessionExpirationMs, withdrawSettledAmounts };
|
|
9
9
|
}
|
|
10
10
|
declare const SessionsApp: MoveStruct<{
|
|
11
|
-
dummy_field:
|
|
11
|
+
dummy_field: _mysten_sui_bcs2.BcsType<boolean, boolean, "bool">;
|
|
12
12
|
}, "@local-pkg/deepbook_sessions::sessions::SessionsApp">;
|
|
13
13
|
declare const SessionsData: MoveStruct<{
|
|
14
14
|
sessions: MoveStruct<{
|
|
15
|
-
contents:
|
|
15
|
+
contents: _mysten_sui_bcs2.BcsType<{
|
|
16
16
|
key: string;
|
|
17
17
|
value: bigint;
|
|
18
18
|
}[], Iterable<{
|
|
@@ -24,14 +24,14 @@ declare const SessionsData: MoveStruct<{
|
|
|
24
24
|
}, "0x2::vec_map::VecMap<bytes[32], u64>">;
|
|
25
25
|
}, "@local-pkg/deepbook_sessions::sessions::SessionsData">;
|
|
26
26
|
declare const SessionAuthorized: MoveStruct<{
|
|
27
|
-
account_id:
|
|
28
|
-
session:
|
|
29
|
-
expires_at_ms:
|
|
27
|
+
account_id: _mysten_sui_bcs2.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
28
|
+
session: _mysten_sui_bcs2.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
29
|
+
expires_at_ms: _mysten_sui_bcs2.BcsType<bigint, string | number | bigint, "u64">;
|
|
30
30
|
}, "@local-pkg/deepbook_sessions::sessions::SessionAuthorized">;
|
|
31
31
|
declare const SessionRevoked: MoveStruct<{
|
|
32
|
-
account_id:
|
|
33
|
-
session:
|
|
34
|
-
expires_at_ms:
|
|
32
|
+
account_id: _mysten_sui_bcs2.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
33
|
+
session: _mysten_sui_bcs2.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
34
|
+
expires_at_ms: _mysten_sui_bcs2.BcsType<bigint, string | number | bigint, "u64">;
|
|
35
35
|
}, "@local-pkg/deepbook_sessions::sessions::SessionRevoked">;
|
|
36
36
|
interface SessionExpirationMsArguments {
|
|
37
37
|
wrapper: RawTransactionArgument<string>;
|
|
@@ -45,7 +45,7 @@ interface SessionExpirationMsOptions {
|
|
|
45
45
|
};
|
|
46
46
|
}
|
|
47
47
|
/** Return a known session's expiration timestamp for SDK and devInspect reads. */
|
|
48
|
-
declare function sessionExpirationMs(options: SessionExpirationMsOptions): (tx: Transaction) =>
|
|
48
|
+
declare function sessionExpirationMs(options: SessionExpirationMsOptions): (tx: Transaction) => _mysten_sui_transactions2.TransactionResult;
|
|
49
49
|
interface AuthorizeSessionArguments {
|
|
50
50
|
wrapper: RawTransactionArgument<string>;
|
|
51
51
|
sessionsConfig?: RawTransactionArgument<string>;
|
|
@@ -64,7 +64,7 @@ interface AuthorizeSessionOptions {
|
|
|
64
64
|
* Authorize `session` from execution time for at most 30 days. Accounts may store
|
|
65
65
|
* at most 20 addresses; reauthorization replaces in place.
|
|
66
66
|
*/
|
|
67
|
-
declare function authorizeSession(options: AuthorizeSessionOptions): (tx: Transaction) =>
|
|
67
|
+
declare function authorizeSession(options: AuthorizeSessionOptions): (tx: Transaction) => _mysten_sui_transactions2.TransactionResult;
|
|
68
68
|
interface RevokeSessionArguments {
|
|
69
69
|
wrapper: RawTransactionArgument<string>;
|
|
70
70
|
session: RawTransactionArgument<string>;
|
|
@@ -80,7 +80,7 @@ interface RevokeSessionOptions {
|
|
|
80
80
|
* Revoke `session` if it is present. Only the Account owner may call this
|
|
81
81
|
* function.
|
|
82
82
|
*/
|
|
83
|
-
declare function revokeSession(options: RevokeSessionOptions): (tx: Transaction) =>
|
|
83
|
+
declare function revokeSession(options: RevokeSessionOptions): (tx: Transaction) => _mysten_sui_transactions2.TransactionResult;
|
|
84
84
|
interface PlaceLimitOrderArguments {
|
|
85
85
|
pool: RawTransactionArgument<string>;
|
|
86
86
|
deepbookRegistry: RawTransactionArgument<string>;
|
|
@@ -106,7 +106,7 @@ interface PlaceLimitOrderOptions {
|
|
|
106
106
|
typeArguments: [string, string];
|
|
107
107
|
}
|
|
108
108
|
/** Place a DeepBook spot limit order for an Account with an active session. */
|
|
109
|
-
declare function placeLimitOrder(options: PlaceLimitOrderOptions): (tx: Transaction) =>
|
|
109
|
+
declare function placeLimitOrder(options: PlaceLimitOrderOptions): (tx: Transaction) => _mysten_sui_transactions2.TransactionResult;
|
|
110
110
|
interface PlaceMarketOrderArguments {
|
|
111
111
|
pool: RawTransactionArgument<string>;
|
|
112
112
|
deepbookRegistry: RawTransactionArgument<string>;
|
|
@@ -130,7 +130,7 @@ interface PlaceMarketOrderOptions {
|
|
|
130
130
|
typeArguments: [string, string];
|
|
131
131
|
}
|
|
132
132
|
/** Place a DeepBook spot market order for an Account with an active session. */
|
|
133
|
-
declare function placeMarketOrder(options: PlaceMarketOrderOptions): (tx: Transaction) =>
|
|
133
|
+
declare function placeMarketOrder(options: PlaceMarketOrderOptions): (tx: Transaction) => _mysten_sui_transactions2.TransactionResult;
|
|
134
134
|
interface CancelLiveOrderArguments {
|
|
135
135
|
pool: RawTransactionArgument<string>;
|
|
136
136
|
accountRegistry: RawTransactionArgument<string>;
|
|
@@ -148,7 +148,7 @@ interface CancelLiveOrderOptions {
|
|
|
148
148
|
typeArguments: [string, string];
|
|
149
149
|
}
|
|
150
150
|
/** Cancel a DeepBook spot order for an Account with an active session. */
|
|
151
|
-
declare function cancelLiveOrder(options: CancelLiveOrderOptions): (tx: Transaction) =>
|
|
151
|
+
declare function cancelLiveOrder(options: CancelLiveOrderOptions): (tx: Transaction) => _mysten_sui_transactions2.TransactionResult;
|
|
152
152
|
interface CancelLiveOrdersArguments {
|
|
153
153
|
pool: RawTransactionArgument<string>;
|
|
154
154
|
accountRegistry: RawTransactionArgument<string>;
|
|
@@ -166,7 +166,7 @@ interface CancelLiveOrdersOptions {
|
|
|
166
166
|
typeArguments: [string, string];
|
|
167
167
|
}
|
|
168
168
|
/** Cancel multiple DeepBook spot orders for an Account with an active session. */
|
|
169
|
-
declare function cancelLiveOrders(options: CancelLiveOrdersOptions): (tx: Transaction) =>
|
|
169
|
+
declare function cancelLiveOrders(options: CancelLiveOrdersOptions): (tx: Transaction) => _mysten_sui_transactions2.TransactionResult;
|
|
170
170
|
interface WithdrawSettledAmountsArguments {
|
|
171
171
|
pool: RawTransactionArgument<string>;
|
|
172
172
|
accountRegistry: RawTransactionArgument<string>;
|
|
@@ -183,7 +183,7 @@ interface WithdrawSettledAmountsOptions {
|
|
|
183
183
|
typeArguments: [string, string];
|
|
184
184
|
}
|
|
185
185
|
/** Sweep settled DeepBook spot proceeds into an Account with an active session. */
|
|
186
|
-
declare function withdrawSettledAmounts(options: WithdrawSettledAmountsOptions): (tx: Transaction) =>
|
|
186
|
+
declare function withdrawSettledAmounts(options: WithdrawSettledAmountsOptions): (tx: Transaction) => _mysten_sui_transactions2.TransactionResult;
|
|
187
187
|
interface MintExactQuantityArguments {
|
|
188
188
|
market: RawTransactionArgument<string>;
|
|
189
189
|
accountRegistry: RawTransactionArgument<string>;
|
|
@@ -210,7 +210,7 @@ interface MintExactQuantityOptions {
|
|
|
210
210
|
* Always aborts through Predict, whose immediate mints are retired; use
|
|
211
211
|
* `enqueue_exact_quantity`.
|
|
212
212
|
*/
|
|
213
|
-
declare function mintExactQuantity(options: MintExactQuantityOptions): (tx: Transaction) =>
|
|
213
|
+
declare function mintExactQuantity(options: MintExactQuantityOptions): (tx: Transaction) => _mysten_sui_transactions2.TransactionResult;
|
|
214
214
|
interface MintExactAmountArguments {
|
|
215
215
|
market: RawTransactionArgument<string>;
|
|
216
216
|
accountRegistry: RawTransactionArgument<string>;
|
|
@@ -237,7 +237,7 @@ interface MintExactAmountOptions {
|
|
|
237
237
|
* Always aborts through Predict, whose immediate mints are retired; use
|
|
238
238
|
* `enqueue_exact_amount`.
|
|
239
239
|
*/
|
|
240
|
-
declare function mintExactAmount(options: MintExactAmountOptions): (tx: Transaction) =>
|
|
240
|
+
declare function mintExactAmount(options: MintExactAmountOptions): (tx: Transaction) => _mysten_sui_transactions2.TransactionResult;
|
|
241
241
|
interface MintExactCostArguments {
|
|
242
242
|
market: RawTransactionArgument<string>;
|
|
243
243
|
accountRegistry: RawTransactionArgument<string>;
|
|
@@ -263,7 +263,7 @@ interface MintExactCostOptions {
|
|
|
263
263
|
* session. Always aborts through Predict, whose immediate mints are retired; use
|
|
264
264
|
* `enqueue_exact_cost`.
|
|
265
265
|
*/
|
|
266
|
-
declare function mintExactCost(options: MintExactCostOptions): (tx: Transaction) =>
|
|
266
|
+
declare function mintExactCost(options: MintExactCostOptions): (tx: Transaction) => _mysten_sui_transactions2.TransactionResult;
|
|
267
267
|
interface RedeemLiveArguments {
|
|
268
268
|
market: RawTransactionArgument<string>;
|
|
269
269
|
accountRegistry: RawTransactionArgument<string>;
|
|
@@ -289,7 +289,7 @@ interface RedeemLiveOptions {
|
|
|
289
289
|
* through Predict, whose live redeem is retired. Early sells of queued positions
|
|
290
290
|
* go through `enqueue_redeem_open`.
|
|
291
291
|
*/
|
|
292
|
-
declare function redeemLive(options: RedeemLiveOptions): (tx: Transaction) =>
|
|
292
|
+
declare function redeemLive(options: RedeemLiveOptions): (tx: Transaction) => _mysten_sui_transactions2.TransactionResult;
|
|
293
293
|
interface RedeemSettledArguments {
|
|
294
294
|
market: RawTransactionArgument<string>;
|
|
295
295
|
accountRegistry: RawTransactionArgument<string>;
|
|
@@ -307,7 +307,7 @@ interface RedeemSettledOptions {
|
|
|
307
307
|
};
|
|
308
308
|
}
|
|
309
309
|
/** Redeem a settled Predict order for an Account with an active session. */
|
|
310
|
-
declare function redeemSettled(options: RedeemSettledOptions): (tx: Transaction) =>
|
|
310
|
+
declare function redeemSettled(options: RedeemSettledOptions): (tx: Transaction) => _mysten_sui_transactions2.TransactionResult;
|
|
311
311
|
interface EnqueueExactQuantityArguments {
|
|
312
312
|
queue: RawTransactionArgument<string>;
|
|
313
313
|
market: RawTransactionArgument<string>;
|
|
@@ -338,7 +338,7 @@ interface EnqueueExactQuantityOptions {
|
|
|
338
338
|
* Queue an exact-quantity Predict mint in `market`'s order-flow queue for an
|
|
339
339
|
* Account with an active session. Returns the queue record ID.
|
|
340
340
|
*/
|
|
341
|
-
declare function enqueueExactQuantity(options: EnqueueExactQuantityOptions): (tx: Transaction) =>
|
|
341
|
+
declare function enqueueExactQuantity(options: EnqueueExactQuantityOptions): (tx: Transaction) => _mysten_sui_transactions2.TransactionResult;
|
|
342
342
|
interface EnqueueExactAmountArguments {
|
|
343
343
|
queue: RawTransactionArgument<string>;
|
|
344
344
|
market: RawTransactionArgument<string>;
|
|
@@ -369,7 +369,7 @@ interface EnqueueExactAmountOptions {
|
|
|
369
369
|
* Queue a premium-budget Predict mint in `market`'s order-flow queue for an
|
|
370
370
|
* Account with an active session. Returns the queue record ID.
|
|
371
371
|
*/
|
|
372
|
-
declare function enqueueExactAmount(options: EnqueueExactAmountOptions): (tx: Transaction) =>
|
|
372
|
+
declare function enqueueExactAmount(options: EnqueueExactAmountOptions): (tx: Transaction) => _mysten_sui_transactions2.TransactionResult;
|
|
373
373
|
interface EnqueueExactCostArguments {
|
|
374
374
|
queue: RawTransactionArgument<string>;
|
|
375
375
|
market: RawTransactionArgument<string>;
|
|
@@ -399,7 +399,7 @@ interface EnqueueExactCostOptions {
|
|
|
399
399
|
* Queue an all-in-budget Predict mint in `market`'s order-flow queue for an
|
|
400
400
|
* Account with an active session. Returns the queue record ID.
|
|
401
401
|
*/
|
|
402
|
-
declare function enqueueExactCost(options: EnqueueExactCostOptions): (tx: Transaction) =>
|
|
402
|
+
declare function enqueueExactCost(options: EnqueueExactCostOptions): (tx: Transaction) => _mysten_sui_transactions2.TransactionResult;
|
|
403
403
|
interface EnqueueRedeemOpenArguments {
|
|
404
404
|
queue: RawTransactionArgument<string>;
|
|
405
405
|
market: RawTransactionArgument<string>;
|
|
@@ -429,7 +429,7 @@ interface EnqueueRedeemOpenOptions {
|
|
|
429
429
|
* Queue an early sell of an Open order-flow queue record for an Account with an
|
|
430
430
|
* active session. Returns the new queue record ID.
|
|
431
431
|
*/
|
|
432
|
-
declare function enqueueRedeemOpen(options: EnqueueRedeemOpenOptions): (tx: Transaction) =>
|
|
432
|
+
declare function enqueueRedeemOpen(options: EnqueueRedeemOpenOptions): (tx: Transaction) => _mysten_sui_transactions2.TransactionResult;
|
|
433
433
|
//#endregion
|
|
434
434
|
export { SessionAuthorized, SessionRevoked, SessionsApp, SessionsData, sessions_d_exports };
|
|
435
435
|
//# sourceMappingURL=sessions.d.mts.map
|