@mysten/deepbook-v3 2.4.1 → 2.4.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +2 -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_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/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/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 +48 -48
- package/dist/contracts/deepbook_predict/pricing.d.mts.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/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/predict/reads/pricing.d.mts +1 -0
- package/dist/predict/reads/pricing.d.mts.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/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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { MoveStruct, RawTransactionArgument } from "../utils/index.mjs";
|
|
2
|
-
import * as
|
|
3
|
-
import * as
|
|
2
|
+
import * as _mysten_sui_bcs72 from "@mysten/sui/bcs";
|
|
3
|
+
import * as _mysten_sui_transactions56 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_bcs72.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_transactions56.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_transactions56.TransactionResult;
|
|
37
37
|
//#endregion
|
|
38
38
|
export { market_lifecycle_cap_d_exports };
|
|
39
39
|
//# sourceMappingURL=market_lifecycle_cap.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"market_lifecycle_cap.d.mts","names":[],"sources":["../../../src/contracts/deepbook_predict/market_lifecycle_cap.ts"],"mappings":";;;;;;;;;cAca,kBAAA,EAAkB,UAAA;;;UAMd,WAAA;EAChB,GAAA,EAAK,sBAAA;AAAA;AAAA,UAEW,SAAA;EAChB,OAAA;EACA,SAAA,EAAW,WAAA,IAAe,GAAA,EAAK,sBAAA;EAC/B,MAAA;IACC,gBAAA;EAAA;AAAA;;iBAIc,EAAA,CAAG,OAAA,EAAS,SAAA,IAKnB,EAAA,EAAI,WAAA,KAAW,
|
|
1
|
+
{"version":3,"file":"market_lifecycle_cap.d.mts","names":[],"sources":["../../../src/contracts/deepbook_predict/market_lifecycle_cap.ts"],"mappings":";;;;;;;;;cAca,kBAAA,EAAkB,UAAA;;;UAMd,WAAA;EAChB,GAAA,EAAK,sBAAA;AAAA;AAAA,UAEW,SAAA;EAChB,OAAA;EACA,SAAA,EAAW,WAAA,IAAe,GAAA,EAAK,sBAAA;EAC/B,MAAA;IACC,gBAAA;EAAA;AAAA;;iBAIc,EAAA,CAAG,OAAA,EAAS,SAAA,IAKnB,EAAA,EAAI,WAAA,KAAW,0BAAA,CAAA,iBAAA;AAAA,UAQP,gBAAA;EAChB,GAAA,EAAK,sBAAA;AAAA;AAAA,UAEW,cAAA;EAChB,OAAA;EACA,SAAA,EAAW,gBAAA,IAAoB,GAAA,EAAK,sBAAA;EACpC,MAAA;IACC,gBAAA;EAAA;AAAA;;iBAIc,OAAA,CAAQ,OAAA,EAAS,cAAA,IAKxB,EAAA,EAAI,WAAA,KAAW,0BAAA,CAAA,iBAAA"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { MoveStruct } from "../utils/index.mjs";
|
|
2
|
-
import * as
|
|
3
|
-
import * as
|
|
2
|
+
import * as _mysten_sui_bcs5 from "@mysten/sui/bcs";
|
|
3
|
+
import * as _mysten_sui_transactions5 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,62 +8,62 @@ 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_bcs5.BcsType<number, number, "u32">;
|
|
12
|
+
expiry: _mysten_sui_bcs5.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_bcs5.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
17
|
+
size: _mysten_sui_bcs5.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_bcs5.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
21
|
+
size: _mysten_sui_bcs5.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_bcs5.BcsType<bigint, string | number | bigint, "u64">; /** Coarser raw-price step that new finite mint boundaries must align to. */
|
|
26
|
+
admission_tick_size: _mysten_sui_bcs5.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_bcs5.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_bcs5.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_bcs5.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_bcs5.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_bcs5.BcsType<bigint, string | number | bigint, "u64">; /** Coarser raw-price step that new finite mint boundaries must align to. */
|
|
47
|
+
admission_tick_size: _mysten_sui_bcs5.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_bcs5.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_bcs5.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_bcs5.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<{
|
|
66
|
-
/** Deployment config indexed by cadence ID. */cadences:
|
|
66
|
+
/** Deployment config indexed by cadence ID. */cadences: _mysten_sui_bcs5.BcsType<{
|
|
67
67
|
tick_size: bigint;
|
|
68
68
|
admission_tick_size: bigint;
|
|
69
69
|
max_expiry_allocation: bigint;
|
|
@@ -78,7 +78,7 @@ declare const UnderlyingMarketConfig: MoveStruct<{
|
|
|
78
78
|
}> & {
|
|
79
79
|
length: number;
|
|
80
80
|
}, string>; /** Highest deployed expiry timestamp indexed by cadence ID. */
|
|
81
|
-
last_deployed_expiries:
|
|
81
|
+
last_deployed_expiries: _mysten_sui_bcs5.BcsType<bigint[], Iterable<string | number | bigint> & {
|
|
82
82
|
length: number;
|
|
83
83
|
}, string>;
|
|
84
84
|
}, "@local-pkg/deepbook_predict::market_manager::UnderlyingMarketConfig">;
|
|
@@ -93,7 +93,7 @@ interface CadenceTickSizeOptions {
|
|
|
93
93
|
};
|
|
94
94
|
}
|
|
95
95
|
/** Return the raw-price-per-tick factor for SDK and devInspect cadence reads. */
|
|
96
|
-
declare function cadenceTickSize(options: CadenceTickSizeOptions): (tx: Transaction) =>
|
|
96
|
+
declare function cadenceTickSize(options: CadenceTickSizeOptions): (tx: Transaction) => _mysten_sui_transactions5.TransactionResult;
|
|
97
97
|
interface CadenceAdmissionTickSizeArguments {
|
|
98
98
|
config: TransactionArgument;
|
|
99
99
|
}
|
|
@@ -105,7 +105,7 @@ interface CadenceAdmissionTickSizeOptions {
|
|
|
105
105
|
};
|
|
106
106
|
}
|
|
107
107
|
/** Return the admission-grid step for SDK and devInspect cadence reads. */
|
|
108
|
-
declare function cadenceAdmissionTickSize(options: CadenceAdmissionTickSizeOptions): (tx: Transaction) =>
|
|
108
|
+
declare function cadenceAdmissionTickSize(options: CadenceAdmissionTickSizeOptions): (tx: Transaction) => _mysten_sui_transactions5.TransactionResult;
|
|
109
109
|
interface CadenceMaxExpiryAllocationArguments {
|
|
110
110
|
config: TransactionArgument;
|
|
111
111
|
}
|
|
@@ -117,7 +117,7 @@ interface CadenceMaxExpiryAllocationOptions {
|
|
|
117
117
|
};
|
|
118
118
|
}
|
|
119
119
|
/** Return the expiry allocation cap for SDK and devInspect cadence reads. */
|
|
120
|
-
declare function cadenceMaxExpiryAllocation(options: CadenceMaxExpiryAllocationOptions): (tx: Transaction) =>
|
|
120
|
+
declare function cadenceMaxExpiryAllocation(options: CadenceMaxExpiryAllocationOptions): (tx: Transaction) => _mysten_sui_transactions5.TransactionResult;
|
|
121
121
|
interface CadenceInitialExpiryCashArguments {
|
|
122
122
|
config: TransactionArgument;
|
|
123
123
|
}
|
|
@@ -129,7 +129,7 @@ interface CadenceInitialExpiryCashOptions {
|
|
|
129
129
|
};
|
|
130
130
|
}
|
|
131
131
|
/** Return the initial expiry cash target for SDK and devInspect cadence reads. */
|
|
132
|
-
declare function cadenceInitialExpiryCash(options: CadenceInitialExpiryCashOptions): (tx: Transaction) =>
|
|
132
|
+
declare function cadenceInitialExpiryCash(options: CadenceInitialExpiryCashOptions): (tx: Transaction) => _mysten_sui_transactions5.TransactionResult;
|
|
133
133
|
interface CadenceWindowSizeArguments {
|
|
134
134
|
config: TransactionArgument;
|
|
135
135
|
}
|
|
@@ -141,7 +141,7 @@ interface CadenceWindowSizeOptions {
|
|
|
141
141
|
};
|
|
142
142
|
}
|
|
143
143
|
/** Return the rolling deployment horizon for SDK and devInspect cadence reads. */
|
|
144
|
-
declare function cadenceWindowSize(options: CadenceWindowSizeOptions): (tx: Transaction) =>
|
|
144
|
+
declare function cadenceWindowSize(options: CadenceWindowSizeOptions): (tx: Transaction) => _mysten_sui_transactions5.TransactionResult;
|
|
145
145
|
interface CadenceEnabledArguments {
|
|
146
146
|
config: TransactionArgument;
|
|
147
147
|
}
|
|
@@ -153,7 +153,7 @@ interface CadenceEnabledOptions {
|
|
|
153
153
|
};
|
|
154
154
|
}
|
|
155
155
|
/** Return whether this cadence is enabled for SDK and devInspect discovery. */
|
|
156
|
-
declare function cadenceEnabled(options: CadenceEnabledOptions): (tx: Transaction) =>
|
|
156
|
+
declare function cadenceEnabled(options: CadenceEnabledOptions): (tx: Transaction) => _mysten_sui_transactions5.TransactionResult;
|
|
157
157
|
//#endregion
|
|
158
158
|
export { market_manager_d_exports };
|
|
159
159
|
//# sourceMappingURL=market_manager.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"market_manager.d.mts","names":[],"sources":["../../../src/contracts/deepbook_predict/market_manager.ts"],"mappings":";;;;;;;;;cAkBa,SAAA,EAAS,UAAA;0BAMpB,
|
|
1
|
+
{"version":3,"file":"market_manager.d.mts","names":[],"sources":["../../../src/contracts/deepbook_predict/market_manager.ts"],"mappings":";;;;;;;;;cAkBa,SAAA,EAAS,UAAA;0BAMpB,gBAAA,CAAA,OAAA;;;cACW,aAAA,EAAa,UAAA;;;;;;;;;;cASb,aAAA,EAAa,UAAA;mFAuBxB,gBAAA,CAAA,OAAA;;EAjCA;;;;;EANoB;;;;;;;;;;;cAwCT,gBAAA,EAAgB,UAAA;UAM3B,gBAAA,CAAA,OAAA;;;;;;;;;IAvCwB;;;;;;;;;;;;cAwCb,sBAAA,EAAsB,UAAA;;;;;;;;;;;;;;;cA/BT;;;;;UAwCT,wBAAA;EAChB,MAAA,EAAQ,mBAAA;AAAA;AAAA,UAEQ,sBAAA;EAChB,OAAA;EACA,SAAA,EAAW,wBAAA,IAA4B,MAAA,EAAQ,mBAAA;EAC/C,MAAA;IACC,gBAAA;EAAA;AAAA;;iBAIc,eAAA,CAAgB,OAAA,EAAS,sBAAA,IAKhC,EAAA,EAAI,WAAA,KAAW,yBAAA,CAAA,iBAAA;AAAA,UAQP,iCAAA;EAChB,MAAA,EAAQ,mBAAA;AAAA;AAAA,UAEQ,+BAAA;EAChB,OAAA;EACA,SAAA,EAAW,iCAAA,IAAqC,MAAA,EAAQ,mBAAA;EACxD,MAAA;IACC,gBAAA;EAAA;AAAA;;iBAIc,wBAAA,CAAyB,OAAA,EAAS,+BAAA,IAKzC,EAAA,EAAI,WAAA,KAAW,yBAAA,CAAA,iBAAA;AAAA,UAQP,mCAAA;EAChB,MAAA,EAAQ,mBAAA;AAAA;AAAA,UAEQ,iCAAA;EAChB,OAAA;EACA,SAAA,EAAW,mCAAA,IAAuC,MAAA,EAAQ,mBAAA;EAC1D,MAAA;IACC,gBAAA;EAAA;AAAA;;iBAIc,0BAAA,CAA2B,OAAA,EAAS,iCAAA,IAK3C,EAAA,EAAI,WAAA,KAAW,yBAAA,CAAA,iBAAA;AAAA,UAQP,iCAAA;EAChB,MAAA,EAAQ,mBAAA;AAAA;AAAA,UAEQ,+BAAA;EAChB,OAAA;EACA,SAAA,EAAW,iCAAA,IAAqC,MAAA,EAAQ,mBAAA;EACxD,MAAA;IACC,gBAAA;EAAA;AAAA;;iBAIc,wBAAA,CAAyB,OAAA,EAAS,+BAAA,IAKzC,EAAA,EAAI,WAAA,KAAW,yBAAA,CAAA,iBAAA;AAAA,UAQP,0BAAA;EAChB,MAAA,EAAQ,mBAAA;AAAA;AAAA,UAEQ,wBAAA;EAChB,OAAA;EACA,SAAA,EAAW,0BAAA,IAA8B,MAAA,EAAQ,mBAAA;EACjD,MAAA;IACC,gBAAA;EAAA;AAAA;;iBAIc,iBAAA,CAAkB,OAAA,EAAS,wBAAA,IAKlC,EAAA,EAAI,WAAA,KAAW,yBAAA,CAAA,iBAAA;AAAA,UAQP,uBAAA;EAChB,MAAA,EAAQ,mBAAA;AAAA;AAAA,UAEQ,qBAAA;EAChB,OAAA;EACA,SAAA,EAAW,uBAAA,IAA2B,MAAA,EAAQ,mBAAA;EAC9C,MAAA;IACC,gBAAA;EAAA;AAAA;;iBAIc,cAAA,CAAe,OAAA,EAAS,qBAAA,IAK/B,EAAA,EAAI,WAAA,KAAW,yBAAA,CAAA,iBAAA"}
|
|
@@ -1,100 +1,100 @@
|
|
|
1
1
|
import { MoveStruct } from "../utils/index.mjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as _mysten_sui_bcs287 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_bcs287.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
10
|
+
account_id: _mysten_sui_bcs287.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
11
|
+
order_id: _mysten_sui_bcs287.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_bcs287.BcsType<bigint, string | number | bigint, "u256">;
|
|
17
|
+
owner: _mysten_sui_bcs287.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_bcs287.BcsType<bigint, string | number | bigint, "u64">;
|
|
24
|
+
higher_tick: _mysten_sui_bcs287.BcsType<bigint, string | number | bigint, "u64">; /** 1e9-scaled range probability quoted at entry. */
|
|
25
|
+
entry_probability: _mysten_sui_bcs287.BcsType<bigint, string | number | bigint, "u64">;
|
|
26
|
+
quantity: _mysten_sui_bcs287.BcsType<bigint, string | number | bigint, "u64">; /** Premium the user paid into LP backing, in USDC base units. */
|
|
27
|
+
premium: _mysten_sui_bcs287.BcsType<bigint, string | number | bigint, "u64">; /** Full trading fee assessed for the mint, including any sponsor-paid subsidy. */
|
|
28
|
+
trading_fee: _mysten_sui_bcs287.BcsType<bigint, string | number | bigint, "u64">; /** Portion of `trading_fee` paid from expiry-local fee incentives. */
|
|
29
|
+
fee_incentive_subsidy: _mysten_sui_bcs287.BcsType<bigint, string | number | bigint, "u64">;
|
|
30
|
+
builder_fee: _mysten_sui_bcs287.BcsType<bigint, string | number | bigint, "u64">; /** EWMA gas-price congestion surcharge assessed for the mint, in USDC base units. */
|
|
31
|
+
penalty_fee: _mysten_sui_bcs287.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_bcs287.BcsType<bigint, string | number | bigint, "u64">; /** Separate inventory-impact charge escrowed for live-close rebates. */
|
|
37
|
+
inventory_impact_charge: _mysten_sui_bcs287.BcsType<bigint, string | number | bigint, "u64">;
|
|
38
38
|
/**
|
|
39
39
|
* Builder credited for `builder_fee`; `none` when no builder fee was paid
|
|
40
40
|
* (attribution follows the fee — applied once, in the emit helper).
|
|
41
41
|
*/
|
|
42
|
-
builder_code_id:
|
|
43
|
-
referrer_account_id:
|
|
44
|
-
onchain_timestamp_ms:
|
|
42
|
+
builder_code_id: _mysten_sui_bcs287.BcsType<string | null, string | Uint8Array<ArrayBufferLike> | null | undefined, "Option<bytes[32]>">; /** Referrer recorded on the minting account, independent of the fee paid. */
|
|
43
|
+
referrer_account_id: _mysten_sui_bcs287.BcsType<string | null, string | Uint8Array<ArrayBufferLike> | null | undefined, "Option<bytes[32]>">;
|
|
44
|
+
onchain_timestamp_ms: _mysten_sui_bcs287.BcsType<bigint, string | number | bigint, "u64">;
|
|
45
45
|
/**
|
|
46
46
|
* Oracle source timestamps present when this mint was priced: Pyth's canonical
|
|
47
47
|
* source time and the Block Scholes per-update source times used for freshness.
|
|
48
48
|
* The SVI one is also the roll-down anchor. Pyth is `0` only when unusable.
|
|
49
49
|
*/
|
|
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:
|
|
50
|
+
pyth_spot_source_timestamp_ms: _mysten_sui_bcs287.BcsType<bigint, string | number | bigint, "u64">;
|
|
51
|
+
block_scholes_spot_source_timestamp_ms: _mysten_sui_bcs287.BcsType<bigint, string | number | bigint, "u64">;
|
|
52
|
+
block_scholes_forward_source_timestamp_ms: _mysten_sui_bcs287.BcsType<bigint, string | number | bigint, "u64">;
|
|
53
|
+
block_scholes_svi_source_timestamp_ms: _mysten_sui_bcs287.BcsType<bigint, string | number | bigint, "u64">;
|
|
54
54
|
}, "@local-pkg/deepbook_predict::order_events::OrderMinted">;
|
|
55
55
|
declare const LiveOrderRedeemed: MoveStruct<{
|
|
56
|
-
expiry_market_id:
|
|
57
|
-
account_id:
|
|
58
|
-
order_id:
|
|
56
|
+
expiry_market_id: _mysten_sui_bcs287.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
57
|
+
account_id: _mysten_sui_bcs287.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
58
|
+
order_id: _mysten_sui_bcs287.BcsType<bigint, string | number | bigint, "u256">;
|
|
59
59
|
/**
|
|
60
60
|
* Stable economic-position handle, constant across the replacement chain. On a
|
|
61
61
|
* partial close the replacement inherits this same root.
|
|
62
62
|
*/
|
|
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:
|
|
63
|
+
position_root_id: _mysten_sui_bcs287.BcsType<bigint, string | number | bigint, "u256">;
|
|
64
|
+
owner: _mysten_sui_bcs287.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
65
|
+
quantity_closed: _mysten_sui_bcs287.BcsType<bigint, string | number | bigint, "u64">; /** `0` means the position was fully closed. */
|
|
66
|
+
remaining_quantity: _mysten_sui_bcs287.BcsType<bigint, string | number | bigint, "u64">; /** New order ID minted to carry the remainder on a partial live close. */
|
|
67
|
+
replacement_order_id: _mysten_sui_bcs287.BcsType<bigint | null, string | number | bigint | null | undefined, "Option<u256>">; /** Redeem value before fees. */
|
|
68
|
+
redeem_amount: _mysten_sui_bcs287.BcsType<bigint, string | number | bigint, "u64">;
|
|
69
|
+
trading_fee: _mysten_sui_bcs287.BcsType<bigint, string | number | bigint, "u64">;
|
|
70
|
+
builder_fee: _mysten_sui_bcs287.BcsType<bigint, string | number | bigint, "u64">; /** EWMA gas-price congestion surcharge retained by the pool, in USDC base units. */
|
|
71
|
+
penalty_fee: _mysten_sui_bcs287.BcsType<bigint, string | number | bigint, "u64">; /** Separate inventory-impact rebate paid from its isolated escrow. */
|
|
72
|
+
inventory_impact_rebate: _mysten_sui_bcs287.BcsType<bigint, string | number | bigint, "u64">;
|
|
73
73
|
/**
|
|
74
74
|
* Builder credited for `builder_fee`; `none` when no builder fee was paid
|
|
75
75
|
* (attribution follows the fee — applied once, in the emit helper).
|
|
76
76
|
*/
|
|
77
|
-
builder_code_id:
|
|
78
|
-
onchain_timestamp_ms:
|
|
77
|
+
builder_code_id: _mysten_sui_bcs287.BcsType<string | null, string | Uint8Array<ArrayBufferLike> | null | undefined, "Option<bytes[32]>">;
|
|
78
|
+
onchain_timestamp_ms: _mysten_sui_bcs287.BcsType<bigint, string | number | bigint, "u64">;
|
|
79
79
|
/**
|
|
80
80
|
* Oracle source timestamps present when this redemption was priced: Pyth's
|
|
81
81
|
* canonical source time and the Block Scholes per-update source times used for
|
|
82
82
|
* freshness. The SVI one is also the roll-down anchor. Pyth is `0` only when
|
|
83
83
|
* unusable.
|
|
84
84
|
*/
|
|
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:
|
|
85
|
+
pyth_spot_source_timestamp_ms: _mysten_sui_bcs287.BcsType<bigint, string | number | bigint, "u64">;
|
|
86
|
+
block_scholes_spot_source_timestamp_ms: _mysten_sui_bcs287.BcsType<bigint, string | number | bigint, "u64">;
|
|
87
|
+
block_scholes_forward_source_timestamp_ms: _mysten_sui_bcs287.BcsType<bigint, string | number | bigint, "u64">;
|
|
88
|
+
block_scholes_svi_source_timestamp_ms: _mysten_sui_bcs287.BcsType<bigint, string | number | bigint, "u64">;
|
|
89
89
|
}, "@local-pkg/deepbook_predict::order_events::LiveOrderRedeemed">;
|
|
90
90
|
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:
|
|
91
|
+
expiry_market_id: _mysten_sui_bcs287.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
92
|
+
account_id: _mysten_sui_bcs287.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
93
|
+
order_id: _mysten_sui_bcs287.BcsType<bigint, string | number | bigint, "u256">; /** Stable economic-position handle, constant across the replacement chain. */
|
|
94
|
+
position_root_id: _mysten_sui_bcs287.BcsType<bigint, string | number | bigint, "u256">;
|
|
95
|
+
owner: _mysten_sui_bcs287.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
96
|
+
payout_amount: _mysten_sui_bcs287.BcsType<bigint, string | number | bigint, "u64">;
|
|
97
|
+
onchain_timestamp_ms: _mysten_sui_bcs287.BcsType<bigint, string | number | bigint, "u64">;
|
|
98
98
|
}, "@local-pkg/deepbook_predict::order_events::SettledOrderRedeemed">;
|
|
99
99
|
//#endregion
|
|
100
100
|
export { order_events_d_exports };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { MoveStruct, RawTransactionArgument } from "../utils/index.mjs";
|
|
2
|
-
import * as
|
|
3
|
-
import * as
|
|
2
|
+
import * as _mysten_sui_bcs74 from "@mysten/sui/bcs";
|
|
3
|
+
import * as _mysten_sui_transactions61 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_bcs74.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_transactions61.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_transactions61.TransactionResult;
|
|
37
37
|
//#endregion
|
|
38
38
|
export { pause_cap_d_exports };
|
|
39
39
|
//# sourceMappingURL=pause_cap.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pause_cap.d.mts","names":[],"sources":["../../../src/contracts/deepbook_predict/pause_cap.ts"],"mappings":";;;;;;;;;cAca,QAAA,EAAQ,UAAA;;;UAMJ,WAAA;EAChB,GAAA,EAAK,sBAAA;AAAA;AAAA,UAEW,SAAA;EAChB,OAAA;EACA,SAAA,EAAW,WAAA,IAAe,GAAA,EAAK,sBAAA;EAC/B,MAAA;IACC,gBAAA;EAAA;AAAA;;iBAIc,EAAA,CAAG,OAAA,EAAS,SAAA,IAKnB,EAAA,EAAI,WAAA,KAAW,
|
|
1
|
+
{"version":3,"file":"pause_cap.d.mts","names":[],"sources":["../../../src/contracts/deepbook_predict/pause_cap.ts"],"mappings":";;;;;;;;;cAca,QAAA,EAAQ,UAAA;;;UAMJ,WAAA;EAChB,GAAA,EAAK,sBAAA;AAAA;AAAA,UAEW,SAAA;EAChB,OAAA;EACA,SAAA,EAAW,WAAA,IAAe,GAAA,EAAK,sBAAA;EAC/B,MAAA;IACC,gBAAA;EAAA;AAAA;;iBAIc,EAAA,CAAG,OAAA,EAAS,SAAA,IAKnB,EAAA,EAAI,WAAA,KAAW,0BAAA,CAAA,iBAAA;AAAA,UAQP,gBAAA;EAChB,GAAA,EAAK,sBAAA;AAAA;AAAA,UAEW,cAAA;EAChB,OAAA;EACA,SAAA,EAAW,gBAAA,IAAoB,GAAA,EAAK,sBAAA;EACpC,MAAA;IACC,gBAAA;EAAA;AAAA;;iBAIc,OAAA,CAAQ,OAAA,EAAS,cAAA,IAKxB,EAAA,EAAI,WAAA,KAAW,0BAAA,CAAA,iBAAA"}
|