@mysten/deepbook-v3 2.7.0 → 2.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +46 -0
- package/PREDICT.md +15 -10
- 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 +80 -80
- 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 +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 +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 +28 -28
- 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/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/deployments/mainnet.mjs +7 -4
- package/dist/deployments/mainnet.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/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/marginLiquidations.d.mts +3 -3
- package/dist/transactions/marginMaintainer.d.mts +5 -5
- package/dist/transactions/marginMaintainer.d.mts.map +1 -1
- package/dist/transactions/marginManager.d.mts +32 -32
- package/dist/transactions/marginManager.d.mts.map +1 -1
- package/dist/transactions/marginPool.d.mts +18 -18
- package/dist/transactions/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/marginTPSL.d.mts.map +1 -1
- package/dist/transactions/poolProxy.d.mts +8 -8
- package/dist/transactions/poolProxy.d.mts.map +1 -1
- package/package.json +3 -3
- package/src/deployments/mainnet.ts +7 -2
- 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_bcs613 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_bcs613.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
10
|
+
record_id: _mysten_sui_bcs613.BcsType<bigint, string | number | bigint, "u64">;
|
|
11
|
+
account_id: _mysten_sui_bcs613.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">; /** An `order_queue` kind code. */
|
|
12
|
+
kind: _mysten_sui_bcs613.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_bcs613.BcsType<bigint, string | number | bigint, "u64">;
|
|
15
|
+
higher_tick: _mysten_sui_bcs613.BcsType<bigint, string | number | bigint, "u64">;
|
|
16
|
+
quantity: _mysten_sui_bcs613.BcsType<bigint, string | number | bigint, "u64">;
|
|
17
|
+
max_premium: _mysten_sui_bcs613.BcsType<bigint, string | number | bigint, "u64">;
|
|
18
|
+
min_quantity: _mysten_sui_bcs613.BcsType<bigint, string | number | bigint, "u64">;
|
|
19
|
+
max_cost: _mysten_sui_bcs613.BcsType<bigint, string | number | bigint, "u64">;
|
|
20
|
+
max_probability: _mysten_sui_bcs613.BcsType<bigint, string | number | bigint, "u64">;
|
|
21
|
+
min_probability: _mysten_sui_bcs613.BcsType<bigint, string | number | bigint, "u64">;
|
|
22
|
+
min_proceeds: _mysten_sui_bcs613.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_bcs613.BcsType<bigint, string | number | bigint, "u256">;
|
|
26
|
+
root_id: _mysten_sui_bcs613.BcsType<bigint, string | number | bigint, "u256">;
|
|
27
|
+
opened_at_ms: _mysten_sui_bcs613.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_bcs613.BcsType<bigint, string | number | bigint, "u64">;
|
|
31
|
+
earliest_price_ms: _mysten_sui_bcs613.BcsType<bigint, string | number | bigint, "u64">;
|
|
32
|
+
tau_ms: _mysten_sui_bcs613.BcsType<bigint, string | number | bigint, "u64">;
|
|
33
|
+
deadline_ms: _mysten_sui_bcs613.BcsType<bigint, string | number | bigint, "u64">;
|
|
34
|
+
cutoff_ms: _mysten_sui_bcs613.BcsType<bigint, string | number | bigint, "u64">;
|
|
35
|
+
pyth_channel: _mysten_sui_bcs613.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_bcs613.BcsType<number, number, "u32">;
|
|
39
|
+
bs_spot: _mysten_sui_bcs613.BcsType<bigint, string | number | bigint, "u64">;
|
|
40
|
+
bs_forward: _mysten_sui_bcs613.BcsType<bigint, string | number | bigint, "u64">;
|
|
41
41
|
svi_a: MoveStruct<{
|
|
42
|
-
magnitude:
|
|
43
|
-
is_negative:
|
|
42
|
+
magnitude: _mysten_sui_bcs613.BcsType<bigint, string | number | bigint, "u64">;
|
|
43
|
+
is_negative: _mysten_sui_bcs613.BcsType<boolean, boolean, "bool">;
|
|
44
44
|
}, "fixed_math::i64::I64">;
|
|
45
|
-
svi_b:
|
|
45
|
+
svi_b: _mysten_sui_bcs613.BcsType<bigint, string | number | bigint, "u64">;
|
|
46
46
|
svi_rho: MoveStruct<{
|
|
47
|
-
magnitude:
|
|
48
|
-
is_negative:
|
|
47
|
+
magnitude: _mysten_sui_bcs613.BcsType<bigint, string | number | bigint, "u64">;
|
|
48
|
+
is_negative: _mysten_sui_bcs613.BcsType<boolean, boolean, "bool">;
|
|
49
49
|
}, "fixed_math::i64::I64">;
|
|
50
50
|
svi_m: MoveStruct<{
|
|
51
|
-
magnitude:
|
|
52
|
-
is_negative:
|
|
51
|
+
magnitude: _mysten_sui_bcs613.BcsType<bigint, string | number | bigint, "u64">;
|
|
52
|
+
is_negative: _mysten_sui_bcs613.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_bcs613.BcsType<bigint, string | number | bigint, "u64">;
|
|
55
|
+
bs_spot_source_timestamp_ms: _mysten_sui_bcs613.BcsType<bigint, string | number | bigint, "u64">;
|
|
56
|
+
bs_forward_source_timestamp_ms: _mysten_sui_bcs613.BcsType<bigint, string | number | bigint, "u64">;
|
|
57
|
+
svi_source_timestamp_ms: _mysten_sui_bcs613.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_bcs613.BcsType<bigint, string | number | bigint, "u64">;
|
|
60
|
+
order_fee: _mysten_sui_bcs613.BcsType<bigint, string | number | bigint, "u64">; /** The order's worst-case cash need, added to the waiting total. */
|
|
61
|
+
cash_need: _mysten_sui_bcs613.BcsType<bigint, string | number | bigint, "u64">;
|
|
62
|
+
subsidy_bound: _mysten_sui_bcs613.BcsType<bigint, string | number | bigint, "u64">;
|
|
63
|
+
builder_code_id: _mysten_sui_bcs613.BcsType<string | null, string | Uint8Array<ArrayBufferLike> | null | undefined, "Option<bytes[32]>">;
|
|
64
|
+
referrer_account_id: _mysten_sui_bcs613.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_bcs613.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_bcs613.BcsType<bigint, string | number | bigint, "u64">;
|
|
67
|
+
required_cash: _mysten_sui_bcs613.BcsType<bigint, string | number | bigint, "u64">;
|
|
68
|
+
waiting_cash_need: _mysten_sui_bcs613.BcsType<bigint, string | number | bigint, "u64">;
|
|
69
|
+
onchain_timestamp_ms: _mysten_sui_bcs613.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_bcs613.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
73
|
+
tau_ms: _mysten_sui_bcs613.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_bcs613.BcsType<bigint, string | number | bigint, "u64">;
|
|
75
|
+
first_record_id: _mysten_sui_bcs613.BcsType<bigint, string | number | bigint, "u64">;
|
|
76
|
+
last_record_id: _mysten_sui_bcs613.BcsType<bigint, string | number | bigint, "u64">; /** The committed price of the cohort's first order, normalized to 1e9. */
|
|
77
|
+
spot: _mysten_sui_bcs613.BcsType<bigint, string | number | bigint, "u64">; /** That price's own update time, in µs. */
|
|
78
|
+
generation_us: _mysten_sui_bcs613.BcsType<bigint, string | number | bigint, "u64">;
|
|
79
|
+
pyth_source_id: _mysten_sui_bcs613.BcsType<number, number, "u32">;
|
|
80
|
+
pyth_channel: _mysten_sui_bcs613.BcsType<number, number, "u8">; /** The transaction sender, so monitoring sees commits by third parties. */
|
|
81
|
+
sender: _mysten_sui_bcs613.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
82
|
+
onchain_timestamp_ms: _mysten_sui_bcs613.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_bcs613.BcsType<bigint, string | number | bigint, "u64">;
|
|
86
|
+
required_cash: _mysten_sui_bcs613.BcsType<bigint, string | number | bigint, "u64">;
|
|
87
|
+
waiting_cash_need: _mysten_sui_bcs613.BcsType<bigint, string | number | bigint, "u64">;
|
|
88
|
+
expiry_market_id: _mysten_sui_bcs613.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
89
|
+
record_id: _mysten_sui_bcs613.BcsType<bigint, string | number | bigint, "u64">;
|
|
90
|
+
account_id: _mysten_sui_bcs613.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
91
|
+
kind: _mysten_sui_bcs613.BcsType<number, number, "u8">; /** Filled quantity (mint) or closed quantity (sell). */
|
|
92
|
+
quantity: _mysten_sui_bcs613.BcsType<bigint, string | number | bigint, "u64">; /** Cost paid (mint) or proceeds (sell). */
|
|
93
|
+
amount: _mysten_sui_bcs613.BcsType<bigint, string | number | bigint, "u64">;
|
|
94
|
+
trading_fee: _mysten_sui_bcs613.BcsType<bigint, string | number | bigint, "u64">;
|
|
95
|
+
builder_fee: _mysten_sui_bcs613.BcsType<bigint, string | number | bigint, "u64">;
|
|
96
|
+
referral_fee: _mysten_sui_bcs613.BcsType<bigint, string | number | bigint, "u64">;
|
|
97
|
+
order_fee: _mysten_sui_bcs613.BcsType<bigint, string | number | bigint, "u64">; /** Reserved fee subsidy the fill used. */
|
|
98
|
+
subsidy_used: _mysten_sui_bcs613.BcsType<bigint, string | number | bigint, "u64">;
|
|
99
|
+
inventory_impact: _mysten_sui_bcs613.BcsType<bigint, string | number | bigint, "u64">;
|
|
100
|
+
tau_ms: _mysten_sui_bcs613.BcsType<bigint, string | number | bigint, "u64">;
|
|
101
|
+
tick_ms: _mysten_sui_bcs613.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_bcs613.BcsType<bigint, string | number | bigint, "u256">;
|
|
108
|
+
root_id: _mysten_sui_bcs613.BcsType<bigint, string | number | bigint, "u256">;
|
|
109
|
+
opened_at_ms: _mysten_sui_bcs613.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_bcs613.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
112
|
+
onchain_timestamp_ms: _mysten_sui_bcs613.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_bcs613.BcsType<bigint, string | number | bigint, "u64">;
|
|
116
|
+
required_cash: _mysten_sui_bcs613.BcsType<bigint, string | number | bigint, "u64">;
|
|
117
|
+
waiting_cash_need: _mysten_sui_bcs613.BcsType<bigint, string | number | bigint, "u64">;
|
|
118
|
+
expiry_market_id: _mysten_sui_bcs613.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
119
|
+
record_id: _mysten_sui_bcs613.BcsType<bigint, string | number | bigint, "u64">;
|
|
120
|
+
account_id: _mysten_sui_bcs613.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
121
|
+
kind: _mysten_sui_bcs613.BcsType<number, number, "u8">; /** An `order_queue` reason code. */
|
|
122
|
+
reason: _mysten_sui_bcs613.BcsType<number, number, "u8">;
|
|
123
|
+
escrow_returned: _mysten_sui_bcs613.BcsType<bigint, string | number | bigint, "u64">;
|
|
124
|
+
order_fee_returned: _mysten_sui_bcs613.BcsType<bigint, string | number | bigint, "u64">;
|
|
125
|
+
subsidy_returned: _mysten_sui_bcs613.BcsType<bigint, string | number | bigint, "u64">; /** True when a sell's record went back to Open holding its position. */
|
|
126
|
+
position_returned: _mysten_sui_bcs613.BcsType<boolean, boolean, "bool">;
|
|
127
|
+
sender: _mysten_sui_bcs613.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
128
|
+
onchain_timestamp_ms: _mysten_sui_bcs613.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_bcs613.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
132
|
+
record_ids: _mysten_sui_bcs613.BcsType<bigint[], Iterable<string | number | bigint> & {
|
|
133
133
|
length: number;
|
|
134
134
|
}, string>;
|
|
135
|
-
onchain_timestamp_ms:
|
|
135
|
+
onchain_timestamp_ms: _mysten_sui_bcs613.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_bcs613.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
139
|
+
record_id: _mysten_sui_bcs613.BcsType<bigint, string | number | bigint, "u64">;
|
|
140
|
+
account_id: _mysten_sui_bcs613.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
141
|
+
order_id: _mysten_sui_bcs613.BcsType<bigint, string | number | bigint, "u256">;
|
|
142
|
+
payout: _mysten_sui_bcs613.BcsType<bigint, string | number | bigint, "u64">;
|
|
143
|
+
onchain_timestamp_ms: _mysten_sui_bcs613.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_bcs613.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
147
|
+
record_id: _mysten_sui_bcs613.BcsType<bigint, string | number | bigint, "u64">;
|
|
148
|
+
account_id: _mysten_sui_bcs613.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
149
|
+
order_id: _mysten_sui_bcs613.BcsType<bigint, string | number | bigint, "u256">;
|
|
150
|
+
payout: _mysten_sui_bcs613.BcsType<bigint, string | number | bigint, "u64">;
|
|
151
|
+
onchain_timestamp_ms: _mysten_sui_bcs613.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_bcs613.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
155
|
+
record_id: _mysten_sui_bcs613.BcsType<bigint, string | number | bigint, "u64">;
|
|
156
|
+
account_id: _mysten_sui_bcs613.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
157
|
+
receive_address: _mysten_sui_bcs613.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
158
|
+
amount: _mysten_sui_bcs613.BcsType<bigint, string | number | bigint, "u64">;
|
|
159
|
+
onchain_timestamp_ms: _mysten_sui_bcs613.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_bcs613.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
163
|
+
record_id: _mysten_sui_bcs613.BcsType<bigint, string | number | bigint, "u64">;
|
|
164
|
+
account_id: _mysten_sui_bcs613.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
165
|
+
receive_address: _mysten_sui_bcs613.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
166
|
+
amount: _mysten_sui_bcs613.BcsType<bigint, string | number | bigint, "u64">;
|
|
167
|
+
onchain_timestamp_ms: _mysten_sui_bcs613.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_bcs613.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
171
|
+
onchain_timestamp_ms: _mysten_sui_bcs613.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_bcs613.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_bcs613.BcsType<bigint, string | number | bigint, "u64">;
|
|
177
|
+
stall_timeout_ms: _mysten_sui_bcs613.BcsType<bigint, string | number | bigint, "u64">;
|
|
178
|
+
stuck_threshold_ms: _mysten_sui_bcs613.BcsType<bigint, string | number | bigint, "u64">;
|
|
179
|
+
gap_wait_ms: _mysten_sui_bcs613.BcsType<bigint, string | number | bigint, "u64">;
|
|
180
|
+
pyth_price_buffer_ms: _mysten_sui_bcs613.BcsType<bigint, string | number | bigint, "u64">;
|
|
181
|
+
pyth_channel: _mysten_sui_bcs613.BcsType<number, number, "u8">;
|
|
182
|
+
svi_max_age_ms: _mysten_sui_bcs613.BcsType<bigint, string | number | bigint, "u64">;
|
|
183
|
+
mint_capacity: _mysten_sui_bcs613.BcsType<bigint, string | number | bigint, "u64">;
|
|
184
|
+
sell_capacity: _mysten_sui_bcs613.BcsType<bigint, string | number | bigint, "u64">;
|
|
185
|
+
per_account_cap: _mysten_sui_bcs613.BcsType<bigint, string | number | bigint, "u64">;
|
|
186
|
+
order_fee: _mysten_sui_bcs613.BcsType<bigint, string | number | bigint, "u64">;
|
|
187
|
+
min_sell_quantity: _mysten_sui_bcs613.BcsType<bigint, string | number | bigint, "u64">;
|
|
188
|
+
settle_refund_batch: _mysten_sui_bcs613.BcsType<bigint, string | number | bigint, "u64">;
|
|
189
|
+
settle_payout_batch: _mysten_sui_bcs613.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_bcs613.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 };
|
|
@@ -19,7 +19,7 @@ const MAINNET_ACCOUNT = Object.freeze({
|
|
|
19
19
|
* the package root for one id.
|
|
20
20
|
*/
|
|
21
21
|
const MAINNET_SESSIONS = Object.freeze({
|
|
22
|
-
sessionsPackageId: "
|
|
22
|
+
sessionsPackageId: "0xfd9ef53ca443517d6a3a4d8742e00eaa1e7f35b0997697caab8c3e62870c0ce5",
|
|
23
23
|
sessionsPackageIdV1: "0x9a068beffa019ae756f4a6d2611e9899d3c6dd888812dd9eca87535d2ac55e2a",
|
|
24
24
|
sessionsConfig: "0xb2fba483748aac7508676020d4e691d68239b66f8bf7c5e7634dd1a76a329317",
|
|
25
25
|
accountPackageId: "0x4e1dd01465713c9d832313fed5f45c222a4d5c62a533d6da96764c8b2a245d58",
|
|
@@ -43,10 +43,12 @@ const MAINNET_UNITS = Object.freeze({
|
|
|
43
43
|
const MAINNET_PREDICT = Object.freeze({
|
|
44
44
|
network: "mainnet",
|
|
45
45
|
packages: Object.freeze({
|
|
46
|
-
predict: "
|
|
46
|
+
predict: "0x98235c5842831c9b5f51dc637cf34c91db2aca5510802eb6ebfec63f5b71a7bb",
|
|
47
47
|
predictV1: "0x89aea622e7bb3bdd598bde87dde40ee31c9eed4971b9546e23ec83de3c48bbba",
|
|
48
48
|
account: "0x4e1dd01465713c9d832313fed5f45c222a4d5c62a533d6da96764c8b2a245d58",
|
|
49
|
-
propbook: "0xa6c8f32015b5b41d34ee09995a2e9d7a21cdecf0e1910a50b264fd252cd33831"
|
|
49
|
+
propbook: "0xa6c8f32015b5b41d34ee09995a2e9d7a21cdecf0e1910a50b264fd252cd33831",
|
|
50
|
+
predictOrders: "0x7cd41de311f8f3efb2c239b38773a4010fce3bef0120cd55f479843077c98903",
|
|
51
|
+
predictMath: "0x19262d18a3ce9f1c304defbacc89f36585152acde73e626231200d10617fb9a7"
|
|
50
52
|
}),
|
|
51
53
|
objects: Object.freeze({
|
|
52
54
|
registry: "0x94327dbc256a2cfabd164c2bf4b3fe033bfaa4771f7a6f716954e07cb1b4beba",
|
|
@@ -67,7 +69,8 @@ const MAINNET_PREDICT = Object.freeze({
|
|
|
67
69
|
pythFeed: "0x4c5d2b4c8238f04b7687c3a8df915b69c50d5f4d291fc49aea44bdb6b52e1a20",
|
|
68
70
|
blockScholesValueStore: "0xe83f843b15ae63045b2cea445fb8ea7ad85c5fc2a05f66db122a511e1f2c67bc",
|
|
69
71
|
blockScholesSviStore: "0xfdd447be39d847747caf18ecf3355031bb33979c472581f1a5481375d3748bfb"
|
|
70
|
-
}) })
|
|
72
|
+
}) }),
|
|
73
|
+
oracle: Object.freeze({ pythLazerState: "0xd0db9c1e9212a98120384bf78d8b8c985d87b9ee6921dffcf9d1394062911573" })
|
|
71
74
|
});
|
|
72
75
|
|
|
73
76
|
//#endregion
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mainnet.mjs","names":[],"sources":["../../src/deployments/mainnet.ts"],"sourcesContent":["// Copyright (c) Mysten Labs, Inc.\n// SPDX-License-Identifier: Apache-2.0\n\n// GENERATED by `pnpm sync-deployment` from the deploy tooling's own manifest\n// (`packages/predict/deployment/deployment.mainnet.json`) and the Predict/Sessions\n// `Published.toml` records for current call targets and original type IDs. Do not hand-edit:\n// the next regeneration overwrites it, and a hand-patched id is exactly the drift this\n// file exists to prevent. To move to a new deployment, check the sibling deepbookv3\n// checkout out to the new anchor and re-run the script.\n//\n// Deployment: deepbook-predict-mainnet\n// sourceCommit: 7b169bde2c2a25fee3ac9aa4686e346309bfe570\n//\n// Runtime-dependency-free — every subpath reads a slice of this, so a value import here\n// would pull that module into all of their graphs. The type import below is erased.\n//\n// Frozen: these are shared module singletons, so an accessor handing one to a caller who\n// mutates it would change what every other caller sees.\n\nimport type {\n\tAccountIds,\n\tDeploymentInfo,\n\tDeploymentUnits,\n\tPredictIds,\n\tSessionsIds,\n} from './types.js';\n\n/** Which on-chain deployment the ids below came from. */\nexport const MAINNET_DEPLOYMENT: DeploymentInfo = Object.freeze({\n\tdeployment: 'deepbook-predict-mainnet',\n\tnetwork: 'mainnet',\n\tchainId: '35834a8a',\n\tsourceCommit: '7b169bde2c2a25fee3ac9aa4686e346309bfe570',\n});\n\n/** Ids for the shared `account` primitive — the `/account` subpath's slice. */\nexport const MAINNET_ACCOUNT: AccountIds = Object.freeze({\n\taccountPackageId: '0x4e1dd01465713c9d832313fed5f45c222a4d5c62a533d6da96764c8b2a245d58',\n\taccountRegistry: '0x8c52c6f5b2374e33f4a726d9c32337b1aee3a71410d41c18faa91d938d66e4bc',\n});\n\n/**\n * Ids for time-limited sessions — the `/sessions` subpath's slice.\n *\n * `deepbookRegistry` is only needed by the DeepBook **spot** session wrappers; the Predict\n * wrappers never take it. It is carried here so a spot caller does not have to reach into\n * the package root for one id.\n */\nexport const MAINNET_SESSIONS: SessionsIds = Object.freeze({\n\tsessionsPackageId: '
|
|
1
|
+
{"version":3,"file":"mainnet.mjs","names":[],"sources":["../../src/deployments/mainnet.ts"],"sourcesContent":["// Copyright (c) Mysten Labs, Inc.\n// SPDX-License-Identifier: Apache-2.0\n\n// GENERATED by `pnpm sync-deployment` from the deploy tooling's own manifest\n// (`packages/predict/deployment/deployment.mainnet.json`) and the Predict/Sessions\n// `Published.toml` records for current call targets and original type IDs. Do not hand-edit:\n// the next regeneration overwrites it, and a hand-patched id is exactly the drift this\n// file exists to prevent. To move to a new deployment, check the sibling deepbookv3\n// checkout out to the new anchor and re-run the script.\n//\n// Deployment: deepbook-predict-mainnet\n// sourceCommit: 7b169bde2c2a25fee3ac9aa4686e346309bfe570\n//\n// Runtime-dependency-free — every subpath reads a slice of this, so a value import here\n// would pull that module into all of their graphs. The type import below is erased.\n//\n// Frozen: these are shared module singletons, so an accessor handing one to a caller who\n// mutates it would change what every other caller sees.\n\nimport type {\n\tAccountIds,\n\tDeploymentInfo,\n\tDeploymentUnits,\n\tPredictIds,\n\tSessionsIds,\n} from './types.js';\n\n/** Which on-chain deployment the ids below came from. */\nexport const MAINNET_DEPLOYMENT: DeploymentInfo = Object.freeze({\n\tdeployment: 'deepbook-predict-mainnet',\n\tnetwork: 'mainnet',\n\tchainId: '35834a8a',\n\tsourceCommit: '7b169bde2c2a25fee3ac9aa4686e346309bfe570',\n});\n\n/** Ids for the shared `account` primitive — the `/account` subpath's slice. */\nexport const MAINNET_ACCOUNT: AccountIds = Object.freeze({\n\taccountPackageId: '0x4e1dd01465713c9d832313fed5f45c222a4d5c62a533d6da96764c8b2a245d58',\n\taccountRegistry: '0x8c52c6f5b2374e33f4a726d9c32337b1aee3a71410d41c18faa91d938d66e4bc',\n});\n\n/**\n * Ids for time-limited sessions — the `/sessions` subpath's slice.\n *\n * `deepbookRegistry` is only needed by the DeepBook **spot** session wrappers; the Predict\n * wrappers never take it. It is carried here so a spot caller does not have to reach into\n * the package root for one id.\n */\nexport const MAINNET_SESSIONS: SessionsIds = Object.freeze({\n\tsessionsPackageId: '0xfd9ef53ca443517d6a3a4d8742e00eaa1e7f35b0997697caab8c3e62870c0ce5',\n\tsessionsPackageIdV1: '0x9a068beffa019ae756f4a6d2611e9899d3c6dd888812dd9eca87535d2ac55e2a',\n\tsessionsConfig: '0xb2fba483748aac7508676020d4e691d68239b66f8bf7c5e7634dd1a76a329317',\n\taccountPackageId: '0x4e1dd01465713c9d832313fed5f45c222a4d5c62a533d6da96764c8b2a245d58',\n\taccountRegistry: '0x8c52c6f5b2374e33f4a726d9c32337b1aee3a71410d41c18faa91d938d66e4bc',\n\tdeepbookRegistry: '0xaf16199a2dff736e9f07a845f23c5da6df6f756eddb631aed9d24a93efc4549d',\n\tdeepbookCoreAccountPackageId:\n\t\t'0xd71b5a341dc8dc7e187517849edf61e54670b60fe496e07186c09a65fa7afdb7',\n\t/** Required by every Predict session wrapper — they all take `config: &ProtocolConfig`. */\n\tprotocolConfig: '0x5fa6efbe7691809565a660adde23f0c184ca1d19cefafa4e1c88d655fe279580',\n});\n\n/**\n * Scale constants the deployment owns rather than the SDK. Deployment-wide:\n * `quoteCoinDecimals` and `fixedPointScale` apply to any subpath formatting a custody\n * balance, not just Predict.\n */\nexport const MAINNET_UNITS: DeploymentUnits = Object.freeze({\n\tpositionLotSize: 10000,\n\tfixedPointScale: 1000000000,\n\tquoteCoinDecimals: 6,\n\tpositionQuantityDecimals: 6,\n});\n\n/** Ids for DeepBook Predict — the `/predict` subpath's slice. */\nexport const MAINNET_PREDICT: PredictIds = Object.freeze({\n\tnetwork: 'mainnet',\n\tpackages: Object.freeze({\n\t\tpredict: '0x98235c5842831c9b5f51dc637cf34c91db2aca5510802eb6ebfec63f5b71a7bb',\n\t\tpredictV1: '0x89aea622e7bb3bdd598bde87dde40ee31c9eed4971b9546e23ec83de3c48bbba',\n\t\taccount: '0x4e1dd01465713c9d832313fed5f45c222a4d5c62a533d6da96764c8b2a245d58',\n\t\tpropbook: '0xa6c8f32015b5b41d34ee09995a2e9d7a21cdecf0e1910a50b264fd252cd33831',\n\t\tpredictOrders: '0x7cd41de311f8f3efb2c239b38773a4010fce3bef0120cd55f479843077c98903',\n\t\tpredictMath: '0x19262d18a3ce9f1c304defbacc89f36585152acde73e626231200d10617fb9a7',\n\t}),\n\tobjects: Object.freeze({\n\t\tregistry: '0x94327dbc256a2cfabd164c2bf4b3fe033bfaa4771f7a6f716954e07cb1b4beba',\n\t\tprotocolConfig: '0x5fa6efbe7691809565a660adde23f0c184ca1d19cefafa4e1c88d655fe279580',\n\t\tpoolVault: '0x4d227a1baf8cfcaf6e652a9182d0e63f85f9ce82cd542fdf3356bb3581be3b99',\n\t\toracleRegistry: '0x5d62c0d9be43efa769a708ade53fbe5bea98c15c865b64ca7c498c87b045a698',\n\t\taccountRegistry: '0x8c52c6f5b2374e33f4a726d9c32337b1aee3a71410d41c18faa91d938d66e4bc',\n\t}),\n\tquoteCoinType: '0xdba34672e30cb065b1f93e3ab55318768fd6fef66c15942c9f7cb846e2f900e7::usdc::USDC',\n\t/**\n\t * `plp` is the LP share coin type. It is NOT derivable from `packages.predict`: a Move\n\t * type tag keeps the ORIGINAL package id across an upgrade, while `packages.predict`\n\t * moves to the latest. They agree only while predict is at v1.\n\t */\n\tcoinTypes: Object.freeze({\n\t\tplp: '0x89aea622e7bb3bdd598bde87dde40ee31c9eed4971b9546e23ec83de3c48bbba::plp::PLP',\n\t\tdeep: '0xdeeb7a4662eec9f2f3def03fb937a663dddaa2e215b8078a284d026b7946c270::deep::DEEP',\n\t}),\n\tunits: MAINNET_UNITS,\n\tunderlyings: Object.freeze({\n\t\tBTC: Object.freeze({\n\t\t\tsymbol: 'BTC',\n\t\t\tpropbookUnderlyingId: 1,\n\t\t\tpythFeed: '0x4c5d2b4c8238f04b7687c3a8df915b69c50d5f4d291fc49aea44bdb6b52e1a20',\n\t\t\tblockScholesValueStore: '0xe83f843b15ae63045b2cea445fb8ea7ad85c5fc2a05f66db122a511e1f2c67bc',\n\t\t\tblockScholesSviStore: '0xfdd447be39d847747caf18ecf3355031bb33979c472581f1a5481375d3748bfb',\n\t\t}),\n\t}),\n\toracle: Object.freeze({\n\t\tpythLazerState: '0xd0db9c1e9212a98120384bf78d8b8c985d87b9ee6921dffcf9d1394062911573',\n\t}),\n});\n"],"mappings":";;AA4BA,MAAa,qBAAqC,OAAO,OAAO;CAC/D,YAAY;CACZ,SAAS;CACT,SAAS;CACT,cAAc;CACd,CAAC;;AAGF,MAAa,kBAA8B,OAAO,OAAO;CACxD,kBAAkB;CAClB,iBAAiB;CACjB,CAAC;;;;;;;;AASF,MAAa,mBAAgC,OAAO,OAAO;CAC1D,mBAAmB;CACnB,qBAAqB;CACrB,gBAAgB;CAChB,kBAAkB;CAClB,iBAAiB;CACjB,kBAAkB;CAClB,8BACC;CAED,gBAAgB;CAChB,CAAC;;;;;;AAOF,MAAa,gBAAiC,OAAO,OAAO;CAC3D,iBAAiB;CACjB,iBAAiB;CACjB,mBAAmB;CACnB,0BAA0B;CAC1B,CAAC;;AAGF,MAAa,kBAA8B,OAAO,OAAO;CACxD,SAAS;CACT,UAAU,OAAO,OAAO;EACvB,SAAS;EACT,WAAW;EACX,SAAS;EACT,UAAU;EACV,eAAe;EACf,aAAa;EACb,CAAC;CACF,SAAS,OAAO,OAAO;EACtB,UAAU;EACV,gBAAgB;EAChB,WAAW;EACX,gBAAgB;EAChB,iBAAiB;EACjB,CAAC;CACF,eAAe;CAMf,WAAW,OAAO,OAAO;EACxB,KAAK;EACL,MAAM;EACN,CAAC;CACF,OAAO;CACP,aAAa,OAAO,OAAO,EAC1B,KAAK,OAAO,OAAO;EAClB,QAAQ;EACR,sBAAsB;EACtB,UAAU;EACV,wBAAwB;EACxB,sBAAsB;EACtB,CAAC,EACF,CAAC;CACF,QAAQ,OAAO,OAAO,EACrB,gBAAgB,sEAChB,CAAC;CACF,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { RawTransactionArgument } from "../../contracts/utils/index.mjs";
|
|
2
2
|
import { AdmissionTickSizeArguments, AdmissionTickSizeOptions, AdmitMintArguments, AdmitMintOptions, AdmitSellArguments, AdmitSellOptions, AllInCostArguments, AllInCostOptions, BackingBufferLambdaArguments, BackingBufferLambdaOptions, BuilderFeeArguments, BuilderFeeOptions, CashBalanceArguments, CashBalanceOptions, CommitArguments, CommitOptions, CurrentNavArguments, CurrentNavOptions, EntryProbabilityArguments, EntryProbabilityOptions, ExpiryArguments, ExpiryFeeMaxMultiplierArguments, ExpiryFeeMaxMultiplierOptions, ExpiryFeeWindowMsArguments, ExpiryFeeWindowMsOptions, ExpiryMarket, ExpiryOptions, FeeIncentiveBalanceArguments, FeeIncentiveBalanceOptions, FeeIncentiveSubsidyArguments, FeeIncentiveSubsidyOptions, IdArguments, IdOptions, InventoryImpactChargeArguments, InventoryImpactChargeOptions, InventoryImpactMaxRateArguments, InventoryImpactMaxRateOptions, InventoryImpactReserveArguments, InventoryImpactReserveOptions, InventoryImpactScaleArguments, InventoryImpactScaleOptions, IsPendingValuationArguments, IsPendingValuationOptions, IsSettledArguments, IsSettledOptions, LiveOrderValueArguments, LiveOrderValueOptions, LoadLivePricerArguments, LoadLivePricerOptions, MintExactAmountOptions as MintExactAmountOptions$1, MintExactCostOptions as MintExactCostOptions$1, MintExactQuantityOptions as MintExactQuantityOptions$1, MintPausedArguments, MintPausedOptions, MintQuote, OrderFlowLedger, OrderFlowLedgerKey, OrderFlowStateArguments, OrderFlowStateOptions, OrderParties, OrderReceipt, PayoutLiabilityArguments, PayoutLiabilityOptions, PenaltyFeeArguments, PenaltyFeeOptions, PremiumArguments, PremiumOptions, PropbookUnderlyingIdArguments, PropbookUnderlyingIdOptions, QuantityArguments, QuantityOptions, QuoteCloseArguments, QuoteCloseOptions, QuoteMintArguments, QuoteMintExactCostForAccountArguments, QuoteMintExactCostForAccountOptions, QuoteMintForAccountArguments, QuoteMintForAccountOptions, QuoteMintOptions, ReceiptInfoArguments, ReceiptInfoOptions, RedeemBuilderFeeArguments, RedeemBuilderFeeOptions, RedeemCloseQuantityArguments, RedeemCloseQuantityOptions, RedeemInventoryImpactRebateArguments, RedeemInventoryImpactRebateOptions, RedeemLiveOptions as RedeemLiveOptions$1, RedeemProbabilityArguments, RedeemProbabilityOptions, RedeemProceedsArguments, RedeemProceedsOptions, RedeemQuote, RedeemSettledArguments, RedeemSettledOptions, RedeemSettledPermissionlessArguments, RedeemSettledPermissionlessOptions, RedeemTradingFeeArguments, RedeemTradingFeeOptions, ReferenceTickArguments, ReferenceTickOptions, ReferenceTickSourceTimestampMsArguments, ReferenceTickSourceTimestampMsOptions, ReleaseArguments, ReleaseOptions, RequiredCashArguments, RequiredCashOptions, SetMintPausedArguments, SetMintPausedOptions, SetReferenceTickArguments, SetReferenceTickOptions, SettledOrderPayoutArguments, SettledOrderPayoutOptions, SettlementPriceArguments, SettlementPriceOptions, TickSizeArguments, TickSizeOptions, TradingFeeArguments, TradingFeeOptions, TryFillArguments, TryFillOptions, TryPaySettledArguments, TryPaySettledOptions, TrySettleArguments, TrySettleOptions, TrySettlementPriceArguments, TrySettlementPriceOptions, ValuationStamp, admissionTickSize, admitMint, admitSell, allInCost, backingBufferLambda, builderFee, cashBalance, commit, currentNav, entryProbability, expiry, expiryFeeMaxMultiplier, expiryFeeWindowMs, feeIncentiveBalance, feeIncentiveSubsidy, id, inventoryImpactCharge, inventoryImpactMaxRate, inventoryImpactReserve, inventoryImpactScale, isPendingValuation, isSettled, liveOrderValue, loadLivePricer, mintPaused, orderFlowState, payoutLiability, penaltyFee, premium, propbookUnderlyingId, quantity, quoteClose, quoteMint, quoteMintExactCostForAccount, quoteMintForAccount, receiptInfo, redeemBuilderFee, redeemCloseQuantity, redeemInventoryImpactRebate, redeemProbability, redeemProceeds, redeemSettled, redeemSettledPermissionless, redeemTradingFee, referenceTick, referenceTickSourceTimestampMs, release, requiredCash, setMintPaused, setReferenceTick, settledOrderPayout, settlementPrice, tickSize, tradingFee, tryFill, tryPaySettled, trySettle, trySettlementPrice } from "../../contracts/deepbook_predict/expiry_market.mjs";
|
|
3
|
-
import * as
|
|
3
|
+
import * as _mysten_sui_transactions152 from "@mysten/sui/transactions";
|
|
4
4
|
import { TransactionArgument } from "@mysten/sui/transactions";
|
|
5
5
|
|
|
6
6
|
//#region src/predict/bindings/expiry-market.d.ts
|
|
@@ -28,7 +28,7 @@ interface MintExactQuantityOptions extends Omit<MintExactQuantityOptions$1, 'arg
|
|
|
28
28
|
* @deprecated Retired by delayed execution: Predict v4 always aborts it
|
|
29
29
|
* (`EDelayedExecutionRequired`). Queue mints through the order-flow package.
|
|
30
30
|
*/
|
|
31
|
-
declare function mintExactQuantity(options: MintExactQuantityOptions): (tx:
|
|
31
|
+
declare function mintExactQuantity(options: MintExactQuantityOptions): (tx: _mysten_sui_transactions152.Transaction) => _mysten_sui_transactions152.TransactionResult;
|
|
32
32
|
interface MintExactAmountArguments extends TradeTarget {
|
|
33
33
|
lowerTick: RawTransactionArgument<number | bigint>;
|
|
34
34
|
higherTick: RawTransactionArgument<number | bigint>;
|
|
@@ -43,7 +43,7 @@ interface MintExactAmountOptions extends Omit<MintExactAmountOptions$1, 'argumen
|
|
|
43
43
|
* @deprecated Retired by delayed execution: Predict v4 always aborts it
|
|
44
44
|
* (`EDelayedExecutionRequired`). Queue mints through the order-flow package.
|
|
45
45
|
*/
|
|
46
|
-
declare function mintExactAmount(options: MintExactAmountOptions): (tx:
|
|
46
|
+
declare function mintExactAmount(options: MintExactAmountOptions): (tx: _mysten_sui_transactions152.Transaction) => _mysten_sui_transactions152.TransactionResult;
|
|
47
47
|
interface MintExactCostArguments extends TradeTarget {
|
|
48
48
|
lowerTick: RawTransactionArgument<number | bigint>;
|
|
49
49
|
higherTick: RawTransactionArgument<number | bigint>;
|
|
@@ -57,7 +57,7 @@ interface MintExactCostOptions extends Omit<MintExactCostOptions$1, 'arguments'>
|
|
|
57
57
|
* @deprecated Retired by delayed execution: Predict v4 always aborts it
|
|
58
58
|
* (`EDelayedExecutionRequired`). Queue mints through the order-flow package.
|
|
59
59
|
*/
|
|
60
|
-
declare function mintExactCost(options: MintExactCostOptions): (tx:
|
|
60
|
+
declare function mintExactCost(options: MintExactCostOptions): (tx: _mysten_sui_transactions152.Transaction) => _mysten_sui_transactions152.TransactionResult;
|
|
61
61
|
interface RedeemLiveArguments extends TradeTarget {
|
|
62
62
|
orderId: RawTransactionArgument<number | bigint>;
|
|
63
63
|
closeQuantity: RawTransactionArgument<number | bigint>;
|
|
@@ -71,7 +71,7 @@ interface RedeemLiveOptions extends Omit<RedeemLiveOptions$1, 'arguments'> {
|
|
|
71
71
|
* @deprecated Retired by delayed execution: Predict v4 always aborts it
|
|
72
72
|
* (`EDelayedExecutionRequired`). Sell an Open record through the order-flow package.
|
|
73
73
|
*/
|
|
74
|
-
declare function redeemLive(options: RedeemLiveOptions): (tx:
|
|
74
|
+
declare function redeemLive(options: RedeemLiveOptions): (tx: _mysten_sui_transactions152.Transaction) => _mysten_sui_transactions152.TransactionResult;
|
|
75
75
|
//#endregion
|
|
76
76
|
export { expiry_market_d_exports };
|
|
77
77
|
//# sourceMappingURL=expiry-market.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"expiry-market.d.mts","names":[],"sources":["../../../src/predict/bindings/expiry-market.ts"],"mappings":";;;;;;;;;UAgCU,WAAA;EACT,MAAA,EAAQ,sBAAA;EACR,OAAA,EAAS,sBAAA;EACT,IAAA,EAAM,mBAAA;EACN,MAAA,GAAS,sBAAA;EACT,MAAA,EAAQ,mBAAA;AAAA;AAAA,UAGQ,0BAAA,SAAmC,WAAA;EACnD,SAAA,EAAW,sBAAA;EACX,UAAA,EAAY,sBAAA;EACZ,QAAA,EAAU,sBAAA;EACV,OAAA,EAAS,sBAAA;EACT,cAAA,EAAgB,sBAAA;AAAA;AAAA,UAEA,wBAAA,SAAiC,IAAA,CACjD,0BAAA;EAGA,SAAA,EAAW,0BAAA;AAAA;;;;;iBAMI,iBAAA,CAAkB,OAAA,EAAS,wBAAA,IAAwB,EAAA,EAAA,
|
|
1
|
+
{"version":3,"file":"expiry-market.d.mts","names":[],"sources":["../../../src/predict/bindings/expiry-market.ts"],"mappings":";;;;;;;;;UAgCU,WAAA;EACT,MAAA,EAAQ,sBAAA;EACR,OAAA,EAAS,sBAAA;EACT,IAAA,EAAM,mBAAA;EACN,MAAA,GAAS,sBAAA;EACT,MAAA,EAAQ,mBAAA;AAAA;AAAA,UAGQ,0BAAA,SAAmC,WAAA;EACnD,SAAA,EAAW,sBAAA;EACX,UAAA,EAAY,sBAAA;EACZ,QAAA,EAAU,sBAAA;EACV,OAAA,EAAS,sBAAA;EACT,cAAA,EAAgB,sBAAA;AAAA;AAAA,UAEA,wBAAA,SAAiC,IAAA,CACjD,0BAAA;EAGA,SAAA,EAAW,0BAAA;AAAA;;;;;iBAMI,iBAAA,CAAkB,OAAA,EAAS,wBAAA,IAAwB,EAAA,EAAA,2BAAA,CAAA,WAAA,KAAA,2BAAA,CAAA,iBAAA;AAAA,UAOlD,wBAAA,SAAiC,WAAA;EACjD,SAAA,EAAW,sBAAA;EACX,UAAA,EAAY,sBAAA;EACZ,UAAA,EAAY,sBAAA;EACZ,WAAA,EAAa,sBAAA;EACb,OAAA,EAAS,sBAAA;AAAA;AAAA,UAEO,sBAAA,SAA+B,IAAA,CAC/C,wBAAA;EAGA,SAAA,EAAW,wBAAA;AAAA;;;;;iBAMI,eAAA,CAAgB,OAAA,EAAS,sBAAA,IAAsB,EAAA,EAAA,2BAAA,CAAA,WAAA,KAAA,2BAAA,CAAA,iBAAA;AAAA,UAO9C,sBAAA,SAA+B,WAAA;EAC/C,SAAA,EAAW,sBAAA;EACX,UAAA,EAAY,sBAAA;EACZ,OAAA,EAAS,sBAAA;EACT,WAAA,EAAa,sBAAA;AAAA;AAAA,UAEG,oBAAA,SAA6B,IAAA,CAAK,sBAAA;EAClD,SAAA,EAAW,sBAAA;AAAA;;;;;iBAMI,aAAA,CAAc,OAAA,EAAS,oBAAA,IAAoB,EAAA,EAAA,2BAAA,CAAA,WAAA,KAAA,2BAAA,CAAA,iBAAA;AAAA,UAO1C,mBAAA,SAA4B,WAAA;EAC5C,OAAA,EAAS,sBAAA;EACT,aAAA,EAAe,sBAAA;EACf,cAAA,EAAgB,sBAAA;EAChB,WAAA,EAAa,sBAAA;AAAA;AAAA,UAEG,iBAAA,SAA0B,IAAA,CAAK,mBAAA;EAC/C,SAAA,EAAW,mBAAA;AAAA;;;;;iBAMI,UAAA,CAAW,OAAA,EAAS,iBAAA,IAAiB,EAAA,EAAA,2BAAA,CAAA,WAAA,KAAA,2BAAA,CAAA,iBAAA"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { RawTransactionArgument } from "../../contracts/utils/index.mjs";
|
|
2
2
|
import { AddFlushOperatorArguments, AddFlushOperatorOptions, AddSettledRedeemKeeperArguments, AddSettledRedeemKeeperOptions, BumpVersionWatermarkArguments, BumpVersionWatermarkOptions, FeeIncentiveLifetimeCapRateArguments, FeeIncentiveLifetimeCapRateKey, FeeIncentiveLifetimeCapRateOptions, FeeIncentiveLiveTargetRateArguments, FeeIncentiveLiveTargetRateKey, FeeIncentiveLiveTargetRateOptions, FeeIncentiveSubsidyRateArguments, FeeIncentiveSubsidyRateKey, FeeIncentiveSubsidyRateOptions, FlushOperatorsKey, FrozenArguments, FrozenOptions, IdArguments, IdOptions, IsFlushOperatorArguments, IsFlushOperatorOptions, IsOrderFlowArguments, IsOrderFlowOptions, NoTradeWindowMsArguments, NoTradeWindowMsOptions, OrderFlowKey, ProtocolConfig, ReferralFeeRateArguments, ReferralFeeRateOptions, RemoveFlushOperatorArguments, RemoveFlushOperatorOptions, RemoveSettledRedeemKeeperArguments, RemoveSettledRedeemKeeperOptions, SetBlockScholesPriceFreshnessMsArguments, SetBlockScholesPriceFreshnessMsOptions, SetBlockScholesSviFreshnessMsArguments, SetBlockScholesSviFreshnessMsOptions, SetEwmaEnabledOptions as SetEwmaEnabledOptions$1, SetEwmaParamsOptions as SetEwmaParamsOptions$1, SetFeeIncentiveLiveTargetRateArguments, SetFeeIncentiveLiveTargetRateOptions, SetFeeIncentiveSubsidyRateArguments, SetFeeIncentiveSubsidyRateOptions, SetFrozenArguments, SetFrozenOptions, SetLpRequestLimitFlushAttemptsArguments, SetLpRequestLimitFlushAttemptsOptions, SetMaxLpPoolValueArguments, SetMaxLpPoolValueOptions, SetMaxValuationWindowMsArguments, SetMaxValuationWindowMsOptions, SetNoTradeWindowMsArguments, SetNoTradeWindowMsOptions, SetOrderFlowArguments, SetOrderFlowOptions, SetPlpSupplyFeeRateArguments, SetPlpSupplyFeeRateOptions, SetPlpWithdrawFeeRateArguments, SetPlpWithdrawFeeRateOptions, SetProtocolReserveProfitShareArguments, SetProtocolReserveProfitShareOptions, SetPythSpotFreshnessMsArguments, SetPythSpotFreshnessMsOptions, SetReferralFeeRateArguments, SetReferralFeeRateOptions, SetTemplateBackingBufferLambdaArguments, SetTemplateBackingBufferLambdaOptions, SetTemplateBaseFeeArguments, SetTemplateBaseFeeOptions, SetTemplateExpiryFeeMaxMultiplierArguments, SetTemplateExpiryFeeMaxMultiplierOptions, SetTemplateExpiryFeeWindowMsArguments, SetTemplateExpiryFeeWindowMsOptions, SetTemplateFeeIncentiveLifetimeCapRateArguments, SetTemplateFeeIncentiveLifetimeCapRateOptions, SetTemplateInventoryImpactMaxRateArguments, SetTemplateInventoryImpactMaxRateOptions, SetTemplateMaxEntryProbabilityArguments, SetTemplateMaxEntryProbabilityOptions, SetTemplateMinEntryProbabilityArguments, SetTemplateMinEntryProbabilityOptions, SetTemplateMinFeeArguments, SetTemplateMinFeeOptions, SetTradingPausedArguments, SetTradingPausedOptions, SetUsePythSpotForForwardArguments, SetUsePythSpotForForwardOptions, SettledRedeemKeepersKey, TradingPausedArguments, TradingPausedOptions, ValuationInProgressArguments, ValuationInProgressOptions, VersionWatermarkArguments, VersionWatermarkOptions, addFlushOperator, addSettledRedeemKeeper, bumpVersionWatermark, feeIncentiveLifetimeCapRate, feeIncentiveLiveTargetRate, feeIncentiveSubsidyRate, frozen, id, isFlushOperator, isOrderFlow, noTradeWindowMs, referralFeeRate, removeFlushOperator, removeSettledRedeemKeeper, setBlockScholesPriceFreshnessMs, setBlockScholesSviFreshnessMs, setFeeIncentiveLiveTargetRate, setFeeIncentiveSubsidyRate, setFrozen, setLpRequestLimitFlushAttempts, setMaxLpPoolValue, setMaxValuationWindowMs, setNoTradeWindowMs, setOrderFlow, setPlpSupplyFeeRate, setPlpWithdrawFeeRate, setProtocolReserveProfitShare, setPythSpotFreshnessMs, setReferralFeeRate, setTemplateBackingBufferLambda, setTemplateBaseFee, setTemplateExpiryFeeMaxMultiplier, setTemplateExpiryFeeWindowMs, setTemplateFeeIncentiveLifetimeCapRate, setTemplateInventoryImpactMaxRate, setTemplateMaxEntryProbability, setTemplateMinEntryProbability, setTemplateMinFee, setTradingPaused, setUsePythSpotForForward, tradingPaused, valuationInProgress, versionWatermark } from "../../contracts/deepbook_predict/protocol_config.mjs";
|
|
3
|
-
import * as
|
|
3
|
+
import * as _mysten_sui_transactions162 from "@mysten/sui/transactions";
|
|
4
4
|
|
|
5
5
|
//#region src/predict/bindings/protocol-config.d.ts
|
|
6
6
|
declare namespace protocol_config_d_exports {
|
|
@@ -20,7 +20,7 @@ interface SetEwmaParamsOptions extends Omit<SetEwmaParamsOptions$1, 'arguments'>
|
|
|
20
20
|
* @deprecated Retired with instant trading: queued fills charge no congestion penalty, and
|
|
21
21
|
* Predict v4 always aborts it (`EEwmaRetired`).
|
|
22
22
|
*/
|
|
23
|
-
declare function setEwmaParams(options: SetEwmaParamsOptions): (tx:
|
|
23
|
+
declare function setEwmaParams(options: SetEwmaParamsOptions): (tx: _mysten_sui_transactions162.Transaction) => _mysten_sui_transactions162.TransactionResult;
|
|
24
24
|
interface SetEwmaEnabledArguments {
|
|
25
25
|
config?: RawTransactionArgument<string>;
|
|
26
26
|
AdminCap: RawTransactionArgument<string>;
|
|
@@ -33,7 +33,7 @@ interface SetEwmaEnabledOptions extends Omit<SetEwmaEnabledOptions$1, 'arguments
|
|
|
33
33
|
* @deprecated Retired with instant trading: queued fills charge no congestion penalty, and
|
|
34
34
|
* Predict v4 always aborts it (`EEwmaRetired`).
|
|
35
35
|
*/
|
|
36
|
-
declare function setEwmaEnabled(options: SetEwmaEnabledOptions): (tx:
|
|
36
|
+
declare function setEwmaEnabled(options: SetEwmaEnabledOptions): (tx: _mysten_sui_transactions162.Transaction) => _mysten_sui_transactions162.TransactionResult;
|
|
37
37
|
//#endregion
|
|
38
38
|
export { protocol_config_d_exports };
|
|
39
39
|
//# sourceMappingURL=protocol-config.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"protocol-config.d.mts","names":[],"sources":["../../../src/predict/bindings/protocol-config.ts"],"mappings":";;;;;;;;UAoBiB,sBAAA;EAChB,MAAA,GAAS,sBAAA;EACT,QAAA,EAAU,sBAAA;EACV,KAAA,EAAO,sBAAA;EACP,eAAA,EAAiB,sBAAA;EACjB,WAAA,EAAa,sBAAA;AAAA;AAAA,UAEG,oBAAA,SAA6B,IAAA,CAAK,sBAAA;EAClD,SAAA,EAAW,sBAAA;AAAA;;;;;iBAMI,aAAA,CAAc,OAAA,EAAS,oBAAA,IAAoB,EAAA,EAAA,
|
|
1
|
+
{"version":3,"file":"protocol-config.d.mts","names":[],"sources":["../../../src/predict/bindings/protocol-config.ts"],"mappings":";;;;;;;;UAoBiB,sBAAA;EAChB,MAAA,GAAS,sBAAA;EACT,QAAA,EAAU,sBAAA;EACV,KAAA,EAAO,sBAAA;EACP,eAAA,EAAiB,sBAAA;EACjB,WAAA,EAAa,sBAAA;AAAA;AAAA,UAEG,oBAAA,SAA6B,IAAA,CAAK,sBAAA;EAClD,SAAA,EAAW,sBAAA;AAAA;;;;;iBAMI,aAAA,CAAc,OAAA,EAAS,oBAAA,IAAoB,EAAA,EAAA,2BAAA,CAAA,WAAA,KAAA,2BAAA,CAAA,iBAAA;AAAA,UAO1C,uBAAA;EAChB,MAAA,GAAS,sBAAA;EACT,QAAA,EAAU,sBAAA;EACV,OAAA,EAAS,sBAAA;AAAA;AAAA,UAEO,qBAAA,SAA8B,IAAA,CAAK,uBAAA;EACnD,SAAA,EAAW,uBAAA;AAAA;;;;;iBAMI,cAAA,CAAe,OAAA,EAAS,qBAAA,IAAqB,EAAA,EAAA,2BAAA,CAAA,WAAA,KAAA,2BAAA,CAAA,iBAAA"}
|
|
@@ -13,12 +13,20 @@ import { MAINNET_PREDICT } from "../../deployments/mainnet.mjs";
|
|
|
13
13
|
*/
|
|
14
14
|
const MAINNET_CONFIG = Object.freeze({
|
|
15
15
|
network: "mainnet",
|
|
16
|
-
packages:
|
|
17
|
-
|
|
16
|
+
packages: Object.freeze({
|
|
17
|
+
...MAINNET_PREDICT.packages,
|
|
18
|
+
predictDelayedExecution: "0x98235c5842831c9b5f51dc637cf34c91db2aca5510802eb6ebfec63f5b71a7bb"
|
|
19
|
+
}),
|
|
20
|
+
objects: Object.freeze({
|
|
21
|
+
...MAINNET_PREDICT.objects,
|
|
22
|
+
orderDesk: "0x87b0a87262aacf58eaff567eed2fb7cb0f9cbc1f5ce33ef79216cd26d13a1b5b",
|
|
23
|
+
queueRegistry: "0x8d4f0c671862f065ac7f2c2cb24abc47cf75ed8fc8e5e52c1d4bdfa53eee164f"
|
|
24
|
+
}),
|
|
18
25
|
quoteCoinType: MAINNET_PREDICT.quoteCoinType,
|
|
19
26
|
coinTypes: MAINNET_PREDICT.coinTypes,
|
|
20
27
|
units: MAINNET_PREDICT.units,
|
|
21
|
-
underlyings: MAINNET_PREDICT.underlyings
|
|
28
|
+
underlyings: MAINNET_PREDICT.underlyings,
|
|
29
|
+
oracle: MAINNET_PREDICT.oracle
|
|
22
30
|
});
|
|
23
31
|
|
|
24
32
|
//#endregion
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mainnet.mjs","names":[],"sources":["../../../src/predict/config/mainnet.ts"],"sourcesContent":["// Copyright (c) Mysten Labs, Inc.\n// SPDX-License-Identifier: Apache-2.0\n\nimport { MAINNET_PREDICT } from '../../deployments/mainnet.js';\nimport type { PredictConfig } from './types.js';\n\n/**\n * Mainnet deployment constants, read from the shared generated record in\n * `src/deployments/` rather than transcribed here. `/account` and `/sessions` read slices of\n * that same record, so a redeploy (`pnpm sync-deployment`) moves every subpath together and\n * they cannot end up addressing different deployments.\n *\n * The record is generated from the deploy tooling's `deployment.mainnet.json`; see\n * `scripts/sync-deployment.ts`. `getDeployment('mainnet')` names the deployment and the\n * deepbookv3 commit these ids came from.\n */\nexport const MAINNET_CONFIG: PredictConfig = Object.freeze({\n\t// The record widens `network` to `string` so the published types don't pin a literal;\n\t// this file is the mainnet config by construction.\n\tnetwork: 'mainnet',\n\t//
|
|
1
|
+
{"version":3,"file":"mainnet.mjs","names":[],"sources":["../../../src/predict/config/mainnet.ts"],"sourcesContent":["// Copyright (c) Mysten Labs, Inc.\n// SPDX-License-Identifier: Apache-2.0\n\nimport { MAINNET_PREDICT } from '../../deployments/mainnet.js';\nimport type { PredictConfig } from './types.js';\n\n/**\n * Mainnet deployment constants, read from the shared generated record in\n * `src/deployments/` rather than transcribed here. `/account` and `/sessions` read slices of\n * that same record, so a redeploy (`pnpm sync-deployment`) moves every subpath together and\n * they cannot end up addressing different deployments.\n *\n * The record is generated from the deploy tooling's `deployment.mainnet.json`; see\n * `scripts/sync-deployment.ts`. `getDeployment('mainnet')` names the deployment and the\n * deepbookv3 commit these ids came from.\n */\nexport const MAINNET_CONFIG: PredictConfig = Object.freeze({\n\t// The record widens `network` to `string` so the published types don't pin a literal;\n\t// this file is the mainnet config by construction.\n\tnetwork: 'mainnet',\n\t// Delayed execution (DBU-885) is recorded on Mainnet. The generated record carries the package\n\t// IDs that move with upgrades (Predict, `deepbook_predict_orders`, `deepbook_predict_math`) and\n\t// the Lazer `State`. The three IDs pinned below are in no publication record and never move:\n\t// the Predict version that introduced delayed execution (Mainnet v4), which defines its new\n\t// types and events, and the `OrderDesk` and `QueueRegistry` that `deepbook_predict_orders`'s\n\t// `init` shared at publish.\n\tpackages: Object.freeze({\n\t\t...MAINNET_PREDICT.packages,\n\t\tpredictDelayedExecution: '0x98235c5842831c9b5f51dc637cf34c91db2aca5510802eb6ebfec63f5b71a7bb',\n\t}),\n\tobjects: Object.freeze({\n\t\t...MAINNET_PREDICT.objects,\n\t\torderDesk: '0x87b0a87262aacf58eaff567eed2fb7cb0f9cbc1f5ce33ef79216cd26d13a1b5b',\n\t\tqueueRegistry: '0x8d4f0c671862f065ac7f2c2cb24abc47cf75ed8fc8e5e52c1d4bdfa53eee164f',\n\t}),\n\tquoteCoinType: MAINNET_PREDICT.quoteCoinType,\n\tcoinTypes: MAINNET_PREDICT.coinTypes,\n\tunits: MAINNET_PREDICT.units,\n\tunderlyings: MAINNET_PREDICT.underlyings,\n\toracle: MAINNET_PREDICT.oracle,\n});\n"],"mappings":";;;;;;;;;;;;;AAgBA,MAAa,iBAAgC,OAAO,OAAO;CAG1D,SAAS;CAOT,UAAU,OAAO,OAAO;EACvB,GAAG,gBAAgB;EACnB,yBAAyB;EACzB,CAAC;CACF,SAAS,OAAO,OAAO;EACtB,GAAG,gBAAgB;EACnB,WAAW;EACX,eAAe;EACf,CAAC;CACF,eAAe,gBAAgB;CAC/B,WAAW,gBAAgB;CAC3B,OAAO,gBAAgB;CACvB,aAAa,gBAAgB;CAC7B,QAAQ,gBAAgB;CACxB,CAAC"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { PricerInputs } from "../pricing.mjs";
|
|
2
2
|
import "../config/generated.mjs";
|
|
3
3
|
import "../tx/trade.mjs";
|
|
4
|
-
import "./inspect.mjs";
|
|
5
4
|
|
|
6
5
|
//#region src/predict/reads/pricing.d.ts
|
|
7
6
|
/** A resolved pricer snapshot read from the chain: the decimal forward + rolled SVI the
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pricing.d.mts","names":[],"sources":["../../../src/predict/reads/pricing.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"pricing.d.mts","names":[],"sources":["../../../src/predict/reads/pricing.ts"],"mappings":";;;;;;AA2BA;;;;UAAiB,cAAA,SAAuB,YAAA;EACvC,OAAA;IACC,UAAA;IACA,kBAAA;IACA,qBAAA;IACA,iBAAA;EAAA;AAAA"}
|
|
@@ -2,7 +2,6 @@ import { DelayedExecutionPolicy, QueueHeads, QueuedOrder } from "../queue.mjs";
|
|
|
2
2
|
import { OrdersGeneratedConfig } from "../config/generated.mjs";
|
|
3
3
|
import "../tx/trade.mjs";
|
|
4
4
|
import "../tx/queue.mjs";
|
|
5
|
-
import "./inspect.mjs";
|
|
6
5
|
import { ClientWithCoreApi } from "@mysten/sui/client";
|
|
7
6
|
|
|
8
7
|
//#region src/predict/reads/queue.d.ts
|