@mysten/deepbook-v3 2.3.0 → 2.4.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 +27 -0
- package/PREDICT.md +149 -55
- package/README.md +18 -13
- 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_registry.d.mts +19 -19
- package/dist/contracts/deepbook/account.d.mts +18 -18
- package/dist/contracts/deepbook/account.d.mts.map +1 -1
- package/dist/contracts/deepbook/balances.d.mts +4 -4
- package/dist/contracts/deepbook/balances.d.mts.map +1 -1
- package/dist/contracts/deepbook/deep_price.d.mts +3 -3
- package/dist/contracts/deepbook/deep_price.d.mts.map +1 -1
- package/dist/contracts/deepbook/order.d.mts +12 -12
- package/dist/contracts/deepbook_predict/admin.d.mts +27 -0
- package/dist/contracts/deepbook_predict/admin.d.mts.map +1 -0
- package/dist/contracts/deepbook_predict/admin.mjs +38 -0
- package/dist/contracts/deepbook_predict/admin.mjs.map +1 -0
- package/dist/contracts/deepbook_predict/builder_code.d.mts +81 -0
- package/dist/contracts/deepbook_predict/builder_code.d.mts.map +1 -0
- package/dist/contracts/deepbook_predict/builder_code.mjs +103 -0
- package/dist/contracts/deepbook_predict/builder_code.mjs.map +1 -0
- package/dist/contracts/deepbook_predict/builder_code_events.d.mts +25 -0
- package/dist/contracts/deepbook_predict/builder_code_events.d.mts.map +1 -0
- package/dist/contracts/deepbook_predict/builder_code_events.mjs +7 -1
- package/dist/contracts/deepbook_predict/builder_code_events.mjs.map +1 -1
- package/dist/contracts/deepbook_predict/config_events.d.mts +104 -0
- package/dist/contracts/deepbook_predict/config_events.d.mts.map +1 -0
- package/dist/contracts/deepbook_predict/config_events.mjs +155 -0
- package/dist/contracts/deepbook_predict/config_events.mjs.map +1 -0
- package/dist/contracts/deepbook_predict/ewma_config.mjs +28 -0
- package/dist/contracts/deepbook_predict/ewma_config.mjs.map +1 -0
- package/dist/contracts/deepbook_predict/expiry_market.d.mts +859 -0
- package/dist/contracts/deepbook_predict/expiry_market.d.mts.map +1 -0
- package/dist/contracts/deepbook_predict/expiry_market.mjs +647 -1
- package/dist/contracts/deepbook_predict/expiry_market.mjs.map +1 -1
- package/dist/contracts/deepbook_predict/market_lifecycle_cap.d.mts +39 -0
- package/dist/contracts/deepbook_predict/market_lifecycle_cap.d.mts.map +1 -0
- package/dist/contracts/deepbook_predict/market_lifecycle_cap.mjs +51 -0
- package/dist/contracts/deepbook_predict/market_lifecycle_cap.mjs.map +1 -0
- package/dist/contracts/deepbook_predict/market_manager.d.mts +159 -0
- package/dist/contracts/deepbook_predict/market_manager.d.mts.map +1 -0
- package/dist/contracts/deepbook_predict/market_manager.mjs +88 -2
- package/dist/contracts/deepbook_predict/market_manager.mjs.map +1 -1
- package/dist/contracts/deepbook_predict/order_events.d.mts +101 -0
- package/dist/contracts/deepbook_predict/order_events.d.mts.map +1 -0
- package/dist/contracts/deepbook_predict/order_events.mjs +7 -1
- package/dist/contracts/deepbook_predict/order_events.mjs.map +1 -1
- package/dist/contracts/deepbook_predict/pause_cap.d.mts +39 -0
- package/dist/contracts/deepbook_predict/pause_cap.d.mts.map +1 -0
- package/dist/contracts/deepbook_predict/pause_cap.mjs +51 -0
- package/dist/contracts/deepbook_predict/pause_cap.mjs.map +1 -0
- package/dist/contracts/deepbook_predict/plp.d.mts +801 -0
- package/dist/contracts/deepbook_predict/plp.d.mts.map +1 -0
- package/dist/contracts/deepbook_predict/plp.mjs +458 -1
- package/dist/contracts/deepbook_predict/plp.mjs.map +1 -1
- package/dist/contracts/deepbook_predict/pool_valuation_cap.d.mts +39 -0
- package/dist/contracts/deepbook_predict/pool_valuation_cap.d.mts.map +1 -0
- package/dist/contracts/deepbook_predict/pool_valuation_cap.mjs +52 -0
- package/dist/contracts/deepbook_predict/pool_valuation_cap.mjs.map +1 -0
- package/dist/contracts/deepbook_predict/predict_account.d.mts +90 -0
- package/dist/contracts/deepbook_predict/predict_account.d.mts.map +1 -0
- package/dist/contracts/deepbook_predict/predict_account.mjs +24 -1
- package/dist/contracts/deepbook_predict/predict_account.mjs.map +1 -1
- package/dist/contracts/deepbook_predict/pricing.d.mts +127 -0
- package/dist/contracts/deepbook_predict/pricing.d.mts.map +1 -0
- package/dist/contracts/deepbook_predict/pricing.mjs +25 -1
- package/dist/contracts/deepbook_predict/pricing.mjs.map +1 -1
- package/dist/contracts/deepbook_predict/pricing_config.mjs +28 -0
- package/dist/contracts/deepbook_predict/pricing_config.mjs.map +1 -0
- package/dist/contracts/deepbook_predict/protocol_config.d.mts +665 -0
- package/dist/contracts/deepbook_predict/protocol_config.d.mts.map +1 -0
- package/dist/contracts/deepbook_predict/protocol_config.mjs +841 -0
- package/dist/contracts/deepbook_predict/protocol_config.mjs.map +1 -0
- package/dist/contracts/deepbook_predict/range_codec.d.mts +30 -0
- package/dist/contracts/deepbook_predict/range_codec.d.mts.map +1 -0
- package/dist/contracts/deepbook_predict/range_codec.mjs +6 -1
- package/dist/contracts/deepbook_predict/range_codec.mjs.map +1 -1
- package/dist/contracts/deepbook_predict/registry.d.mts +382 -0
- package/dist/contracts/deepbook_predict/registry.d.mts.map +1 -0
- package/dist/contracts/deepbook_predict/registry.mjs +456 -1
- package/dist/contracts/deepbook_predict/registry.mjs.map +1 -1
- package/dist/contracts/deepbook_predict/vault_events.d.mts +199 -0
- package/dist/contracts/deepbook_predict/vault_events.d.mts.map +1 -0
- package/dist/contracts/deepbook_predict/vault_events.mjs +19 -1
- package/dist/contracts/deepbook_predict/vault_events.mjs.map +1 -1
- package/dist/contracts/deepbook_sessions/session_config.d.mts +8 -8
- package/dist/contracts/deepbook_sessions/sessions.d.mts +22 -22
- package/dist/contracts/deepbook_sessions/sessions.d.mts.map +1 -1
- package/dist/predict/client.d.mts +3 -2
- package/dist/predict/client.d.mts.map +1 -1
- package/dist/predict/client.mjs +3 -2
- package/dist/predict/client.mjs.map +1 -1
- package/dist/predict/index.d.mts +18 -1
- package/dist/predict/index.mjs +18 -1
- package/dist/transactions/balanceManager.d.mts +12 -12
- package/dist/transactions/deepbook.d.mts +20 -20
- package/dist/transactions/deepbookAdmin.d.mts +4 -4
- package/dist/transactions/marginAdmin.d.mts +7 -7
- package/dist/transactions/marginLiquidations.d.mts +3 -3
- package/dist/transactions/marginMaintainer.d.mts +5 -5
- package/dist/transactions/marginManager.d.mts +32 -32
- package/dist/transactions/marginPool.d.mts +18 -18
- package/dist/transactions/marginRegistry.d.mts +16 -16
- package/dist/transactions/marginTPSL.d.mts +10 -10
- package/dist/transactions/poolProxy.d.mts +8 -8
- package/package.json +1 -1
- package/src/predict/client.ts +3 -2
- package/src/predict/index.ts +26 -2
|
@@ -0,0 +1,199 @@
|
|
|
1
|
+
import { MoveStruct } from "../utils/index.mjs";
|
|
2
|
+
import * as _mysten_sui_bcs371 from "@mysten/sui/bcs";
|
|
3
|
+
|
|
4
|
+
//#region src/contracts/deepbook_predict/vault_events.d.ts
|
|
5
|
+
declare namespace vault_events_d_exports {
|
|
6
|
+
export { CapitalLocked, ExpiryCashRebalanced, ExpiryCashReceived, ExpiryProfitMaterialized, FeeIncentivesAllocated, FeeIncentivesReturned, FeeIncentivesSponsored, FlushExecuted, FlushRestarted, RequestCancelled, RequestLimitMissed, SupplyFilled, SupplyRequested, WithdrawFilled, WithdrawRequested };
|
|
7
|
+
}
|
|
8
|
+
declare const ExpiryCashReceived: MoveStruct<{
|
|
9
|
+
pool_vault_id: _mysten_sui_bcs371.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
10
|
+
expiry_market_id: _mysten_sui_bcs371.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
11
|
+
settlement_price: _mysten_sui_bcs371.BcsType<bigint, string | number | bigint, "u64">;
|
|
12
|
+
amount: _mysten_sui_bcs371.BcsType<bigint, string | number | bigint, "u64">;
|
|
13
|
+
}, "@local-pkg/deepbook_predict::vault_events::ExpiryCashReceived">;
|
|
14
|
+
declare const ExpiryCashRebalanced: MoveStruct<{
|
|
15
|
+
pool_vault_id: _mysten_sui_bcs371.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
16
|
+
expiry_market_id: _mysten_sui_bcs371.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
17
|
+
amount: _mysten_sui_bcs371.BcsType<bigint, string | number | bigint, "u64">;
|
|
18
|
+
to_expiry: _mysten_sui_bcs371.BcsType<boolean, boolean, "bool">;
|
|
19
|
+
target_cash: _mysten_sui_bcs371.BcsType<bigint, string | number | bigint, "u64">;
|
|
20
|
+
protocol_profit_realized: _mysten_sui_bcs371.BcsType<bigint, string | number | bigint, "u64">;
|
|
21
|
+
}, "@local-pkg/deepbook_predict::vault_events::ExpiryCashRebalanced">;
|
|
22
|
+
declare const ExpiryProfitMaterialized: MoveStruct<{
|
|
23
|
+
pool_vault_id: _mysten_sui_bcs371.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
24
|
+
expiry_market_id: _mysten_sui_bcs371.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
25
|
+
lp_profit: _mysten_sui_bcs371.BcsType<bigint, string | number | bigint, "u64">;
|
|
26
|
+
protocol_profit: _mysten_sui_bcs371.BcsType<bigint, string | number | bigint, "u64">;
|
|
27
|
+
protocol_reserve_balance_after: _mysten_sui_bcs371.BcsType<bigint, string | number | bigint, "u64">;
|
|
28
|
+
profit_basis_after: _mysten_sui_bcs371.BcsType<bigint, string | number | bigint, "u64">;
|
|
29
|
+
pending_protocol_profit_after: _mysten_sui_bcs371.BcsType<bigint, string | number | bigint, "u64">;
|
|
30
|
+
}, "@local-pkg/deepbook_predict::vault_events::ExpiryProfitMaterialized">;
|
|
31
|
+
declare const SupplyRequested: MoveStruct<{
|
|
32
|
+
pool_vault_id: _mysten_sui_bcs371.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
33
|
+
account_id: _mysten_sui_bcs371.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
34
|
+
recipient: _mysten_sui_bcs371.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
35
|
+
index: _mysten_sui_bcs371.BcsType<bigint, string | number | bigint, "u64">;
|
|
36
|
+
amount: _mysten_sui_bcs371.BcsType<bigint, string | number | bigint, "u64">;
|
|
37
|
+
min_plp_out: _mysten_sui_bcs371.BcsType<bigint, string | number | bigint, "u64">;
|
|
38
|
+
requests_pending_after: _mysten_sui_bcs371.BcsType<bigint, string | number | bigint, "u64">;
|
|
39
|
+
}, "@local-pkg/deepbook_predict::vault_events::SupplyRequested">;
|
|
40
|
+
declare const WithdrawRequested: MoveStruct<{
|
|
41
|
+
pool_vault_id: _mysten_sui_bcs371.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
42
|
+
account_id: _mysten_sui_bcs371.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
43
|
+
recipient: _mysten_sui_bcs371.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
44
|
+
index: _mysten_sui_bcs371.BcsType<bigint, string | number | bigint, "u64">;
|
|
45
|
+
amount: _mysten_sui_bcs371.BcsType<bigint, string | number | bigint, "u64">;
|
|
46
|
+
min_usdc_out: _mysten_sui_bcs371.BcsType<bigint, string | number | bigint, "u64">;
|
|
47
|
+
requests_pending_after: _mysten_sui_bcs371.BcsType<bigint, string | number | bigint, "u64">;
|
|
48
|
+
}, "@local-pkg/deepbook_predict::vault_events::WithdrawRequested">;
|
|
49
|
+
declare const RequestCancelled: MoveStruct<{
|
|
50
|
+
pool_vault_id: _mysten_sui_bcs371.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
51
|
+
account_id: _mysten_sui_bcs371.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
52
|
+
recipient: _mysten_sui_bcs371.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
53
|
+
index: _mysten_sui_bcs371.BcsType<bigint, string | number | bigint, "u64">;
|
|
54
|
+
amount: _mysten_sui_bcs371.BcsType<bigint, string | number | bigint, "u64">;
|
|
55
|
+
is_supply: _mysten_sui_bcs371.BcsType<boolean, boolean, "bool">;
|
|
56
|
+
/**
|
|
57
|
+
* 0=user, 1=non-executable frozen mark, 2=quote below the request's minimum
|
|
58
|
+
* output.
|
|
59
|
+
*/
|
|
60
|
+
reason: _mysten_sui_bcs371.BcsType<number, number, "u8">;
|
|
61
|
+
requests_pending_after: _mysten_sui_bcs371.BcsType<bigint, string | number | bigint, "u64">;
|
|
62
|
+
}, "@local-pkg/deepbook_predict::vault_events::RequestCancelled">;
|
|
63
|
+
declare const RequestLimitMissed: MoveStruct<{
|
|
64
|
+
pool_vault_id: _mysten_sui_bcs371.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
65
|
+
account_id: _mysten_sui_bcs371.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
66
|
+
recipient: _mysten_sui_bcs371.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
67
|
+
index: _mysten_sui_bcs371.BcsType<bigint, string | number | bigint, "u64">;
|
|
68
|
+
amount: _mysten_sui_bcs371.BcsType<bigint, string | number | bigint, "u64">;
|
|
69
|
+
is_supply: _mysten_sui_bcs371.BcsType<boolean, boolean, "bool">;
|
|
70
|
+
quoted_output: _mysten_sui_bcs371.BcsType<bigint, string | number | bigint, "u64">;
|
|
71
|
+
min_output: _mysten_sui_bcs371.BcsType<bigint, string | number | bigint, "u64">;
|
|
72
|
+
missed_flushes: _mysten_sui_bcs371.BcsType<bigint, string | number | bigint, "u64">;
|
|
73
|
+
max_misses: _mysten_sui_bcs371.BcsType<bigint, string | number | bigint, "u64">;
|
|
74
|
+
}, "@local-pkg/deepbook_predict::vault_events::RequestLimitMissed">;
|
|
75
|
+
declare const SupplyFilled: MoveStruct<{
|
|
76
|
+
pool_vault_id: _mysten_sui_bcs371.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
77
|
+
account_id: _mysten_sui_bcs371.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
78
|
+
recipient: _mysten_sui_bcs371.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
79
|
+
index: _mysten_sui_bcs371.BcsType<bigint, string | number | bigint, "u64">;
|
|
80
|
+
/**
|
|
81
|
+
* USDC actually taken into the pool, which is less than the request's escrow when
|
|
82
|
+
* the supply cap left only part of it room. Shares were priced on
|
|
83
|
+
* `usdc_amount - fee_usdc`.
|
|
84
|
+
*/
|
|
85
|
+
usdc_amount: _mysten_sui_bcs371.BcsType<bigint, string | number | bigint, "u64">;
|
|
86
|
+
shares_minted: _mysten_sui_bcs371.BcsType<bigint, string | number | bigint, "u64">; /** Supply fee withheld from `usdc_amount` and retained by the pool. */
|
|
87
|
+
fee_usdc: _mysten_sui_bcs371.BcsType<bigint, string | number | bigint, "u64">;
|
|
88
|
+
/**
|
|
89
|
+
* Escrow still queued at the head after a partial fill; `0` on a full fill, in
|
|
90
|
+
* which case the request is gone. `usdc_amount + usdc_remaining` is the amount the
|
|
91
|
+
* request carried into this flush.
|
|
92
|
+
*/
|
|
93
|
+
usdc_remaining: _mysten_sui_bcs371.BcsType<bigint, string | number | bigint, "u64">;
|
|
94
|
+
requests_pending_after: _mysten_sui_bcs371.BcsType<bigint, string | number | bigint, "u64">;
|
|
95
|
+
}, "@local-pkg/deepbook_predict::vault_events::SupplyFilled">;
|
|
96
|
+
declare const WithdrawFilled: MoveStruct<{
|
|
97
|
+
pool_vault_id: _mysten_sui_bcs371.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
98
|
+
account_id: _mysten_sui_bcs371.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
99
|
+
recipient: _mysten_sui_bcs371.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
100
|
+
index: _mysten_sui_bcs371.BcsType<bigint, string | number | bigint, "u64">;
|
|
101
|
+
shares_burned: _mysten_sui_bcs371.BcsType<bigint, string | number | bigint, "u64">;
|
|
102
|
+
/**
|
|
103
|
+
* Net USDC delivered to `recipient`. The gross marked value of `shares_burned` was
|
|
104
|
+
* `usdc_amount + fee_usdc`.
|
|
105
|
+
*/
|
|
106
|
+
usdc_amount: _mysten_sui_bcs371.BcsType<bigint, string | number | bigint, "u64">; /** Withdraw fee withheld from the payout and retained by the pool. */
|
|
107
|
+
fee_usdc: _mysten_sui_bcs371.BcsType<bigint, string | number | bigint, "u64">;
|
|
108
|
+
/**
|
|
109
|
+
* Escrowed PLP still queued at the head after a partial fill; `0` on a full fill,
|
|
110
|
+
* in which case the request is gone. `shares_burned + shares_remaining` is the
|
|
111
|
+
* amount the request carried into this flush.
|
|
112
|
+
*/
|
|
113
|
+
shares_remaining: _mysten_sui_bcs371.BcsType<bigint, string | number | bigint, "u64">;
|
|
114
|
+
requests_pending_after: _mysten_sui_bcs371.BcsType<bigint, string | number | bigint, "u64">;
|
|
115
|
+
}, "@local-pkg/deepbook_predict::vault_events::WithdrawFilled">;
|
|
116
|
+
declare const FlushExecuted: MoveStruct<{
|
|
117
|
+
pool_vault_id: _mysten_sui_bcs371.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
118
|
+
epoch: _mysten_sui_bcs371.BcsType<bigint, string | number | bigint, "u64">;
|
|
119
|
+
/**
|
|
120
|
+
* LP-attributable pool NAV every fill was priced at: idle plus
|
|
121
|
+
* `active_market_nav`, excluding unrealized and pending protocol profit.
|
|
122
|
+
*/
|
|
123
|
+
pool_value: _mysten_sui_bcs371.BcsType<bigint, string | number | bigint, "u64">; /** PLP supply in the frozen pre-drain mark used to price every fill. */
|
|
124
|
+
total_supply: _mysten_sui_bcs371.BcsType<bigint, string | number | bigint, "u64">;
|
|
125
|
+
/**
|
|
126
|
+
* Supply-leg fee rate in FLOAT_SCALING, frozen with the mark and charged on every
|
|
127
|
+
* supply fill in this flush.
|
|
128
|
+
*/
|
|
129
|
+
supply_fee_rate: _mysten_sui_bcs371.BcsType<bigint, string | number | bigint, "u64">; /** Withdraw-leg fee rate in FLOAT_SCALING, frozen alongside it. */
|
|
130
|
+
withdraw_fee_rate: _mysten_sui_bcs371.BcsType<bigint, string | number | bigint, "u64">;
|
|
131
|
+
/**
|
|
132
|
+
* Sum of the marked NAV contributed by each active market; settled markets add
|
|
133
|
+
* zero.
|
|
134
|
+
*/
|
|
135
|
+
active_market_nav: _mysten_sui_bcs371.BcsType<bigint, string | number | bigint, "u64">; /** Number of active markets valued for this flush. */
|
|
136
|
+
market_count: _mysten_sui_bcs371.BcsType<bigint, string | number | bigint, "u64">;
|
|
137
|
+
/**
|
|
138
|
+
* LIVE idle USDC read at finish time, immediately before the drain — NOT a mark
|
|
139
|
+
* input. It brackets the drain with `idle_balance_after`; because maintenance,
|
|
140
|
+
* settlement sweeps, and trading run mid-window, it can differ from
|
|
141
|
+
* `frozen_idle_balance` below. Drain telemetry, not the mark.
|
|
142
|
+
*/
|
|
143
|
+
idle_balance_before: _mysten_sui_bcs371.BcsType<bigint, string | number | bigint, "u64">;
|
|
144
|
+
/**
|
|
145
|
+
* The mark's idle component: idle USDC FROZEN at the seal. `frozen_idle_balance
|
|
146
|
+
*
|
|
147
|
+
* - active_market_nav`reconstructs the priced mark's gross; every fill in the flush is priced from this, never from`idle_balance_before`.
|
|
148
|
+
*/
|
|
149
|
+
frozen_idle_balance: _mysten_sui_bcs371.BcsType<bigint, string | number | bigint, "u64">;
|
|
150
|
+
supplies_filled: _mysten_sui_bcs371.BcsType<bigint, string | number | bigint, "u64">;
|
|
151
|
+
withdrawals_filled: _mysten_sui_bcs371.BcsType<bigint, string | number | bigint, "u64">;
|
|
152
|
+
requests_processed: _mysten_sui_bcs371.BcsType<bigint, string | number | bigint, "u64">;
|
|
153
|
+
idle_balance_after: _mysten_sui_bcs371.BcsType<bigint, string | number | bigint, "u64">; /** PLP supply after the drain's completed mints and burns. */
|
|
154
|
+
total_supply_after: _mysten_sui_bcs371.BcsType<bigint, string | number | bigint, "u64">;
|
|
155
|
+
/**
|
|
156
|
+
* Each queue's `next_index` at this flush's snapshot instant; the drain filled
|
|
157
|
+
* only requests indexed strictly below these.
|
|
158
|
+
*/
|
|
159
|
+
supply_request_cutoff: _mysten_sui_bcs371.BcsType<bigint, string | number | bigint, "u64">;
|
|
160
|
+
withdraw_request_cutoff: _mysten_sui_bcs371.BcsType<bigint, string | number | bigint, "u64">;
|
|
161
|
+
/**
|
|
162
|
+
* Clock instant the snapshot stage froze every market's pricer — the moment the
|
|
163
|
+
* mark prices the pool at. Fills execute later in the same flush; this is the
|
|
164
|
+
* timestamp they were priced as of.
|
|
165
|
+
*/
|
|
166
|
+
snapshot_timestamp_ms: _mysten_sui_bcs371.BcsType<bigint, string | number | bigint, "u64">;
|
|
167
|
+
}, "@local-pkg/deepbook_predict::vault_events::FlushExecuted">;
|
|
168
|
+
declare const FlushRestarted: MoveStruct<{
|
|
169
|
+
pool_vault_id: _mysten_sui_bcs371.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
170
|
+
expected_market_count: _mysten_sui_bcs371.BcsType<bigint, string | number | bigint, "u64">;
|
|
171
|
+
valued_market_count: _mysten_sui_bcs371.BcsType<bigint, string | number | bigint, "u64">;
|
|
172
|
+
}, "@local-pkg/deepbook_predict::vault_events::FlushRestarted">;
|
|
173
|
+
declare const CapitalLocked: MoveStruct<{
|
|
174
|
+
pool_vault_id: _mysten_sui_bcs371.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
175
|
+
amount: _mysten_sui_bcs371.BcsType<bigint, string | number | bigint, "u64">;
|
|
176
|
+
}, "@local-pkg/deepbook_predict::vault_events::CapitalLocked">;
|
|
177
|
+
declare const FeeIncentivesSponsored: MoveStruct<{
|
|
178
|
+
pool_vault_id: _mysten_sui_bcs371.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
179
|
+
sponsor: _mysten_sui_bcs371.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
180
|
+
amount: _mysten_sui_bcs371.BcsType<bigint, string | number | bigint, "u64">;
|
|
181
|
+
reserve_after: _mysten_sui_bcs371.BcsType<bigint, string | number | bigint, "u64">;
|
|
182
|
+
}, "@local-pkg/deepbook_predict::vault_events::FeeIncentivesSponsored">;
|
|
183
|
+
declare const FeeIncentivesAllocated: MoveStruct<{
|
|
184
|
+
pool_vault_id: _mysten_sui_bcs371.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
185
|
+
expiry_market_id: _mysten_sui_bcs371.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
186
|
+
amount: _mysten_sui_bcs371.BcsType<bigint, string | number | bigint, "u64">;
|
|
187
|
+
pool_reserve_after: _mysten_sui_bcs371.BcsType<bigint, string | number | bigint, "u64">;
|
|
188
|
+
expiry_incentive_balance_after: _mysten_sui_bcs371.BcsType<bigint, string | number | bigint, "u64">;
|
|
189
|
+
expiry_incentives_allocated_after: _mysten_sui_bcs371.BcsType<bigint, string | number | bigint, "u64">;
|
|
190
|
+
}, "@local-pkg/deepbook_predict::vault_events::FeeIncentivesAllocated">;
|
|
191
|
+
declare const FeeIncentivesReturned: MoveStruct<{
|
|
192
|
+
pool_vault_id: _mysten_sui_bcs371.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
193
|
+
expiry_market_id: _mysten_sui_bcs371.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
194
|
+
amount: _mysten_sui_bcs371.BcsType<bigint, string | number | bigint, "u64">;
|
|
195
|
+
pool_reserve_after: _mysten_sui_bcs371.BcsType<bigint, string | number | bigint, "u64">;
|
|
196
|
+
}, "@local-pkg/deepbook_predict::vault_events::FeeIncentivesReturned">;
|
|
197
|
+
//#endregion
|
|
198
|
+
export { vault_events_d_exports };
|
|
199
|
+
//# sourceMappingURL=vault_events.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"vault_events.d.mts","names":[],"sources":["../../../src/contracts/deepbook_predict/vault_events.ts"],"mappings":";;;;;;;cAaa,kBAAA,EAAkB,UAAA;;;;;;cASlB,oBAAA,EAAoB,UAAA;;;;;;;;cAWpB,wBAAA,EAAwB,UAAA;;;;;;;;;cAYxB,eAAA,EAAe,UAAA;;;;;;;;;cAYf,iBAAA,EAAiB,UAAA;;;;;;;;;cAYjB,gBAAA,EAAgB,UAAA;;;;;;;;;;;;;;cAiBhB,kBAAA,EAAkB,UAAA;;;;;;;;;;;;cAelB,YAAA,EAAY,UAAA;;;;;;;;;;;sFAzDvB;;;;;;;;;;cAkFW,cAAA,EAAc,UAAA;;;;;;EA7FU;;;;;;;;;;;;;;cAqHxB,aAAA,EAAa,UAAA;;;;;;AAzG1B;;;;;;;;;;;;;0FAA4B;;EAAA;;;;;;;;;;;;;;;;;;;;;;;;EAuB1B;;;;;;;cA6IW,cAAA,EAAc,UAAA;;;;;cAQd,aAAA,EAAa,UAAA;;;;cAOb,sBAAA,EAAsB,UAAA;;;;;;cAStB,sBAAA,EAAsB,UAAA;;;;;;;;cAWtB,qBAAA,EAAqB,UAAA"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { __exportAll } from "../../_virtual/rolldown_runtime.mjs";
|
|
1
2
|
import { MoveStruct } from "../utils/index.mjs";
|
|
2
3
|
import { U64 } from "../../bcs/integers.mjs";
|
|
3
4
|
import { bcs } from "@mysten/sui/bcs";
|
|
@@ -10,6 +11,23 @@ import { bcs } from "@mysten/sui/bcs";
|
|
|
10
11
|
* Pool-vault events for expiry cash and profit, fee incentives, and the queued LP
|
|
11
12
|
* request lifecycle. A flush records the frozen pool mark used by fills.
|
|
12
13
|
*/
|
|
14
|
+
var vault_events_exports = /* @__PURE__ */ __exportAll({
|
|
15
|
+
CapitalLocked: () => CapitalLocked,
|
|
16
|
+
ExpiryCashRebalanced: () => ExpiryCashRebalanced,
|
|
17
|
+
ExpiryCashReceived: () => ExpiryCashReceived,
|
|
18
|
+
ExpiryProfitMaterialized: () => ExpiryProfitMaterialized,
|
|
19
|
+
FeeIncentivesAllocated: () => FeeIncentivesAllocated,
|
|
20
|
+
FeeIncentivesReturned: () => FeeIncentivesReturned,
|
|
21
|
+
FeeIncentivesSponsored: () => FeeIncentivesSponsored,
|
|
22
|
+
FlushExecuted: () => FlushExecuted,
|
|
23
|
+
FlushRestarted: () => FlushRestarted,
|
|
24
|
+
RequestCancelled: () => RequestCancelled,
|
|
25
|
+
RequestLimitMissed: () => RequestLimitMissed,
|
|
26
|
+
SupplyFilled: () => SupplyFilled,
|
|
27
|
+
SupplyRequested: () => SupplyRequested,
|
|
28
|
+
WithdrawFilled: () => WithdrawFilled,
|
|
29
|
+
WithdrawRequested: () => WithdrawRequested
|
|
30
|
+
});
|
|
13
31
|
const $moduleName = "@local-pkg/deepbook_predict::vault_events";
|
|
14
32
|
const ExpiryCashReceived = new MoveStruct({
|
|
15
33
|
name: `${$moduleName}::ExpiryCashReceived`,
|
|
@@ -192,5 +210,5 @@ const FeeIncentivesReturned = new MoveStruct({
|
|
|
192
210
|
});
|
|
193
211
|
|
|
194
212
|
//#endregion
|
|
195
|
-
export { RequestCancelled, SupplyRequested, WithdrawRequested };
|
|
213
|
+
export { RequestCancelled, SupplyRequested, WithdrawRequested, vault_events_exports };
|
|
196
214
|
//# sourceMappingURL=vault_events.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vault_events.mjs","names":[],"sources":["../../../src/contracts/deepbook_predict/vault_events.ts"],"sourcesContent":["/**************************************************************\n * THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *\n **************************************************************/\n\n/**\n * Pool-vault events for expiry cash and profit, fee incentives, and the queued LP\n * request lifecycle. A flush records the frozen pool mark used by fills.\n */\n\nimport { MoveStruct } from '../utils/index.js';\nimport { bcs } from '@mysten/sui/bcs';\nimport { U64 } from '../../bcs/integers.js';\nconst $moduleName = '@local-pkg/deepbook_predict::vault_events';\nexport const ExpiryCashReceived = new MoveStruct({\n\tname: `${$moduleName}::ExpiryCashReceived`,\n\tfields: {\n\t\tpool_vault_id: bcs.Address,\n\t\texpiry_market_id: bcs.Address,\n\t\tsettlement_price: U64,\n\t\tamount: U64,\n\t},\n});\nexport const ExpiryCashRebalanced = new MoveStruct({\n\tname: `${$moduleName}::ExpiryCashRebalanced`,\n\tfields: {\n\t\tpool_vault_id: bcs.Address,\n\t\texpiry_market_id: bcs.Address,\n\t\tamount: U64,\n\t\tto_expiry: bcs.bool(),\n\t\ttarget_cash: U64,\n\t\tprotocol_profit_realized: U64,\n\t},\n});\nexport const ExpiryProfitMaterialized = new MoveStruct({\n\tname: `${$moduleName}::ExpiryProfitMaterialized`,\n\tfields: {\n\t\tpool_vault_id: bcs.Address,\n\t\texpiry_market_id: bcs.Address,\n\t\tlp_profit: U64,\n\t\tprotocol_profit: U64,\n\t\tprotocol_reserve_balance_after: U64,\n\t\tprofit_basis_after: U64,\n\t\tpending_protocol_profit_after: U64,\n\t},\n});\nexport const SupplyRequested = new MoveStruct({\n\tname: `${$moduleName}::SupplyRequested`,\n\tfields: {\n\t\tpool_vault_id: bcs.Address,\n\t\taccount_id: bcs.Address,\n\t\trecipient: bcs.Address,\n\t\tindex: U64,\n\t\tamount: U64,\n\t\tmin_plp_out: U64,\n\t\trequests_pending_after: U64,\n\t},\n});\nexport const WithdrawRequested = new MoveStruct({\n\tname: `${$moduleName}::WithdrawRequested`,\n\tfields: {\n\t\tpool_vault_id: bcs.Address,\n\t\taccount_id: bcs.Address,\n\t\trecipient: bcs.Address,\n\t\tindex: U64,\n\t\tamount: U64,\n\t\tmin_usdc_out: U64,\n\t\trequests_pending_after: U64,\n\t},\n});\nexport const RequestCancelled = new MoveStruct({\n\tname: `${$moduleName}::RequestCancelled`,\n\tfields: {\n\t\tpool_vault_id: bcs.Address,\n\t\taccount_id: bcs.Address,\n\t\trecipient: bcs.Address,\n\t\tindex: U64,\n\t\tamount: U64,\n\t\tis_supply: bcs.bool(),\n\t\t/**\n\t\t * 0=user, 1=non-executable frozen mark, 2=quote below the request's minimum\n\t\t * output.\n\t\t */\n\t\treason: bcs.u8(),\n\t\trequests_pending_after: U64,\n\t},\n});\nexport const RequestLimitMissed = new MoveStruct({\n\tname: `${$moduleName}::RequestLimitMissed`,\n\tfields: {\n\t\tpool_vault_id: bcs.Address,\n\t\taccount_id: bcs.Address,\n\t\trecipient: bcs.Address,\n\t\tindex: U64,\n\t\tamount: U64,\n\t\tis_supply: bcs.bool(),\n\t\tquoted_output: U64,\n\t\tmin_output: U64,\n\t\tmissed_flushes: U64,\n\t\tmax_misses: U64,\n\t},\n});\nexport const SupplyFilled = new MoveStruct({\n\tname: `${$moduleName}::SupplyFilled`,\n\tfields: {\n\t\tpool_vault_id: bcs.Address,\n\t\taccount_id: bcs.Address,\n\t\trecipient: bcs.Address,\n\t\tindex: U64,\n\t\t/**\n\t\t * USDC actually taken into the pool, which is less than the request's escrow when\n\t\t * the supply cap left only part of it room. Shares were priced on\n\t\t * `usdc_amount - fee_usdc`.\n\t\t */\n\t\tusdc_amount: U64,\n\t\tshares_minted: U64,\n\t\t/** Supply fee withheld from `usdc_amount` and retained by the pool. */\n\t\tfee_usdc: U64,\n\t\t/**\n\t\t * Escrow still queued at the head after a partial fill; `0` on a full fill, in\n\t\t * which case the request is gone. `usdc_amount + usdc_remaining` is the amount the\n\t\t * request carried into this flush.\n\t\t */\n\t\tusdc_remaining: U64,\n\t\trequests_pending_after: U64,\n\t},\n});\nexport const WithdrawFilled = new MoveStruct({\n\tname: `${$moduleName}::WithdrawFilled`,\n\tfields: {\n\t\tpool_vault_id: bcs.Address,\n\t\taccount_id: bcs.Address,\n\t\trecipient: bcs.Address,\n\t\tindex: U64,\n\t\tshares_burned: U64,\n\t\t/**\n\t\t * Net USDC delivered to `recipient`. The gross marked value of `shares_burned` was\n\t\t * `usdc_amount + fee_usdc`.\n\t\t */\n\t\tusdc_amount: U64,\n\t\t/** Withdraw fee withheld from the payout and retained by the pool. */\n\t\tfee_usdc: U64,\n\t\t/**\n\t\t * Escrowed PLP still queued at the head after a partial fill; `0` on a full fill,\n\t\t * in which case the request is gone. `shares_burned + shares_remaining` is the\n\t\t * amount the request carried into this flush.\n\t\t */\n\t\tshares_remaining: U64,\n\t\trequests_pending_after: U64,\n\t},\n});\nexport const FlushExecuted = new MoveStruct({\n\tname: `${$moduleName}::FlushExecuted`,\n\tfields: {\n\t\tpool_vault_id: bcs.Address,\n\t\tepoch: U64,\n\t\t/**\n\t\t * LP-attributable pool NAV every fill was priced at: idle plus\n\t\t * `active_market_nav`, excluding unrealized and pending protocol profit.\n\t\t */\n\t\tpool_value: U64,\n\t\t/** PLP supply in the frozen pre-drain mark used to price every fill. */\n\t\ttotal_supply: U64,\n\t\t/**\n\t\t * Supply-leg fee rate in FLOAT_SCALING, frozen with the mark and charged on every\n\t\t * supply fill in this flush.\n\t\t */\n\t\tsupply_fee_rate: U64,\n\t\t/** Withdraw-leg fee rate in FLOAT_SCALING, frozen alongside it. */\n\t\twithdraw_fee_rate: U64,\n\t\t/**\n\t\t * Sum of the marked NAV contributed by each active market; settled markets add\n\t\t * zero.\n\t\t */\n\t\tactive_market_nav: U64,\n\t\t/** Number of active markets valued for this flush. */\n\t\tmarket_count: U64,\n\t\t/**\n\t\t * LIVE idle USDC read at finish time, immediately before the drain — NOT a mark\n\t\t * input. It brackets the drain with `idle_balance_after`; because maintenance,\n\t\t * settlement sweeps, and trading run mid-window, it can differ from\n\t\t * `frozen_idle_balance` below. Drain telemetry, not the mark.\n\t\t */\n\t\tidle_balance_before: U64,\n\t\t/**\n\t\t * The mark's idle component: idle USDC FROZEN at the seal. `frozen_idle_balance\n\t\t *\n\t\t * - active_market_nav`reconstructs the priced mark's gross; every fill in the flush is priced from this, never from`idle_balance_before`.\n\t\t */\n\t\tfrozen_idle_balance: U64,\n\t\tsupplies_filled: U64,\n\t\twithdrawals_filled: U64,\n\t\trequests_processed: U64,\n\t\tidle_balance_after: U64,\n\t\t/** PLP supply after the drain's completed mints and burns. */\n\t\ttotal_supply_after: U64,\n\t\t/**\n\t\t * Each queue's `next_index` at this flush's snapshot instant; the drain filled\n\t\t * only requests indexed strictly below these.\n\t\t */\n\t\tsupply_request_cutoff: U64,\n\t\twithdraw_request_cutoff: U64,\n\t\t/**\n\t\t * Clock instant the snapshot stage froze every market's pricer — the moment the\n\t\t * mark prices the pool at. Fills execute later in the same flush; this is the\n\t\t * timestamp they were priced as of.\n\t\t */\n\t\tsnapshot_timestamp_ms: U64,\n\t},\n});\nexport const FlushRestarted = new MoveStruct({\n\tname: `${$moduleName}::FlushRestarted`,\n\tfields: {\n\t\tpool_vault_id: bcs.Address,\n\t\texpected_market_count: U64,\n\t\tvalued_market_count: U64,\n\t},\n});\nexport const CapitalLocked = new MoveStruct({\n\tname: `${$moduleName}::CapitalLocked`,\n\tfields: {\n\t\tpool_vault_id: bcs.Address,\n\t\tamount: U64,\n\t},\n});\nexport const FeeIncentivesSponsored = new MoveStruct({\n\tname: `${$moduleName}::FeeIncentivesSponsored`,\n\tfields: {\n\t\tpool_vault_id: bcs.Address,\n\t\tsponsor: bcs.Address,\n\t\tamount: U64,\n\t\treserve_after: U64,\n\t},\n});\nexport const FeeIncentivesAllocated = new MoveStruct({\n\tname: `${$moduleName}::FeeIncentivesAllocated`,\n\tfields: {\n\t\tpool_vault_id: bcs.Address,\n\t\texpiry_market_id: bcs.Address,\n\t\tamount: U64,\n\t\tpool_reserve_after: U64,\n\t\texpiry_incentive_balance_after: U64,\n\t\texpiry_incentives_allocated_after: U64,\n\t},\n});\nexport const FeeIncentivesReturned = new MoveStruct({\n\tname: `${$moduleName}::FeeIncentivesReturned`,\n\tfields: {\n\t\tpool_vault_id: bcs.Address,\n\t\texpiry_market_id: bcs.Address,\n\t\tamount: U64,\n\t\tpool_reserve_after: U64,\n\t},\n});\n"],"mappings":";;;;;;;;;;;;AAYA,MAAM,cAAc;AACpB,MAAa,qBAAqB,IAAI,WAAW;CAChD,MAAM,GAAG,YAAY;CACrB,QAAQ;EACP,eAAe,IAAI;EACnB,kBAAkB,IAAI;EACtB,kBAAkB;EAClB,QAAQ;EACR;CACD,CAAC;AACF,MAAa,uBAAuB,IAAI,WAAW;CAClD,MAAM,GAAG,YAAY;CACrB,QAAQ;EACP,eAAe,IAAI;EACnB,kBAAkB,IAAI;EACtB,QAAQ;EACR,WAAW,IAAI,MAAM;EACrB,aAAa;EACb,0BAA0B;EAC1B;CACD,CAAC;AACF,MAAa,2BAA2B,IAAI,WAAW;CACtD,MAAM,GAAG,YAAY;CACrB,QAAQ;EACP,eAAe,IAAI;EACnB,kBAAkB,IAAI;EACtB,WAAW;EACX,iBAAiB;EACjB,gCAAgC;EAChC,oBAAoB;EACpB,+BAA+B;EAC/B;CACD,CAAC;AACF,MAAa,kBAAkB,IAAI,WAAW;CAC7C,MAAM,GAAG,YAAY;CACrB,QAAQ;EACP,eAAe,IAAI;EACnB,YAAY,IAAI;EAChB,WAAW,IAAI;EACf,OAAO;EACP,QAAQ;EACR,aAAa;EACb,wBAAwB;EACxB;CACD,CAAC;AACF,MAAa,oBAAoB,IAAI,WAAW;CAC/C,MAAM,GAAG,YAAY;CACrB,QAAQ;EACP,eAAe,IAAI;EACnB,YAAY,IAAI;EAChB,WAAW,IAAI;EACf,OAAO;EACP,QAAQ;EACR,cAAc;EACd,wBAAwB;EACxB;CACD,CAAC;AACF,MAAa,mBAAmB,IAAI,WAAW;CAC9C,MAAM,GAAG,YAAY;CACrB,QAAQ;EACP,eAAe,IAAI;EACnB,YAAY,IAAI;EAChB,WAAW,IAAI;EACf,OAAO;EACP,QAAQ;EACR,WA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,IAAI,WAAW;CAC3C,MAAM,GAAG,YAAY;CACrB,QAAQ;EACP,eAAe,IAAI;EACnB,QAAQ;EACR;CACD,CAAC;AACF,MAAa,yBAAyB,IAAI,WAAW;CACpD,MAAM,GAAG,YAAY;CACrB,QAAQ;EACP,eAAe,IAAI;EACnB,SAAS,IAAI;EACb,QAAQ;EACR,eAAe;EACf;CACD,CAAC;AACF,MAAa,yBAAyB,IAAI,WAAW;CACpD,MAAM,GAAG,YAAY;CACrB,QAAQ;EACP,eAAe,IAAI;EACnB,kBAAkB,IAAI;EACtB,QAAQ;EACR,oBAAoB;EACpB,gCAAgC;EAChC,mCAAmC;EACnC;CACD,CAAC;AACF,MAAa,wBAAwB,IAAI,WAAW;CACnD,MAAM,GAAG,YAAY;CACrB,QAAQ;EACP,eAAe,IAAI;EACnB,kBAAkB,IAAI;EACtB,QAAQ;EACR,oBAAoB;EACpB;CACD,CAAC"}
|
|
1
|
+
{"version":3,"file":"vault_events.mjs","names":[],"sources":["../../../src/contracts/deepbook_predict/vault_events.ts"],"sourcesContent":["/**************************************************************\n * THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *\n **************************************************************/\n\n/**\n * Pool-vault events for expiry cash and profit, fee incentives, and the queued LP\n * request lifecycle. A flush records the frozen pool mark used by fills.\n */\n\nimport { MoveStruct } from '../utils/index.js';\nimport { bcs } from '@mysten/sui/bcs';\nimport { U64 } from '../../bcs/integers.js';\nconst $moduleName = '@local-pkg/deepbook_predict::vault_events';\nexport const ExpiryCashReceived = new MoveStruct({\n\tname: `${$moduleName}::ExpiryCashReceived`,\n\tfields: {\n\t\tpool_vault_id: bcs.Address,\n\t\texpiry_market_id: bcs.Address,\n\t\tsettlement_price: U64,\n\t\tamount: U64,\n\t},\n});\nexport const ExpiryCashRebalanced = new MoveStruct({\n\tname: `${$moduleName}::ExpiryCashRebalanced`,\n\tfields: {\n\t\tpool_vault_id: bcs.Address,\n\t\texpiry_market_id: bcs.Address,\n\t\tamount: U64,\n\t\tto_expiry: bcs.bool(),\n\t\ttarget_cash: U64,\n\t\tprotocol_profit_realized: U64,\n\t},\n});\nexport const ExpiryProfitMaterialized = new MoveStruct({\n\tname: `${$moduleName}::ExpiryProfitMaterialized`,\n\tfields: {\n\t\tpool_vault_id: bcs.Address,\n\t\texpiry_market_id: bcs.Address,\n\t\tlp_profit: U64,\n\t\tprotocol_profit: U64,\n\t\tprotocol_reserve_balance_after: U64,\n\t\tprofit_basis_after: U64,\n\t\tpending_protocol_profit_after: U64,\n\t},\n});\nexport const SupplyRequested = new MoveStruct({\n\tname: `${$moduleName}::SupplyRequested`,\n\tfields: {\n\t\tpool_vault_id: bcs.Address,\n\t\taccount_id: bcs.Address,\n\t\trecipient: bcs.Address,\n\t\tindex: U64,\n\t\tamount: U64,\n\t\tmin_plp_out: U64,\n\t\trequests_pending_after: U64,\n\t},\n});\nexport const WithdrawRequested = new MoveStruct({\n\tname: `${$moduleName}::WithdrawRequested`,\n\tfields: {\n\t\tpool_vault_id: bcs.Address,\n\t\taccount_id: bcs.Address,\n\t\trecipient: bcs.Address,\n\t\tindex: U64,\n\t\tamount: U64,\n\t\tmin_usdc_out: U64,\n\t\trequests_pending_after: U64,\n\t},\n});\nexport const RequestCancelled = new MoveStruct({\n\tname: `${$moduleName}::RequestCancelled`,\n\tfields: {\n\t\tpool_vault_id: bcs.Address,\n\t\taccount_id: bcs.Address,\n\t\trecipient: bcs.Address,\n\t\tindex: U64,\n\t\tamount: U64,\n\t\tis_supply: bcs.bool(),\n\t\t/**\n\t\t * 0=user, 1=non-executable frozen mark, 2=quote below the request's minimum\n\t\t * output.\n\t\t */\n\t\treason: bcs.u8(),\n\t\trequests_pending_after: U64,\n\t},\n});\nexport const RequestLimitMissed = new MoveStruct({\n\tname: `${$moduleName}::RequestLimitMissed`,\n\tfields: {\n\t\tpool_vault_id: bcs.Address,\n\t\taccount_id: bcs.Address,\n\t\trecipient: bcs.Address,\n\t\tindex: U64,\n\t\tamount: U64,\n\t\tis_supply: bcs.bool(),\n\t\tquoted_output: U64,\n\t\tmin_output: U64,\n\t\tmissed_flushes: U64,\n\t\tmax_misses: U64,\n\t},\n});\nexport const SupplyFilled = new MoveStruct({\n\tname: `${$moduleName}::SupplyFilled`,\n\tfields: {\n\t\tpool_vault_id: bcs.Address,\n\t\taccount_id: bcs.Address,\n\t\trecipient: bcs.Address,\n\t\tindex: U64,\n\t\t/**\n\t\t * USDC actually taken into the pool, which is less than the request's escrow when\n\t\t * the supply cap left only part of it room. Shares were priced on\n\t\t * `usdc_amount - fee_usdc`.\n\t\t */\n\t\tusdc_amount: U64,\n\t\tshares_minted: U64,\n\t\t/** Supply fee withheld from `usdc_amount` and retained by the pool. */\n\t\tfee_usdc: U64,\n\t\t/**\n\t\t * Escrow still queued at the head after a partial fill; `0` on a full fill, in\n\t\t * which case the request is gone. `usdc_amount + usdc_remaining` is the amount the\n\t\t * request carried into this flush.\n\t\t */\n\t\tusdc_remaining: U64,\n\t\trequests_pending_after: U64,\n\t},\n});\nexport const WithdrawFilled = new MoveStruct({\n\tname: `${$moduleName}::WithdrawFilled`,\n\tfields: {\n\t\tpool_vault_id: bcs.Address,\n\t\taccount_id: bcs.Address,\n\t\trecipient: bcs.Address,\n\t\tindex: U64,\n\t\tshares_burned: U64,\n\t\t/**\n\t\t * Net USDC delivered to `recipient`. The gross marked value of `shares_burned` was\n\t\t * `usdc_amount + fee_usdc`.\n\t\t */\n\t\tusdc_amount: U64,\n\t\t/** Withdraw fee withheld from the payout and retained by the pool. */\n\t\tfee_usdc: U64,\n\t\t/**\n\t\t * Escrowed PLP still queued at the head after a partial fill; `0` on a full fill,\n\t\t * in which case the request is gone. `shares_burned + shares_remaining` is the\n\t\t * amount the request carried into this flush.\n\t\t */\n\t\tshares_remaining: U64,\n\t\trequests_pending_after: U64,\n\t},\n});\nexport const FlushExecuted = new MoveStruct({\n\tname: `${$moduleName}::FlushExecuted`,\n\tfields: {\n\t\tpool_vault_id: bcs.Address,\n\t\tepoch: U64,\n\t\t/**\n\t\t * LP-attributable pool NAV every fill was priced at: idle plus\n\t\t * `active_market_nav`, excluding unrealized and pending protocol profit.\n\t\t */\n\t\tpool_value: U64,\n\t\t/** PLP supply in the frozen pre-drain mark used to price every fill. */\n\t\ttotal_supply: U64,\n\t\t/**\n\t\t * Supply-leg fee rate in FLOAT_SCALING, frozen with the mark and charged on every\n\t\t * supply fill in this flush.\n\t\t */\n\t\tsupply_fee_rate: U64,\n\t\t/** Withdraw-leg fee rate in FLOAT_SCALING, frozen alongside it. */\n\t\twithdraw_fee_rate: U64,\n\t\t/**\n\t\t * Sum of the marked NAV contributed by each active market; settled markets add\n\t\t * zero.\n\t\t */\n\t\tactive_market_nav: U64,\n\t\t/** Number of active markets valued for this flush. */\n\t\tmarket_count: U64,\n\t\t/**\n\t\t * LIVE idle USDC read at finish time, immediately before the drain — NOT a mark\n\t\t * input. It brackets the drain with `idle_balance_after`; because maintenance,\n\t\t * settlement sweeps, and trading run mid-window, it can differ from\n\t\t * `frozen_idle_balance` below. Drain telemetry, not the mark.\n\t\t */\n\t\tidle_balance_before: U64,\n\t\t/**\n\t\t * The mark's idle component: idle USDC FROZEN at the seal. `frozen_idle_balance\n\t\t *\n\t\t * - active_market_nav`reconstructs the priced mark's gross; every fill in the flush is priced from this, never from`idle_balance_before`.\n\t\t */\n\t\tfrozen_idle_balance: U64,\n\t\tsupplies_filled: U64,\n\t\twithdrawals_filled: U64,\n\t\trequests_processed: U64,\n\t\tidle_balance_after: U64,\n\t\t/** PLP supply after the drain's completed mints and burns. */\n\t\ttotal_supply_after: U64,\n\t\t/**\n\t\t * Each queue's `next_index` at this flush's snapshot instant; the drain filled\n\t\t * only requests indexed strictly below these.\n\t\t */\n\t\tsupply_request_cutoff: U64,\n\t\twithdraw_request_cutoff: U64,\n\t\t/**\n\t\t * Clock instant the snapshot stage froze every market's pricer — the moment the\n\t\t * mark prices the pool at. Fills execute later in the same flush; this is the\n\t\t * timestamp they were priced as of.\n\t\t */\n\t\tsnapshot_timestamp_ms: U64,\n\t},\n});\nexport const FlushRestarted = new MoveStruct({\n\tname: `${$moduleName}::FlushRestarted`,\n\tfields: {\n\t\tpool_vault_id: bcs.Address,\n\t\texpected_market_count: U64,\n\t\tvalued_market_count: U64,\n\t},\n});\nexport const CapitalLocked = new MoveStruct({\n\tname: `${$moduleName}::CapitalLocked`,\n\tfields: {\n\t\tpool_vault_id: bcs.Address,\n\t\tamount: U64,\n\t},\n});\nexport const FeeIncentivesSponsored = new MoveStruct({\n\tname: `${$moduleName}::FeeIncentivesSponsored`,\n\tfields: {\n\t\tpool_vault_id: bcs.Address,\n\t\tsponsor: bcs.Address,\n\t\tamount: U64,\n\t\treserve_after: U64,\n\t},\n});\nexport const FeeIncentivesAllocated = new MoveStruct({\n\tname: `${$moduleName}::FeeIncentivesAllocated`,\n\tfields: {\n\t\tpool_vault_id: bcs.Address,\n\t\texpiry_market_id: bcs.Address,\n\t\tamount: U64,\n\t\tpool_reserve_after: U64,\n\t\texpiry_incentive_balance_after: U64,\n\t\texpiry_incentives_allocated_after: U64,\n\t},\n});\nexport const FeeIncentivesReturned = new MoveStruct({\n\tname: `${$moduleName}::FeeIncentivesReturned`,\n\tfields: {\n\t\tpool_vault_id: bcs.Address,\n\t\texpiry_market_id: bcs.Address,\n\t\tamount: U64,\n\t\tpool_reserve_after: U64,\n\t},\n});\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAYA,MAAM,cAAc;AACpB,MAAa,qBAAqB,IAAI,WAAW;CAChD,MAAM,GAAG,YAAY;CACrB,QAAQ;EACP,eAAe,IAAI;EACnB,kBAAkB,IAAI;EACtB,kBAAkB;EAClB,QAAQ;EACR;CACD,CAAC;AACF,MAAa,uBAAuB,IAAI,WAAW;CAClD,MAAM,GAAG,YAAY;CACrB,QAAQ;EACP,eAAe,IAAI;EACnB,kBAAkB,IAAI;EACtB,QAAQ;EACR,WAAW,IAAI,MAAM;EACrB,aAAa;EACb,0BAA0B;EAC1B;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EACnB,kBAAkB,IAAI;EACtB,QAAQ;EACR,oBAAoB;EACpB;CACD,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ConfigValue, MoveStruct, RawTransactionArgument } from "../utils/index.mjs";
|
|
2
|
-
import * as
|
|
3
|
-
import * as
|
|
2
|
+
import * as _mysten_sui_bcs23 from "@mysten/sui/bcs";
|
|
3
|
+
import * as _mysten_sui_transactions33 from "@mysten/sui/transactions";
|
|
4
4
|
import { Transaction } from "@mysten/sui/transactions";
|
|
5
5
|
|
|
6
6
|
//#region src/contracts/deepbook_sessions/session_config.d.ts
|
|
@@ -8,11 +8,11 @@ declare namespace session_config_d_exports {
|
|
|
8
8
|
export { BumpVersionWatermarkArguments, BumpVersionWatermarkOptions, IdArguments, IdOptions, SessionsAdminCap, SessionsConfig, VersionWatermarkArguments, VersionWatermarkOptions, bumpVersionWatermark, id, versionWatermark };
|
|
9
9
|
}
|
|
10
10
|
declare const SessionsConfig: MoveStruct<{
|
|
11
|
-
id:
|
|
12
|
-
version_watermark:
|
|
11
|
+
id: _mysten_sui_bcs23.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
12
|
+
version_watermark: _mysten_sui_bcs23.BcsType<bigint, string | number | bigint, "u64">;
|
|
13
13
|
}, "@local-pkg/deepbook_sessions::session_config::SessionsConfig">;
|
|
14
14
|
declare const SessionsAdminCap: MoveStruct<{
|
|
15
|
-
id:
|
|
15
|
+
id: _mysten_sui_bcs23.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
16
16
|
}, "@local-pkg/deepbook_sessions::session_config::SessionsAdminCap">;
|
|
17
17
|
interface IdArguments {
|
|
18
18
|
config?: RawTransactionArgument<string>;
|
|
@@ -26,7 +26,7 @@ interface IdOptions {
|
|
|
26
26
|
};
|
|
27
27
|
}
|
|
28
28
|
/** Return the config object ID for external PTB construction. */
|
|
29
|
-
declare function id(options: IdOptions): (tx: Transaction) =>
|
|
29
|
+
declare function id(options: IdOptions): (tx: Transaction) => _mysten_sui_transactions33.TransactionResult;
|
|
30
30
|
interface VersionWatermarkArguments {
|
|
31
31
|
config?: RawTransactionArgument<string>;
|
|
32
32
|
}
|
|
@@ -39,7 +39,7 @@ interface VersionWatermarkOptions {
|
|
|
39
39
|
};
|
|
40
40
|
}
|
|
41
41
|
/** Return the minimum Sessions package version accepted by gated entrypoints. */
|
|
42
|
-
declare function versionWatermark(options: VersionWatermarkOptions): (tx: Transaction) =>
|
|
42
|
+
declare function versionWatermark(options: VersionWatermarkOptions): (tx: Transaction) => _mysten_sui_transactions33.TransactionResult;
|
|
43
43
|
interface BumpVersionWatermarkArguments {
|
|
44
44
|
config?: RawTransactionArgument<string>;
|
|
45
45
|
AdminCap: RawTransactionArgument<string>;
|
|
@@ -57,7 +57,7 @@ interface BumpVersionWatermarkOptions {
|
|
|
57
57
|
* so an upgraded package can retire older versions, and it cannot accept a
|
|
58
58
|
* caller-selected target.
|
|
59
59
|
*/
|
|
60
|
-
declare function bumpVersionWatermark(options: BumpVersionWatermarkOptions): (tx: Transaction) =>
|
|
60
|
+
declare function bumpVersionWatermark(options: BumpVersionWatermarkOptions): (tx: Transaction) => _mysten_sui_transactions33.TransactionResult;
|
|
61
61
|
//#endregion
|
|
62
62
|
export { session_config_d_exports };
|
|
63
63
|
//# sourceMappingURL=session_config.d.mts.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ConfigValue, MoveStruct, RawTransactionArgument } from "../utils/index.mjs";
|
|
2
|
-
import * as
|
|
3
|
-
import * as
|
|
2
|
+
import * as _mysten_sui_bcs26 from "@mysten/sui/bcs";
|
|
3
|
+
import * as _mysten_sui_transactions143 from "@mysten/sui/transactions";
|
|
4
4
|
import { Transaction, TransactionArgument } from "@mysten/sui/transactions";
|
|
5
5
|
|
|
6
6
|
//#region src/contracts/deepbook_sessions/sessions.d.ts
|
|
@@ -8,11 +8,11 @@ declare namespace sessions_d_exports {
|
|
|
8
8
|
export { AuthorizeSessionArguments, AuthorizeSessionOptions, CancelLiveOrderArguments, CancelLiveOrderOptions, CancelLiveOrdersArguments, CancelLiveOrdersOptions, MintExactAmountArguments, MintExactAmountOptions, MintExactQuantityArguments, MintExactQuantityOptions, PlaceLimitOrderArguments, PlaceLimitOrderOptions, PlaceMarketOrderArguments, PlaceMarketOrderOptions, RedeemLiveArguments, RedeemLiveOptions, RedeemSettledArguments, RedeemSettledOptions, RevokeSessionArguments, RevokeSessionOptions, SessionAuthorized, SessionExpirationMsArguments, SessionExpirationMsOptions, SessionRevoked, SessionsApp, SessionsData, WithdrawSettledAmountsArguments, WithdrawSettledAmountsOptions, authorizeSession, cancelLiveOrder, cancelLiveOrders, mintExactAmount, mintExactQuantity, placeLimitOrder, placeMarketOrder, redeemLive, redeemSettled, revokeSession, sessionExpirationMs, withdrawSettledAmounts };
|
|
9
9
|
}
|
|
10
10
|
declare const SessionsApp: MoveStruct<{
|
|
11
|
-
dummy_field:
|
|
11
|
+
dummy_field: _mysten_sui_bcs26.BcsType<boolean, boolean, "bool">;
|
|
12
12
|
}, "@local-pkg/deepbook_sessions::sessions::SessionsApp">;
|
|
13
13
|
declare const SessionsData: MoveStruct<{
|
|
14
14
|
sessions: MoveStruct<{
|
|
15
|
-
contents:
|
|
15
|
+
contents: _mysten_sui_bcs26.BcsType<{
|
|
16
16
|
key: string;
|
|
17
17
|
value: bigint;
|
|
18
18
|
}[], Iterable<{
|
|
@@ -24,14 +24,14 @@ declare const SessionsData: MoveStruct<{
|
|
|
24
24
|
}, "0x2::vec_map::VecMap<bytes[32], u64>">;
|
|
25
25
|
}, "@local-pkg/deepbook_sessions::sessions::SessionsData">;
|
|
26
26
|
declare const SessionAuthorized: MoveStruct<{
|
|
27
|
-
account_id:
|
|
28
|
-
session:
|
|
29
|
-
expires_at_ms:
|
|
27
|
+
account_id: _mysten_sui_bcs26.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
28
|
+
session: _mysten_sui_bcs26.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
29
|
+
expires_at_ms: _mysten_sui_bcs26.BcsType<bigint, string | number | bigint, "u64">;
|
|
30
30
|
}, "@local-pkg/deepbook_sessions::sessions::SessionAuthorized">;
|
|
31
31
|
declare const SessionRevoked: MoveStruct<{
|
|
32
|
-
account_id:
|
|
33
|
-
session:
|
|
34
|
-
expires_at_ms:
|
|
32
|
+
account_id: _mysten_sui_bcs26.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
33
|
+
session: _mysten_sui_bcs26.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
34
|
+
expires_at_ms: _mysten_sui_bcs26.BcsType<bigint, string | number | bigint, "u64">;
|
|
35
35
|
}, "@local-pkg/deepbook_sessions::sessions::SessionRevoked">;
|
|
36
36
|
interface SessionExpirationMsArguments {
|
|
37
37
|
wrapper: RawTransactionArgument<string>;
|
|
@@ -45,7 +45,7 @@ interface SessionExpirationMsOptions {
|
|
|
45
45
|
};
|
|
46
46
|
}
|
|
47
47
|
/** Return a known session's expiration timestamp for SDK and devInspect reads. */
|
|
48
|
-
declare function sessionExpirationMs(options: SessionExpirationMsOptions): (tx: Transaction) =>
|
|
48
|
+
declare function sessionExpirationMs(options: SessionExpirationMsOptions): (tx: Transaction) => _mysten_sui_transactions143.TransactionResult;
|
|
49
49
|
interface AuthorizeSessionArguments {
|
|
50
50
|
wrapper: RawTransactionArgument<string>;
|
|
51
51
|
sessionsConfig?: RawTransactionArgument<string>;
|
|
@@ -64,7 +64,7 @@ interface AuthorizeSessionOptions {
|
|
|
64
64
|
* Authorize `session` from execution time for at most 30 days. Accounts may store
|
|
65
65
|
* at most 20 addresses; reauthorization replaces in place.
|
|
66
66
|
*/
|
|
67
|
-
declare function authorizeSession(options: AuthorizeSessionOptions): (tx: Transaction) =>
|
|
67
|
+
declare function authorizeSession(options: AuthorizeSessionOptions): (tx: Transaction) => _mysten_sui_transactions143.TransactionResult;
|
|
68
68
|
interface RevokeSessionArguments {
|
|
69
69
|
wrapper: RawTransactionArgument<string>;
|
|
70
70
|
session: RawTransactionArgument<string>;
|
|
@@ -80,7 +80,7 @@ interface RevokeSessionOptions {
|
|
|
80
80
|
* Revoke `session` if it is present. Only the Account owner may call this
|
|
81
81
|
* function.
|
|
82
82
|
*/
|
|
83
|
-
declare function revokeSession(options: RevokeSessionOptions): (tx: Transaction) =>
|
|
83
|
+
declare function revokeSession(options: RevokeSessionOptions): (tx: Transaction) => _mysten_sui_transactions143.TransactionResult;
|
|
84
84
|
interface PlaceLimitOrderArguments {
|
|
85
85
|
pool: RawTransactionArgument<string>;
|
|
86
86
|
deepbookRegistry: RawTransactionArgument<string>;
|
|
@@ -106,7 +106,7 @@ interface PlaceLimitOrderOptions {
|
|
|
106
106
|
typeArguments: [string, string];
|
|
107
107
|
}
|
|
108
108
|
/** Place a DeepBook spot limit order for an Account with an active session. */
|
|
109
|
-
declare function placeLimitOrder(options: PlaceLimitOrderOptions): (tx: Transaction) =>
|
|
109
|
+
declare function placeLimitOrder(options: PlaceLimitOrderOptions): (tx: Transaction) => _mysten_sui_transactions143.TransactionResult;
|
|
110
110
|
interface PlaceMarketOrderArguments {
|
|
111
111
|
pool: RawTransactionArgument<string>;
|
|
112
112
|
deepbookRegistry: RawTransactionArgument<string>;
|
|
@@ -130,7 +130,7 @@ interface PlaceMarketOrderOptions {
|
|
|
130
130
|
typeArguments: [string, string];
|
|
131
131
|
}
|
|
132
132
|
/** Place a DeepBook spot market order for an Account with an active session. */
|
|
133
|
-
declare function placeMarketOrder(options: PlaceMarketOrderOptions): (tx: Transaction) =>
|
|
133
|
+
declare function placeMarketOrder(options: PlaceMarketOrderOptions): (tx: Transaction) => _mysten_sui_transactions143.TransactionResult;
|
|
134
134
|
interface CancelLiveOrderArguments {
|
|
135
135
|
pool: RawTransactionArgument<string>;
|
|
136
136
|
accountRegistry: RawTransactionArgument<string>;
|
|
@@ -148,7 +148,7 @@ interface CancelLiveOrderOptions {
|
|
|
148
148
|
typeArguments: [string, string];
|
|
149
149
|
}
|
|
150
150
|
/** Cancel a DeepBook spot order for an Account with an active session. */
|
|
151
|
-
declare function cancelLiveOrder(options: CancelLiveOrderOptions): (tx: Transaction) =>
|
|
151
|
+
declare function cancelLiveOrder(options: CancelLiveOrderOptions): (tx: Transaction) => _mysten_sui_transactions143.TransactionResult;
|
|
152
152
|
interface CancelLiveOrdersArguments {
|
|
153
153
|
pool: RawTransactionArgument<string>;
|
|
154
154
|
accountRegistry: RawTransactionArgument<string>;
|
|
@@ -166,7 +166,7 @@ interface CancelLiveOrdersOptions {
|
|
|
166
166
|
typeArguments: [string, string];
|
|
167
167
|
}
|
|
168
168
|
/** Cancel multiple DeepBook spot orders for an Account with an active session. */
|
|
169
|
-
declare function cancelLiveOrders(options: CancelLiveOrdersOptions): (tx: Transaction) =>
|
|
169
|
+
declare function cancelLiveOrders(options: CancelLiveOrdersOptions): (tx: Transaction) => _mysten_sui_transactions143.TransactionResult;
|
|
170
170
|
interface WithdrawSettledAmountsArguments {
|
|
171
171
|
pool: RawTransactionArgument<string>;
|
|
172
172
|
accountRegistry: RawTransactionArgument<string>;
|
|
@@ -183,7 +183,7 @@ interface WithdrawSettledAmountsOptions {
|
|
|
183
183
|
typeArguments: [string, string];
|
|
184
184
|
}
|
|
185
185
|
/** Sweep settled DeepBook spot proceeds into an Account with an active session. */
|
|
186
|
-
declare function withdrawSettledAmounts(options: WithdrawSettledAmountsOptions): (tx: Transaction) =>
|
|
186
|
+
declare function withdrawSettledAmounts(options: WithdrawSettledAmountsOptions): (tx: Transaction) => _mysten_sui_transactions143.TransactionResult;
|
|
187
187
|
interface MintExactQuantityArguments {
|
|
188
188
|
market: RawTransactionArgument<string>;
|
|
189
189
|
accountRegistry: RawTransactionArgument<string>;
|
|
@@ -206,7 +206,7 @@ interface MintExactQuantityOptions {
|
|
|
206
206
|
};
|
|
207
207
|
}
|
|
208
208
|
/** Mint an exact Predict position quantity for an Account with an active session. */
|
|
209
|
-
declare function mintExactQuantity(options: MintExactQuantityOptions): (tx: Transaction) =>
|
|
209
|
+
declare function mintExactQuantity(options: MintExactQuantityOptions): (tx: Transaction) => _mysten_sui_transactions143.TransactionResult;
|
|
210
210
|
interface MintExactAmountArguments {
|
|
211
211
|
market: RawTransactionArgument<string>;
|
|
212
212
|
accountRegistry: RawTransactionArgument<string>;
|
|
@@ -229,7 +229,7 @@ interface MintExactAmountOptions {
|
|
|
229
229
|
};
|
|
230
230
|
}
|
|
231
231
|
/** Mint a budget-sized Predict position for an Account with an active session. */
|
|
232
|
-
declare function mintExactAmount(options: MintExactAmountOptions): (tx: Transaction) =>
|
|
232
|
+
declare function mintExactAmount(options: MintExactAmountOptions): (tx: Transaction) => _mysten_sui_transactions143.TransactionResult;
|
|
233
233
|
interface RedeemLiveArguments {
|
|
234
234
|
market: RawTransactionArgument<string>;
|
|
235
235
|
accountRegistry: RawTransactionArgument<string>;
|
|
@@ -251,7 +251,7 @@ interface RedeemLiveOptions {
|
|
|
251
251
|
};
|
|
252
252
|
}
|
|
253
253
|
/** Redeem a live Predict order for an Account with an active session. */
|
|
254
|
-
declare function redeemLive(options: RedeemLiveOptions): (tx: Transaction) =>
|
|
254
|
+
declare function redeemLive(options: RedeemLiveOptions): (tx: Transaction) => _mysten_sui_transactions143.TransactionResult;
|
|
255
255
|
interface RedeemSettledArguments {
|
|
256
256
|
market: RawTransactionArgument<string>;
|
|
257
257
|
accountRegistry: RawTransactionArgument<string>;
|
|
@@ -269,7 +269,7 @@ interface RedeemSettledOptions {
|
|
|
269
269
|
};
|
|
270
270
|
}
|
|
271
271
|
/** Redeem a settled Predict order for an Account with an active session. */
|
|
272
|
-
declare function redeemSettled(options: RedeemSettledOptions): (tx: Transaction) =>
|
|
272
|
+
declare function redeemSettled(options: RedeemSettledOptions): (tx: Transaction) => _mysten_sui_transactions143.TransactionResult;
|
|
273
273
|
//#endregion
|
|
274
274
|
export { SessionAuthorized, SessionRevoked, SessionsApp, SessionsData, sessions_d_exports };
|
|
275
275
|
//# sourceMappingURL=sessions.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sessions.d.mts","names":[],"sources":["../../../src/contracts/deepbook_sessions/sessions.ts"],"mappings":";;;;;;;;;cAqBa,WAAA,EAAW,UAAA;eAKtB,
|
|
1
|
+
{"version":3,"file":"sessions.d.mts","names":[],"sources":["../../../src/contracts/deepbook_sessions/sessions.ts"],"mappings":";;;;;;;;;cAqBa,WAAA,EAAW,UAAA;eAKtB,iBAAA,CAAA,OAAA;AAAA;AAAA,cACW,YAAA,EAAY,UAAA;;;;;;;;;;;;;cAMZ,iBAAA,EAAiB,UAAA;;;;;cAQjB,cAAA,EAAc,UAAA;;;;;UAQV,4BAAA;EAChB,OAAA,EAAS,sBAAA;EACT,OAAA,EAAS,sBAAA;AAAA;AAAA,UAEO,0BAAA;EAChB,OAAA;EACA,SAAA,EACG,4BAAA,IACC,OAAA,EAAS,sBAAA,UAAgC,OAAA,EAAS,sBAAA;EACtD,MAAA;IACC,iBAAA;EAAA;AAAA;;iBAIc,mBAAA,CAAoB,OAAA,EAAS,0BAAA,IAKpC,EAAA,EAAI,WAAA,KAAW,2BAAA,CAAA,iBAAA;AAAA,UAQP,yBAAA;EAChB,OAAA,EAAS,sBAAA;EACT,cAAA,GAAiB,sBAAA;EACjB,OAAA,EAAS,sBAAA;EACT,UAAA,EAAY,sBAAA;AAAA;AAAA,UAEI,uBAAA;EAChB,OAAA;EACA,SAAA,EAAW,yBAAA;EACX,MAAA;IACC,cAAA,EAAgB,WAAA;IAChB,iBAAA;EAAA;AAAA;;;;;iBAOc,gBAAA,CAAiB,OAAA,EAAS,uBAAA,IAOjC,EAAA,EAAI,WAAA,KAAW,2BAAA,CAAA,iBAAA;AAAA,UAeP,sBAAA;EAChB,OAAA,EAAS,sBAAA;EACT,OAAA,EAAS,sBAAA;AAAA;AAAA,UAEO,oBAAA;EAChB,OAAA;EACA,SAAA,EACG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AAAA,UAEG,iBAAA;EAChB,OAAA;EACA,SAAA,EAAW,mBAAA;EACX,MAAA;IACC,cAAA,EAAgB,WAAA;IAChB,iBAAA;EAAA;AAAA;;iBAIc,UAAA,CAAW,OAAA,EAAS,iBAAA,IA6B3B,EAAA,EAAI,WAAA,KAAW,2BAAA,CAAA,iBAAA;AAAA,UAeP,sBAAA;EAChB,MAAA,EAAQ,sBAAA;EACR,eAAA,EAAiB,sBAAA;EACjB,OAAA,EAAS,sBAAA;EACT,cAAA,GAAiB,sBAAA;EACjB,MAAA,EAAQ,sBAAA;EACR,OAAA,EAAS,sBAAA;AAAA;AAAA,UAEO,oBAAA;EAChB,OAAA;EACA,SAAA,EAAW,sBAAA;EACX,MAAA;IACC,cAAA,EAAgB,WAAA;IAChB,iBAAA;EAAA;AAAA;AA7dF;AAAA,iBAiegB,aAAA,CAAc,OAAA,EAAS,oBAAA,IAqB9B,EAAA,EAAI,WAAA,KAAW,2BAAA,CAAA,iBAAA"}
|
|
@@ -206,8 +206,9 @@ declare function predict<Name extends string = 'predict'>({
|
|
|
206
206
|
* The one object an app constructs. Wraps the config, a client for reads, and
|
|
207
207
|
* a derived-account model so callers pass owner addresses, decimal amounts, and
|
|
208
208
|
* human market coordinates — the facade converts to raw units, resolves markets
|
|
209
|
-
* (cached), and delegates to the internal tx primitives / reads.
|
|
210
|
-
*
|
|
209
|
+
* (cached), and delegates to the internal tx primitives / reads. Each `tx.*` builder
|
|
210
|
+
* returns a finished `Transaction`; callers composing their own PTBs use the generated
|
|
211
|
+
* move-call bindings this subpath exports (`plpMoveCalls`, `expiryMarketMoveCalls`, …).
|
|
211
212
|
*/
|
|
212
213
|
declare class PredictClient {
|
|
213
214
|
#private;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client.d.mts","names":[],"sources":["../../src/predict/client.ts"],"mappings":";;;;;;;;;;;;AAyEA;;cAAa,iBAAA;;;KAWD,gBAAA;EACX,UAAA;EACA,QAAA;EASY;;;;;EA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
* The one object an app constructs. Wraps the config, a client for reads, and
|
|
48
48
|
* a derived-account model so callers pass owner addresses, decimal amounts, and
|
|
49
49
|
* human market coordinates — the facade converts to raw units, resolves markets
|
|
50
|
-
* (cached), and delegates to the internal tx primitives / reads.
|
|
51
|
-
*
|
|
50
|
+
* (cached), and delegates to the internal tx primitives / reads. Each `tx.*` builder
|
|
51
|
+
* returns a finished `Transaction`; callers composing their own PTBs use the generated
|
|
52
|
+
* move-call bindings this subpath exports (`plpMoveCalls`, `expiryMarketMoveCalls`, …).
|
|
52
53
|
*/
|
|
53
54
|
var PredictClient = class PredictClient {
|
|
54
55
|
get #config() {
|