@mysten/deepbook-v3 2.9.2 → 2.10.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +58 -0
- package/README.md +21 -0
- package/dist/account-bindings/account-registry.d.mts +109 -0
- package/dist/account-bindings/account-registry.d.mts.map +1 -0
- package/dist/account-bindings/account-registry.mjs +56 -0
- package/dist/account-bindings/account-registry.mjs.map +1 -0
- package/dist/account-bindings/account.d.mts +176 -0
- package/dist/account-bindings/account.d.mts.map +1 -0
- package/dist/account-bindings/account.mjs +94 -0
- package/dist/account-bindings/account.mjs.map +1 -0
- package/dist/account-bindings/latest.d.mts +12 -0
- package/dist/account-bindings/latest.d.mts.map +1 -0
- package/dist/account-bindings/latest.mjs +19 -0
- package/dist/account-bindings/latest.mjs.map +1 -0
- package/dist/account.d.mts +46 -3
- package/dist/account.d.mts.map +1 -1
- package/dist/account.mjs +51 -2
- package/dist/account.mjs.map +1 -1
- package/dist/contracts/account/account.d.mts +25 -97
- package/dist/contracts/account/account.d.mts.map +1 -1
- package/dist/contracts/account/account.mjs +43 -35
- package/dist/contracts/account/account.mjs.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 +7 -54
- package/dist/contracts/account/account_registry.d.mts.map +1 -1
- package/dist/contracts/account/account_registry.mjs +2 -22
- package/dist/contracts/account/account_registry.mjs.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 +60 -13
- package/dist/contracts/deepbook_predict/builder_code.d.mts.map +1 -1
- package/dist/contracts/deepbook_predict/builder_code.mjs +55 -1
- package/dist/contracts/deepbook_predict/builder_code.mjs.map +1 -1
- package/dist/contracts/deepbook_predict/builder_code_events.d.mts +10 -10
- package/dist/contracts/deepbook_predict/config_events.d.mts +88 -84
- package/dist/contracts/deepbook_predict/config_events.d.mts.map +1 -1
- package/dist/contracts/deepbook_predict/config_events.mjs +8 -0
- package/dist/contracts/deepbook_predict/config_events.mjs.map +1 -1
- package/dist/contracts/deepbook_predict/expiry_market.d.mts +262 -101
- package/dist/contracts/deepbook_predict/expiry_market.d.mts.map +1 -1
- package/dist/contracts/deepbook_predict/expiry_market.mjs +320 -41
- package/dist/contracts/deepbook_predict/expiry_market.mjs.map +1 -1
- package/dist/contracts/deepbook_predict/market_lifecycle_cap.d.mts +5 -5
- package/dist/contracts/deepbook_predict/market_manager.d.mts +27 -27
- package/dist/contracts/deepbook_predict/order_events.d.mts +56 -54
- package/dist/contracts/deepbook_predict/order_events.d.mts.map +1 -1
- package/dist/contracts/deepbook_predict/order_events.mjs.map +1 -1
- package/dist/contracts/deepbook_predict/pause_cap.d.mts +5 -5
- package/dist/contracts/deepbook_predict/plp.d.mts +74 -74
- package/dist/contracts/deepbook_predict/plp.d.mts.map +1 -1
- package/dist/contracts/deepbook_predict/pool_valuation_cap.d.mts +5 -5
- package/dist/contracts/deepbook_predict/predict_account.d.mts +22 -17
- package/dist/contracts/deepbook_predict/predict_account.d.mts.map +1 -1
- package/dist/contracts/deepbook_predict/predict_account.mjs +12 -6
- package/dist/contracts/deepbook_predict/predict_account.mjs.map +1 -1
- package/dist/contracts/deepbook_predict/pricing.d.mts +67 -67
- package/dist/contracts/deepbook_predict/pricing.d.mts.map +1 -1
- package/dist/contracts/deepbook_predict/protocol_config.d.mts +127 -83
- package/dist/contracts/deepbook_predict/protocol_config.d.mts.map +1 -1
- package/dist/contracts/deepbook_predict/protocol_config.mjs +59 -1
- package/dist/contracts/deepbook_predict/protocol_config.mjs.map +1 -1
- package/dist/contracts/deepbook_predict/range_codec.d.mts +2 -2
- package/dist/contracts/deepbook_predict/registry.d.mts +32 -32
- package/dist/contracts/deepbook_predict/vault_events.d.mts +131 -131
- package/dist/contracts/deepbook_predict_math/lazer_price.d.mts +13 -13
- package/dist/contracts/deepbook_predict_math/math.d.mts +14 -14
- package/dist/contracts/deepbook_predict_orders/delayed_execution_config.d.mts +30 -30
- package/dist/contracts/deepbook_predict_orders/deps/deepbook_predict/expiry_market.mjs +6 -0
- package/dist/contracts/deepbook_predict_orders/deps/deepbook_predict/expiry_market.mjs.map +1 -1
- package/dist/contracts/deepbook_predict_orders/desk.d.mts +28 -28
- package/dist/contracts/deepbook_predict_orders/order_queue.d.mts +187 -187
- package/dist/contracts/deepbook_predict_orders/queue.d.mts +240 -62
- package/dist/contracts/deepbook_predict_orders/queue.d.mts.map +1 -1
- package/dist/contracts/deepbook_predict_orders/queue.mjs +306 -41
- package/dist/contracts/deepbook_predict_orders/queue.mjs.map +1 -1
- package/dist/contracts/deepbook_predict_orders/queue_events.d.mts +140 -140
- package/dist/contracts/deepbook_sessions/session_config.d.mts +8 -8
- package/dist/contracts/deepbook_sessions/session_config.d.mts.map +1 -1
- package/dist/contracts/deepbook_sessions/sessions.d.mts +271 -31
- package/dist/contracts/deepbook_sessions/sessions.d.mts.map +1 -1
- package/dist/contracts/deepbook_sessions/sessions.mjs +363 -3
- package/dist/contracts/deepbook_sessions/sessions.mjs.map +1 -1
- package/dist/deployments/mainnet.mjs.map +1 -1
- package/dist/deployments/testnet.d.mts.map +1 -1
- package/dist/deployments/testnet.mjs +7 -4
- package/dist/deployments/testnet.mjs.map +1 -1
- package/dist/predict/bindings/expiry-market.d.mts +57 -7
- package/dist/predict/bindings/expiry-market.d.mts.map +1 -1
- package/dist/predict/bindings/expiry-market.mjs +48 -2
- package/dist/predict/bindings/expiry-market.mjs.map +1 -1
- package/dist/predict/bindings/protocol-config.d.mts +5 -5
- package/dist/predict/bindings/protocol-config.mjs +4 -1
- package/dist/predict/bindings/protocol-config.mjs.map +1 -1
- package/dist/predict/bindings/queue.d.mts +30 -0
- package/dist/predict/bindings/queue.d.mts.map +1 -0
- package/dist/predict/bindings/queue.mjs +59 -0
- package/dist/predict/bindings/queue.mjs.map +1 -0
- package/dist/predict/bindings/rename.mjs +5 -1
- package/dist/predict/bindings/rename.mjs.map +1 -1
- package/dist/predict/client.d.mts.map +1 -1
- package/dist/predict/client.mjs +11 -5
- package/dist/predict/client.mjs.map +1 -1
- package/dist/predict/config/generated.d.mts +1 -1
- package/dist/predict/config/generated.d.mts.map +1 -1
- package/dist/predict/config/generated.mjs +1 -0
- package/dist/predict/config/generated.mjs.map +1 -1
- package/dist/predict/config/mainnet.mjs +3 -1
- package/dist/predict/config/mainnet.mjs.map +1 -1
- package/dist/predict/config/testnet.mjs +3 -1
- package/dist/predict/config/testnet.mjs.map +1 -1
- package/dist/predict/config/types.d.mts +23 -0
- package/dist/predict/config/types.d.mts.map +1 -1
- package/dist/predict/cost.d.mts +9 -1
- package/dist/predict/cost.d.mts.map +1 -1
- package/dist/predict/cost.mjs.map +1 -1
- package/dist/predict/errors.d.mts.map +1 -1
- package/dist/predict/errors.mjs +6 -2
- package/dist/predict/errors.mjs.map +1 -1
- package/dist/predict/index.d.mts +1 -1
- package/dist/predict/index.mjs +2 -2
- package/dist/predict/queue.d.mts +8 -4
- package/dist/predict/queue.d.mts.map +1 -1
- package/dist/predict/queue.mjs +8 -4
- package/dist/predict/queue.mjs.map +1 -1
- package/dist/predict/reads/balances.mjs +1 -1
- package/dist/predict/reads/queue.d.mts +3 -2
- package/dist/predict/reads/queue.d.mts.map +1 -1
- package/dist/predict/reads/queue.mjs +5 -4
- package/dist/predict/reads/queue.mjs.map +1 -1
- package/dist/predict/tx/authed.mjs +1 -1
- package/dist/predict/tx/common.d.mts.map +1 -1
- package/dist/predict/tx/common.mjs +3 -2
- package/dist/predict/tx/common.mjs.map +1 -1
- package/dist/predict/tx/trade.d.mts.map +1 -1
- package/dist/predict/tx/trade.mjs +3 -2
- package/dist/predict/tx/trade.mjs.map +1 -1
- package/dist/sessions.d.mts +10 -1
- package/dist/sessions.d.mts.map +1 -1
- package/dist/sessions.mjs.map +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/deepbookAdmin.d.mts.map +1 -1
- package/dist/transactions/marginAdmin.d.mts +7 -7
- package/dist/transactions/marginAdmin.d.mts.map +1 -1
- package/dist/transactions/marginLiquidations.d.mts +3 -3
- package/dist/transactions/marginMaintainer.d.mts +5 -5
- package/dist/transactions/marginMaintainer.d.mts.map +1 -1
- package/dist/transactions/marginManager.d.mts +32 -32
- package/dist/transactions/marginManager.d.mts.map +1 -1
- package/dist/transactions/marginPool.d.mts +18 -18
- package/dist/transactions/marginPool.d.mts.map +1 -1
- package/dist/transactions/marginRegistry.d.mts +16 -16
- package/dist/transactions/marginTPSL.d.mts +10 -10
- package/dist/transactions/marginTPSL.d.mts.map +1 -1
- package/dist/transactions/poolProxy.d.mts +8 -8
- package/dist/transactions/poolProxy.d.mts.map +1 -1
- package/dist/utils/constants.d.mts.map +1 -1
- package/dist/utils/constants.mjs +2 -2
- package/dist/utils/constants.mjs.map +1 -1
- package/package.json +1 -1
- package/src/account-bindings/account-registry.ts +39 -0
- package/src/account-bindings/account.ts +73 -0
- package/src/account-bindings/latest.ts +41 -0
- package/src/account.ts +89 -5
- package/src/contracts/account/account.ts +73 -4
- package/src/contracts/account/account_registry.ts +1 -1
- package/src/contracts/deepbook_predict/builder_code.ts +94 -2
- package/src/contracts/deepbook_predict/config_events.ts +7 -0
- package/src/contracts/deepbook_predict/expiry_market.ts +490 -44
- package/src/contracts/deepbook_predict/order_events.ts +6 -4
- package/src/contracts/deepbook_predict/predict_account.ts +12 -6
- package/src/contracts/deepbook_predict/protocol_config.ts +85 -0
- package/src/contracts/deepbook_predict_orders/deps/deepbook_predict/expiry_market.ts +14 -0
- package/src/contracts/deepbook_predict_orders/order_flow.ts +4 -0
- package/src/contracts/deepbook_predict_orders/queue.ts +495 -9
- package/src/contracts/deepbook_sessions/sessions.ts +538 -3
- package/src/deployments/mainnet.ts +4 -4
- package/src/deployments/testnet.ts +18 -7
- package/src/deployments/types.ts +14 -0
- package/src/predict/bindings/expiry-market.ts +87 -0
- package/src/predict/bindings/queue.ts +42 -0
- package/src/predict/bindings/rename.ts +5 -1
- package/src/predict/client.ts +25 -3
- package/src/predict/config/generated.ts +3 -0
- package/src/predict/config/mainnet.ts +4 -0
- package/src/predict/config/testnet.ts +4 -0
- package/src/predict/config/types.ts +23 -0
- package/src/predict/cost.ts +9 -1
- package/src/predict/errors.ts +11 -1
- package/src/predict/index.ts +1 -1
- package/src/predict/queue.ts +8 -4
- package/src/predict/reads/queue.ts +7 -4
- package/src/predict/tx/common.ts +2 -0
- package/src/predict/tx/trade.ts +3 -1
- package/src/sessions.ts +10 -1
- package/src/utils/constants.ts +8 -3
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { MoveStruct, RawTransactionArgument } from "../utils/index.mjs";
|
|
2
|
-
import * as
|
|
3
|
-
import * as
|
|
2
|
+
import * as _mysten_sui_bcs29 from "@mysten/sui/bcs";
|
|
3
|
+
import * as _mysten_sui_transactions121 from "@mysten/sui/transactions";
|
|
4
4
|
import { Transaction } from "@mysten/sui/transactions";
|
|
5
5
|
|
|
6
6
|
//#region src/contracts/deepbook_predict/market_lifecycle_cap.d.ts
|
|
@@ -8,7 +8,7 @@ declare namespace market_lifecycle_cap_d_exports {
|
|
|
8
8
|
export { DestroyArguments, DestroyOptions, IdArguments, IdOptions, MarketLifecycleCap, destroy, id };
|
|
9
9
|
}
|
|
10
10
|
declare const MarketLifecycleCap: MoveStruct<{
|
|
11
|
-
id:
|
|
11
|
+
id: _mysten_sui_bcs29.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
12
12
|
}, "@local-pkg/deepbook_predict::market_lifecycle_cap::MarketLifecycleCap">;
|
|
13
13
|
interface IdArguments {
|
|
14
14
|
cap: RawTransactionArgument<string>;
|
|
@@ -21,7 +21,7 @@ interface IdOptions {
|
|
|
21
21
|
};
|
|
22
22
|
}
|
|
23
23
|
/** Returns the capability identity used by the registry allowlist. */
|
|
24
|
-
declare function id(options: IdOptions): (tx: Transaction) =>
|
|
24
|
+
declare function id(options: IdOptions): (tx: Transaction) => _mysten_sui_transactions121.TransactionResult;
|
|
25
25
|
interface DestroyArguments {
|
|
26
26
|
cap: RawTransactionArgument<string>;
|
|
27
27
|
}
|
|
@@ -33,7 +33,7 @@ interface DestroyOptions {
|
|
|
33
33
|
};
|
|
34
34
|
}
|
|
35
35
|
/** Destroy a `MarketLifecycleCap` the holder no longer needs. */
|
|
36
|
-
declare function destroy(options: DestroyOptions): (tx: Transaction) =>
|
|
36
|
+
declare function destroy(options: DestroyOptions): (tx: Transaction) => _mysten_sui_transactions121.TransactionResult;
|
|
37
37
|
//#endregion
|
|
38
38
|
export { market_lifecycle_cap_d_exports };
|
|
39
39
|
//# sourceMappingURL=market_lifecycle_cap.d.mts.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { MoveStruct } from "../utils/index.mjs";
|
|
2
|
-
import * as
|
|
3
|
-
import * as
|
|
2
|
+
import * as _mysten_sui_bcs30 from "@mysten/sui/bcs";
|
|
3
|
+
import * as _mysten_sui_transactions123 from "@mysten/sui/transactions";
|
|
4
4
|
import { Transaction, TransactionArgument } from "@mysten/sui/transactions";
|
|
5
5
|
|
|
6
6
|
//#region src/contracts/deepbook_predict/market_manager.d.ts
|
|
@@ -8,58 +8,58 @@ declare namespace market_manager_d_exports {
|
|
|
8
8
|
export { CadenceAdmissionTickSizeArguments, CadenceAdmissionTickSizeOptions, CadenceConfig, CadenceEnabledArguments, CadenceEnabledOptions, CadenceInitialExpiryCashArguments, CadenceInitialExpiryCashOptions, CadenceMaxExpiryAllocationArguments, CadenceMaxExpiryAllocationOptions, CadenceTickSizeArguments, CadenceTickSizeOptions, CadenceWindowSizeArguments, CadenceWindowSizeOptions, DeployableMarket, MarketKey, MarketManager, UnderlyingMarketConfig, cadenceAdmissionTickSize, cadenceEnabled, cadenceInitialExpiryCash, cadenceMaxExpiryAllocation, cadenceTickSize, cadenceWindowSize };
|
|
9
9
|
}
|
|
10
10
|
declare const MarketKey: MoveStruct<{
|
|
11
|
-
propbook_underlying_id:
|
|
12
|
-
expiry:
|
|
11
|
+
propbook_underlying_id: _mysten_sui_bcs30.BcsType<number, number, "u32">;
|
|
12
|
+
expiry: _mysten_sui_bcs30.BcsType<bigint, string | number | bigint, "u64">;
|
|
13
13
|
}, "@local-pkg/deepbook_predict::market_manager::MarketKey">;
|
|
14
14
|
declare const MarketManager: MoveStruct<{
|
|
15
15
|
/** Propbook underlying ID -> deployment watermarks. */underlying_configs: MoveStruct<{
|
|
16
|
-
id:
|
|
17
|
-
size:
|
|
16
|
+
id: _mysten_sui_bcs30.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
17
|
+
size: _mysten_sui_bcs30.BcsType<bigint, string | number | bigint, "u64">;
|
|
18
18
|
}, "0x2::table::Table<phantom K, phantom V>">; /** Created markets keyed by `(propbook_underlying_id, expiry)`. */
|
|
19
19
|
market_ids: MoveStruct<{
|
|
20
|
-
id:
|
|
21
|
-
size:
|
|
20
|
+
id: _mysten_sui_bcs30.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
21
|
+
size: _mysten_sui_bcs30.BcsType<bigint, string | number | bigint, "u64">;
|
|
22
22
|
}, "0x2::table::Table<phantom K, phantom V>">;
|
|
23
23
|
}, "@local-pkg/deepbook_predict::market_manager::MarketManager">;
|
|
24
24
|
declare const CadenceConfig: MoveStruct<{
|
|
25
|
-
/** Raw-price-per-tick factor snapshotted into each created market. */tick_size:
|
|
26
|
-
admission_tick_size:
|
|
25
|
+
/** Raw-price-per-tick factor snapshotted into each created market. */tick_size: _mysten_sui_bcs30.BcsType<bigint, string | number | bigint, "u64">; /** Coarser raw-price step that new finite mint boundaries must align to. */
|
|
26
|
+
admission_tick_size: _mysten_sui_bcs30.BcsType<bigint, string | number | bigint, "u64">;
|
|
27
27
|
/**
|
|
28
28
|
* USDC pool allocation cap snapshotted into pool accounting for each created
|
|
29
29
|
* expiry.
|
|
30
30
|
*/
|
|
31
|
-
max_expiry_allocation:
|
|
31
|
+
max_expiry_allocation: _mysten_sui_bcs30.BcsType<bigint, string | number | bigint, "u64">;
|
|
32
32
|
/**
|
|
33
33
|
* Minimum USDC cash target snapshotted into pool accounting for each created
|
|
34
34
|
* expiry.
|
|
35
35
|
*/
|
|
36
|
-
initial_expiry_cash:
|
|
36
|
+
initial_expiry_cash: _mysten_sui_bcs30.BcsType<bigint, string | number | bigint, "u64">;
|
|
37
37
|
/**
|
|
38
38
|
* Number of cadence periods in the rolling future deployment horizon. Zero
|
|
39
39
|
* disables this cadence.
|
|
40
40
|
*/
|
|
41
|
-
window_size:
|
|
41
|
+
window_size: _mysten_sui_bcs30.BcsType<bigint, string | number | bigint, "u64">;
|
|
42
42
|
}, "@local-pkg/deepbook_predict::market_manager::CadenceConfig">;
|
|
43
43
|
declare const DeployableMarket: MoveStruct<{
|
|
44
|
-
expiry:
|
|
44
|
+
expiry: _mysten_sui_bcs30.BcsType<bigint, string | number | bigint, "u64">;
|
|
45
45
|
cadence: MoveStruct<{
|
|
46
|
-
/** Raw-price-per-tick factor snapshotted into each created market. */tick_size:
|
|
47
|
-
admission_tick_size:
|
|
46
|
+
/** Raw-price-per-tick factor snapshotted into each created market. */tick_size: _mysten_sui_bcs30.BcsType<bigint, string | number | bigint, "u64">; /** Coarser raw-price step that new finite mint boundaries must align to. */
|
|
47
|
+
admission_tick_size: _mysten_sui_bcs30.BcsType<bigint, string | number | bigint, "u64">;
|
|
48
48
|
/**
|
|
49
49
|
* USDC pool allocation cap snapshotted into pool accounting for each created
|
|
50
50
|
* expiry.
|
|
51
51
|
*/
|
|
52
|
-
max_expiry_allocation:
|
|
52
|
+
max_expiry_allocation: _mysten_sui_bcs30.BcsType<bigint, string | number | bigint, "u64">;
|
|
53
53
|
/**
|
|
54
54
|
* Minimum USDC cash target snapshotted into pool accounting for each created
|
|
55
55
|
* expiry.
|
|
56
56
|
*/
|
|
57
|
-
initial_expiry_cash:
|
|
57
|
+
initial_expiry_cash: _mysten_sui_bcs30.BcsType<bigint, string | number | bigint, "u64">;
|
|
58
58
|
/**
|
|
59
59
|
* Number of cadence periods in the rolling future deployment horizon. Zero
|
|
60
60
|
* disables this cadence.
|
|
61
61
|
*/
|
|
62
|
-
window_size:
|
|
62
|
+
window_size: _mysten_sui_bcs30.BcsType<bigint, string | number | bigint, "u64">;
|
|
63
63
|
}, "@local-pkg/deepbook_predict::market_manager::CadenceConfig">;
|
|
64
64
|
}, "@local-pkg/deepbook_predict::market_manager::DeployableMarket">;
|
|
65
65
|
declare const UnderlyingMarketConfig: MoveStruct<{
|
|
@@ -68,7 +68,7 @@ declare const UnderlyingMarketConfig: MoveStruct<{
|
|
|
68
68
|
* vector grows past the six built-ins only when an added cadence is set or
|
|
69
69
|
* created, because package versions before the cadence table abort on longer rows.
|
|
70
70
|
*/
|
|
71
|
-
cadences:
|
|
71
|
+
cadences: _mysten_sui_bcs30.BcsType<{
|
|
72
72
|
tick_size: bigint;
|
|
73
73
|
admission_tick_size: bigint;
|
|
74
74
|
max_expiry_allocation: bigint;
|
|
@@ -83,7 +83,7 @@ declare const UnderlyingMarketConfig: MoveStruct<{
|
|
|
83
83
|
}> & {
|
|
84
84
|
length: number;
|
|
85
85
|
}, string>; /** Highest deployed expiry timestamp indexed by cadence ID; missing rows are 0. */
|
|
86
|
-
last_deployed_expiries:
|
|
86
|
+
last_deployed_expiries: _mysten_sui_bcs30.BcsType<bigint[], Iterable<string | number | bigint> & {
|
|
87
87
|
length: number;
|
|
88
88
|
}, string>;
|
|
89
89
|
}, "@local-pkg/deepbook_predict::market_manager::UnderlyingMarketConfig">;
|
|
@@ -98,7 +98,7 @@ interface CadenceTickSizeOptions {
|
|
|
98
98
|
};
|
|
99
99
|
}
|
|
100
100
|
/** Return the raw-price-per-tick factor for SDK and devInspect cadence reads. */
|
|
101
|
-
declare function cadenceTickSize(options: CadenceTickSizeOptions): (tx: Transaction) =>
|
|
101
|
+
declare function cadenceTickSize(options: CadenceTickSizeOptions): (tx: Transaction) => _mysten_sui_transactions123.TransactionResult;
|
|
102
102
|
interface CadenceAdmissionTickSizeArguments {
|
|
103
103
|
config: TransactionArgument;
|
|
104
104
|
}
|
|
@@ -110,7 +110,7 @@ interface CadenceAdmissionTickSizeOptions {
|
|
|
110
110
|
};
|
|
111
111
|
}
|
|
112
112
|
/** Return the admission-grid step for SDK and devInspect cadence reads. */
|
|
113
|
-
declare function cadenceAdmissionTickSize(options: CadenceAdmissionTickSizeOptions): (tx: Transaction) =>
|
|
113
|
+
declare function cadenceAdmissionTickSize(options: CadenceAdmissionTickSizeOptions): (tx: Transaction) => _mysten_sui_transactions123.TransactionResult;
|
|
114
114
|
interface CadenceMaxExpiryAllocationArguments {
|
|
115
115
|
config: TransactionArgument;
|
|
116
116
|
}
|
|
@@ -122,7 +122,7 @@ interface CadenceMaxExpiryAllocationOptions {
|
|
|
122
122
|
};
|
|
123
123
|
}
|
|
124
124
|
/** Return the expiry allocation cap for SDK and devInspect cadence reads. */
|
|
125
|
-
declare function cadenceMaxExpiryAllocation(options: CadenceMaxExpiryAllocationOptions): (tx: Transaction) =>
|
|
125
|
+
declare function cadenceMaxExpiryAllocation(options: CadenceMaxExpiryAllocationOptions): (tx: Transaction) => _mysten_sui_transactions123.TransactionResult;
|
|
126
126
|
interface CadenceInitialExpiryCashArguments {
|
|
127
127
|
config: TransactionArgument;
|
|
128
128
|
}
|
|
@@ -134,7 +134,7 @@ interface CadenceInitialExpiryCashOptions {
|
|
|
134
134
|
};
|
|
135
135
|
}
|
|
136
136
|
/** Return the initial expiry cash target for SDK and devInspect cadence reads. */
|
|
137
|
-
declare function cadenceInitialExpiryCash(options: CadenceInitialExpiryCashOptions): (tx: Transaction) =>
|
|
137
|
+
declare function cadenceInitialExpiryCash(options: CadenceInitialExpiryCashOptions): (tx: Transaction) => _mysten_sui_transactions123.TransactionResult;
|
|
138
138
|
interface CadenceWindowSizeArguments {
|
|
139
139
|
config: TransactionArgument;
|
|
140
140
|
}
|
|
@@ -146,7 +146,7 @@ interface CadenceWindowSizeOptions {
|
|
|
146
146
|
};
|
|
147
147
|
}
|
|
148
148
|
/** Return the rolling deployment horizon for SDK and devInspect cadence reads. */
|
|
149
|
-
declare function cadenceWindowSize(options: CadenceWindowSizeOptions): (tx: Transaction) =>
|
|
149
|
+
declare function cadenceWindowSize(options: CadenceWindowSizeOptions): (tx: Transaction) => _mysten_sui_transactions123.TransactionResult;
|
|
150
150
|
interface CadenceEnabledArguments {
|
|
151
151
|
config: TransactionArgument;
|
|
152
152
|
}
|
|
@@ -158,7 +158,7 @@ interface CadenceEnabledOptions {
|
|
|
158
158
|
};
|
|
159
159
|
}
|
|
160
160
|
/** Return whether this cadence is enabled for SDK and devInspect discovery. */
|
|
161
|
-
declare function cadenceEnabled(options: CadenceEnabledOptions): (tx: Transaction) =>
|
|
161
|
+
declare function cadenceEnabled(options: CadenceEnabledOptions): (tx: Transaction) => _mysten_sui_transactions123.TransactionResult;
|
|
162
162
|
//#endregion
|
|
163
163
|
export { market_manager_d_exports };
|
|
164
164
|
//# sourceMappingURL=market_manager.d.mts.map
|
|
@@ -1,100 +1,102 @@
|
|
|
1
1
|
import { MoveStruct } from "../utils/index.mjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as _mysten_sui_bcs267 from "@mysten/sui/bcs";
|
|
3
3
|
|
|
4
4
|
//#region src/contracts/deepbook_predict/order_events.d.ts
|
|
5
5
|
declare namespace order_events_d_exports {
|
|
6
6
|
export { LiveOrderRedeemed, OrderMinted, SettledOrderRedeemed };
|
|
7
7
|
}
|
|
8
8
|
declare const OrderMinted: MoveStruct<{
|
|
9
|
-
expiry_market_id:
|
|
10
|
-
account_id:
|
|
11
|
-
order_id:
|
|
9
|
+
expiry_market_id: _mysten_sui_bcs267.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
10
|
+
account_id: _mysten_sui_bcs267.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
11
|
+
order_id: _mysten_sui_bcs267.BcsType<bigint, string | number | bigint, "u256">;
|
|
12
12
|
/**
|
|
13
13
|
* Stable economic-position handle: the original mint's `order_id`, carried forward
|
|
14
14
|
* unchanged across partial-close replacements. Equals `order_id` here.
|
|
15
15
|
*/
|
|
16
|
-
position_root_id:
|
|
17
|
-
owner:
|
|
16
|
+
position_root_id: _mysten_sui_bcs267.BcsType<bigint, string | number | bigint, "u256">;
|
|
17
|
+
owner: _mysten_sui_bcs267.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
18
18
|
/**
|
|
19
19
|
* Canonical strike range as absolute ticks: `lower_tick` (`0` = `-inf`) and
|
|
20
20
|
* `higher_tick` (`pos_inf_tick` = `+inf`). Raw strikes are the derived display
|
|
21
21
|
* form, `tick * tick_size` with the `tick_size` from `MarketCreated`.
|
|
22
22
|
*/
|
|
23
|
-
lower_tick:
|
|
24
|
-
higher_tick:
|
|
25
|
-
entry_probability:
|
|
26
|
-
quantity:
|
|
27
|
-
premium:
|
|
28
|
-
trading_fee:
|
|
29
|
-
fee_incentive_subsidy:
|
|
30
|
-
builder_fee:
|
|
31
|
-
penalty_fee:
|
|
23
|
+
lower_tick: _mysten_sui_bcs267.BcsType<bigint, string | number | bigint, "u64">;
|
|
24
|
+
higher_tick: _mysten_sui_bcs267.BcsType<bigint, string | number | bigint, "u64">; /** 1e9-scaled range probability quoted at entry. */
|
|
25
|
+
entry_probability: _mysten_sui_bcs267.BcsType<bigint, string | number | bigint, "u64">;
|
|
26
|
+
quantity: _mysten_sui_bcs267.BcsType<bigint, string | number | bigint, "u64">; /** Premium the user paid into LP backing, in USDC base units. */
|
|
27
|
+
premium: _mysten_sui_bcs267.BcsType<bigint, string | number | bigint, "u64">; /** Full trading fee assessed for the mint, including any sponsor-paid subsidy. */
|
|
28
|
+
trading_fee: _mysten_sui_bcs267.BcsType<bigint, string | number | bigint, "u64">; /** Portion of `trading_fee` paid from expiry-local fee incentives. */
|
|
29
|
+
fee_incentive_subsidy: _mysten_sui_bcs267.BcsType<bigint, string | number | bigint, "u64">;
|
|
30
|
+
builder_fee: _mysten_sui_bcs267.BcsType<bigint, string | number | bigint, "u64">; /** EWMA gas-price congestion surcharge assessed for the mint, in USDC base units. */
|
|
31
|
+
penalty_fee: _mysten_sui_bcs267.BcsType<bigint, string | number | bigint, "u64">;
|
|
32
32
|
/**
|
|
33
33
|
* Portion of the trader-paid trading fee and congestion surcharge delivered to the
|
|
34
34
|
* referrer.
|
|
35
35
|
*/
|
|
36
|
-
referral_fee:
|
|
37
|
-
inventory_impact_charge:
|
|
36
|
+
referral_fee: _mysten_sui_bcs267.BcsType<bigint, string | number | bigint, "u64">; /** Separate inventory-impact charge escrowed for live-close rebates. */
|
|
37
|
+
inventory_impact_charge: _mysten_sui_bcs267.BcsType<bigint, string | number | bigint, "u64">;
|
|
38
38
|
/**
|
|
39
|
-
* Builder credited
|
|
40
|
-
*
|
|
39
|
+
* Builder code the order named, credited with `builder_fee`; `none` when the order
|
|
40
|
+
* named none. Recorded even at a zero fee, so attribution covers apps that charge
|
|
41
|
+
* nothing.
|
|
41
42
|
*/
|
|
42
|
-
builder_code_id:
|
|
43
|
-
referrer_account_id:
|
|
44
|
-
onchain_timestamp_ms:
|
|
43
|
+
builder_code_id: _mysten_sui_bcs267.BcsType<string | null, string | Uint8Array<ArrayBufferLike> | null | undefined, "Option<bytes[32]>">; /** Referrer recorded on the minting account, independent of the fee paid. */
|
|
44
|
+
referrer_account_id: _mysten_sui_bcs267.BcsType<string | null, string | Uint8Array<ArrayBufferLike> | null | undefined, "Option<bytes[32]>">;
|
|
45
|
+
onchain_timestamp_ms: _mysten_sui_bcs267.BcsType<bigint, string | number | bigint, "u64">;
|
|
45
46
|
/**
|
|
46
47
|
* Oracle source timestamps present when this mint was priced: Pyth's canonical
|
|
47
48
|
* source time and the Block Scholes per-update source times used for freshness.
|
|
48
49
|
* The SVI one is also the roll-down anchor. Pyth is `0` only when unusable.
|
|
49
50
|
*/
|
|
50
|
-
pyth_spot_source_timestamp_ms:
|
|
51
|
-
block_scholes_spot_source_timestamp_ms:
|
|
52
|
-
block_scholes_forward_source_timestamp_ms:
|
|
53
|
-
block_scholes_svi_source_timestamp_ms:
|
|
51
|
+
pyth_spot_source_timestamp_ms: _mysten_sui_bcs267.BcsType<bigint, string | number | bigint, "u64">;
|
|
52
|
+
block_scholes_spot_source_timestamp_ms: _mysten_sui_bcs267.BcsType<bigint, string | number | bigint, "u64">;
|
|
53
|
+
block_scholes_forward_source_timestamp_ms: _mysten_sui_bcs267.BcsType<bigint, string | number | bigint, "u64">;
|
|
54
|
+
block_scholes_svi_source_timestamp_ms: _mysten_sui_bcs267.BcsType<bigint, string | number | bigint, "u64">;
|
|
54
55
|
}, "@local-pkg/deepbook_predict::order_events::OrderMinted">;
|
|
55
56
|
declare const LiveOrderRedeemed: MoveStruct<{
|
|
56
|
-
expiry_market_id:
|
|
57
|
-
account_id:
|
|
58
|
-
order_id:
|
|
57
|
+
expiry_market_id: _mysten_sui_bcs267.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
58
|
+
account_id: _mysten_sui_bcs267.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
59
|
+
order_id: _mysten_sui_bcs267.BcsType<bigint, string | number | bigint, "u256">;
|
|
59
60
|
/**
|
|
60
61
|
* Stable economic-position handle, constant across the replacement chain. On a
|
|
61
62
|
* partial close the replacement inherits this same root.
|
|
62
63
|
*/
|
|
63
|
-
position_root_id:
|
|
64
|
-
owner:
|
|
65
|
-
quantity_closed:
|
|
66
|
-
remaining_quantity:
|
|
67
|
-
replacement_order_id:
|
|
68
|
-
redeem_amount:
|
|
69
|
-
trading_fee:
|
|
70
|
-
builder_fee:
|
|
71
|
-
penalty_fee:
|
|
72
|
-
inventory_impact_rebate:
|
|
64
|
+
position_root_id: _mysten_sui_bcs267.BcsType<bigint, string | number | bigint, "u256">;
|
|
65
|
+
owner: _mysten_sui_bcs267.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
66
|
+
quantity_closed: _mysten_sui_bcs267.BcsType<bigint, string | number | bigint, "u64">; /** `0` means the position was fully closed. */
|
|
67
|
+
remaining_quantity: _mysten_sui_bcs267.BcsType<bigint, string | number | bigint, "u64">; /** New order ID minted to carry the remainder on a partial live close. */
|
|
68
|
+
replacement_order_id: _mysten_sui_bcs267.BcsType<bigint | null, string | number | bigint | null | undefined, "Option<u256>">; /** Redeem value before fees. */
|
|
69
|
+
redeem_amount: _mysten_sui_bcs267.BcsType<bigint, string | number | bigint, "u64">;
|
|
70
|
+
trading_fee: _mysten_sui_bcs267.BcsType<bigint, string | number | bigint, "u64">;
|
|
71
|
+
builder_fee: _mysten_sui_bcs267.BcsType<bigint, string | number | bigint, "u64">; /** EWMA gas-price congestion surcharge retained by the pool, in USDC base units. */
|
|
72
|
+
penalty_fee: _mysten_sui_bcs267.BcsType<bigint, string | number | bigint, "u64">; /** Separate inventory-impact rebate paid from its isolated escrow. */
|
|
73
|
+
inventory_impact_rebate: _mysten_sui_bcs267.BcsType<bigint, string | number | bigint, "u64">;
|
|
73
74
|
/**
|
|
74
|
-
* Builder credited
|
|
75
|
-
*
|
|
75
|
+
* Builder code the order named, credited with `builder_fee`; `none` when the order
|
|
76
|
+
* named none. Recorded even at a zero fee, so attribution covers apps that charge
|
|
77
|
+
* nothing.
|
|
76
78
|
*/
|
|
77
|
-
builder_code_id:
|
|
78
|
-
onchain_timestamp_ms:
|
|
79
|
+
builder_code_id: _mysten_sui_bcs267.BcsType<string | null, string | Uint8Array<ArrayBufferLike> | null | undefined, "Option<bytes[32]>">;
|
|
80
|
+
onchain_timestamp_ms: _mysten_sui_bcs267.BcsType<bigint, string | number | bigint, "u64">;
|
|
79
81
|
/**
|
|
80
82
|
* Oracle source timestamps present when this redemption was priced: Pyth's
|
|
81
83
|
* canonical source time and the Block Scholes per-update source times used for
|
|
82
84
|
* freshness. The SVI one is also the roll-down anchor. Pyth is `0` only when
|
|
83
85
|
* unusable.
|
|
84
86
|
*/
|
|
85
|
-
pyth_spot_source_timestamp_ms:
|
|
86
|
-
block_scholes_spot_source_timestamp_ms:
|
|
87
|
-
block_scholes_forward_source_timestamp_ms:
|
|
88
|
-
block_scholes_svi_source_timestamp_ms:
|
|
87
|
+
pyth_spot_source_timestamp_ms: _mysten_sui_bcs267.BcsType<bigint, string | number | bigint, "u64">;
|
|
88
|
+
block_scholes_spot_source_timestamp_ms: _mysten_sui_bcs267.BcsType<bigint, string | number | bigint, "u64">;
|
|
89
|
+
block_scholes_forward_source_timestamp_ms: _mysten_sui_bcs267.BcsType<bigint, string | number | bigint, "u64">;
|
|
90
|
+
block_scholes_svi_source_timestamp_ms: _mysten_sui_bcs267.BcsType<bigint, string | number | bigint, "u64">;
|
|
89
91
|
}, "@local-pkg/deepbook_predict::order_events::LiveOrderRedeemed">;
|
|
90
92
|
declare const SettledOrderRedeemed: MoveStruct<{
|
|
91
|
-
expiry_market_id:
|
|
92
|
-
account_id:
|
|
93
|
-
order_id:
|
|
94
|
-
position_root_id:
|
|
95
|
-
owner:
|
|
96
|
-
payout_amount:
|
|
97
|
-
onchain_timestamp_ms:
|
|
93
|
+
expiry_market_id: _mysten_sui_bcs267.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
94
|
+
account_id: _mysten_sui_bcs267.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
95
|
+
order_id: _mysten_sui_bcs267.BcsType<bigint, string | number | bigint, "u256">; /** Stable economic-position handle, constant across the replacement chain. */
|
|
96
|
+
position_root_id: _mysten_sui_bcs267.BcsType<bigint, string | number | bigint, "u256">;
|
|
97
|
+
owner: _mysten_sui_bcs267.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
98
|
+
payout_amount: _mysten_sui_bcs267.BcsType<bigint, string | number | bigint, "u64">;
|
|
99
|
+
onchain_timestamp_ms: _mysten_sui_bcs267.BcsType<bigint, string | number | bigint, "u64">;
|
|
98
100
|
}, "@local-pkg/deepbook_predict::order_events::SettledOrderRedeemed">;
|
|
99
101
|
//#endregion
|
|
100
102
|
export { order_events_d_exports };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"order_events.d.mts","names":[],"sources":["../../../src/contracts/deepbook_predict/order_events.ts"],"mappings":";;;;;;;cAkBa,WAAA,EAAW,UAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;qFAAA;;EAAA
|
|
1
|
+
{"version":3,"file":"order_events.d.mts","names":[],"sources":["../../../src/contracts/deepbook_predict/order_events.ts"],"mappings":";;;;;;;cAkBa,WAAA,EAAW,UAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;qFAAA;;EAAA;;;;;;;;;;;;;;;;;;cA0DX,iBAAA,EAAiB,UAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cA4CjB,oBAAA,EAAoB,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"order_events.mjs","names":[],"sources":["../../../src/contracts/deepbook_predict/order_events.ts"],"sourcesContent":["/**************************************************************\n * THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *\n **************************************************************/\n\n/**\n * Order-lifecycle events for Predict.\n *\n * Events carry transition identities and deltas rather than account or market\n * balances. Partial closes link an old order ID to its replacement; the position\n * root remains constant across that chain. Queued fills emit `OrderMinted` and\n * `LiveOrderRedeemed` from inside Predict's order-flow fills; the queue's own\n * events belong to the order-flow companion package.\n */\n\nimport { MoveStruct } from '../utils/index.js';\nimport { bcs } from '@mysten/sui/bcs';\nimport { U256, U64 } from '../../bcs/integers.js';\nconst $moduleName = '@local-pkg/deepbook_predict::order_events';\nexport const OrderMinted = new MoveStruct({\n\tname: `${$moduleName}::OrderMinted`,\n\tfields: {\n\t\texpiry_market_id: bcs.Address,\n\t\taccount_id: bcs.Address,\n\t\torder_id: U256,\n\t\t/**\n\t\t * Stable economic-position handle: the original mint's `order_id`, carried forward\n\t\t * unchanged across partial-close replacements. Equals `order_id` here.\n\t\t */\n\t\tposition_root_id: U256,\n\t\towner: bcs.Address,\n\t\t/**\n\t\t * Canonical strike range as absolute ticks: `lower_tick` (`0` = `-inf`) and\n\t\t * `higher_tick` (`pos_inf_tick` = `+inf`). Raw strikes are the derived display\n\t\t * form, `tick * tick_size` with the `tick_size` from `MarketCreated`.\n\t\t */\n\t\tlower_tick: U64,\n\t\thigher_tick: U64,\n\t\t/** 1e9-scaled range probability quoted at entry. */\n\t\tentry_probability: U64,\n\t\tquantity: U64,\n\t\t/** Premium the user paid into LP backing, in USDC base units. */\n\t\tpremium: U64,\n\t\t/** Full trading fee assessed for the mint, including any sponsor-paid subsidy. */\n\t\ttrading_fee: U64,\n\t\t/** Portion of `trading_fee` paid from expiry-local fee incentives. */\n\t\tfee_incentive_subsidy: U64,\n\t\tbuilder_fee: U64,\n\t\t/** EWMA gas-price congestion surcharge assessed for the mint, in USDC base units. */\n\t\tpenalty_fee: U64,\n\t\t/**\n\t\t * Portion of the trader-paid trading fee and congestion surcharge delivered to the\n\t\t * referrer.\n\t\t */\n\t\treferral_fee: U64,\n\t\t/** Separate inventory-impact charge escrowed for live-close rebates. */\n\t\tinventory_impact_charge: U64,\n\t\t/**\n\t\t * Builder credited
|
|
1
|
+
{"version":3,"file":"order_events.mjs","names":[],"sources":["../../../src/contracts/deepbook_predict/order_events.ts"],"sourcesContent":["/**************************************************************\n * THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *\n **************************************************************/\n\n/**\n * Order-lifecycle events for Predict.\n *\n * Events carry transition identities and deltas rather than account or market\n * balances. Partial closes link an old order ID to its replacement; the position\n * root remains constant across that chain. Queued fills emit `OrderMinted` and\n * `LiveOrderRedeemed` from inside Predict's order-flow fills; the queue's own\n * events belong to the order-flow companion package.\n */\n\nimport { MoveStruct } from '../utils/index.js';\nimport { bcs } from '@mysten/sui/bcs';\nimport { U256, U64 } from '../../bcs/integers.js';\nconst $moduleName = '@local-pkg/deepbook_predict::order_events';\nexport const OrderMinted = new MoveStruct({\n\tname: `${$moduleName}::OrderMinted`,\n\tfields: {\n\t\texpiry_market_id: bcs.Address,\n\t\taccount_id: bcs.Address,\n\t\torder_id: U256,\n\t\t/**\n\t\t * Stable economic-position handle: the original mint's `order_id`, carried forward\n\t\t * unchanged across partial-close replacements. Equals `order_id` here.\n\t\t */\n\t\tposition_root_id: U256,\n\t\towner: bcs.Address,\n\t\t/**\n\t\t * Canonical strike range as absolute ticks: `lower_tick` (`0` = `-inf`) and\n\t\t * `higher_tick` (`pos_inf_tick` = `+inf`). Raw strikes are the derived display\n\t\t * form, `tick * tick_size` with the `tick_size` from `MarketCreated`.\n\t\t */\n\t\tlower_tick: U64,\n\t\thigher_tick: U64,\n\t\t/** 1e9-scaled range probability quoted at entry. */\n\t\tentry_probability: U64,\n\t\tquantity: U64,\n\t\t/** Premium the user paid into LP backing, in USDC base units. */\n\t\tpremium: U64,\n\t\t/** Full trading fee assessed for the mint, including any sponsor-paid subsidy. */\n\t\ttrading_fee: U64,\n\t\t/** Portion of `trading_fee` paid from expiry-local fee incentives. */\n\t\tfee_incentive_subsidy: U64,\n\t\tbuilder_fee: U64,\n\t\t/** EWMA gas-price congestion surcharge assessed for the mint, in USDC base units. */\n\t\tpenalty_fee: U64,\n\t\t/**\n\t\t * Portion of the trader-paid trading fee and congestion surcharge delivered to the\n\t\t * referrer.\n\t\t */\n\t\treferral_fee: U64,\n\t\t/** Separate inventory-impact charge escrowed for live-close rebates. */\n\t\tinventory_impact_charge: U64,\n\t\t/**\n\t\t * Builder code the order named, credited with `builder_fee`; `none` when the order\n\t\t * named none. Recorded even at a zero fee, so attribution covers apps that charge\n\t\t * nothing.\n\t\t */\n\t\tbuilder_code_id: bcs.option(bcs.Address),\n\t\t/** Referrer recorded on the minting account, independent of the fee paid. */\n\t\treferrer_account_id: bcs.option(bcs.Address),\n\t\tonchain_timestamp_ms: U64,\n\t\t/**\n\t\t * Oracle source timestamps present when this mint was priced: Pyth's canonical\n\t\t * source time and the Block Scholes per-update source times used for freshness.\n\t\t * The SVI one is also the roll-down anchor. Pyth is `0` only when unusable.\n\t\t */\n\t\tpyth_spot_source_timestamp_ms: U64,\n\t\tblock_scholes_spot_source_timestamp_ms: U64,\n\t\tblock_scholes_forward_source_timestamp_ms: U64,\n\t\tblock_scholes_svi_source_timestamp_ms: U64,\n\t},\n});\nexport const LiveOrderRedeemed = new MoveStruct({\n\tname: `${$moduleName}::LiveOrderRedeemed`,\n\tfields: {\n\t\texpiry_market_id: bcs.Address,\n\t\taccount_id: bcs.Address,\n\t\torder_id: U256,\n\t\t/**\n\t\t * Stable economic-position handle, constant across the replacement chain. On a\n\t\t * partial close the replacement inherits this same root.\n\t\t */\n\t\tposition_root_id: U256,\n\t\towner: bcs.Address,\n\t\tquantity_closed: U64,\n\t\t/** `0` means the position was fully closed. */\n\t\tremaining_quantity: U64,\n\t\t/** New order ID minted to carry the remainder on a partial live close. */\n\t\treplacement_order_id: bcs.option(U256),\n\t\t/** Redeem value before fees. */\n\t\tredeem_amount: U64,\n\t\ttrading_fee: U64,\n\t\tbuilder_fee: U64,\n\t\t/** EWMA gas-price congestion surcharge retained by the pool, in USDC base units. */\n\t\tpenalty_fee: U64,\n\t\t/** Separate inventory-impact rebate paid from its isolated escrow. */\n\t\tinventory_impact_rebate: U64,\n\t\t/**\n\t\t * Builder code the order named, credited with `builder_fee`; `none` when the order\n\t\t * named none. Recorded even at a zero fee, so attribution covers apps that charge\n\t\t * nothing.\n\t\t */\n\t\tbuilder_code_id: bcs.option(bcs.Address),\n\t\tonchain_timestamp_ms: U64,\n\t\t/**\n\t\t * Oracle source timestamps present when this redemption was priced: Pyth's\n\t\t * canonical source time and the Block Scholes per-update source times used for\n\t\t * freshness. The SVI one is also the roll-down anchor. Pyth is `0` only when\n\t\t * unusable.\n\t\t */\n\t\tpyth_spot_source_timestamp_ms: U64,\n\t\tblock_scholes_spot_source_timestamp_ms: U64,\n\t\tblock_scholes_forward_source_timestamp_ms: U64,\n\t\tblock_scholes_svi_source_timestamp_ms: U64,\n\t},\n});\nexport const SettledOrderRedeemed = new MoveStruct({\n\tname: `${$moduleName}::SettledOrderRedeemed`,\n\tfields: {\n\t\texpiry_market_id: bcs.Address,\n\t\taccount_id: bcs.Address,\n\t\torder_id: U256,\n\t\t/** Stable economic-position handle, constant across the replacement chain. */\n\t\tposition_root_id: U256,\n\t\towner: bcs.Address,\n\t\tpayout_amount: U64,\n\t\tonchain_timestamp_ms: U64,\n\t},\n});\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAiBA,MAAM,cAAc;AACpB,MAAa,cAAc,IAAI,WAAW;CACzC,MAAM,GAAG,YAAY;CACrB,QAAQ;EACP,kBAAkB,IAAI;EACtB,YAAY,IAAI;EAChB,UAAU;EAKV,kBAAkB;EAClB,OAAO,IAAI;EAMX,YAAY;EACZ,aAAa;EAEb,mBAAmB;EACnB,UAAU;EAEV,SAAS;EAET,aAAa;EAEb,uBAAuB;EACvB,aAAa;EAEb,aAAa;EAKb,cAAc;EAEd,yBAAyB;EAMzB,iBAAiB,IAAI,OAAO,IAAI,QAAQ;EAExC,qBAAqB,IAAI,OAAO,IAAI,QAAQ;EAC5C,sBAAsB;EAMtB,+BAA+B;EAC/B,wCAAwC;EACxC,2CAA2C;EAC3C,uCAAuC;EACvC;CACD,CAAC;AACF,MAAa,oBAAoB,IAAI,WAAW;CAC/C,MAAM,GAAG,YAAY;CACrB,QAAQ;EACP,kBAAkB,IAAI;EACtB,YAAY,IAAI;EAChB,UAAU;EAKV,kBAAkB;EAClB,OAAO,IAAI;EACX,iBAAiB;EAEjB,oBAAoB;EAEpB,sBAAsB,IAAI,OAAO,KAAK;EAEtC,eAAe;EACf,aAAa;EACb,aAAa;EAEb,aAAa;EAEb,yBAAyB;EAMzB,iBAAiB,IAAI,OAAO,IAAI,QAAQ;EACxC,sBAAsB;EAOtB,+BAA+B;EAC/B,wCAAwC;EACxC,2CAA2C;EAC3C,uCAAuC;EACvC;CACD,CAAC;AACF,MAAa,uBAAuB,IAAI,WAAW;CAClD,MAAM,GAAG,YAAY;CACrB,QAAQ;EACP,kBAAkB,IAAI;EACtB,YAAY,IAAI;EAChB,UAAU;EAEV,kBAAkB;EAClB,OAAO,IAAI;EACX,eAAe;EACf,sBAAsB;EACtB;CACD,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { MoveStruct, RawTransactionArgument } from "../utils/index.mjs";
|
|
2
|
-
import * as
|
|
3
|
-
import * as
|
|
2
|
+
import * as _mysten_sui_bcs49 from "@mysten/sui/bcs";
|
|
3
|
+
import * as _mysten_sui_transactions129 from "@mysten/sui/transactions";
|
|
4
4
|
import { Transaction } from "@mysten/sui/transactions";
|
|
5
5
|
|
|
6
6
|
//#region src/contracts/deepbook_predict/pause_cap.d.ts
|
|
@@ -8,7 +8,7 @@ declare namespace pause_cap_d_exports {
|
|
|
8
8
|
export { DestroyArguments, DestroyOptions, IdArguments, IdOptions, PauseCap, destroy, id };
|
|
9
9
|
}
|
|
10
10
|
declare const PauseCap: MoveStruct<{
|
|
11
|
-
id:
|
|
11
|
+
id: _mysten_sui_bcs49.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
12
12
|
}, "@local-pkg/deepbook_predict::pause_cap::PauseCap">;
|
|
13
13
|
interface IdArguments {
|
|
14
14
|
cap: RawTransactionArgument<string>;
|
|
@@ -21,7 +21,7 @@ interface IdOptions {
|
|
|
21
21
|
};
|
|
22
22
|
}
|
|
23
23
|
/** Returns the capability identity used by the registry allowlist. */
|
|
24
|
-
declare function id(options: IdOptions): (tx: Transaction) =>
|
|
24
|
+
declare function id(options: IdOptions): (tx: Transaction) => _mysten_sui_transactions129.TransactionResult;
|
|
25
25
|
interface DestroyArguments {
|
|
26
26
|
cap: RawTransactionArgument<string>;
|
|
27
27
|
}
|
|
@@ -33,7 +33,7 @@ interface DestroyOptions {
|
|
|
33
33
|
};
|
|
34
34
|
}
|
|
35
35
|
/** Destroy a `PauseCap` the holder no longer needs. */
|
|
36
|
-
declare function destroy(options: DestroyOptions): (tx: Transaction) =>
|
|
36
|
+
declare function destroy(options: DestroyOptions): (tx: Transaction) => _mysten_sui_transactions129.TransactionResult;
|
|
37
37
|
//#endregion
|
|
38
38
|
export { pause_cap_d_exports };
|
|
39
39
|
//# sourceMappingURL=pause_cap.d.mts.map
|