@mysten/deepbook-v3 2.8.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 +10 -0
- 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/desk.d.mts.map +1 -1
- package/dist/contracts/deepbook_predict_orders/order_queue.d.mts +187 -187
- package/dist/contracts/deepbook_predict_orders/queue.d.mts +49 -49
- package/dist/contracts/deepbook_predict_orders/queue_events.d.mts +140 -140
- package/dist/contracts/deepbook_sessions/session_config.d.mts +8 -8
- package/dist/contracts/deepbook_sessions/session_config.d.mts.map +1 -1
- package/dist/contracts/deepbook_sessions/sessions.d.mts +27 -27
- package/dist/contracts/deepbook_sessions/sessions.d.mts.map +1 -1
- package/dist/deployments/testnet.mjs +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/bindings/protocol-config.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/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 +4 -4
- package/src/deployments/testnet.ts +5 -4
|
@@ -1,246 +1,246 @@
|
|
|
1
1
|
import { MoveStruct } from "../utils/index.mjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as _mysten_sui_bcs315 from "@mysten/sui/bcs";
|
|
3
3
|
|
|
4
4
|
//#region src/contracts/deepbook_predict/vault_events.d.ts
|
|
5
5
|
declare namespace vault_events_d_exports {
|
|
6
6
|
export { CapitalLocked, ExpiryCashRebalanced, ExpiryCashReceived, ExpiryPnl, ExpiryPnlRealized, ExpiryProfitMaterialized, FeeIncentiveLifetimeCapSnapshotted, FeeIncentivesAllocated, FeeIncentivesReturned, FeeIncentivesSponsored, FeeIncentivesWithdrawn, FlushExecuted, FlushRestarted, RequestCancelled, RequestLimitMissed, SupplyFilled, SupplyRequested, UsdcAddedToPlp, WithdrawFilled, WithdrawRequested };
|
|
7
7
|
}
|
|
8
8
|
declare const ExpiryCashReceived: MoveStruct<{
|
|
9
|
-
pool_vault_id:
|
|
10
|
-
expiry_market_id:
|
|
11
|
-
settlement_price:
|
|
12
|
-
amount:
|
|
9
|
+
pool_vault_id: _mysten_sui_bcs315.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
10
|
+
expiry_market_id: _mysten_sui_bcs315.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
11
|
+
settlement_price: _mysten_sui_bcs315.BcsType<bigint, string | number | bigint, "u64">;
|
|
12
|
+
amount: _mysten_sui_bcs315.BcsType<bigint, string | number | bigint, "u64">;
|
|
13
13
|
}, "@local-pkg/deepbook_predict::vault_events::ExpiryCashReceived">;
|
|
14
14
|
declare const ExpiryCashRebalanced: MoveStruct<{
|
|
15
|
-
pool_vault_id:
|
|
16
|
-
expiry_market_id:
|
|
17
|
-
amount:
|
|
18
|
-
to_expiry:
|
|
19
|
-
target_cash:
|
|
20
|
-
protocol_profit_realized:
|
|
15
|
+
pool_vault_id: _mysten_sui_bcs315.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
16
|
+
expiry_market_id: _mysten_sui_bcs315.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
17
|
+
amount: _mysten_sui_bcs315.BcsType<bigint, string | number | bigint, "u64">;
|
|
18
|
+
to_expiry: _mysten_sui_bcs315.BcsType<boolean, boolean, "bool">;
|
|
19
|
+
target_cash: _mysten_sui_bcs315.BcsType<bigint, string | number | bigint, "u64">;
|
|
20
|
+
protocol_profit_realized: _mysten_sui_bcs315.BcsType<bigint, string | number | bigint, "u64">;
|
|
21
21
|
}, "@local-pkg/deepbook_predict::vault_events::ExpiryCashRebalanced">;
|
|
22
22
|
declare const ExpiryProfitMaterialized: MoveStruct<{
|
|
23
|
-
pool_vault_id:
|
|
24
|
-
expiry_market_id:
|
|
25
|
-
lp_profit:
|
|
26
|
-
protocol_profit:
|
|
27
|
-
protocol_reserve_balance_after:
|
|
28
|
-
profit_basis_after:
|
|
29
|
-
pending_protocol_profit_after:
|
|
23
|
+
pool_vault_id: _mysten_sui_bcs315.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
24
|
+
expiry_market_id: _mysten_sui_bcs315.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
25
|
+
lp_profit: _mysten_sui_bcs315.BcsType<bigint, string | number | bigint, "u64">;
|
|
26
|
+
protocol_profit: _mysten_sui_bcs315.BcsType<bigint, string | number | bigint, "u64">;
|
|
27
|
+
protocol_reserve_balance_after: _mysten_sui_bcs315.BcsType<bigint, string | number | bigint, "u64">;
|
|
28
|
+
profit_basis_after: _mysten_sui_bcs315.BcsType<bigint, string | number | bigint, "u64">;
|
|
29
|
+
pending_protocol_profit_after: _mysten_sui_bcs315.BcsType<bigint, string | number | bigint, "u64">;
|
|
30
30
|
}, "@local-pkg/deepbook_predict::vault_events::ExpiryProfitMaterialized">;
|
|
31
31
|
declare const ExpiryPnl: MoveStruct<{
|
|
32
|
-
pool_vault_id:
|
|
33
|
-
expiry_market_id:
|
|
34
|
-
propbook_underlying_id:
|
|
32
|
+
pool_vault_id: _mysten_sui_bcs315.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
33
|
+
expiry_market_id: _mysten_sui_bcs315.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
34
|
+
propbook_underlying_id: _mysten_sui_bcs315.BcsType<number, number, "u32">;
|
|
35
35
|
/**
|
|
36
36
|
* Start of the market's cadence period (`expiry` minus the cadence period), in
|
|
37
37
|
* milliseconds. The market's creation transaction may land before it.
|
|
38
38
|
*/
|
|
39
|
-
period_start_ms:
|
|
40
|
-
expiry:
|
|
41
|
-
settlement_price:
|
|
42
|
-
sent_to_expiry:
|
|
43
|
-
received_from_expiry:
|
|
39
|
+
period_start_ms: _mysten_sui_bcs315.BcsType<bigint, string | number | bigint, "u64">;
|
|
40
|
+
expiry: _mysten_sui_bcs315.BcsType<bigint, string | number | bigint, "u64">;
|
|
41
|
+
settlement_price: _mysten_sui_bcs315.BcsType<bigint, string | number | bigint, "u64">;
|
|
42
|
+
sent_to_expiry: _mysten_sui_bcs315.BcsType<bigint, string | number | bigint, "u64">;
|
|
43
|
+
received_from_expiry: _mysten_sui_bcs315.BcsType<bigint, string | number | bigint, "u64">;
|
|
44
44
|
/**
|
|
45
45
|
* True when `received_from_expiry >= sent_to_expiry`; break-even reports a zero
|
|
46
46
|
* profit.
|
|
47
47
|
*/
|
|
48
|
-
in_profit:
|
|
49
|
-
amount:
|
|
48
|
+
in_profit: _mysten_sui_bcs315.BcsType<boolean, boolean, "bool">; /** Absolute difference between `received_from_expiry` and `sent_to_expiry`. */
|
|
49
|
+
amount: _mysten_sui_bcs315.BcsType<bigint, string | number | bigint, "u64">;
|
|
50
50
|
}, "@local-pkg/deepbook_predict::vault_events::ExpiryPnl">;
|
|
51
51
|
declare const ExpiryPnlRealized: MoveStruct<{
|
|
52
|
-
pool_vault_id:
|
|
53
|
-
expiry_market_id:
|
|
54
|
-
propbook_underlying_id:
|
|
55
|
-
expiry:
|
|
56
|
-
settlement_price:
|
|
57
|
-
in_profit:
|
|
52
|
+
pool_vault_id: _mysten_sui_bcs315.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
53
|
+
expiry_market_id: _mysten_sui_bcs315.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
54
|
+
propbook_underlying_id: _mysten_sui_bcs315.BcsType<number, number, "u32">;
|
|
55
|
+
expiry: _mysten_sui_bcs315.BcsType<bigint, string | number | bigint, "u64">;
|
|
56
|
+
settlement_price: _mysten_sui_bcs315.BcsType<bigint, string | number | bigint, "u64">; /** False only for a loss, which only an expiry's first emission can report. */
|
|
57
|
+
in_profit: _mysten_sui_bcs315.BcsType<boolean, boolean, "bool">;
|
|
58
58
|
/**
|
|
59
59
|
* Magnitude of the change in the gross realized result since the previous
|
|
60
60
|
* emission.
|
|
61
61
|
*/
|
|
62
|
-
amount:
|
|
62
|
+
amount: _mysten_sui_bcs315.BcsType<bigint, string | number | bigint, "u64">;
|
|
63
63
|
}, "@local-pkg/deepbook_predict::vault_events::ExpiryPnlRealized">;
|
|
64
64
|
declare const SupplyRequested: MoveStruct<{
|
|
65
|
-
pool_vault_id:
|
|
66
|
-
account_id:
|
|
67
|
-
recipient:
|
|
68
|
-
index:
|
|
69
|
-
amount:
|
|
70
|
-
min_plp_out:
|
|
71
|
-
requests_pending_after:
|
|
65
|
+
pool_vault_id: _mysten_sui_bcs315.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
66
|
+
account_id: _mysten_sui_bcs315.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
67
|
+
recipient: _mysten_sui_bcs315.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
68
|
+
index: _mysten_sui_bcs315.BcsType<bigint, string | number | bigint, "u64">;
|
|
69
|
+
amount: _mysten_sui_bcs315.BcsType<bigint, string | number | bigint, "u64">;
|
|
70
|
+
min_plp_out: _mysten_sui_bcs315.BcsType<bigint, string | number | bigint, "u64">;
|
|
71
|
+
requests_pending_after: _mysten_sui_bcs315.BcsType<bigint, string | number | bigint, "u64">;
|
|
72
72
|
}, "@local-pkg/deepbook_predict::vault_events::SupplyRequested">;
|
|
73
73
|
declare const WithdrawRequested: MoveStruct<{
|
|
74
|
-
pool_vault_id:
|
|
75
|
-
account_id:
|
|
76
|
-
recipient:
|
|
77
|
-
index:
|
|
78
|
-
amount:
|
|
79
|
-
min_usdc_out:
|
|
80
|
-
requests_pending_after:
|
|
74
|
+
pool_vault_id: _mysten_sui_bcs315.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
75
|
+
account_id: _mysten_sui_bcs315.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
76
|
+
recipient: _mysten_sui_bcs315.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
77
|
+
index: _mysten_sui_bcs315.BcsType<bigint, string | number | bigint, "u64">;
|
|
78
|
+
amount: _mysten_sui_bcs315.BcsType<bigint, string | number | bigint, "u64">;
|
|
79
|
+
min_usdc_out: _mysten_sui_bcs315.BcsType<bigint, string | number | bigint, "u64">;
|
|
80
|
+
requests_pending_after: _mysten_sui_bcs315.BcsType<bigint, string | number | bigint, "u64">;
|
|
81
81
|
}, "@local-pkg/deepbook_predict::vault_events::WithdrawRequested">;
|
|
82
82
|
declare const RequestCancelled: MoveStruct<{
|
|
83
|
-
pool_vault_id:
|
|
84
|
-
account_id:
|
|
85
|
-
recipient:
|
|
86
|
-
index:
|
|
87
|
-
amount:
|
|
88
|
-
is_supply:
|
|
83
|
+
pool_vault_id: _mysten_sui_bcs315.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
84
|
+
account_id: _mysten_sui_bcs315.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
85
|
+
recipient: _mysten_sui_bcs315.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
86
|
+
index: _mysten_sui_bcs315.BcsType<bigint, string | number | bigint, "u64">;
|
|
87
|
+
amount: _mysten_sui_bcs315.BcsType<bigint, string | number | bigint, "u64">;
|
|
88
|
+
is_supply: _mysten_sui_bcs315.BcsType<boolean, boolean, "bool">;
|
|
89
89
|
/**
|
|
90
90
|
* 0=user, 1=non-executable frozen mark, 2=quote below the request's minimum
|
|
91
91
|
* output.
|
|
92
92
|
*/
|
|
93
|
-
reason:
|
|
94
|
-
requests_pending_after:
|
|
93
|
+
reason: _mysten_sui_bcs315.BcsType<number, number, "u8">;
|
|
94
|
+
requests_pending_after: _mysten_sui_bcs315.BcsType<bigint, string | number | bigint, "u64">;
|
|
95
95
|
}, "@local-pkg/deepbook_predict::vault_events::RequestCancelled">;
|
|
96
96
|
declare const RequestLimitMissed: MoveStruct<{
|
|
97
|
-
pool_vault_id:
|
|
98
|
-
account_id:
|
|
99
|
-
recipient:
|
|
100
|
-
index:
|
|
101
|
-
amount:
|
|
102
|
-
is_supply:
|
|
103
|
-
quoted_output:
|
|
104
|
-
min_output:
|
|
105
|
-
missed_flushes:
|
|
106
|
-
max_misses:
|
|
97
|
+
pool_vault_id: _mysten_sui_bcs315.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
98
|
+
account_id: _mysten_sui_bcs315.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
99
|
+
recipient: _mysten_sui_bcs315.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
100
|
+
index: _mysten_sui_bcs315.BcsType<bigint, string | number | bigint, "u64">;
|
|
101
|
+
amount: _mysten_sui_bcs315.BcsType<bigint, string | number | bigint, "u64">;
|
|
102
|
+
is_supply: _mysten_sui_bcs315.BcsType<boolean, boolean, "bool">;
|
|
103
|
+
quoted_output: _mysten_sui_bcs315.BcsType<bigint, string | number | bigint, "u64">;
|
|
104
|
+
min_output: _mysten_sui_bcs315.BcsType<bigint, string | number | bigint, "u64">;
|
|
105
|
+
missed_flushes: _mysten_sui_bcs315.BcsType<bigint, string | number | bigint, "u64">;
|
|
106
|
+
max_misses: _mysten_sui_bcs315.BcsType<bigint, string | number | bigint, "u64">;
|
|
107
107
|
}, "@local-pkg/deepbook_predict::vault_events::RequestLimitMissed">;
|
|
108
108
|
declare const SupplyFilled: MoveStruct<{
|
|
109
|
-
pool_vault_id:
|
|
110
|
-
account_id:
|
|
111
|
-
recipient:
|
|
112
|
-
index:
|
|
109
|
+
pool_vault_id: _mysten_sui_bcs315.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
110
|
+
account_id: _mysten_sui_bcs315.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
111
|
+
recipient: _mysten_sui_bcs315.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
112
|
+
index: _mysten_sui_bcs315.BcsType<bigint, string | number | bigint, "u64">;
|
|
113
113
|
/**
|
|
114
114
|
* USDC actually taken into the pool, which is less than the request's escrow when
|
|
115
115
|
* the supply cap left only part of it room. Shares were priced on
|
|
116
116
|
* `usdc_amount - fee_usdc`.
|
|
117
117
|
*/
|
|
118
|
-
usdc_amount:
|
|
119
|
-
shares_minted:
|
|
120
|
-
fee_usdc:
|
|
118
|
+
usdc_amount: _mysten_sui_bcs315.BcsType<bigint, string | number | bigint, "u64">;
|
|
119
|
+
shares_minted: _mysten_sui_bcs315.BcsType<bigint, string | number | bigint, "u64">; /** Supply fee withheld from `usdc_amount` and retained by the pool. */
|
|
120
|
+
fee_usdc: _mysten_sui_bcs315.BcsType<bigint, string | number | bigint, "u64">;
|
|
121
121
|
/**
|
|
122
122
|
* Escrow still queued at the head after a partial fill; `0` on a full fill, in
|
|
123
123
|
* which case the request is gone. `usdc_amount + usdc_remaining` is the amount the
|
|
124
124
|
* request carried into this flush.
|
|
125
125
|
*/
|
|
126
|
-
usdc_remaining:
|
|
127
|
-
requests_pending_after:
|
|
126
|
+
usdc_remaining: _mysten_sui_bcs315.BcsType<bigint, string | number | bigint, "u64">;
|
|
127
|
+
requests_pending_after: _mysten_sui_bcs315.BcsType<bigint, string | number | bigint, "u64">;
|
|
128
128
|
}, "@local-pkg/deepbook_predict::vault_events::SupplyFilled">;
|
|
129
129
|
declare const WithdrawFilled: MoveStruct<{
|
|
130
|
-
pool_vault_id:
|
|
131
|
-
account_id:
|
|
132
|
-
recipient:
|
|
133
|
-
index:
|
|
134
|
-
shares_burned:
|
|
130
|
+
pool_vault_id: _mysten_sui_bcs315.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
131
|
+
account_id: _mysten_sui_bcs315.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
132
|
+
recipient: _mysten_sui_bcs315.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
133
|
+
index: _mysten_sui_bcs315.BcsType<bigint, string | number | bigint, "u64">;
|
|
134
|
+
shares_burned: _mysten_sui_bcs315.BcsType<bigint, string | number | bigint, "u64">;
|
|
135
135
|
/**
|
|
136
136
|
* Net USDC delivered to `recipient`. The gross marked value of `shares_burned` was
|
|
137
137
|
* `usdc_amount + fee_usdc`.
|
|
138
138
|
*/
|
|
139
|
-
usdc_amount:
|
|
140
|
-
fee_usdc:
|
|
139
|
+
usdc_amount: _mysten_sui_bcs315.BcsType<bigint, string | number | bigint, "u64">; /** Withdraw fee withheld from the payout and retained by the pool. */
|
|
140
|
+
fee_usdc: _mysten_sui_bcs315.BcsType<bigint, string | number | bigint, "u64">;
|
|
141
141
|
/**
|
|
142
142
|
* Escrowed PLP still queued at the head after a partial fill; `0` on a full fill,
|
|
143
143
|
* in which case the request is gone. `shares_burned + shares_remaining` is the
|
|
144
144
|
* amount the request carried into this flush.
|
|
145
145
|
*/
|
|
146
|
-
shares_remaining:
|
|
147
|
-
requests_pending_after:
|
|
146
|
+
shares_remaining: _mysten_sui_bcs315.BcsType<bigint, string | number | bigint, "u64">;
|
|
147
|
+
requests_pending_after: _mysten_sui_bcs315.BcsType<bigint, string | number | bigint, "u64">;
|
|
148
148
|
}, "@local-pkg/deepbook_predict::vault_events::WithdrawFilled">;
|
|
149
149
|
declare const FlushExecuted: MoveStruct<{
|
|
150
|
-
pool_vault_id:
|
|
151
|
-
epoch:
|
|
150
|
+
pool_vault_id: _mysten_sui_bcs315.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
151
|
+
epoch: _mysten_sui_bcs315.BcsType<bigint, string | number | bigint, "u64">;
|
|
152
152
|
/**
|
|
153
153
|
* LP-attributable pool NAV every fill was priced at: idle plus
|
|
154
154
|
* `active_market_nav`, excluding unrealized and pending protocol profit.
|
|
155
155
|
*/
|
|
156
|
-
pool_value:
|
|
157
|
-
total_supply:
|
|
156
|
+
pool_value: _mysten_sui_bcs315.BcsType<bigint, string | number | bigint, "u64">; /** PLP supply in the frozen pre-drain mark used to price every fill. */
|
|
157
|
+
total_supply: _mysten_sui_bcs315.BcsType<bigint, string | number | bigint, "u64">;
|
|
158
158
|
/**
|
|
159
159
|
* Supply-leg fee rate in FLOAT_SCALING, frozen with the mark and charged on every
|
|
160
160
|
* supply fill in this flush.
|
|
161
161
|
*/
|
|
162
|
-
supply_fee_rate:
|
|
163
|
-
withdraw_fee_rate:
|
|
162
|
+
supply_fee_rate: _mysten_sui_bcs315.BcsType<bigint, string | number | bigint, "u64">; /** Withdraw-leg fee rate in FLOAT_SCALING, frozen alongside it. */
|
|
163
|
+
withdraw_fee_rate: _mysten_sui_bcs315.BcsType<bigint, string | number | bigint, "u64">;
|
|
164
164
|
/**
|
|
165
165
|
* Sum of the marked NAV contributed by each active market; settled markets add
|
|
166
166
|
* zero.
|
|
167
167
|
*/
|
|
168
|
-
active_market_nav:
|
|
169
|
-
market_count:
|
|
168
|
+
active_market_nav: _mysten_sui_bcs315.BcsType<bigint, string | number | bigint, "u64">; /** Number of active markets valued for this flush. */
|
|
169
|
+
market_count: _mysten_sui_bcs315.BcsType<bigint, string | number | bigint, "u64">;
|
|
170
170
|
/**
|
|
171
171
|
* LIVE idle USDC read at finish time, immediately before the drain — NOT a mark
|
|
172
172
|
* input. It brackets the drain with `idle_balance_after`; because maintenance,
|
|
173
173
|
* settlement sweeps, and trading run mid-window, it can differ from
|
|
174
174
|
* `frozen_idle_balance` below. Drain telemetry, not the mark.
|
|
175
175
|
*/
|
|
176
|
-
idle_balance_before:
|
|
176
|
+
idle_balance_before: _mysten_sui_bcs315.BcsType<bigint, string | number | bigint, "u64">;
|
|
177
177
|
/**
|
|
178
178
|
* The mark's idle component: idle USDC FROZEN at the seal. `frozen_idle_balance
|
|
179
179
|
*
|
|
180
180
|
* - active_market_nav`reconstructs the priced mark's gross; every fill in the flush is priced from this, never from`idle_balance_before`.
|
|
181
181
|
*/
|
|
182
|
-
frozen_idle_balance:
|
|
183
|
-
supplies_filled:
|
|
184
|
-
withdrawals_filled:
|
|
185
|
-
requests_processed:
|
|
186
|
-
idle_balance_after:
|
|
187
|
-
total_supply_after:
|
|
182
|
+
frozen_idle_balance: _mysten_sui_bcs315.BcsType<bigint, string | number | bigint, "u64">;
|
|
183
|
+
supplies_filled: _mysten_sui_bcs315.BcsType<bigint, string | number | bigint, "u64">;
|
|
184
|
+
withdrawals_filled: _mysten_sui_bcs315.BcsType<bigint, string | number | bigint, "u64">;
|
|
185
|
+
requests_processed: _mysten_sui_bcs315.BcsType<bigint, string | number | bigint, "u64">;
|
|
186
|
+
idle_balance_after: _mysten_sui_bcs315.BcsType<bigint, string | number | bigint, "u64">; /** PLP supply after the drain's completed mints and burns. */
|
|
187
|
+
total_supply_after: _mysten_sui_bcs315.BcsType<bigint, string | number | bigint, "u64">;
|
|
188
188
|
/**
|
|
189
189
|
* Each queue's `next_index` at this flush's snapshot instant; the drain filled
|
|
190
190
|
* only requests indexed strictly below these.
|
|
191
191
|
*/
|
|
192
|
-
supply_request_cutoff:
|
|
193
|
-
withdraw_request_cutoff:
|
|
192
|
+
supply_request_cutoff: _mysten_sui_bcs315.BcsType<bigint, string | number | bigint, "u64">;
|
|
193
|
+
withdraw_request_cutoff: _mysten_sui_bcs315.BcsType<bigint, string | number | bigint, "u64">;
|
|
194
194
|
/**
|
|
195
195
|
* Clock instant the snapshot stage froze every market's pricer — the moment the
|
|
196
196
|
* mark prices the pool at. Fills execute later in the same flush; this is the
|
|
197
197
|
* timestamp they were priced as of.
|
|
198
198
|
*/
|
|
199
|
-
snapshot_timestamp_ms:
|
|
199
|
+
snapshot_timestamp_ms: _mysten_sui_bcs315.BcsType<bigint, string | number | bigint, "u64">;
|
|
200
200
|
}, "@local-pkg/deepbook_predict::vault_events::FlushExecuted">;
|
|
201
201
|
declare const FlushRestarted: MoveStruct<{
|
|
202
|
-
pool_vault_id:
|
|
203
|
-
expected_market_count:
|
|
204
|
-
valued_market_count:
|
|
202
|
+
pool_vault_id: _mysten_sui_bcs315.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
203
|
+
expected_market_count: _mysten_sui_bcs315.BcsType<bigint, string | number | bigint, "u64">;
|
|
204
|
+
valued_market_count: _mysten_sui_bcs315.BcsType<bigint, string | number | bigint, "u64">;
|
|
205
205
|
}, "@local-pkg/deepbook_predict::vault_events::FlushRestarted">;
|
|
206
206
|
declare const CapitalLocked: MoveStruct<{
|
|
207
|
-
pool_vault_id:
|
|
208
|
-
amount:
|
|
207
|
+
pool_vault_id: _mysten_sui_bcs315.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
208
|
+
amount: _mysten_sui_bcs315.BcsType<bigint, string | number | bigint, "u64">;
|
|
209
209
|
}, "@local-pkg/deepbook_predict::vault_events::CapitalLocked">;
|
|
210
210
|
declare const UsdcAddedToPlp: MoveStruct<{
|
|
211
|
-
pool_vault_id:
|
|
212
|
-
contributor:
|
|
213
|
-
amount:
|
|
211
|
+
pool_vault_id: _mysten_sui_bcs315.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
212
|
+
contributor: _mysten_sui_bcs315.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
213
|
+
amount: _mysten_sui_bcs315.BcsType<bigint, string | number | bigint, "u64">;
|
|
214
214
|
}, "@local-pkg/deepbook_predict::vault_events::UsdcAddedToPlp">;
|
|
215
215
|
declare const FeeIncentivesSponsored: MoveStruct<{
|
|
216
|
-
pool_vault_id:
|
|
217
|
-
sponsor:
|
|
218
|
-
amount:
|
|
219
|
-
reserve_after:
|
|
216
|
+
pool_vault_id: _mysten_sui_bcs315.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
217
|
+
sponsor: _mysten_sui_bcs315.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
218
|
+
amount: _mysten_sui_bcs315.BcsType<bigint, string | number | bigint, "u64">;
|
|
219
|
+
reserve_after: _mysten_sui_bcs315.BcsType<bigint, string | number | bigint, "u64">;
|
|
220
220
|
}, "@local-pkg/deepbook_predict::vault_events::FeeIncentivesSponsored">;
|
|
221
221
|
declare const FeeIncentivesWithdrawn: MoveStruct<{
|
|
222
|
-
pool_vault_id:
|
|
223
|
-
amount:
|
|
224
|
-
reserve_after:
|
|
222
|
+
pool_vault_id: _mysten_sui_bcs315.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
223
|
+
amount: _mysten_sui_bcs315.BcsType<bigint, string | number | bigint, "u64">;
|
|
224
|
+
reserve_after: _mysten_sui_bcs315.BcsType<bigint, string | number | bigint, "u64">;
|
|
225
225
|
}, "@local-pkg/deepbook_predict::vault_events::FeeIncentivesWithdrawn">;
|
|
226
226
|
declare const FeeIncentiveLifetimeCapSnapshotted: MoveStruct<{
|
|
227
|
-
pool_vault_id:
|
|
228
|
-
expiry_market_id:
|
|
229
|
-
fee_incentive_lifetime_cap:
|
|
227
|
+
pool_vault_id: _mysten_sui_bcs315.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
228
|
+
expiry_market_id: _mysten_sui_bcs315.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
229
|
+
fee_incentive_lifetime_cap: _mysten_sui_bcs315.BcsType<bigint, string | number | bigint, "u64">;
|
|
230
230
|
}, "@local-pkg/deepbook_predict::vault_events::FeeIncentiveLifetimeCapSnapshotted">;
|
|
231
231
|
declare const FeeIncentivesAllocated: MoveStruct<{
|
|
232
|
-
pool_vault_id:
|
|
233
|
-
expiry_market_id:
|
|
234
|
-
amount:
|
|
235
|
-
pool_reserve_after:
|
|
236
|
-
expiry_incentive_balance_after:
|
|
237
|
-
expiry_incentives_allocated_after:
|
|
232
|
+
pool_vault_id: _mysten_sui_bcs315.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
233
|
+
expiry_market_id: _mysten_sui_bcs315.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
234
|
+
amount: _mysten_sui_bcs315.BcsType<bigint, string | number | bigint, "u64">;
|
|
235
|
+
pool_reserve_after: _mysten_sui_bcs315.BcsType<bigint, string | number | bigint, "u64">;
|
|
236
|
+
expiry_incentive_balance_after: _mysten_sui_bcs315.BcsType<bigint, string | number | bigint, "u64">;
|
|
237
|
+
expiry_incentives_allocated_after: _mysten_sui_bcs315.BcsType<bigint, string | number | bigint, "u64">;
|
|
238
238
|
}, "@local-pkg/deepbook_predict::vault_events::FeeIncentivesAllocated">;
|
|
239
239
|
declare const FeeIncentivesReturned: MoveStruct<{
|
|
240
|
-
pool_vault_id:
|
|
241
|
-
expiry_market_id:
|
|
242
|
-
amount:
|
|
243
|
-
pool_reserve_after:
|
|
240
|
+
pool_vault_id: _mysten_sui_bcs315.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
241
|
+
expiry_market_id: _mysten_sui_bcs315.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
242
|
+
amount: _mysten_sui_bcs315.BcsType<bigint, string | number | bigint, "u64">;
|
|
243
|
+
pool_reserve_after: _mysten_sui_bcs315.BcsType<bigint, string | number | bigint, "u64">;
|
|
244
244
|
}, "@local-pkg/deepbook_predict::vault_events::FeeIncentivesReturned">;
|
|
245
245
|
//#endregion
|
|
246
246
|
export { vault_events_d_exports };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { MoveStruct, RawTransactionArgument } from "../utils/index.mjs";
|
|
2
|
-
import * as
|
|
3
|
-
import * as
|
|
2
|
+
import * as _mysten_sui_bcs739 from "@mysten/sui/bcs";
|
|
3
|
+
import * as _mysten_sui_transactions229 from "@mysten/sui/transactions";
|
|
4
4
|
import { Transaction, TransactionArgument } from "@mysten/sui/transactions";
|
|
5
5
|
|
|
6
6
|
//#region src/contracts/deepbook_predict_math/lazer_price.d.ts
|
|
@@ -8,19 +8,19 @@ declare namespace lazer_price_d_exports {
|
|
|
8
8
|
export { ChannelArguments, ChannelOptions, EnvelopeUsArguments, EnvelopeUsOptions, FeedIdArguments, FeedIdOptions, FromUpdateArguments, FromUpdateOptions, GenerationUsArguments, GenerationUsOptions, LazerPrice, SpotArguments, SpotOptions, channel, envelopeUs, feedId, fromUpdate, generationUs, spot };
|
|
9
9
|
}
|
|
10
10
|
declare const LazerPrice: MoveStruct<{
|
|
11
|
-
feed_id:
|
|
11
|
+
feed_id: _mysten_sui_bcs739.BcsType<number, number, "u32">;
|
|
12
12
|
/**
|
|
13
13
|
* A Lazer channel id: `channel_fixed_rate_50ms!()`, `channel_fixed_rate_200ms!()`,
|
|
14
14
|
* or `1` for real-time.
|
|
15
15
|
*/
|
|
16
|
-
channel:
|
|
17
|
-
envelope_us:
|
|
18
|
-
generation_us:
|
|
16
|
+
channel: _mysten_sui_bcs739.BcsType<number, number, "u8">; /** The update's timestamp, in µs. */
|
|
17
|
+
envelope_us: _mysten_sui_bcs739.BcsType<bigint, string | number | bigint, "u64">; /** The feed's own update time, in µs. Never after the envelope. */
|
|
18
|
+
generation_us: _mysten_sui_bcs739.BcsType<bigint, string | number | bigint, "u64">;
|
|
19
19
|
/**
|
|
20
20
|
* The price normalized to 1e9, rounded down when the source is finer; positive and
|
|
21
21
|
* at most `u64::MAX / 100`.
|
|
22
22
|
*/
|
|
23
|
-
spot:
|
|
23
|
+
spot: _mysten_sui_bcs739.BcsType<bigint, string | number | bigint, "u64">;
|
|
24
24
|
}, "@local-pkg/deepbook_predict_math::lazer_price::LazerPrice">;
|
|
25
25
|
interface FromUpdateArguments {
|
|
26
26
|
update: TransactionArgument;
|
|
@@ -45,7 +45,7 @@ interface FromUpdateOptions {
|
|
|
45
45
|
* Uses Lazer's v1 `Update`, which Pyth marked deprecated on Mainnet but still
|
|
46
46
|
* serves; a later library upgrade adds a constructor for v2.
|
|
47
47
|
*/
|
|
48
|
-
declare function fromUpdate(options: FromUpdateOptions): (tx: Transaction) =>
|
|
48
|
+
declare function fromUpdate(options: FromUpdateOptions): (tx: Transaction) => _mysten_sui_transactions229.TransactionResult;
|
|
49
49
|
interface FeedIdArguments {
|
|
50
50
|
price: TransactionArgument;
|
|
51
51
|
}
|
|
@@ -56,7 +56,7 @@ interface FeedIdOptions {
|
|
|
56
56
|
predictMathPackageId?: string;
|
|
57
57
|
};
|
|
58
58
|
}
|
|
59
|
-
declare function feedId(options: FeedIdOptions): (tx: Transaction) =>
|
|
59
|
+
declare function feedId(options: FeedIdOptions): (tx: Transaction) => _mysten_sui_transactions229.TransactionResult;
|
|
60
60
|
interface ChannelArguments {
|
|
61
61
|
price: TransactionArgument;
|
|
62
62
|
}
|
|
@@ -67,7 +67,7 @@ interface ChannelOptions {
|
|
|
67
67
|
predictMathPackageId?: string;
|
|
68
68
|
};
|
|
69
69
|
}
|
|
70
|
-
declare function channel(options: ChannelOptions): (tx: Transaction) =>
|
|
70
|
+
declare function channel(options: ChannelOptions): (tx: Transaction) => _mysten_sui_transactions229.TransactionResult;
|
|
71
71
|
interface EnvelopeUsArguments {
|
|
72
72
|
price: TransactionArgument;
|
|
73
73
|
}
|
|
@@ -78,7 +78,7 @@ interface EnvelopeUsOptions {
|
|
|
78
78
|
predictMathPackageId?: string;
|
|
79
79
|
};
|
|
80
80
|
}
|
|
81
|
-
declare function envelopeUs(options: EnvelopeUsOptions): (tx: Transaction) =>
|
|
81
|
+
declare function envelopeUs(options: EnvelopeUsOptions): (tx: Transaction) => _mysten_sui_transactions229.TransactionResult;
|
|
82
82
|
interface GenerationUsArguments {
|
|
83
83
|
price: TransactionArgument;
|
|
84
84
|
}
|
|
@@ -89,7 +89,7 @@ interface GenerationUsOptions {
|
|
|
89
89
|
predictMathPackageId?: string;
|
|
90
90
|
};
|
|
91
91
|
}
|
|
92
|
-
declare function generationUs(options: GenerationUsOptions): (tx: Transaction) =>
|
|
92
|
+
declare function generationUs(options: GenerationUsOptions): (tx: Transaction) => _mysten_sui_transactions229.TransactionResult;
|
|
93
93
|
interface SpotArguments {
|
|
94
94
|
price: TransactionArgument;
|
|
95
95
|
}
|
|
@@ -100,7 +100,7 @@ interface SpotOptions {
|
|
|
100
100
|
predictMathPackageId?: string;
|
|
101
101
|
};
|
|
102
102
|
}
|
|
103
|
-
declare function spot(options: SpotOptions): (tx: Transaction) =>
|
|
103
|
+
declare function spot(options: SpotOptions): (tx: Transaction) => _mysten_sui_transactions229.TransactionResult;
|
|
104
104
|
//#endregion
|
|
105
105
|
export { lazer_price_d_exports };
|
|
106
106
|
//# sourceMappingURL=lazer_price.d.mts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { RawTransactionArgument } from "../utils/index.mjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as _mysten_sui_transactions216 from "@mysten/sui/transactions";
|
|
3
3
|
import { Transaction, TransactionArgument } from "@mysten/sui/transactions";
|
|
4
4
|
|
|
5
5
|
//#region src/contracts/deepbook_predict_math/math.d.ts
|
|
@@ -32,7 +32,7 @@ interface RollDownOptions {
|
|
|
32
32
|
* relying on a bound on the anchored horizon. The result is at most
|
|
33
33
|
* `value * 1e9 < 2^64 * 1e9`, so narrowing to `u128` never truncates.
|
|
34
34
|
*/
|
|
35
|
-
declare function rollDown(options: RollDownOptions): (tx: Transaction) =>
|
|
35
|
+
declare function rollDown(options: RollDownOptions): (tx: Transaction) => _mysten_sui_transactions216.TransactionResult;
|
|
36
36
|
interface DigitalArguments {
|
|
37
37
|
aMagnitude: RawTransactionArgument<number | bigint>;
|
|
38
38
|
aIsNegative: RawTransactionArgument<boolean>;
|
|
@@ -63,7 +63,7 @@ interface DigitalOptions {
|
|
|
63
63
|
* formula is undefined: a zero forward, a negative inner term, or a non-positive
|
|
64
64
|
* variance.
|
|
65
65
|
*/
|
|
66
|
-
declare function digital(options: DigitalOptions): (tx: Transaction) =>
|
|
66
|
+
declare function digital(options: DigitalOptions): (tx: Transaction) => _mysten_sui_transactions216.TransactionResult;
|
|
67
67
|
interface VarPositiveArguments {
|
|
68
68
|
aMagnitude: RawTransactionArgument<number | bigint>;
|
|
69
69
|
aIsNegative: RawTransactionArgument<boolean>;
|
|
@@ -82,7 +82,7 @@ interface VarPositiveOptions {
|
|
|
82
82
|
* Whether a rolled surface's minimum total variance over all strikes is positive,
|
|
83
83
|
* at the 1e18 the rolled `a` and `b` are carried in.
|
|
84
84
|
*/
|
|
85
|
-
declare function varPositive(options: VarPositiveOptions): (tx: Transaction) =>
|
|
85
|
+
declare function varPositive(options: VarPositiveOptions): (tx: Transaction) => _mysten_sui_transactions216.TransactionResult;
|
|
86
86
|
interface InputsOkArguments {
|
|
87
87
|
spot: RawTransactionArgument<number | bigint>;
|
|
88
88
|
forward: RawTransactionArgument<number | bigint>;
|
|
@@ -105,7 +105,7 @@ interface InputsOkOptions {
|
|
|
105
105
|
* its own: only total variance has to be positive (`raw_var_ok`), and every
|
|
106
106
|
* downstream use of `a` fits its provider width.
|
|
107
107
|
*/
|
|
108
|
-
declare function inputsOk(options: InputsOkOptions): (tx: Transaction) =>
|
|
108
|
+
declare function inputsOk(options: InputsOkOptions): (tx: Transaction) => _mysten_sui_transactions216.TransactionResult;
|
|
109
109
|
interface RawVarOkArguments {
|
|
110
110
|
a: TransactionArgument;
|
|
111
111
|
b: RawTransactionArgument<number | bigint>;
|
|
@@ -124,7 +124,7 @@ interface RawVarOkOptions {
|
|
|
124
124
|
* `a + b * sigma * sqrt(1 - rho^2)` is positive, compared rather than summed: `a`
|
|
125
125
|
* reaches `u64::MAX`, where the sum would leave `u64`.
|
|
126
126
|
*/
|
|
127
|
-
declare function rawVarOk(options: RawVarOkOptions): (tx: Transaction) =>
|
|
127
|
+
declare function rawVarOk(options: RawVarOkOptions): (tx: Transaction) => _mysten_sui_transactions216.TransactionResult;
|
|
128
128
|
interface LegFeeArguments {
|
|
129
129
|
baseFee: RawTransactionArgument<number | bigint>;
|
|
130
130
|
minFee: RawTransactionArgument<number | bigint>;
|
|
@@ -148,7 +148,7 @@ interface LegFeeOptions {
|
|
|
148
148
|
* `window_ms` to expiry and rises linearly to `max_multiplier` at expiry, rounded
|
|
149
149
|
* down so the trader keeps the ramp dust.
|
|
150
150
|
*/
|
|
151
|
-
declare function legFee(options: LegFeeOptions): (tx: Transaction) =>
|
|
151
|
+
declare function legFee(options: LegFeeOptions): (tx: Transaction) => _mysten_sui_transactions216.TransactionResult;
|
|
152
152
|
interface PotentialArguments {
|
|
153
153
|
maxRate: RawTransactionArgument<number | bigint>;
|
|
154
154
|
scale: RawTransactionArgument<number | bigint>;
|
|
@@ -171,7 +171,7 @@ interface PotentialOptions {
|
|
|
171
171
|
* Defined by this exact sequence of rounded integer operations, so charges and
|
|
172
172
|
* rebates, which always subtract two evaluations, telescope exactly.
|
|
173
173
|
*/
|
|
174
|
-
declare function potential(options: PotentialOptions): (tx: Transaction) =>
|
|
174
|
+
declare function potential(options: PotentialOptions): (tx: Transaction) => _mysten_sui_transactions216.TransactionResult;
|
|
175
175
|
interface MaxQtyArguments {
|
|
176
176
|
probability: RawTransactionArgument<number | bigint>;
|
|
177
177
|
maxPremium: RawTransactionArgument<number | bigint>;
|
|
@@ -191,7 +191,7 @@ interface MaxQtyOptions {
|
|
|
191
191
|
* is the premium mint admission charges, so the result is exact, and an oversized
|
|
192
192
|
* budget saturates at `max_lots` instead of aborting.
|
|
193
193
|
*/
|
|
194
|
-
declare function maxQty(options: MaxQtyOptions): (tx: Transaction) =>
|
|
194
|
+
declare function maxQty(options: MaxQtyOptions): (tx: Transaction) => _mysten_sui_transactions216.TransactionResult;
|
|
195
195
|
interface BuilderFeeArguments {
|
|
196
196
|
feeAmount: RawTransactionArgument<number | bigint>;
|
|
197
197
|
quantity: RawTransactionArgument<number | bigint>;
|
|
@@ -209,7 +209,7 @@ interface BuilderFeeOptions {
|
|
|
209
209
|
* The builder fee on a trade with a builder code: `fee_amount * multiplier`,
|
|
210
210
|
* capped at `quantity * max_rate`, each rounded down.
|
|
211
211
|
*/
|
|
212
|
-
declare function builderFee(options: BuilderFeeOptions): (tx: Transaction) =>
|
|
212
|
+
declare function builderFee(options: BuilderFeeOptions): (tx: Transaction) => _mysten_sui_transactions216.TransactionResult;
|
|
213
213
|
interface NeedQtyArguments {
|
|
214
214
|
quantity: RawTransactionArgument<number | bigint>;
|
|
215
215
|
p: RawTransactionArgument<number | bigint>;
|
|
@@ -226,7 +226,7 @@ interface NeedQtyOptions {
|
|
|
226
226
|
* market's minimum entry probability: a fill pays at least `p` per contract into
|
|
227
227
|
* market cash.
|
|
228
228
|
*/
|
|
229
|
-
declare function needQty(options: NeedQtyOptions): (tx: Transaction) =>
|
|
229
|
+
declare function needQty(options: NeedQtyOptions): (tx: Transaction) => _mysten_sui_transactions216.TransactionResult;
|
|
230
230
|
interface NeedBudgetArguments {
|
|
231
231
|
budget: RawTransactionArgument<number | bigint>;
|
|
232
232
|
p: RawTransactionArgument<number | bigint>;
|
|
@@ -243,7 +243,7 @@ interface NeedBudgetOptions {
|
|
|
243
243
|
* covers premiums rounding down, which lets a fill buy up to `1 / p` raw units
|
|
244
244
|
* more than `budget / p`.
|
|
245
245
|
*/
|
|
246
|
-
declare function needBudget(options: NeedBudgetOptions): (tx: Transaction) =>
|
|
246
|
+
declare function needBudget(options: NeedBudgetOptions): (tx: Transaction) => _mysten_sui_transactions216.TransactionResult;
|
|
247
247
|
interface NeedSellArguments {
|
|
248
248
|
closeQuantity: RawTransactionArgument<number | bigint>;
|
|
249
249
|
lambda: RawTransactionArgument<number | bigint>;
|
|
@@ -260,7 +260,7 @@ interface NeedSellOptions {
|
|
|
260
260
|
* liability by at least `lambda * close_quantity` and pays at most
|
|
261
261
|
* `close_quantity`.
|
|
262
262
|
*/
|
|
263
|
-
declare function needSell(options: NeedSellOptions): (tx: Transaction) =>
|
|
263
|
+
declare function needSell(options: NeedSellOptions): (tx: Transaction) => _mysten_sui_transactions216.TransactionResult;
|
|
264
264
|
interface OrderTermsArguments {
|
|
265
265
|
orderId: RawTransactionArgument<number | bigint>;
|
|
266
266
|
}
|
|
@@ -278,7 +278,7 @@ interface OrderTermsOptions {
|
|
|
278
278
|
* layout is Predict's frozen order-ID encoding: 30-bit ticks at bits 70 and 40,
|
|
279
279
|
* and a 32-bit count of 10_000-unit lots at bit 100.
|
|
280
280
|
*/
|
|
281
|
-
declare function orderTerms(options: OrderTermsOptions): (tx: Transaction) =>
|
|
281
|
+
declare function orderTerms(options: OrderTermsOptions): (tx: Transaction) => _mysten_sui_transactions216.TransactionResult;
|
|
282
282
|
//#endregion
|
|
283
283
|
export { math_d_exports };
|
|
284
284
|
//# sourceMappingURL=math.d.mts.map
|