@mysten/deepbook-v3 2.7.0 → 2.8.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +56 -0
- package/PREDICT.md +15 -10
- package/dist/contracts/account/account.d.mts +23 -23
- package/dist/contracts/account/account_events.d.mts +20 -20
- package/dist/contracts/account/account_registry.d.mts +19 -19
- package/dist/contracts/deepbook/account.d.mts +18 -18
- package/dist/contracts/deepbook/balances.d.mts +4 -4
- package/dist/contracts/deepbook/deep_price.d.mts +3 -3
- package/dist/contracts/deepbook/order.d.mts +12 -12
- package/dist/contracts/deepbook_predict/admin.d.mts +4 -4
- package/dist/contracts/deepbook_predict/admin.d.mts.map +1 -1
- package/dist/contracts/deepbook_predict/builder_code.d.mts +11 -11
- package/dist/contracts/deepbook_predict/builder_code.d.mts.map +1 -1
- package/dist/contracts/deepbook_predict/builder_code_events.d.mts +10 -10
- package/dist/contracts/deepbook_predict/config_events.d.mts +80 -80
- package/dist/contracts/deepbook_predict/market_lifecycle_cap.d.mts +5 -5
- 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/plp.d.mts +74 -74
- package/dist/contracts/deepbook_predict/pool_valuation_cap.d.mts +5 -5
- package/dist/contracts/deepbook_predict/predict_account.d.mts +14 -14
- package/dist/contracts/deepbook_predict/predict_account.d.mts.map +1 -1
- package/dist/contracts/deepbook_predict/pricing.d.mts +67 -67
- package/dist/contracts/deepbook_predict/pricing.d.mts.map +1 -1
- package/dist/contracts/deepbook_predict/range_codec.d.mts +2 -2
- package/dist/contracts/deepbook_predict/registry.d.mts +28 -28
- package/dist/contracts/deepbook_predict/vault_events.d.mts +131 -131
- package/dist/contracts/deepbook_predict_math/lazer_price.d.mts +13 -13
- package/dist/contracts/deepbook_predict_math/math.d.mts +14 -14
- package/dist/contracts/deepbook_predict_orders/delayed_execution_config.d.mts +30 -30
- package/dist/contracts/deepbook_predict_orders/desk.d.mts +28 -28
- package/dist/contracts/deepbook_predict_orders/desk.d.mts.map +1 -1
- package/dist/contracts/deepbook_predict_orders/order_queue.d.mts +187 -187
- package/dist/contracts/deepbook_predict_orders/queue.d.mts +49 -49
- package/dist/contracts/deepbook_predict_orders/queue.d.mts.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 +27 -27
- package/dist/contracts/deepbook_sessions/sessions.d.mts.map +1 -1
- package/dist/deployments/mainnet.mjs +7 -4
- package/dist/deployments/mainnet.mjs.map +1 -1
- package/dist/deployments/testnet.mjs +5 -4
- package/dist/deployments/testnet.mjs.map +1 -1
- package/dist/predict/bindings/expiry-market.d.mts +5 -5
- package/dist/predict/bindings/expiry-market.d.mts.map +1 -1
- package/dist/predict/bindings/protocol-config.d.mts +3 -3
- package/dist/predict/config/mainnet.mjs +11 -3
- package/dist/predict/config/mainnet.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/queue.d.mts +0 -1
- package/dist/predict/reads/queue.d.mts.map +1 -1
- package/dist/sessions.mjs.map +1 -1
- package/dist/transactions/balanceManager.d.mts +12 -12
- package/dist/transactions/deepbook.d.mts +20 -20
- package/dist/transactions/deepbookAdmin.d.mts +4 -4
- package/dist/transactions/marginAdmin.d.mts +7 -7
- package/dist/transactions/marginMaintainer.d.mts +5 -5
- package/dist/transactions/marginManager.d.mts +32 -32
- package/dist/transactions/marginPool.d.mts +18 -18
- package/dist/transactions/marginTPSL.d.mts +10 -10
- package/dist/transactions/poolProxy.d.mts +8 -8
- package/package.json +5 -5
- package/src/deployments/mainnet.ts +7 -2
- package/src/deployments/testnet.ts +5 -4
- package/src/predict/config/mainnet.ts +16 -7
- package/src/sessions.ts +2 -2
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import { MoveStruct } from "../utils/index.mjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as _mysten_sui_bcs838 from "@mysten/sui/bcs";
|
|
3
3
|
import { Transaction, TransactionArgument } from "@mysten/sui/transactions";
|
|
4
4
|
|
|
5
5
|
//#region src/contracts/deepbook/order.d.ts
|
|
6
6
|
declare const Order: MoveStruct<{
|
|
7
|
-
balance_manager_id:
|
|
8
|
-
order_id:
|
|
9
|
-
client_order_id:
|
|
10
|
-
quantity:
|
|
11
|
-
filled_quantity:
|
|
12
|
-
fee_is_deep:
|
|
7
|
+
balance_manager_id: _mysten_sui_bcs838.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
8
|
+
order_id: _mysten_sui_bcs838.BcsType<string, string | number | bigint, "u128">;
|
|
9
|
+
client_order_id: _mysten_sui_bcs838.BcsType<string, string | number | bigint, "u64">;
|
|
10
|
+
quantity: _mysten_sui_bcs838.BcsType<string, string | number | bigint, "u64">;
|
|
11
|
+
filled_quantity: _mysten_sui_bcs838.BcsType<string, string | number | bigint, "u64">;
|
|
12
|
+
fee_is_deep: _mysten_sui_bcs838.BcsType<boolean, boolean, "bool">;
|
|
13
13
|
order_deep_price: MoveStruct<{
|
|
14
|
-
asset_is_base:
|
|
15
|
-
deep_per_asset:
|
|
14
|
+
asset_is_base: _mysten_sui_bcs838.BcsType<boolean, boolean, "bool">;
|
|
15
|
+
deep_per_asset: _mysten_sui_bcs838.BcsType<string, string | number | bigint, "u64">;
|
|
16
16
|
}, "@deepbook/core::deep_price::OrderDeepPrice">;
|
|
17
|
-
epoch:
|
|
18
|
-
status:
|
|
19
|
-
expire_timestamp:
|
|
17
|
+
epoch: _mysten_sui_bcs838.BcsType<string, string | number | bigint, "u64">;
|
|
18
|
+
status: _mysten_sui_bcs838.BcsType<number, number, "u8">;
|
|
19
|
+
expire_timestamp: _mysten_sui_bcs838.BcsType<string, string | number | bigint, "u64">;
|
|
20
20
|
}, "@deepbook/core::order::Order">;
|
|
21
21
|
//#endregion
|
|
22
22
|
export { Order };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { MoveStruct, RawTransactionArgument } from "../utils/index.mjs";
|
|
2
|
-
import * as
|
|
3
|
-
import * as
|
|
2
|
+
import * as _mysten_sui_bcs15 from "@mysten/sui/bcs";
|
|
3
|
+
import * as _mysten_sui_transactions24 from "@mysten/sui/transactions";
|
|
4
4
|
import { Transaction } from "@mysten/sui/transactions";
|
|
5
5
|
|
|
6
6
|
//#region src/contracts/deepbook_predict/admin.d.ts
|
|
@@ -8,7 +8,7 @@ declare namespace admin_d_exports {
|
|
|
8
8
|
export { AdminCap, IdArguments, IdOptions, id };
|
|
9
9
|
}
|
|
10
10
|
declare const AdminCap: MoveStruct<{
|
|
11
|
-
id:
|
|
11
|
+
id: _mysten_sui_bcs15.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
12
12
|
}, "@local-pkg/deepbook_predict::admin::AdminCap">;
|
|
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 for administration tooling and object discovery. */
|
|
24
|
-
declare function id(options: IdOptions): (tx: Transaction) =>
|
|
24
|
+
declare function id(options: IdOptions): (tx: Transaction) => _mysten_sui_transactions24.TransactionResult;
|
|
25
25
|
//#endregion
|
|
26
26
|
export { admin_d_exports };
|
|
27
27
|
//# sourceMappingURL=admin.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"admin.d.mts","names":[],"sources":["../../../src/contracts/deepbook_predict/admin.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":"admin.d.mts","names":[],"sources":["../../../src/contracts/deepbook_predict/admin.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"}
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { MoveStruct, MoveTuple, RawTransactionArgument } from "../utils/index.mjs";
|
|
2
|
-
import * as
|
|
3
|
-
import * as
|
|
2
|
+
import * as _mysten_sui_bcs10 from "@mysten/sui/bcs";
|
|
3
|
+
import * as _mysten_sui_transactions19 from "@mysten/sui/transactions";
|
|
4
4
|
import { Transaction } from "@mysten/sui/transactions";
|
|
5
5
|
|
|
6
6
|
//#region src/contracts/deepbook_predict/builder_code.d.ts
|
|
7
7
|
declare namespace builder_code_d_exports {
|
|
8
8
|
export { BuilderCode, BuilderCodeKey, ClaimAllBuilderFeesArguments, ClaimAllBuilderFeesOptions, ClaimableBuilderFeesArguments, ClaimableBuilderFeesOptions, IdArguments, IdOptions, IndexArguments, IndexOptions, OwnerArguments, OwnerOptions, claimAllBuilderFees, claimableBuilderFees, id, index, owner };
|
|
9
9
|
}
|
|
10
|
-
declare const BuilderCodeKey: MoveTuple<readonly [
|
|
10
|
+
declare const BuilderCodeKey: MoveTuple<readonly [_mysten_sui_bcs10.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">, _mysten_sui_bcs10.BcsType<bigint, string | number | bigint, "u64">], "@local-pkg/deepbook_predict::builder_code::BuilderCodeKey">;
|
|
11
11
|
declare const BuilderCode: MoveStruct<{
|
|
12
|
-
id:
|
|
13
|
-
owner:
|
|
14
|
-
index:
|
|
12
|
+
id: _mysten_sui_bcs10.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
13
|
+
owner: _mysten_sui_bcs10.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
14
|
+
index: _mysten_sui_bcs10.BcsType<bigint, string | number | bigint, "u64">;
|
|
15
15
|
}, "@local-pkg/deepbook_predict::builder_code::BuilderCode">;
|
|
16
16
|
interface IdArguments {
|
|
17
17
|
code: RawTransactionArgument<string>;
|
|
@@ -24,7 +24,7 @@ interface IdOptions {
|
|
|
24
24
|
};
|
|
25
25
|
}
|
|
26
26
|
/** Returns the code identity for trade construction and external discovery. */
|
|
27
|
-
declare function id(options: IdOptions): (tx: Transaction) =>
|
|
27
|
+
declare function id(options: IdOptions): (tx: Transaction) => _mysten_sui_transactions19.TransactionResult;
|
|
28
28
|
interface OwnerArguments {
|
|
29
29
|
code: RawTransactionArgument<string>;
|
|
30
30
|
}
|
|
@@ -36,7 +36,7 @@ interface OwnerOptions {
|
|
|
36
36
|
};
|
|
37
37
|
}
|
|
38
38
|
/** Returns the immutable owner authorized to claim fees. */
|
|
39
|
-
declare function owner(options: OwnerOptions): (tx: Transaction) =>
|
|
39
|
+
declare function owner(options: OwnerOptions): (tx: Transaction) => _mysten_sui_transactions19.TransactionResult;
|
|
40
40
|
interface IndexArguments {
|
|
41
41
|
code: RawTransactionArgument<string>;
|
|
42
42
|
}
|
|
@@ -48,7 +48,7 @@ interface IndexOptions {
|
|
|
48
48
|
};
|
|
49
49
|
}
|
|
50
50
|
/** Returns the owner-selected derivation index for external discovery. */
|
|
51
|
-
declare function index(options: IndexOptions): (tx: Transaction) =>
|
|
51
|
+
declare function index(options: IndexOptions): (tx: Transaction) => _mysten_sui_transactions19.TransactionResult;
|
|
52
52
|
interface ClaimableBuilderFeesArguments {
|
|
53
53
|
code: RawTransactionArgument<string>;
|
|
54
54
|
}
|
|
@@ -60,7 +60,7 @@ interface ClaimableBuilderFeesOptions {
|
|
|
60
60
|
};
|
|
61
61
|
}
|
|
62
62
|
/** Return visible USDC builder fees for SDK and devInspect reads. */
|
|
63
|
-
declare function claimableBuilderFees(options: ClaimableBuilderFeesOptions): (tx: Transaction) =>
|
|
63
|
+
declare function claimableBuilderFees(options: ClaimableBuilderFeesOptions): (tx: Transaction) => _mysten_sui_transactions19.TransactionResult;
|
|
64
64
|
interface ClaimAllBuilderFeesArguments {
|
|
65
65
|
code: RawTransactionArgument<string>;
|
|
66
66
|
}
|
|
@@ -75,7 +75,7 @@ interface ClaimAllBuilderFeesOptions {
|
|
|
75
75
|
* Claims all settled USDC builder fees for the immutable owner; an empty
|
|
76
76
|
* accumulator returns a zero coin.
|
|
77
77
|
*/
|
|
78
|
-
declare function claimAllBuilderFees(options: ClaimAllBuilderFeesOptions): (tx: Transaction) =>
|
|
78
|
+
declare function claimAllBuilderFees(options: ClaimAllBuilderFeesOptions): (tx: Transaction) => _mysten_sui_transactions19.TransactionResult;
|
|
79
79
|
//#endregion
|
|
80
80
|
export { builder_code_d_exports };
|
|
81
81
|
//# sourceMappingURL=builder_code.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"builder_code.d.mts","names":[],"sources":["../../../src/contracts/deepbook_predict/builder_code.ts"],"mappings":";;;;;;;;;cAoBa,cAAA,EAAc,SAAA,WAAA,
|
|
1
|
+
{"version":3,"file":"builder_code.d.mts","names":[],"sources":["../../../src/contracts/deepbook_predict/builder_code.ts"],"mappings":";;;;;;;;;cAoBa,cAAA,EAAc,SAAA,WAAA,iBAAA,CAAA,OAAA,kBAAA,UAAA,CAAA,eAAA,iBAAA,iBAAA,CAAA,OAAA;AAAA,cAId,WAAA,EAAW,UAAA;;;;;UAQP,WAAA;EAChB,IAAA,EAAM,sBAAA;AAAA;AAAA,UAEU,SAAA;EAChB,OAAA;EACA,SAAA,EAAW,WAAA,IAAe,IAAA,EAAM,sBAAA;EAChC,MAAA;IACC,gBAAA;EAAA;AAAA;AAnBF;AAAA,iBAuBgB,EAAA,CAAG,OAAA,EAAS,SAAA,IAKnB,EAAA,EAAI,WAAA,KAAW,0BAAA,CAAA,iBAAA;AAAA,UAQP,cAAA;EAChB,IAAA,EAAM,sBAAA;AAAA;AAAA,UAEU,YAAA;EAChB,OAAA;EACA,SAAA,EAAW,cAAA,IAAkB,IAAA,EAAM,sBAAA;EACnC,MAAA;IACC,gBAAA;EAAA;AAAA;;iBAIc,KAAA,CAAM,OAAA,EAAS,YAAA,IAKtB,EAAA,EAAI,WAAA,KAAW,0BAAA,CAAA,iBAAA;AAAA,UAQP,cAAA;EAChB,IAAA,EAAM,sBAAA;AAAA;AAAA,UAEU,YAAA;EAChB,OAAA;EACA,SAAA,EAAW,cAAA,IAAkB,IAAA,EAAM,sBAAA;EACnC,MAAA;IACC,gBAAA;EAAA;AAAA;;iBAIc,KAAA,CAAM,OAAA,EAAS,YAAA,IAKtB,EAAA,EAAI,WAAA,KAAW,0BAAA,CAAA,iBAAA;AAAA,UAQP,6BAAA;EAChB,IAAA,EAAM,sBAAA;AAAA;AAAA,UAEU,2BAAA;EAChB,OAAA;EACA,SAAA,EAAW,6BAAA,IAAiC,IAAA,EAAM,sBAAA;EAClD,MAAA;IACC,gBAAA;EAAA;AAAA;;iBAIc,oBAAA,CAAqB,OAAA,EAAS,2BAAA,IAKrC,EAAA,EAAI,WAAA,KAAW,0BAAA,CAAA,iBAAA;AAAA,UAQP,4BAAA;EAChB,IAAA,EAAM,sBAAA;AAAA;AAAA,UAEU,0BAAA;EAChB,OAAA;EACA,SAAA,EAAW,4BAAA,IAAgC,IAAA,EAAM,sBAAA;EACjD,MAAA;IACC,gBAAA;EAAA;AAAA;AApGF;;;;AAAA,iBA2GgB,mBAAA,CAAoB,OAAA,EAAS,0BAAA,IAKpC,EAAA,EAAI,WAAA,KAAW,0BAAA,CAAA,iBAAA"}
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import { MoveStruct } from "../utils/index.mjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as _mysten_sui_bcs178 from "@mysten/sui/bcs";
|
|
3
3
|
|
|
4
4
|
//#region src/contracts/deepbook_predict/builder_code_events.d.ts
|
|
5
5
|
declare namespace builder_code_events_d_exports {
|
|
6
6
|
export { BuilderCodeCreated, BuilderCodeSet, BuilderFeesClaimed };
|
|
7
7
|
}
|
|
8
8
|
declare const BuilderCodeCreated: MoveStruct<{
|
|
9
|
-
builder_code_id:
|
|
10
|
-
owner:
|
|
11
|
-
builder_code_index:
|
|
9
|
+
builder_code_id: _mysten_sui_bcs178.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
10
|
+
owner: _mysten_sui_bcs178.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
11
|
+
builder_code_index: _mysten_sui_bcs178.BcsType<bigint, string | number | bigint, "u64">;
|
|
12
12
|
}, "@local-pkg/deepbook_predict::builder_code_events::BuilderCodeCreated">;
|
|
13
13
|
declare const BuilderCodeSet: MoveStruct<{
|
|
14
|
-
account_id:
|
|
15
|
-
owner:
|
|
16
|
-
builder_code_id:
|
|
14
|
+
account_id: _mysten_sui_bcs178.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
15
|
+
owner: _mysten_sui_bcs178.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
16
|
+
builder_code_id: _mysten_sui_bcs178.BcsType<string | null, string | Uint8Array<ArrayBufferLike> | null | undefined, "Option<bytes[32]>">;
|
|
17
17
|
}, "@local-pkg/deepbook_predict::builder_code_events::BuilderCodeSet">;
|
|
18
18
|
declare const BuilderFeesClaimed: MoveStruct<{
|
|
19
|
-
builder_code_id:
|
|
20
|
-
owner:
|
|
21
|
-
amount:
|
|
19
|
+
builder_code_id: _mysten_sui_bcs178.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
20
|
+
owner: _mysten_sui_bcs178.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
21
|
+
amount: _mysten_sui_bcs178.BcsType<bigint, string | number | bigint, "u64">;
|
|
22
22
|
}, "@local-pkg/deepbook_predict::builder_code_events::BuilderFeesClaimed">;
|
|
23
23
|
//#endregion
|
|
24
24
|
export { builder_code_events_d_exports };
|
|
@@ -1,128 +1,128 @@
|
|
|
1
1
|
import { MoveStruct } from "../utils/index.mjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as _mysten_sui_bcs187 from "@mysten/sui/bcs";
|
|
3
3
|
|
|
4
4
|
//#region src/contracts/deepbook_predict/config_events.d.ts
|
|
5
5
|
declare namespace config_events_d_exports {
|
|
6
6
|
export { CadenceConfigUpdated, EwmaConfigUpdated, ExpiryMarketMintPausedUpdated, FeeIncentiveAllocationRatesUpdated, FeeIncentiveSubsidyRateUpdated, FlushOperatorUpdated, MarketCreated, MarketSettled, NoTradeWindowUpdated, OrderFlowUpdated, PlpFeeRatesUpdated, PricingConfigUpdated, ProtocolFrozenUpdated, ReferenceTickSet, SettledRedeemKeeperUpdated, StrikeExposureTemplateConfigUpdated, TradingPausedUpdated };
|
|
7
7
|
}
|
|
8
8
|
declare const StrikeExposureTemplateConfigUpdated: MoveStruct<{
|
|
9
|
-
backing_buffer_lambda:
|
|
10
|
-
base_fee:
|
|
11
|
-
min_fee:
|
|
12
|
-
min_entry_probability:
|
|
13
|
-
max_entry_probability:
|
|
14
|
-
expiry_fee_window_ms:
|
|
15
|
-
expiry_fee_max_multiplier:
|
|
16
|
-
inventory_impact_max_rate:
|
|
17
|
-
onchain_timestamp_ms:
|
|
9
|
+
backing_buffer_lambda: _mysten_sui_bcs187.BcsType<bigint, string | number | bigint, "u64">;
|
|
10
|
+
base_fee: _mysten_sui_bcs187.BcsType<bigint, string | number | bigint, "u64">;
|
|
11
|
+
min_fee: _mysten_sui_bcs187.BcsType<bigint, string | number | bigint, "u64">;
|
|
12
|
+
min_entry_probability: _mysten_sui_bcs187.BcsType<bigint, string | number | bigint, "u64">;
|
|
13
|
+
max_entry_probability: _mysten_sui_bcs187.BcsType<bigint, string | number | bigint, "u64">;
|
|
14
|
+
expiry_fee_window_ms: _mysten_sui_bcs187.BcsType<bigint, string | number | bigint, "u64">;
|
|
15
|
+
expiry_fee_max_multiplier: _mysten_sui_bcs187.BcsType<bigint, string | number | bigint, "u64">;
|
|
16
|
+
inventory_impact_max_rate: _mysten_sui_bcs187.BcsType<bigint, string | number | bigint, "u64">;
|
|
17
|
+
onchain_timestamp_ms: _mysten_sui_bcs187.BcsType<bigint, string | number | bigint, "u64">;
|
|
18
18
|
}, "@local-pkg/deepbook_predict::config_events::StrikeExposureTemplateConfigUpdated">;
|
|
19
19
|
declare const PricingConfigUpdated: MoveStruct<{
|
|
20
|
-
use_pyth_spot_for_forward:
|
|
21
|
-
pyth_spot_freshness_ms:
|
|
22
|
-
block_scholes_price_freshness_ms:
|
|
23
|
-
block_scholes_svi_freshness_ms:
|
|
24
|
-
onchain_timestamp_ms:
|
|
20
|
+
use_pyth_spot_for_forward: _mysten_sui_bcs187.BcsType<boolean, boolean, "bool">;
|
|
21
|
+
pyth_spot_freshness_ms: _mysten_sui_bcs187.BcsType<bigint, string | number | bigint, "u64">;
|
|
22
|
+
block_scholes_price_freshness_ms: _mysten_sui_bcs187.BcsType<bigint, string | number | bigint, "u64">;
|
|
23
|
+
block_scholes_svi_freshness_ms: _mysten_sui_bcs187.BcsType<bigint, string | number | bigint, "u64">;
|
|
24
|
+
onchain_timestamp_ms: _mysten_sui_bcs187.BcsType<bigint, string | number | bigint, "u64">;
|
|
25
25
|
}, "@local-pkg/deepbook_predict::config_events::PricingConfigUpdated">;
|
|
26
26
|
declare const EwmaConfigUpdated: MoveStruct<{
|
|
27
|
-
alpha:
|
|
28
|
-
z_score_threshold:
|
|
29
|
-
penalty_rate:
|
|
30
|
-
enabled:
|
|
31
|
-
onchain_timestamp_ms:
|
|
27
|
+
alpha: _mysten_sui_bcs187.BcsType<bigint, string | number | bigint, "u64">;
|
|
28
|
+
z_score_threshold: _mysten_sui_bcs187.BcsType<bigint, string | number | bigint, "u64">;
|
|
29
|
+
penalty_rate: _mysten_sui_bcs187.BcsType<bigint, string | number | bigint, "u64">;
|
|
30
|
+
enabled: _mysten_sui_bcs187.BcsType<boolean, boolean, "bool">;
|
|
31
|
+
onchain_timestamp_ms: _mysten_sui_bcs187.BcsType<bigint, string | number | bigint, "u64">;
|
|
32
32
|
}, "@local-pkg/deepbook_predict::config_events::EwmaConfigUpdated">;
|
|
33
33
|
declare const PlpFeeRatesUpdated: MoveStruct<{
|
|
34
|
-
plp_supply_fee_rate:
|
|
35
|
-
plp_withdraw_fee_rate:
|
|
36
|
-
onchain_timestamp_ms:
|
|
34
|
+
plp_supply_fee_rate: _mysten_sui_bcs187.BcsType<bigint, string | number | bigint, "u64">;
|
|
35
|
+
plp_withdraw_fee_rate: _mysten_sui_bcs187.BcsType<bigint, string | number | bigint, "u64">;
|
|
36
|
+
onchain_timestamp_ms: _mysten_sui_bcs187.BcsType<bigint, string | number | bigint, "u64">;
|
|
37
37
|
}, "@local-pkg/deepbook_predict::config_events::PlpFeeRatesUpdated">;
|
|
38
38
|
declare const NoTradeWindowUpdated: MoveStruct<{
|
|
39
|
-
no_trade_window_ms:
|
|
40
|
-
onchain_timestamp_ms:
|
|
39
|
+
no_trade_window_ms: _mysten_sui_bcs187.BcsType<bigint, string | number | bigint, "u64">;
|
|
40
|
+
onchain_timestamp_ms: _mysten_sui_bcs187.BcsType<bigint, string | number | bigint, "u64">;
|
|
41
41
|
}, "@local-pkg/deepbook_predict::config_events::NoTradeWindowUpdated">;
|
|
42
42
|
declare const FeeIncentiveSubsidyRateUpdated: MoveStruct<{
|
|
43
|
-
fee_incentive_subsidy_rate:
|
|
44
|
-
onchain_timestamp_ms:
|
|
43
|
+
fee_incentive_subsidy_rate: _mysten_sui_bcs187.BcsType<bigint, string | number | bigint, "u64">;
|
|
44
|
+
onchain_timestamp_ms: _mysten_sui_bcs187.BcsType<bigint, string | number | bigint, "u64">;
|
|
45
45
|
}, "@local-pkg/deepbook_predict::config_events::FeeIncentiveSubsidyRateUpdated">;
|
|
46
46
|
declare const FeeIncentiveAllocationRatesUpdated: MoveStruct<{
|
|
47
|
-
fee_incentive_live_target_rate:
|
|
48
|
-
fee_incentive_lifetime_cap_rate:
|
|
49
|
-
onchain_timestamp_ms:
|
|
47
|
+
fee_incentive_live_target_rate: _mysten_sui_bcs187.BcsType<bigint, string | number | bigint, "u64">;
|
|
48
|
+
fee_incentive_lifetime_cap_rate: _mysten_sui_bcs187.BcsType<bigint, string | number | bigint, "u64">;
|
|
49
|
+
onchain_timestamp_ms: _mysten_sui_bcs187.BcsType<bigint, string | number | bigint, "u64">;
|
|
50
50
|
}, "@local-pkg/deepbook_predict::config_events::FeeIncentiveAllocationRatesUpdated">;
|
|
51
51
|
declare const TradingPausedUpdated: MoveStruct<{
|
|
52
|
-
protocol_config_id:
|
|
53
|
-
paused:
|
|
52
|
+
protocol_config_id: _mysten_sui_bcs187.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
53
|
+
paused: _mysten_sui_bcs187.BcsType<boolean, boolean, "bool">;
|
|
54
54
|
}, "@local-pkg/deepbook_predict::config_events::TradingPausedUpdated">;
|
|
55
55
|
declare const ProtocolFrozenUpdated: MoveStruct<{
|
|
56
|
-
protocol_config_id:
|
|
57
|
-
frozen:
|
|
56
|
+
protocol_config_id: _mysten_sui_bcs187.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
57
|
+
frozen: _mysten_sui_bcs187.BcsType<boolean, boolean, "bool">;
|
|
58
58
|
}, "@local-pkg/deepbook_predict::config_events::ProtocolFrozenUpdated">;
|
|
59
59
|
declare const SettledRedeemKeeperUpdated: MoveStruct<{
|
|
60
|
-
keeper:
|
|
61
|
-
allowed:
|
|
60
|
+
keeper: _mysten_sui_bcs187.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
61
|
+
allowed: _mysten_sui_bcs187.BcsType<boolean, boolean, "bool">;
|
|
62
62
|
}, "@local-pkg/deepbook_predict::config_events::SettledRedeemKeeperUpdated">;
|
|
63
63
|
declare const FlushOperatorUpdated: MoveStruct<{
|
|
64
|
-
operator:
|
|
65
|
-
added:
|
|
66
|
-
onchain_timestamp_ms:
|
|
64
|
+
operator: _mysten_sui_bcs187.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
65
|
+
added: _mysten_sui_bcs187.BcsType<boolean, boolean, "bool">;
|
|
66
|
+
onchain_timestamp_ms: _mysten_sui_bcs187.BcsType<bigint, string | number | bigint, "u64">;
|
|
67
67
|
}, "@local-pkg/deepbook_predict::config_events::FlushOperatorUpdated">;
|
|
68
68
|
declare const OrderFlowUpdated: MoveStruct<{
|
|
69
69
|
order_flow: MoveStruct<{
|
|
70
|
-
name:
|
|
70
|
+
name: _mysten_sui_bcs187.BcsType<string, string, "string">;
|
|
71
71
|
}, "std::type_name::TypeName">;
|
|
72
|
-
enabled:
|
|
73
|
-
onchain_timestamp_ms:
|
|
72
|
+
enabled: _mysten_sui_bcs187.BcsType<boolean, boolean, "bool">;
|
|
73
|
+
onchain_timestamp_ms: _mysten_sui_bcs187.BcsType<bigint, string | number | bigint, "u64">;
|
|
74
74
|
}, "@local-pkg/deepbook_predict::config_events::OrderFlowUpdated">;
|
|
75
75
|
declare const MarketCreated: MoveStruct<{
|
|
76
|
-
expiry_market_id:
|
|
77
|
-
pool_vault_id:
|
|
78
|
-
propbook_underlying_id:
|
|
79
|
-
expiry:
|
|
76
|
+
expiry_market_id: _mysten_sui_bcs187.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
77
|
+
pool_vault_id: _mysten_sui_bcs187.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">; /** Propbook underlying this market resolves current oracle bindings through. */
|
|
78
|
+
propbook_underlying_id: _mysten_sui_bcs187.BcsType<number, number, "u32">;
|
|
79
|
+
expiry: _mysten_sui_bcs187.BcsType<bigint, string | number | bigint, "u64">;
|
|
80
80
|
/**
|
|
81
81
|
* Raw-price-per-tick factor; indexers/SDKs derive raw strikes as
|
|
82
82
|
* `tick * tick_size`.
|
|
83
83
|
*/
|
|
84
|
-
tick_size:
|
|
85
|
-
admission_tick_size:
|
|
86
|
-
max_expiry_allocation:
|
|
87
|
-
initial_expiry_cash:
|
|
88
|
-
backing_buffer_lambda:
|
|
89
|
-
base_fee:
|
|
90
|
-
min_fee:
|
|
91
|
-
min_entry_probability:
|
|
92
|
-
max_entry_probability:
|
|
93
|
-
expiry_fee_window_ms:
|
|
94
|
-
expiry_fee_max_multiplier:
|
|
95
|
-
inventory_impact_max_rate:
|
|
84
|
+
tick_size: _mysten_sui_bcs187.BcsType<bigint, string | number | bigint, "u64">; /** Coarser raw-price step that new finite mint boundaries must align to. */
|
|
85
|
+
admission_tick_size: _mysten_sui_bcs187.BcsType<bigint, string | number | bigint, "u64">; /** USDC pool allocation cap snapshotted for this expiry. */
|
|
86
|
+
max_expiry_allocation: _mysten_sui_bcs187.BcsType<bigint, string | number | bigint, "u64">; /** Minimum USDC cash target snapshotted for this expiry. */
|
|
87
|
+
initial_expiry_cash: _mysten_sui_bcs187.BcsType<bigint, string | number | bigint, "u64">;
|
|
88
|
+
backing_buffer_lambda: _mysten_sui_bcs187.BcsType<bigint, string | number | bigint, "u64">;
|
|
89
|
+
base_fee: _mysten_sui_bcs187.BcsType<bigint, string | number | bigint, "u64">;
|
|
90
|
+
min_fee: _mysten_sui_bcs187.BcsType<bigint, string | number | bigint, "u64">;
|
|
91
|
+
min_entry_probability: _mysten_sui_bcs187.BcsType<bigint, string | number | bigint, "u64">;
|
|
92
|
+
max_entry_probability: _mysten_sui_bcs187.BcsType<bigint, string | number | bigint, "u64">;
|
|
93
|
+
expiry_fee_window_ms: _mysten_sui_bcs187.BcsType<bigint, string | number | bigint, "u64">;
|
|
94
|
+
expiry_fee_max_multiplier: _mysten_sui_bcs187.BcsType<bigint, string | number | bigint, "u64">; /** Maximum marginal inventory-impact rate snapshotted by this market. */
|
|
95
|
+
inventory_impact_max_rate: _mysten_sui_bcs187.BcsType<bigint, string | number | bigint, "u64">;
|
|
96
96
|
}, "@local-pkg/deepbook_predict::config_events::MarketCreated">;
|
|
97
97
|
declare const CadenceConfigUpdated: MoveStruct<{
|
|
98
|
-
registry_id:
|
|
99
|
-
propbook_underlying_id:
|
|
100
|
-
cadence_id:
|
|
101
|
-
tick_size:
|
|
102
|
-
admission_tick_size:
|
|
103
|
-
max_expiry_allocation:
|
|
104
|
-
initial_expiry_cash:
|
|
105
|
-
window_size:
|
|
98
|
+
registry_id: _mysten_sui_bcs187.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
99
|
+
propbook_underlying_id: _mysten_sui_bcs187.BcsType<number, number, "u32">;
|
|
100
|
+
cadence_id: _mysten_sui_bcs187.BcsType<number, number, "u8">;
|
|
101
|
+
tick_size: _mysten_sui_bcs187.BcsType<bigint, string | number | bigint, "u64">;
|
|
102
|
+
admission_tick_size: _mysten_sui_bcs187.BcsType<bigint, string | number | bigint, "u64">;
|
|
103
|
+
max_expiry_allocation: _mysten_sui_bcs187.BcsType<bigint, string | number | bigint, "u64">;
|
|
104
|
+
initial_expiry_cash: _mysten_sui_bcs187.BcsType<bigint, string | number | bigint, "u64">;
|
|
105
|
+
window_size: _mysten_sui_bcs187.BcsType<bigint, string | number | bigint, "u64">;
|
|
106
106
|
}, "@local-pkg/deepbook_predict::config_events::CadenceConfigUpdated">;
|
|
107
107
|
declare const ExpiryMarketMintPausedUpdated: MoveStruct<{
|
|
108
|
-
expiry_market_id:
|
|
109
|
-
paused:
|
|
108
|
+
expiry_market_id: _mysten_sui_bcs187.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
109
|
+
paused: _mysten_sui_bcs187.BcsType<boolean, boolean, "bool">;
|
|
110
110
|
}, "@local-pkg/deepbook_predict::config_events::ExpiryMarketMintPausedUpdated">;
|
|
111
111
|
declare const ReferenceTickSet: MoveStruct<{
|
|
112
|
-
expiry_market_id:
|
|
113
|
-
propbook_underlying_id:
|
|
114
|
-
source_timestamp_ms:
|
|
115
|
-
spot:
|
|
116
|
-
tick:
|
|
117
|
-
onchain_timestamp_ms:
|
|
112
|
+
expiry_market_id: _mysten_sui_bcs187.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
113
|
+
propbook_underlying_id: _mysten_sui_bcs187.BcsType<number, number, "u32">;
|
|
114
|
+
source_timestamp_ms: _mysten_sui_bcs187.BcsType<bigint, string | number | bigint, "u64">;
|
|
115
|
+
spot: _mysten_sui_bcs187.BcsType<bigint, string | number | bigint, "u64">;
|
|
116
|
+
tick: _mysten_sui_bcs187.BcsType<bigint, string | number | bigint, "u64">;
|
|
117
|
+
onchain_timestamp_ms: _mysten_sui_bcs187.BcsType<bigint, string | number | bigint, "u64">;
|
|
118
118
|
}, "@local-pkg/deepbook_predict::config_events::ReferenceTickSet">;
|
|
119
119
|
declare const MarketSettled: MoveStruct<{
|
|
120
|
-
expiry_market_id:
|
|
121
|
-
propbook_underlying_id:
|
|
122
|
-
expiry:
|
|
123
|
-
settlement_price:
|
|
124
|
-
settlement_source:
|
|
125
|
-
onchain_timestamp_ms:
|
|
120
|
+
expiry_market_id: _mysten_sui_bcs187.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
121
|
+
propbook_underlying_id: _mysten_sui_bcs187.BcsType<number, number, "u32">;
|
|
122
|
+
expiry: _mysten_sui_bcs187.BcsType<bigint, string | number | bigint, "u64">;
|
|
123
|
+
settlement_price: _mysten_sui_bcs187.BcsType<bigint, string | number | bigint, "u64">; /** `0` = Pyth and `1` = Block Scholes. */
|
|
124
|
+
settlement_source: _mysten_sui_bcs187.BcsType<number, number, "u8">; /** On-chain landing time of the settlement, `clock.timestamp_ms()`. */
|
|
125
|
+
onchain_timestamp_ms: _mysten_sui_bcs187.BcsType<bigint, string | number | bigint, "u64">;
|
|
126
126
|
}, "@local-pkg/deepbook_predict::config_events::MarketSettled">;
|
|
127
127
|
//#endregion
|
|
128
128
|
export { config_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_bcs34 from "@mysten/sui/bcs";
|
|
3
|
+
import * as _mysten_sui_transactions41 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_bcs34.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_transactions41.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_transactions41.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_bcs35 from "@mysten/sui/bcs";
|
|
3
|
+
import * as _mysten_sui_transactions43 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_bcs35.BcsType<number, number, "u32">;
|
|
12
|
+
expiry: _mysten_sui_bcs35.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_bcs35.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
17
|
+
size: _mysten_sui_bcs35.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_bcs35.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
21
|
+
size: _mysten_sui_bcs35.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_bcs35.BcsType<bigint, string | number | bigint, "u64">; /** Coarser raw-price step that new finite mint boundaries must align to. */
|
|
26
|
+
admission_tick_size: _mysten_sui_bcs35.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_bcs35.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_bcs35.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_bcs35.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_bcs35.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_bcs35.BcsType<bigint, string | number | bigint, "u64">; /** Coarser raw-price step that new finite mint boundaries must align to. */
|
|
47
|
+
admission_tick_size: _mysten_sui_bcs35.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_bcs35.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_bcs35.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_bcs35.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_bcs35.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_bcs35.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_transactions43.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_transactions43.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_transactions43.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_transactions43.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_transactions43.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_transactions43.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,iBAAA,CAAA,OAAA;;;cACW,aAAA,EAAa,UAAA;;;;;;;;;;cASb,aAAA,EAAa,UAAA;mFAuBxB,iBAAA,CAAA,OAAA;;EAjCA;;;;;EANoB;;;;;;;;;;;cAwCT,gBAAA,EAAgB,UAAA;UAM3B,iBAAA,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,0BAAA,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,0BAAA,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,0BAAA,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,0BAAA,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,0BAAA,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,0BAAA,CAAA,iBAAA"}
|