@mysten/deepbook-v3 2.4.2 → 2.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +23 -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 +67 -67
- package/dist/contracts/deepbook_predict/config_events.d.mts.map +1 -1
- package/dist/contracts/deepbook_predict/expiry_market.d.mts +95 -95
- package/dist/contracts/deepbook_predict/expiry_market.d.mts.map +1 -1
- 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 +72 -72
- package/dist/contracts/deepbook_predict/plp.d.mts.map +1 -1
- package/dist/contracts/deepbook_predict/plp.mjs +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 +92 -51
- package/dist/contracts/deepbook_predict/pricing.d.mts.map +1 -1
- package/dist/contracts/deepbook_predict/pricing.mjs +57 -7
- package/dist/contracts/deepbook_predict/pricing.mjs.map +1 -1
- package/dist/contracts/deepbook_predict/protocol_config.d.mts +64 -64
- package/dist/contracts/deepbook_predict/protocol_config.d.mts.map +1 -1
- 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/strike_exposure.mjs +3 -2
- package/dist/contracts/deepbook_predict/strike_exposure.mjs.map +1 -1
- package/dist/contracts/deepbook_predict/vault_events.d.mts +105 -105
- 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 +22 -22
- package/dist/contracts/deepbook_sessions/sessions.d.mts.map +1 -1
- package/dist/deployments/mainnet.mjs +21 -21
- package/dist/deployments/mainnet.mjs.map +1 -1
- package/dist/deployments/testnet.mjs +21 -21
- package/dist/deployments/testnet.mjs.map +1 -1
- package/dist/predict/index.mjs +1 -1
- package/dist/predict/reads/markets.mjs +11 -3
- package/dist/predict/reads/markets.mjs.map +1 -1
- package/dist/predict/reads/pricing.d.mts +0 -1
- package/dist/predict/reads/pricing.d.mts.map +1 -1
- package/dist/predict/reads/pricing.mjs +1 -1
- package/dist/transactions/balanceManager.d.mts +12 -12
- package/dist/transactions/balanceManager.d.mts.map +1 -1
- package/dist/transactions/deepbook.d.mts +20 -20
- package/dist/transactions/deepbook.d.mts.map +1 -1
- 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/marginManager.d.mts.map +1 -1
- 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 +2 -2
- package/src/contracts/deepbook_predict/pricing.ts +88 -6
- package/src/contracts/deepbook_predict/strike_exposure.ts +3 -2
- package/src/contracts/propbook/block_scholes_store.ts +34 -0
- package/src/contracts/propbook/pyth_feed.ts +3 -1
- package/src/deployments/mainnet.ts +22 -22
- package/src/deployments/testnet.ts +22 -22
- package/src/predict/reads/markets.ts +16 -3
|
@@ -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_bcs106 from "@mysten/sui/bcs";
|
|
3
|
+
import * as _mysten_sui_transactions162 from "@mysten/sui/transactions";
|
|
4
4
|
import { Transaction } from "@mysten/sui/transactions";
|
|
5
5
|
|
|
6
6
|
//#region src/contracts/deepbook_predict/registry.d.ts
|
|
@@ -8,19 +8,19 @@ declare namespace registry_d_exports {
|
|
|
8
8
|
export { CadenceConfigArguments, CadenceConfigOptions, CadenceConfigsArguments, CadenceConfigsOptions, CreateAndShareBuilderCodeArguments, CreateAndShareBuilderCodeOptions, CreateAndShareExpiryMarketArguments, CreateAndShareExpiryMarketOptions, ExpiryMarketIdArguments, ExpiryMarketIdOptions, FreezeProtocolPauseCapArguments, FreezeProtocolPauseCapOptions, GeneratePoolValuationProofArguments, GeneratePoolValuationProofOptions, IdArguments, IdOptions, MintLifecycleCapArguments, MintLifecycleCapOptions, MintPauseCapArguments, MintPauseCapOptions, MintPoolValuationCapArguments, MintPoolValuationCapOptions, PauseExpiryMarketMintPauseCapArguments, PauseExpiryMarketMintPauseCapOptions, PauseTradingPauseCapArguments, PauseTradingPauseCapOptions, RegisterUnderlyingArguments, RegisterUnderlyingOptions, Registry, RevokeLifecycleCapArguments, RevokeLifecycleCapOptions, RevokePauseCapArguments, RevokePauseCapOptions, RevokePoolValuationCapArguments, RevokePoolValuationCapOptions, SetTemplateCadenceConfigArguments, SetTemplateCadenceConfigOptions, cadenceConfig, cadenceConfigs, createAndShareBuilderCode, createAndShareExpiryMarket, expiryMarketId, freezeProtocolPauseCap, generatePoolValuationProof, id, mintLifecycleCap, mintPauseCap, mintPoolValuationCap, pauseExpiryMarketMintPauseCap, pauseTradingPauseCap, registerUnderlying, revokeLifecycleCap, revokePauseCap, revokePoolValuationCap, setTemplateCadenceConfig };
|
|
9
9
|
}
|
|
10
10
|
declare const Registry: MoveStruct<{
|
|
11
|
-
id:
|
|
11
|
+
id: _mysten_sui_bcs106.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
12
12
|
/**
|
|
13
13
|
* Market identity, cadence deployment terms, underlying watermarks, and
|
|
14
14
|
* uniqueness.
|
|
15
15
|
*/
|
|
16
16
|
market_manager: MoveStruct<{
|
|
17
17
|
underlying_configs: MoveStruct<{
|
|
18
|
-
id:
|
|
19
|
-
size:
|
|
18
|
+
id: _mysten_sui_bcs106.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
19
|
+
size: _mysten_sui_bcs106.BcsType<bigint, string | number | bigint, "u64">;
|
|
20
20
|
}, "0x2::table::Table<phantom K, phantom V>">;
|
|
21
21
|
market_ids: MoveStruct<{
|
|
22
|
-
id:
|
|
23
|
-
size:
|
|
22
|
+
id: _mysten_sui_bcs106.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
23
|
+
size: _mysten_sui_bcs106.BcsType<bigint, string | number | bigint, "u64">;
|
|
24
24
|
}, "0x2::table::Table<phantom K, phantom V>">;
|
|
25
25
|
}, "@local-pkg/deepbook_predict::market_manager::MarketManager">;
|
|
26
26
|
/**
|
|
@@ -28,7 +28,7 @@ declare const Registry: MoveStruct<{
|
|
|
28
28
|
* mints into this set and revokes from it.
|
|
29
29
|
*/
|
|
30
30
|
allowed_pause_caps: MoveStruct<{
|
|
31
|
-
contents:
|
|
31
|
+
contents: _mysten_sui_bcs106.BcsType<string[], Iterable<string | Uint8Array<ArrayBufferLike>> & {
|
|
32
32
|
length: number;
|
|
33
33
|
}, string>;
|
|
34
34
|
}, "0x2::vec_set::VecSet<bytes[32]>">;
|
|
@@ -37,7 +37,7 @@ declare const Registry: MoveStruct<{
|
|
|
37
37
|
* markets. Admin mints into this set and revokes from it.
|
|
38
38
|
*/
|
|
39
39
|
allowed_lifecycle_caps: MoveStruct<{
|
|
40
|
-
contents:
|
|
40
|
+
contents: _mysten_sui_bcs106.BcsType<string[], Iterable<string | Uint8Array<ArrayBufferLike>> & {
|
|
41
41
|
length: number;
|
|
42
42
|
}, string>;
|
|
43
43
|
}, "0x2::vec_set::VecSet<bytes[32]>">;
|
|
@@ -46,7 +46,7 @@ declare const Registry: MoveStruct<{
|
|
|
46
46
|
* valuation. Admin mints into this set and revokes from it.
|
|
47
47
|
*/
|
|
48
48
|
allowed_pool_valuation_caps: MoveStruct<{
|
|
49
|
-
contents:
|
|
49
|
+
contents: _mysten_sui_bcs106.BcsType<string[], Iterable<string | Uint8Array<ArrayBufferLike>> & {
|
|
50
50
|
length: number;
|
|
51
51
|
}, string>;
|
|
52
52
|
}, "0x2::vec_set::VecSet<bytes[32]>">;
|
|
@@ -63,7 +63,7 @@ interface IdOptions {
|
|
|
63
63
|
};
|
|
64
64
|
}
|
|
65
65
|
/** Return the registry object ID for external discovery and PTB construction. */
|
|
66
|
-
declare function id(options: IdOptions): (tx: Transaction) =>
|
|
66
|
+
declare function id(options: IdOptions): (tx: Transaction) => _mysten_sui_transactions162.TransactionResult;
|
|
67
67
|
interface ExpiryMarketIdArguments {
|
|
68
68
|
registry?: RawTransactionArgument<string>;
|
|
69
69
|
propbookUnderlyingId: RawTransactionArgument<number>;
|
|
@@ -78,7 +78,7 @@ interface ExpiryMarketIdOptions {
|
|
|
78
78
|
};
|
|
79
79
|
}
|
|
80
80
|
/** Resolve an expiry market ID for external discovery and PTB construction. */
|
|
81
|
-
declare function expiryMarketId(options: ExpiryMarketIdOptions): (tx: Transaction) =>
|
|
81
|
+
declare function expiryMarketId(options: ExpiryMarketIdOptions): (tx: Transaction) => _mysten_sui_transactions162.TransactionResult;
|
|
82
82
|
interface CadenceConfigArguments {
|
|
83
83
|
registry?: RawTransactionArgument<string>;
|
|
84
84
|
propbookUnderlyingId: RawTransactionArgument<number>;
|
|
@@ -93,7 +93,7 @@ interface CadenceConfigOptions {
|
|
|
93
93
|
};
|
|
94
94
|
}
|
|
95
95
|
/** Return deployment policy for SDK and devInspect market discovery. */
|
|
96
|
-
declare function cadenceConfig(options: CadenceConfigOptions): (tx: Transaction) =>
|
|
96
|
+
declare function cadenceConfig(options: CadenceConfigOptions): (tx: Transaction) => _mysten_sui_transactions162.TransactionResult;
|
|
97
97
|
interface CadenceConfigsArguments {
|
|
98
98
|
registry?: RawTransactionArgument<string>;
|
|
99
99
|
propbookUnderlyingId: RawTransactionArgument<number>;
|
|
@@ -114,7 +114,7 @@ interface CadenceConfigsOptions {
|
|
|
114
114
|
* ID; disabled cadences are present as their all-zero configuration. Aborts if the
|
|
115
115
|
* underlying is not registered.
|
|
116
116
|
*/
|
|
117
|
-
declare function cadenceConfigs(options: CadenceConfigsOptions): (tx: Transaction) =>
|
|
117
|
+
declare function cadenceConfigs(options: CadenceConfigsOptions): (tx: Transaction) => _mysten_sui_transactions162.TransactionResult;
|
|
118
118
|
interface MintPauseCapArguments {
|
|
119
119
|
registry?: RawTransactionArgument<string>;
|
|
120
120
|
AdminCap: RawTransactionArgument<string>;
|
|
@@ -131,7 +131,7 @@ interface MintPauseCapOptions {
|
|
|
131
131
|
* Mint a new `PauseCap`. This bypasses the version gate so emergency pause
|
|
132
132
|
* authority remains available from a package version below the runtime floor.
|
|
133
133
|
*/
|
|
134
|
-
declare function mintPauseCap(options: MintPauseCapOptions): (tx: Transaction) =>
|
|
134
|
+
declare function mintPauseCap(options: MintPauseCapOptions): (tx: Transaction) => _mysten_sui_transactions162.TransactionResult;
|
|
135
135
|
interface RevokePauseCapArguments {
|
|
136
136
|
registry?: RawTransactionArgument<string>;
|
|
137
137
|
AdminCap: RawTransactionArgument<string>;
|
|
@@ -146,7 +146,7 @@ interface RevokePauseCapOptions {
|
|
|
146
146
|
};
|
|
147
147
|
}
|
|
148
148
|
/** Revoke a previously minted `PauseCap` by ID. Admin-only. */
|
|
149
|
-
declare function revokePauseCap(options: RevokePauseCapOptions): (tx: Transaction) =>
|
|
149
|
+
declare function revokePauseCap(options: RevokePauseCapOptions): (tx: Transaction) => _mysten_sui_transactions162.TransactionResult;
|
|
150
150
|
interface MintLifecycleCapArguments {
|
|
151
151
|
registry?: RawTransactionArgument<string>;
|
|
152
152
|
config?: RawTransactionArgument<string>;
|
|
@@ -162,7 +162,7 @@ interface MintLifecycleCapOptions {
|
|
|
162
162
|
};
|
|
163
163
|
}
|
|
164
164
|
/** Mint a version-gated `MarketLifecycleCap` with market-creation authority. */
|
|
165
|
-
declare function mintLifecycleCap(options: MintLifecycleCapOptions): (tx: Transaction) =>
|
|
165
|
+
declare function mintLifecycleCap(options: MintLifecycleCapOptions): (tx: Transaction) => _mysten_sui_transactions162.TransactionResult;
|
|
166
166
|
interface RevokeLifecycleCapArguments {
|
|
167
167
|
registry?: RawTransactionArgument<string>;
|
|
168
168
|
AdminCap: RawTransactionArgument<string>;
|
|
@@ -177,7 +177,7 @@ interface RevokeLifecycleCapOptions {
|
|
|
177
177
|
};
|
|
178
178
|
}
|
|
179
179
|
/** Revoke a `MarketLifecycleCap` by ID without applying the version gate. */
|
|
180
|
-
declare function revokeLifecycleCap(options: RevokeLifecycleCapOptions): (tx: Transaction) =>
|
|
180
|
+
declare function revokeLifecycleCap(options: RevokeLifecycleCapOptions): (tx: Transaction) => _mysten_sui_transactions162.TransactionResult;
|
|
181
181
|
interface MintPoolValuationCapArguments {
|
|
182
182
|
registry?: RawTransactionArgument<string>;
|
|
183
183
|
AdminCap: RawTransactionArgument<string>;
|
|
@@ -196,7 +196,7 @@ interface MintPoolValuationCapOptions {
|
|
|
196
196
|
* Mint a version-gated `PoolValuationCap` with authority to start the full-pool
|
|
197
197
|
* valuation.
|
|
198
198
|
*/
|
|
199
|
-
declare function mintPoolValuationCap(options: MintPoolValuationCapOptions): (tx: Transaction) =>
|
|
199
|
+
declare function mintPoolValuationCap(options: MintPoolValuationCapOptions): (tx: Transaction) => _mysten_sui_transactions162.TransactionResult;
|
|
200
200
|
interface RevokePoolValuationCapArguments {
|
|
201
201
|
registry?: RawTransactionArgument<string>;
|
|
202
202
|
AdminCap: RawTransactionArgument<string>;
|
|
@@ -211,7 +211,7 @@ interface RevokePoolValuationCapOptions {
|
|
|
211
211
|
};
|
|
212
212
|
}
|
|
213
213
|
/** Revoke a `PoolValuationCap` by ID without applying the version gate. */
|
|
214
|
-
declare function revokePoolValuationCap(options: RevokePoolValuationCapOptions): (tx: Transaction) =>
|
|
214
|
+
declare function revokePoolValuationCap(options: RevokePoolValuationCapOptions): (tx: Transaction) => _mysten_sui_transactions162.TransactionResult;
|
|
215
215
|
interface GeneratePoolValuationProofArguments {
|
|
216
216
|
registry?: RawTransactionArgument<string>;
|
|
217
217
|
poolValuationCap: RawTransactionArgument<string>;
|
|
@@ -229,7 +229,7 @@ interface GeneratePoolValuationProofOptions {
|
|
|
229
229
|
* allowlisted. `plp::start_pool_valuation` takes the proof by value so a revoked
|
|
230
230
|
* cap cannot start a valuation.
|
|
231
231
|
*/
|
|
232
|
-
declare function generatePoolValuationProof(options: GeneratePoolValuationProofOptions): (tx: Transaction) =>
|
|
232
|
+
declare function generatePoolValuationProof(options: GeneratePoolValuationProofOptions): (tx: Transaction) => _mysten_sui_transactions162.TransactionResult;
|
|
233
233
|
interface PauseTradingPauseCapArguments {
|
|
234
234
|
config?: RawTransactionArgument<string>;
|
|
235
235
|
registry?: RawTransactionArgument<string>;
|
|
@@ -245,7 +245,7 @@ interface PauseTradingPauseCapOptions {
|
|
|
245
245
|
};
|
|
246
246
|
}
|
|
247
247
|
/** Force `trading_paused = true` via a valid `PauseCap`. One-way. */
|
|
248
|
-
declare function pauseTradingPauseCap(options: PauseTradingPauseCapOptions): (tx: Transaction) =>
|
|
248
|
+
declare function pauseTradingPauseCap(options: PauseTradingPauseCapOptions): (tx: Transaction) => _mysten_sui_transactions162.TransactionResult;
|
|
249
249
|
interface FreezeProtocolPauseCapArguments {
|
|
250
250
|
config?: RawTransactionArgument<string>;
|
|
251
251
|
registry?: RawTransactionArgument<string>;
|
|
@@ -264,7 +264,7 @@ interface FreezeProtocolPauseCapOptions {
|
|
|
264
264
|
* Force the protocol-wide emergency freeze via a valid `PauseCap`. One-way;
|
|
265
265
|
* admin's `protocol_config::set_frozen` is needed to lift the freeze.
|
|
266
266
|
*/
|
|
267
|
-
declare function freezeProtocolPauseCap(options: FreezeProtocolPauseCapOptions): (tx: Transaction) =>
|
|
267
|
+
declare function freezeProtocolPauseCap(options: FreezeProtocolPauseCapOptions): (tx: Transaction) => _mysten_sui_transactions162.TransactionResult;
|
|
268
268
|
interface PauseExpiryMarketMintPauseCapArguments {
|
|
269
269
|
market: RawTransactionArgument<string>;
|
|
270
270
|
registry?: RawTransactionArgument<string>;
|
|
@@ -282,7 +282,7 @@ interface PauseExpiryMarketMintPauseCapOptions {
|
|
|
282
282
|
* Force `mint_paused = true` on a single expiry market via a valid `PauseCap`.
|
|
283
283
|
* One-way; admin's `expiry_market::set_mint_paused` is needed to unpause.
|
|
284
284
|
*/
|
|
285
|
-
declare function pauseExpiryMarketMintPauseCap(options: PauseExpiryMarketMintPauseCapOptions): (tx: Transaction) =>
|
|
285
|
+
declare function pauseExpiryMarketMintPauseCap(options: PauseExpiryMarketMintPauseCapOptions): (tx: Transaction) => _mysten_sui_transactions162.TransactionResult;
|
|
286
286
|
interface RegisterUnderlyingArguments {
|
|
287
287
|
registry?: RawTransactionArgument<string>;
|
|
288
288
|
config?: RawTransactionArgument<string>;
|
|
@@ -303,7 +303,7 @@ interface RegisterUnderlyingOptions {
|
|
|
303
303
|
* oracle object IDs remain owned by Propbook; this row only gates which
|
|
304
304
|
* underlyings Predict will build markets on and stores deployment watermarks.
|
|
305
305
|
*/
|
|
306
|
-
declare function registerUnderlying(options: RegisterUnderlyingOptions): (tx: Transaction) =>
|
|
306
|
+
declare function registerUnderlying(options: RegisterUnderlyingOptions): (tx: Transaction) => _mysten_sui_transactions162.TransactionResult;
|
|
307
307
|
interface SetTemplateCadenceConfigArguments {
|
|
308
308
|
registry?: RawTransactionArgument<string>;
|
|
309
309
|
config?: RawTransactionArgument<string>;
|
|
@@ -329,7 +329,7 @@ interface SetTemplateCadenceConfigOptions {
|
|
|
329
329
|
* Set all deployment terms for one underlying's cadence. Passing zero for all five
|
|
330
330
|
* values disables the cadence; otherwise all values must be nonzero and valid.
|
|
331
331
|
*/
|
|
332
|
-
declare function setTemplateCadenceConfig(options: SetTemplateCadenceConfigOptions): (tx: Transaction) =>
|
|
332
|
+
declare function setTemplateCadenceConfig(options: SetTemplateCadenceConfigOptions): (tx: Transaction) => _mysten_sui_transactions162.TransactionResult;
|
|
333
333
|
interface CreateAndShareExpiryMarketArguments {
|
|
334
334
|
registry?: RawTransactionArgument<string>;
|
|
335
335
|
poolVault?: RawTransactionArgument<string>;
|
|
@@ -360,7 +360,7 @@ interface CreateAndShareExpiryMarketOptions {
|
|
|
360
360
|
* snapshots cadence and expiry policy, starts with zero cash, and cannot mint
|
|
361
361
|
* until pool rebalancing funds it. Live pricing reads current Propbook bindings.
|
|
362
362
|
*/
|
|
363
|
-
declare function createAndShareExpiryMarket(options: CreateAndShareExpiryMarketOptions): (tx: Transaction) =>
|
|
363
|
+
declare function createAndShareExpiryMarket(options: CreateAndShareExpiryMarketOptions): (tx: Transaction) => _mysten_sui_transactions162.TransactionResult;
|
|
364
364
|
interface CreateAndShareBuilderCodeArguments {
|
|
365
365
|
registry?: RawTransactionArgument<string>;
|
|
366
366
|
config?: RawTransactionArgument<string>;
|
|
@@ -376,7 +376,7 @@ interface CreateAndShareBuilderCodeOptions {
|
|
|
376
376
|
};
|
|
377
377
|
}
|
|
378
378
|
/** Create a derived shared BuilderCode for the caller and index. */
|
|
379
|
-
declare function createAndShareBuilderCode(options: CreateAndShareBuilderCodeOptions): (tx: Transaction) =>
|
|
379
|
+
declare function createAndShareBuilderCode(options: CreateAndShareBuilderCodeOptions): (tx: Transaction) => _mysten_sui_transactions162.TransactionResult;
|
|
380
380
|
//#endregion
|
|
381
381
|
export { registry_d_exports };
|
|
382
382
|
//# sourceMappingURL=registry.d.mts.map
|
|
@@ -2,6 +2,7 @@ import { MoveStruct } from "../utils/index.mjs";
|
|
|
2
2
|
import { U64 } from "../../bcs/integers.mjs";
|
|
3
3
|
import { StrikeExposureConfig } from "./strike_exposure_config.mjs";
|
|
4
4
|
import { StrikePayoutTree } from "./strike_payout_tree.mjs";
|
|
5
|
+
import { RangePrice } from "./pricing.mjs";
|
|
5
6
|
import { Order } from "./order.mjs";
|
|
6
7
|
import { bcs } from "@mysten/sui/bcs";
|
|
7
8
|
|
|
@@ -43,7 +44,7 @@ const MintTerms = new MoveStruct({
|
|
|
43
44
|
lower_tick: U64,
|
|
44
45
|
higher_tick: U64,
|
|
45
46
|
quantity: U64,
|
|
46
|
-
|
|
47
|
+
price: RangePrice,
|
|
47
48
|
premium: U64,
|
|
48
49
|
inventory_impact_charge: U64
|
|
49
50
|
}
|
|
@@ -55,7 +56,7 @@ const LiveCloseTerms = new MoveStruct({
|
|
|
55
56
|
order: Order,
|
|
56
57
|
close_quantity: U64,
|
|
57
58
|
redeem_amount: U64,
|
|
58
|
-
|
|
59
|
+
price: RangePrice,
|
|
59
60
|
inventory_impact_rebate: U64
|
|
60
61
|
}
|
|
61
62
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"strike_exposure.mjs","names":["strike_exposure_config.StrikeExposureConfig","strike_payout_tree.StrikePayoutTree","order.Order"],"sources":["../../../src/contracts/deepbook_predict/strike_exposure.ts"],"sourcesContent":["/**************************************************************\n * THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *\n **************************************************************/\n\n/**\n * Expiry-local exposure book for one expiry market.\n *\n * This module interprets `Order` terms against the expiry's `tick_size`,\n * recovering raw strikes from order ticks only at the pricing/settlement boundary.\n * It owns the payout-liability view of the active contracts used for cash backing.\n * Order accounting is static and needs no clock: a winning order pays its full\n * quantity. Expiry-market cash custody, account positions, and payout movement\n * stay outside this module.\n */\n\nimport { MoveStruct } from '../utils/index.js';\nimport { bcs } from '@mysten/sui/bcs';\nimport { U64 } from '../../bcs/integers.js';\nimport * as strike_exposure_config from './strike_exposure_config.js';\nimport * as strike_payout_tree from './strike_payout_tree.js';\nimport * as order from './order.js';\nconst $moduleName = '@local-pkg/deepbook_predict::strike_exposure';\nexport const StrikeExposure = new MoveStruct({\n\tname: `${$moduleName}::StrikeExposure`,\n\tfields: {\n\t\t/** Expiry market that owns this exposure book. */\n\t\texpiry_market_id: bcs.Address,\n\t\t/** Raw-price-per-tick conversion factor; `raw_strike = tick * tick_size`. */\n\t\ttick_size: U64,\n\t\t/** Coarser raw-price step that new finite mint boundaries must align to. */\n\t\tadmission_tick_size: U64,\n\t\t/** Exact Propbook Pyth source timestamp used to derive the reference tick. */\n\t\treference_tick_source_timestamp_ms: U64,\n\t\t/** Reference fine-grid tick that may bypass the coarser admission grid once set. */\n\t\treference_tick: bcs.option(U64),\n\t\t/** Snapshotted exposure and fee policy for this expiry. */\n\t\tconfig: strike_exposure_config.StrikeExposureConfig,\n\t\t/**\n\t\t * Immutable USDC scale for the inventory-impact curve. This is the expiry's\n\t\t * snapshotted maximum pool allocation: a risk-capacity parameter, not live pool\n\t\t * equity, so LP flows cannot reprice an existing book.\n\t\t */\n\t\tinventory_impact_scale: U64,\n\t\tnext_order_sequence: U64,\n\t\t/** Terminal settlement price once the exposure has entered its settled phase. */\n\t\tsettlement_price: bcs.option(U64),\n\t\t/** Remaining payout liability in the settled phase. */\n\t\tsettled_payout_liability: U64,\n\t\t/** Sparse payout tree for live cash backing and settled liability. */\n\t\tpayout: strike_payout_tree.StrikePayoutTree,\n\t},\n});\nexport const MintTerms = new MoveStruct({\n\tname: `${$moduleName}::MintTerms`,\n\tfields: {\n\t\texpiry_market_id: bcs.Address,\n\t\tlower_tick: U64,\n\t\thigher_tick: U64,\n\t\tquantity: U64,\n\t\
|
|
1
|
+
{"version":3,"file":"strike_exposure.mjs","names":["strike_exposure_config.StrikeExposureConfig","strike_payout_tree.StrikePayoutTree","pricing.RangePrice","order.Order"],"sources":["../../../src/contracts/deepbook_predict/strike_exposure.ts"],"sourcesContent":["/**************************************************************\n * THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *\n **************************************************************/\n\n/**\n * Expiry-local exposure book for one expiry market.\n *\n * This module interprets `Order` terms against the expiry's `tick_size`,\n * recovering raw strikes from order ticks only at the pricing/settlement boundary.\n * It owns the payout-liability view of the active contracts used for cash backing.\n * Order accounting is static and needs no clock: a winning order pays its full\n * quantity. Expiry-market cash custody, account positions, and payout movement\n * stay outside this module.\n */\n\nimport { MoveStruct } from '../utils/index.js';\nimport { bcs } from '@mysten/sui/bcs';\nimport { U64 } from '../../bcs/integers.js';\nimport * as strike_exposure_config from './strike_exposure_config.js';\nimport * as strike_payout_tree from './strike_payout_tree.js';\nimport * as pricing from './pricing.js';\nimport * as order from './order.js';\nconst $moduleName = '@local-pkg/deepbook_predict::strike_exposure';\nexport const StrikeExposure = new MoveStruct({\n\tname: `${$moduleName}::StrikeExposure`,\n\tfields: {\n\t\t/** Expiry market that owns this exposure book. */\n\t\texpiry_market_id: bcs.Address,\n\t\t/** Raw-price-per-tick conversion factor; `raw_strike = tick * tick_size`. */\n\t\ttick_size: U64,\n\t\t/** Coarser raw-price step that new finite mint boundaries must align to. */\n\t\tadmission_tick_size: U64,\n\t\t/** Exact Propbook Pyth source timestamp used to derive the reference tick. */\n\t\treference_tick_source_timestamp_ms: U64,\n\t\t/** Reference fine-grid tick that may bypass the coarser admission grid once set. */\n\t\treference_tick: bcs.option(U64),\n\t\t/** Snapshotted exposure and fee policy for this expiry. */\n\t\tconfig: strike_exposure_config.StrikeExposureConfig,\n\t\t/**\n\t\t * Immutable USDC scale for the inventory-impact curve. This is the expiry's\n\t\t * snapshotted maximum pool allocation: a risk-capacity parameter, not live pool\n\t\t * equity, so LP flows cannot reprice an existing book.\n\t\t */\n\t\tinventory_impact_scale: U64,\n\t\tnext_order_sequence: U64,\n\t\t/** Terminal settlement price once the exposure has entered its settled phase. */\n\t\tsettlement_price: bcs.option(U64),\n\t\t/** Remaining payout liability in the settled phase. */\n\t\tsettled_payout_liability: U64,\n\t\t/** Sparse payout tree for live cash backing and settled liability. */\n\t\tpayout: strike_payout_tree.StrikePayoutTree,\n\t},\n});\nexport const MintTerms = new MoveStruct({\n\tname: `${$moduleName}::MintTerms`,\n\tfields: {\n\t\texpiry_market_id: bcs.Address,\n\t\tlower_tick: U64,\n\t\thigher_tick: U64,\n\t\tquantity: U64,\n\t\tprice: pricing.RangePrice,\n\t\tpremium: U64,\n\t\t/** Separate inventory-impact charge, sampled against the pre-mint book. */\n\t\tinventory_impact_charge: U64,\n\t},\n});\nexport const LiveCloseTerms = new MoveStruct({\n\tname: `${$moduleName}::LiveCloseTerms`,\n\tfields: {\n\t\texpiry_market_id: bcs.Address,\n\t\torder: order.Order,\n\t\tclose_quantity: U64,\n\t\tredeem_amount: U64,\n\t\tprice: pricing.RangePrice,\n\t\t/** Separate inventory-impact rebate, sampled against the pre-close book. */\n\t\tinventory_impact_rebate: U64,\n\t},\n});\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAsBA,MAAM,cAAc;AACpB,MAAa,iBAAiB,IAAI,WAAW;CAC5C,MAAM,GAAG,YAAY;CACrB,QAAQ;EAEP,kBAAkB,IAAI;EAEtB,WAAW;EAEX,qBAAqB;EAErB,oCAAoC;EAEpC,gBAAgB,IAAI,OAAO,IAAI;EAE/B,QAAQA;EAMR,wBAAwB;EACxB,qBAAqB;EAErB,kBAAkB,IAAI,OAAO,IAAI;EAEjC,0BAA0B;EAE1B,QAAQC;EACR;CACD,CAAC;AACF,MAAa,YAAY,IAAI,WAAW;CACvC,MAAM,GAAG,YAAY;CACrB,QAAQ;EACP,kBAAkB,IAAI;EACtB,YAAY;EACZ,aAAa;EACb,UAAU;EACV,OAAOC;EACP,SAAS;EAET,yBAAyB;EACzB;CACD,CAAC;AACF,MAAa,iBAAiB,IAAI,WAAW;CAC5C,MAAM,GAAG,YAAY;CACrB,QAAQ;EACP,kBAAkB,IAAI;EACtB,OAAOC;EACP,gBAAgB;EAChB,eAAe;EACf,OAAOD;EAEP,yBAAyB;EACzB;CACD,CAAC"}
|
|
@@ -1,198 +1,198 @@
|
|
|
1
1
|
import { MoveStruct } from "../utils/index.mjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as _mysten_sui_bcs324 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, ExpiryProfitMaterialized, FeeIncentivesAllocated, FeeIncentivesReturned, FeeIncentivesSponsored, FlushExecuted, FlushRestarted, RequestCancelled, RequestLimitMissed, SupplyFilled, SupplyRequested, 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_bcs324.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
10
|
+
expiry_market_id: _mysten_sui_bcs324.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
11
|
+
settlement_price: _mysten_sui_bcs324.BcsType<bigint, string | number | bigint, "u64">;
|
|
12
|
+
amount: _mysten_sui_bcs324.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_bcs324.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
16
|
+
expiry_market_id: _mysten_sui_bcs324.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
17
|
+
amount: _mysten_sui_bcs324.BcsType<bigint, string | number | bigint, "u64">;
|
|
18
|
+
to_expiry: _mysten_sui_bcs324.BcsType<boolean, boolean, "bool">;
|
|
19
|
+
target_cash: _mysten_sui_bcs324.BcsType<bigint, string | number | bigint, "u64">;
|
|
20
|
+
protocol_profit_realized: _mysten_sui_bcs324.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_bcs324.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
24
|
+
expiry_market_id: _mysten_sui_bcs324.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
25
|
+
lp_profit: _mysten_sui_bcs324.BcsType<bigint, string | number | bigint, "u64">;
|
|
26
|
+
protocol_profit: _mysten_sui_bcs324.BcsType<bigint, string | number | bigint, "u64">;
|
|
27
|
+
protocol_reserve_balance_after: _mysten_sui_bcs324.BcsType<bigint, string | number | bigint, "u64">;
|
|
28
|
+
profit_basis_after: _mysten_sui_bcs324.BcsType<bigint, string | number | bigint, "u64">;
|
|
29
|
+
pending_protocol_profit_after: _mysten_sui_bcs324.BcsType<bigint, string | number | bigint, "u64">;
|
|
30
30
|
}, "@local-pkg/deepbook_predict::vault_events::ExpiryProfitMaterialized">;
|
|
31
31
|
declare const SupplyRequested: MoveStruct<{
|
|
32
|
-
pool_vault_id:
|
|
33
|
-
account_id:
|
|
34
|
-
recipient:
|
|
35
|
-
index:
|
|
36
|
-
amount:
|
|
37
|
-
min_plp_out:
|
|
38
|
-
requests_pending_after:
|
|
32
|
+
pool_vault_id: _mysten_sui_bcs324.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
33
|
+
account_id: _mysten_sui_bcs324.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
34
|
+
recipient: _mysten_sui_bcs324.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
35
|
+
index: _mysten_sui_bcs324.BcsType<bigint, string | number | bigint, "u64">;
|
|
36
|
+
amount: _mysten_sui_bcs324.BcsType<bigint, string | number | bigint, "u64">;
|
|
37
|
+
min_plp_out: _mysten_sui_bcs324.BcsType<bigint, string | number | bigint, "u64">;
|
|
38
|
+
requests_pending_after: _mysten_sui_bcs324.BcsType<bigint, string | number | bigint, "u64">;
|
|
39
39
|
}, "@local-pkg/deepbook_predict::vault_events::SupplyRequested">;
|
|
40
40
|
declare const WithdrawRequested: MoveStruct<{
|
|
41
|
-
pool_vault_id:
|
|
42
|
-
account_id:
|
|
43
|
-
recipient:
|
|
44
|
-
index:
|
|
45
|
-
amount:
|
|
46
|
-
min_usdc_out:
|
|
47
|
-
requests_pending_after:
|
|
41
|
+
pool_vault_id: _mysten_sui_bcs324.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
42
|
+
account_id: _mysten_sui_bcs324.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
43
|
+
recipient: _mysten_sui_bcs324.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
44
|
+
index: _mysten_sui_bcs324.BcsType<bigint, string | number | bigint, "u64">;
|
|
45
|
+
amount: _mysten_sui_bcs324.BcsType<bigint, string | number | bigint, "u64">;
|
|
46
|
+
min_usdc_out: _mysten_sui_bcs324.BcsType<bigint, string | number | bigint, "u64">;
|
|
47
|
+
requests_pending_after: _mysten_sui_bcs324.BcsType<bigint, string | number | bigint, "u64">;
|
|
48
48
|
}, "@local-pkg/deepbook_predict::vault_events::WithdrawRequested">;
|
|
49
49
|
declare const RequestCancelled: MoveStruct<{
|
|
50
|
-
pool_vault_id:
|
|
51
|
-
account_id:
|
|
52
|
-
recipient:
|
|
53
|
-
index:
|
|
54
|
-
amount:
|
|
55
|
-
is_supply:
|
|
50
|
+
pool_vault_id: _mysten_sui_bcs324.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
51
|
+
account_id: _mysten_sui_bcs324.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
52
|
+
recipient: _mysten_sui_bcs324.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
53
|
+
index: _mysten_sui_bcs324.BcsType<bigint, string | number | bigint, "u64">;
|
|
54
|
+
amount: _mysten_sui_bcs324.BcsType<bigint, string | number | bigint, "u64">;
|
|
55
|
+
is_supply: _mysten_sui_bcs324.BcsType<boolean, boolean, "bool">;
|
|
56
56
|
/**
|
|
57
57
|
* 0=user, 1=non-executable frozen mark, 2=quote below the request's minimum
|
|
58
58
|
* output.
|
|
59
59
|
*/
|
|
60
|
-
reason:
|
|
61
|
-
requests_pending_after:
|
|
60
|
+
reason: _mysten_sui_bcs324.BcsType<number, number, "u8">;
|
|
61
|
+
requests_pending_after: _mysten_sui_bcs324.BcsType<bigint, string | number | bigint, "u64">;
|
|
62
62
|
}, "@local-pkg/deepbook_predict::vault_events::RequestCancelled">;
|
|
63
63
|
declare const RequestLimitMissed: MoveStruct<{
|
|
64
|
-
pool_vault_id:
|
|
65
|
-
account_id:
|
|
66
|
-
recipient:
|
|
67
|
-
index:
|
|
68
|
-
amount:
|
|
69
|
-
is_supply:
|
|
70
|
-
quoted_output:
|
|
71
|
-
min_output:
|
|
72
|
-
missed_flushes:
|
|
73
|
-
max_misses:
|
|
64
|
+
pool_vault_id: _mysten_sui_bcs324.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
65
|
+
account_id: _mysten_sui_bcs324.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
66
|
+
recipient: _mysten_sui_bcs324.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
67
|
+
index: _mysten_sui_bcs324.BcsType<bigint, string | number | bigint, "u64">;
|
|
68
|
+
amount: _mysten_sui_bcs324.BcsType<bigint, string | number | bigint, "u64">;
|
|
69
|
+
is_supply: _mysten_sui_bcs324.BcsType<boolean, boolean, "bool">;
|
|
70
|
+
quoted_output: _mysten_sui_bcs324.BcsType<bigint, string | number | bigint, "u64">;
|
|
71
|
+
min_output: _mysten_sui_bcs324.BcsType<bigint, string | number | bigint, "u64">;
|
|
72
|
+
missed_flushes: _mysten_sui_bcs324.BcsType<bigint, string | number | bigint, "u64">;
|
|
73
|
+
max_misses: _mysten_sui_bcs324.BcsType<bigint, string | number | bigint, "u64">;
|
|
74
74
|
}, "@local-pkg/deepbook_predict::vault_events::RequestLimitMissed">;
|
|
75
75
|
declare const SupplyFilled: MoveStruct<{
|
|
76
|
-
pool_vault_id:
|
|
77
|
-
account_id:
|
|
78
|
-
recipient:
|
|
79
|
-
index:
|
|
76
|
+
pool_vault_id: _mysten_sui_bcs324.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
77
|
+
account_id: _mysten_sui_bcs324.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
78
|
+
recipient: _mysten_sui_bcs324.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
79
|
+
index: _mysten_sui_bcs324.BcsType<bigint, string | number | bigint, "u64">;
|
|
80
80
|
/**
|
|
81
81
|
* USDC actually taken into the pool, which is less than the request's escrow when
|
|
82
82
|
* the supply cap left only part of it room. Shares were priced on
|
|
83
83
|
* `usdc_amount - fee_usdc`.
|
|
84
84
|
*/
|
|
85
|
-
usdc_amount:
|
|
86
|
-
shares_minted:
|
|
87
|
-
fee_usdc:
|
|
85
|
+
usdc_amount: _mysten_sui_bcs324.BcsType<bigint, string | number | bigint, "u64">;
|
|
86
|
+
shares_minted: _mysten_sui_bcs324.BcsType<bigint, string | number | bigint, "u64">; /** Supply fee withheld from `usdc_amount` and retained by the pool. */
|
|
87
|
+
fee_usdc: _mysten_sui_bcs324.BcsType<bigint, string | number | bigint, "u64">;
|
|
88
88
|
/**
|
|
89
89
|
* Escrow still queued at the head after a partial fill; `0` on a full fill, in
|
|
90
90
|
* which case the request is gone. `usdc_amount + usdc_remaining` is the amount the
|
|
91
91
|
* request carried into this flush.
|
|
92
92
|
*/
|
|
93
|
-
usdc_remaining:
|
|
94
|
-
requests_pending_after:
|
|
93
|
+
usdc_remaining: _mysten_sui_bcs324.BcsType<bigint, string | number | bigint, "u64">;
|
|
94
|
+
requests_pending_after: _mysten_sui_bcs324.BcsType<bigint, string | number | bigint, "u64">;
|
|
95
95
|
}, "@local-pkg/deepbook_predict::vault_events::SupplyFilled">;
|
|
96
96
|
declare const WithdrawFilled: MoveStruct<{
|
|
97
|
-
pool_vault_id:
|
|
98
|
-
account_id:
|
|
99
|
-
recipient:
|
|
100
|
-
index:
|
|
101
|
-
shares_burned:
|
|
97
|
+
pool_vault_id: _mysten_sui_bcs324.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
98
|
+
account_id: _mysten_sui_bcs324.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
99
|
+
recipient: _mysten_sui_bcs324.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
100
|
+
index: _mysten_sui_bcs324.BcsType<bigint, string | number | bigint, "u64">;
|
|
101
|
+
shares_burned: _mysten_sui_bcs324.BcsType<bigint, string | number | bigint, "u64">;
|
|
102
102
|
/**
|
|
103
103
|
* Net USDC delivered to `recipient`. The gross marked value of `shares_burned` was
|
|
104
104
|
* `usdc_amount + fee_usdc`.
|
|
105
105
|
*/
|
|
106
|
-
usdc_amount:
|
|
107
|
-
fee_usdc:
|
|
106
|
+
usdc_amount: _mysten_sui_bcs324.BcsType<bigint, string | number | bigint, "u64">; /** Withdraw fee withheld from the payout and retained by the pool. */
|
|
107
|
+
fee_usdc: _mysten_sui_bcs324.BcsType<bigint, string | number | bigint, "u64">;
|
|
108
108
|
/**
|
|
109
109
|
* Escrowed PLP still queued at the head after a partial fill; `0` on a full fill,
|
|
110
110
|
* in which case the request is gone. `shares_burned + shares_remaining` is the
|
|
111
111
|
* amount the request carried into this flush.
|
|
112
112
|
*/
|
|
113
|
-
shares_remaining:
|
|
114
|
-
requests_pending_after:
|
|
113
|
+
shares_remaining: _mysten_sui_bcs324.BcsType<bigint, string | number | bigint, "u64">;
|
|
114
|
+
requests_pending_after: _mysten_sui_bcs324.BcsType<bigint, string | number | bigint, "u64">;
|
|
115
115
|
}, "@local-pkg/deepbook_predict::vault_events::WithdrawFilled">;
|
|
116
116
|
declare const FlushExecuted: MoveStruct<{
|
|
117
|
-
pool_vault_id:
|
|
118
|
-
epoch:
|
|
117
|
+
pool_vault_id: _mysten_sui_bcs324.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
118
|
+
epoch: _mysten_sui_bcs324.BcsType<bigint, string | number | bigint, "u64">;
|
|
119
119
|
/**
|
|
120
120
|
* LP-attributable pool NAV every fill was priced at: idle plus
|
|
121
121
|
* `active_market_nav`, excluding unrealized and pending protocol profit.
|
|
122
122
|
*/
|
|
123
|
-
pool_value:
|
|
124
|
-
total_supply:
|
|
123
|
+
pool_value: _mysten_sui_bcs324.BcsType<bigint, string | number | bigint, "u64">; /** PLP supply in the frozen pre-drain mark used to price every fill. */
|
|
124
|
+
total_supply: _mysten_sui_bcs324.BcsType<bigint, string | number | bigint, "u64">;
|
|
125
125
|
/**
|
|
126
126
|
* Supply-leg fee rate in FLOAT_SCALING, frozen with the mark and charged on every
|
|
127
127
|
* supply fill in this flush.
|
|
128
128
|
*/
|
|
129
|
-
supply_fee_rate:
|
|
130
|
-
withdraw_fee_rate:
|
|
129
|
+
supply_fee_rate: _mysten_sui_bcs324.BcsType<bigint, string | number | bigint, "u64">; /** Withdraw-leg fee rate in FLOAT_SCALING, frozen alongside it. */
|
|
130
|
+
withdraw_fee_rate: _mysten_sui_bcs324.BcsType<bigint, string | number | bigint, "u64">;
|
|
131
131
|
/**
|
|
132
132
|
* Sum of the marked NAV contributed by each active market; settled markets add
|
|
133
133
|
* zero.
|
|
134
134
|
*/
|
|
135
|
-
active_market_nav:
|
|
136
|
-
market_count:
|
|
135
|
+
active_market_nav: _mysten_sui_bcs324.BcsType<bigint, string | number | bigint, "u64">; /** Number of active markets valued for this flush. */
|
|
136
|
+
market_count: _mysten_sui_bcs324.BcsType<bigint, string | number | bigint, "u64">;
|
|
137
137
|
/**
|
|
138
138
|
* LIVE idle USDC read at finish time, immediately before the drain — NOT a mark
|
|
139
139
|
* input. It brackets the drain with `idle_balance_after`; because maintenance,
|
|
140
140
|
* settlement sweeps, and trading run mid-window, it can differ from
|
|
141
141
|
* `frozen_idle_balance` below. Drain telemetry, not the mark.
|
|
142
142
|
*/
|
|
143
|
-
idle_balance_before:
|
|
143
|
+
idle_balance_before: _mysten_sui_bcs324.BcsType<bigint, string | number | bigint, "u64">;
|
|
144
144
|
/**
|
|
145
145
|
* The mark's idle component: idle USDC FROZEN at the seal. `frozen_idle_balance
|
|
146
146
|
*
|
|
147
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
148
|
*/
|
|
149
|
-
frozen_idle_balance:
|
|
150
|
-
supplies_filled:
|
|
151
|
-
withdrawals_filled:
|
|
152
|
-
requests_processed:
|
|
153
|
-
idle_balance_after:
|
|
154
|
-
total_supply_after:
|
|
149
|
+
frozen_idle_balance: _mysten_sui_bcs324.BcsType<bigint, string | number | bigint, "u64">;
|
|
150
|
+
supplies_filled: _mysten_sui_bcs324.BcsType<bigint, string | number | bigint, "u64">;
|
|
151
|
+
withdrawals_filled: _mysten_sui_bcs324.BcsType<bigint, string | number | bigint, "u64">;
|
|
152
|
+
requests_processed: _mysten_sui_bcs324.BcsType<bigint, string | number | bigint, "u64">;
|
|
153
|
+
idle_balance_after: _mysten_sui_bcs324.BcsType<bigint, string | number | bigint, "u64">; /** PLP supply after the drain's completed mints and burns. */
|
|
154
|
+
total_supply_after: _mysten_sui_bcs324.BcsType<bigint, string | number | bigint, "u64">;
|
|
155
155
|
/**
|
|
156
156
|
* Each queue's `next_index` at this flush's snapshot instant; the drain filled
|
|
157
157
|
* only requests indexed strictly below these.
|
|
158
158
|
*/
|
|
159
|
-
supply_request_cutoff:
|
|
160
|
-
withdraw_request_cutoff:
|
|
159
|
+
supply_request_cutoff: _mysten_sui_bcs324.BcsType<bigint, string | number | bigint, "u64">;
|
|
160
|
+
withdraw_request_cutoff: _mysten_sui_bcs324.BcsType<bigint, string | number | bigint, "u64">;
|
|
161
161
|
/**
|
|
162
162
|
* Clock instant the snapshot stage froze every market's pricer — the moment the
|
|
163
163
|
* mark prices the pool at. Fills execute later in the same flush; this is the
|
|
164
164
|
* timestamp they were priced as of.
|
|
165
165
|
*/
|
|
166
|
-
snapshot_timestamp_ms:
|
|
166
|
+
snapshot_timestamp_ms: _mysten_sui_bcs324.BcsType<bigint, string | number | bigint, "u64">;
|
|
167
167
|
}, "@local-pkg/deepbook_predict::vault_events::FlushExecuted">;
|
|
168
168
|
declare const FlushRestarted: MoveStruct<{
|
|
169
|
-
pool_vault_id:
|
|
170
|
-
expected_market_count:
|
|
171
|
-
valued_market_count:
|
|
169
|
+
pool_vault_id: _mysten_sui_bcs324.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
170
|
+
expected_market_count: _mysten_sui_bcs324.BcsType<bigint, string | number | bigint, "u64">;
|
|
171
|
+
valued_market_count: _mysten_sui_bcs324.BcsType<bigint, string | number | bigint, "u64">;
|
|
172
172
|
}, "@local-pkg/deepbook_predict::vault_events::FlushRestarted">;
|
|
173
173
|
declare const CapitalLocked: MoveStruct<{
|
|
174
|
-
pool_vault_id:
|
|
175
|
-
amount:
|
|
174
|
+
pool_vault_id: _mysten_sui_bcs324.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
175
|
+
amount: _mysten_sui_bcs324.BcsType<bigint, string | number | bigint, "u64">;
|
|
176
176
|
}, "@local-pkg/deepbook_predict::vault_events::CapitalLocked">;
|
|
177
177
|
declare const FeeIncentivesSponsored: MoveStruct<{
|
|
178
|
-
pool_vault_id:
|
|
179
|
-
sponsor:
|
|
180
|
-
amount:
|
|
181
|
-
reserve_after:
|
|
178
|
+
pool_vault_id: _mysten_sui_bcs324.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
179
|
+
sponsor: _mysten_sui_bcs324.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
180
|
+
amount: _mysten_sui_bcs324.BcsType<bigint, string | number | bigint, "u64">;
|
|
181
|
+
reserve_after: _mysten_sui_bcs324.BcsType<bigint, string | number | bigint, "u64">;
|
|
182
182
|
}, "@local-pkg/deepbook_predict::vault_events::FeeIncentivesSponsored">;
|
|
183
183
|
declare const FeeIncentivesAllocated: MoveStruct<{
|
|
184
|
-
pool_vault_id:
|
|
185
|
-
expiry_market_id:
|
|
186
|
-
amount:
|
|
187
|
-
pool_reserve_after:
|
|
188
|
-
expiry_incentive_balance_after:
|
|
189
|
-
expiry_incentives_allocated_after:
|
|
184
|
+
pool_vault_id: _mysten_sui_bcs324.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
185
|
+
expiry_market_id: _mysten_sui_bcs324.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
186
|
+
amount: _mysten_sui_bcs324.BcsType<bigint, string | number | bigint, "u64">;
|
|
187
|
+
pool_reserve_after: _mysten_sui_bcs324.BcsType<bigint, string | number | bigint, "u64">;
|
|
188
|
+
expiry_incentive_balance_after: _mysten_sui_bcs324.BcsType<bigint, string | number | bigint, "u64">;
|
|
189
|
+
expiry_incentives_allocated_after: _mysten_sui_bcs324.BcsType<bigint, string | number | bigint, "u64">;
|
|
190
190
|
}, "@local-pkg/deepbook_predict::vault_events::FeeIncentivesAllocated">;
|
|
191
191
|
declare const FeeIncentivesReturned: MoveStruct<{
|
|
192
|
-
pool_vault_id:
|
|
193
|
-
expiry_market_id:
|
|
194
|
-
amount:
|
|
195
|
-
pool_reserve_after:
|
|
192
|
+
pool_vault_id: _mysten_sui_bcs324.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
193
|
+
expiry_market_id: _mysten_sui_bcs324.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
194
|
+
amount: _mysten_sui_bcs324.BcsType<bigint, string | number | bigint, "u64">;
|
|
195
|
+
pool_reserve_after: _mysten_sui_bcs324.BcsType<bigint, string | number | bigint, "u64">;
|
|
196
196
|
}, "@local-pkg/deepbook_predict::vault_events::FeeIncentivesReturned">;
|
|
197
197
|
//#endregion
|
|
198
198
|
export { vault_events_d_exports };
|