@mysten/deepbook-v3 2.10.0 → 2.10.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 +11 -0
- package/dist/account-bindings/account-registry.d.mts +13 -13
- package/dist/account-bindings/account.d.mts +25 -25
- package/dist/account-bindings/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 +6 -6
- 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 +16 -16
- 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 +85 -85
- package/dist/contracts/deepbook_predict/expiry_market.d.mts +62 -62
- 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 +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/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 +85 -85
- 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 +32 -32
- package/dist/contracts/deepbook_predict/registry.d.mts.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 +54 -54
- 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 +45 -45
- package/dist/predict/bindings/expiry-market.d.mts +8 -8
- 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/predict/bindings/queue.d.mts +2 -2
- package/dist/predict/bindings/queue.d.mts.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/marginLiquidations.d.mts +3 -3
- 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/marginRegistry.d.mts +16 -16
- package/dist/transactions/marginTPSL.d.mts +10 -10
- package/dist/transactions/poolProxy.d.mts +8 -8
- package/dist/utils/constants.d.mts.map +1 -1
- package/dist/utils/constants.mjs +1 -1
- package/dist/utils/constants.mjs.map +1 -1
- package/package.json +1 -1
- package/src/utils/constants.ts +3 -2
|
@@ -1,194 +1,194 @@
|
|
|
1
1
|
import { MoveStruct } from "../utils/index.mjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as _mysten_sui_bcs601 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_bcs601.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
10
|
+
record_id: _mysten_sui_bcs601.BcsType<bigint, string | number | bigint, "u64">;
|
|
11
|
+
account_id: _mysten_sui_bcs601.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">; /** An `order_queue` kind code. */
|
|
12
|
+
kind: _mysten_sui_bcs601.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_bcs601.BcsType<bigint, string | number | bigint, "u64">;
|
|
15
|
+
higher_tick: _mysten_sui_bcs601.BcsType<bigint, string | number | bigint, "u64">;
|
|
16
|
+
quantity: _mysten_sui_bcs601.BcsType<bigint, string | number | bigint, "u64">;
|
|
17
|
+
max_premium: _mysten_sui_bcs601.BcsType<bigint, string | number | bigint, "u64">;
|
|
18
|
+
min_quantity: _mysten_sui_bcs601.BcsType<bigint, string | number | bigint, "u64">;
|
|
19
|
+
max_cost: _mysten_sui_bcs601.BcsType<bigint, string | number | bigint, "u64">;
|
|
20
|
+
max_probability: _mysten_sui_bcs601.BcsType<bigint, string | number | bigint, "u64">;
|
|
21
|
+
min_probability: _mysten_sui_bcs601.BcsType<bigint, string | number | bigint, "u64">;
|
|
22
|
+
min_proceeds: _mysten_sui_bcs601.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_bcs601.BcsType<bigint, string | number | bigint, "u256">;
|
|
26
|
+
root_id: _mysten_sui_bcs601.BcsType<bigint, string | number | bigint, "u256">;
|
|
27
|
+
opened_at_ms: _mysten_sui_bcs601.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_bcs601.BcsType<bigint, string | number | bigint, "u64">;
|
|
31
|
+
earliest_price_ms: _mysten_sui_bcs601.BcsType<bigint, string | number | bigint, "u64">;
|
|
32
|
+
tau_ms: _mysten_sui_bcs601.BcsType<bigint, string | number | bigint, "u64">;
|
|
33
|
+
deadline_ms: _mysten_sui_bcs601.BcsType<bigint, string | number | bigint, "u64">;
|
|
34
|
+
cutoff_ms: _mysten_sui_bcs601.BcsType<bigint, string | number | bigint, "u64">;
|
|
35
|
+
pyth_channel: _mysten_sui_bcs601.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_bcs601.BcsType<number, number, "u32">;
|
|
39
|
+
bs_spot: _mysten_sui_bcs601.BcsType<bigint, string | number | bigint, "u64">;
|
|
40
|
+
bs_forward: _mysten_sui_bcs601.BcsType<bigint, string | number | bigint, "u64">;
|
|
41
41
|
svi_a: MoveStruct<{
|
|
42
|
-
magnitude:
|
|
43
|
-
is_negative:
|
|
42
|
+
magnitude: _mysten_sui_bcs601.BcsType<bigint, string | number | bigint, "u64">;
|
|
43
|
+
is_negative: _mysten_sui_bcs601.BcsType<boolean, boolean, "bool">;
|
|
44
44
|
}, "fixed_math::i64::I64">;
|
|
45
|
-
svi_b:
|
|
45
|
+
svi_b: _mysten_sui_bcs601.BcsType<bigint, string | number | bigint, "u64">;
|
|
46
46
|
svi_rho: MoveStruct<{
|
|
47
|
-
magnitude:
|
|
48
|
-
is_negative:
|
|
47
|
+
magnitude: _mysten_sui_bcs601.BcsType<bigint, string | number | bigint, "u64">;
|
|
48
|
+
is_negative: _mysten_sui_bcs601.BcsType<boolean, boolean, "bool">;
|
|
49
49
|
}, "fixed_math::i64::I64">;
|
|
50
50
|
svi_m: MoveStruct<{
|
|
51
|
-
magnitude:
|
|
52
|
-
is_negative:
|
|
51
|
+
magnitude: _mysten_sui_bcs601.BcsType<bigint, string | number | bigint, "u64">;
|
|
52
|
+
is_negative: _mysten_sui_bcs601.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_bcs601.BcsType<bigint, string | number | bigint, "u64">;
|
|
55
|
+
bs_spot_source_timestamp_ms: _mysten_sui_bcs601.BcsType<bigint, string | number | bigint, "u64">;
|
|
56
|
+
bs_forward_source_timestamp_ms: _mysten_sui_bcs601.BcsType<bigint, string | number | bigint, "u64">;
|
|
57
|
+
svi_source_timestamp_ms: _mysten_sui_bcs601.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_bcs601.BcsType<bigint, string | number | bigint, "u64">;
|
|
60
|
+
order_fee: _mysten_sui_bcs601.BcsType<bigint, string | number | bigint, "u64">; /** The order's worst-case cash need, added to the waiting total. */
|
|
61
|
+
cash_need: _mysten_sui_bcs601.BcsType<bigint, string | number | bigint, "u64">;
|
|
62
|
+
subsidy_bound: _mysten_sui_bcs601.BcsType<bigint, string | number | bigint, "u64">;
|
|
63
|
+
builder_code_id: _mysten_sui_bcs601.BcsType<string | null, string | Uint8Array<ArrayBufferLike> | null | undefined, "Option<bytes[32]>">;
|
|
64
|
+
referrer_account_id: _mysten_sui_bcs601.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_bcs601.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_bcs601.BcsType<bigint, string | number | bigint, "u64">;
|
|
67
|
+
required_cash: _mysten_sui_bcs601.BcsType<bigint, string | number | bigint, "u64">;
|
|
68
|
+
waiting_cash_need: _mysten_sui_bcs601.BcsType<bigint, string | number | bigint, "u64">;
|
|
69
|
+
onchain_timestamp_ms: _mysten_sui_bcs601.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_bcs601.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
73
|
+
tau_ms: _mysten_sui_bcs601.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_bcs601.BcsType<bigint, string | number | bigint, "u64">;
|
|
75
|
+
first_record_id: _mysten_sui_bcs601.BcsType<bigint, string | number | bigint, "u64">;
|
|
76
|
+
last_record_id: _mysten_sui_bcs601.BcsType<bigint, string | number | bigint, "u64">; /** The committed price of the cohort's first order, normalized to 1e9. */
|
|
77
|
+
spot: _mysten_sui_bcs601.BcsType<bigint, string | number | bigint, "u64">; /** That price's own update time, in µs. */
|
|
78
|
+
generation_us: _mysten_sui_bcs601.BcsType<bigint, string | number | bigint, "u64">;
|
|
79
|
+
pyth_source_id: _mysten_sui_bcs601.BcsType<number, number, "u32">;
|
|
80
|
+
pyth_channel: _mysten_sui_bcs601.BcsType<number, number, "u8">; /** The transaction sender, so monitoring sees commits by third parties. */
|
|
81
|
+
sender: _mysten_sui_bcs601.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
82
|
+
onchain_timestamp_ms: _mysten_sui_bcs601.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_bcs601.BcsType<bigint, string | number | bigint, "u64">;
|
|
86
|
+
required_cash: _mysten_sui_bcs601.BcsType<bigint, string | number | bigint, "u64">;
|
|
87
|
+
waiting_cash_need: _mysten_sui_bcs601.BcsType<bigint, string | number | bigint, "u64">;
|
|
88
|
+
expiry_market_id: _mysten_sui_bcs601.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
89
|
+
record_id: _mysten_sui_bcs601.BcsType<bigint, string | number | bigint, "u64">;
|
|
90
|
+
account_id: _mysten_sui_bcs601.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
91
|
+
kind: _mysten_sui_bcs601.BcsType<number, number, "u8">; /** Filled quantity (mint) or closed quantity (sell). */
|
|
92
|
+
quantity: _mysten_sui_bcs601.BcsType<bigint, string | number | bigint, "u64">; /** Cost paid (mint) or proceeds (sell). */
|
|
93
|
+
amount: _mysten_sui_bcs601.BcsType<bigint, string | number | bigint, "u64">;
|
|
94
|
+
trading_fee: _mysten_sui_bcs601.BcsType<bigint, string | number | bigint, "u64">;
|
|
95
|
+
builder_fee: _mysten_sui_bcs601.BcsType<bigint, string | number | bigint, "u64">;
|
|
96
|
+
referral_fee: _mysten_sui_bcs601.BcsType<bigint, string | number | bigint, "u64">;
|
|
97
|
+
order_fee: _mysten_sui_bcs601.BcsType<bigint, string | number | bigint, "u64">; /** Reserved fee subsidy the fill used. */
|
|
98
|
+
subsidy_used: _mysten_sui_bcs601.BcsType<bigint, string | number | bigint, "u64">;
|
|
99
|
+
inventory_impact: _mysten_sui_bcs601.BcsType<bigint, string | number | bigint, "u64">;
|
|
100
|
+
tau_ms: _mysten_sui_bcs601.BcsType<bigint, string | number | bigint, "u64">;
|
|
101
|
+
tick_ms: _mysten_sui_bcs601.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_bcs601.BcsType<bigint, string | number | bigint, "u256">;
|
|
108
|
+
root_id: _mysten_sui_bcs601.BcsType<bigint, string | number | bigint, "u256">;
|
|
109
|
+
opened_at_ms: _mysten_sui_bcs601.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_bcs601.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
112
|
+
onchain_timestamp_ms: _mysten_sui_bcs601.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_bcs601.BcsType<bigint, string | number | bigint, "u64">;
|
|
116
|
+
required_cash: _mysten_sui_bcs601.BcsType<bigint, string | number | bigint, "u64">;
|
|
117
|
+
waiting_cash_need: _mysten_sui_bcs601.BcsType<bigint, string | number | bigint, "u64">;
|
|
118
|
+
expiry_market_id: _mysten_sui_bcs601.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
119
|
+
record_id: _mysten_sui_bcs601.BcsType<bigint, string | number | bigint, "u64">;
|
|
120
|
+
account_id: _mysten_sui_bcs601.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
121
|
+
kind: _mysten_sui_bcs601.BcsType<number, number, "u8">; /** An `order_queue` reason code. */
|
|
122
|
+
reason: _mysten_sui_bcs601.BcsType<number, number, "u8">;
|
|
123
|
+
escrow_returned: _mysten_sui_bcs601.BcsType<bigint, string | number | bigint, "u64">;
|
|
124
|
+
order_fee_returned: _mysten_sui_bcs601.BcsType<bigint, string | number | bigint, "u64">;
|
|
125
|
+
subsidy_returned: _mysten_sui_bcs601.BcsType<bigint, string | number | bigint, "u64">; /** True when a sell's record went back to Open holding its position. */
|
|
126
|
+
position_returned: _mysten_sui_bcs601.BcsType<boolean, boolean, "bool">;
|
|
127
|
+
sender: _mysten_sui_bcs601.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
128
|
+
onchain_timestamp_ms: _mysten_sui_bcs601.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_bcs601.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
132
|
+
record_ids: _mysten_sui_bcs601.BcsType<bigint[], Iterable<string | number | bigint> & {
|
|
133
133
|
length: number;
|
|
134
134
|
}, string>;
|
|
135
|
-
onchain_timestamp_ms:
|
|
135
|
+
onchain_timestamp_ms: _mysten_sui_bcs601.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_bcs601.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
139
|
+
record_id: _mysten_sui_bcs601.BcsType<bigint, string | number | bigint, "u64">;
|
|
140
|
+
account_id: _mysten_sui_bcs601.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
141
|
+
order_id: _mysten_sui_bcs601.BcsType<bigint, string | number | bigint, "u256">;
|
|
142
|
+
payout: _mysten_sui_bcs601.BcsType<bigint, string | number | bigint, "u64">;
|
|
143
|
+
onchain_timestamp_ms: _mysten_sui_bcs601.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_bcs601.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
147
|
+
record_id: _mysten_sui_bcs601.BcsType<bigint, string | number | bigint, "u64">;
|
|
148
|
+
account_id: _mysten_sui_bcs601.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
149
|
+
order_id: _mysten_sui_bcs601.BcsType<bigint, string | number | bigint, "u256">;
|
|
150
|
+
payout: _mysten_sui_bcs601.BcsType<bigint, string | number | bigint, "u64">;
|
|
151
|
+
onchain_timestamp_ms: _mysten_sui_bcs601.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_bcs601.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
155
|
+
record_id: _mysten_sui_bcs601.BcsType<bigint, string | number | bigint, "u64">;
|
|
156
|
+
account_id: _mysten_sui_bcs601.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
157
|
+
receive_address: _mysten_sui_bcs601.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
158
|
+
amount: _mysten_sui_bcs601.BcsType<bigint, string | number | bigint, "u64">;
|
|
159
|
+
onchain_timestamp_ms: _mysten_sui_bcs601.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_bcs601.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
163
|
+
record_id: _mysten_sui_bcs601.BcsType<bigint, string | number | bigint, "u64">;
|
|
164
|
+
account_id: _mysten_sui_bcs601.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
165
|
+
receive_address: _mysten_sui_bcs601.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
166
|
+
amount: _mysten_sui_bcs601.BcsType<bigint, string | number | bigint, "u64">;
|
|
167
|
+
onchain_timestamp_ms: _mysten_sui_bcs601.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_bcs601.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
171
|
+
onchain_timestamp_ms: _mysten_sui_bcs601.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_bcs601.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_bcs601.BcsType<bigint, string | number | bigint, "u64">;
|
|
177
|
+
stall_timeout_ms: _mysten_sui_bcs601.BcsType<bigint, string | number | bigint, "u64">;
|
|
178
|
+
stuck_threshold_ms: _mysten_sui_bcs601.BcsType<bigint, string | number | bigint, "u64">;
|
|
179
|
+
gap_wait_ms: _mysten_sui_bcs601.BcsType<bigint, string | number | bigint, "u64">;
|
|
180
|
+
pyth_price_buffer_ms: _mysten_sui_bcs601.BcsType<bigint, string | number | bigint, "u64">;
|
|
181
|
+
pyth_channel: _mysten_sui_bcs601.BcsType<number, number, "u8">;
|
|
182
|
+
svi_max_age_ms: _mysten_sui_bcs601.BcsType<bigint, string | number | bigint, "u64">;
|
|
183
|
+
mint_capacity: _mysten_sui_bcs601.BcsType<bigint, string | number | bigint, "u64">;
|
|
184
|
+
sell_capacity: _mysten_sui_bcs601.BcsType<bigint, string | number | bigint, "u64">;
|
|
185
|
+
per_account_cap: _mysten_sui_bcs601.BcsType<bigint, string | number | bigint, "u64">;
|
|
186
|
+
order_fee: _mysten_sui_bcs601.BcsType<bigint, string | number | bigint, "u64">;
|
|
187
|
+
min_sell_quantity: _mysten_sui_bcs601.BcsType<bigint, string | number | bigint, "u64">;
|
|
188
|
+
settle_refund_batch: _mysten_sui_bcs601.BcsType<bigint, string | number | bigint, "u64">;
|
|
189
|
+
settle_payout_batch: _mysten_sui_bcs601.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_bcs601.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_bcs18 from "@mysten/sui/bcs";
|
|
3
|
+
import * as _mysten_sui_transactions95 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_bcs18.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
12
|
+
version_watermark: _mysten_sui_bcs18.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_bcs18.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_transactions95.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_transactions95.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_transactions95.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,0BAAA,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,0BAAA,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,0BAAA,CAAA,iBAAA"}
|