@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,6 +1,6 @@
|
|
|
1
1
|
import { MoveStruct, RawTransactionArgument } from "../utils/index.mjs";
|
|
2
|
-
import * as
|
|
3
|
-
import * as
|
|
2
|
+
import * as _mysten_sui_bcs101 from "@mysten/sui/bcs";
|
|
3
|
+
import * as _mysten_sui_transactions77 from "@mysten/sui/transactions";
|
|
4
4
|
import { Transaction } from "@mysten/sui/transactions";
|
|
5
5
|
|
|
6
6
|
//#region src/contracts/deepbook_predict/pool_valuation_cap.d.ts
|
|
@@ -8,7 +8,7 @@ declare namespace pool_valuation_cap_d_exports {
|
|
|
8
8
|
export { DestroyArguments, DestroyOptions, IdArguments, IdOptions, PoolValuationCap, destroy, id };
|
|
9
9
|
}
|
|
10
10
|
declare const PoolValuationCap: MoveStruct<{
|
|
11
|
-
id:
|
|
11
|
+
id: _mysten_sui_bcs101.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
12
12
|
}, "@local-pkg/deepbook_predict::pool_valuation_cap::PoolValuationCap">;
|
|
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_transactions77.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 `PoolValuationCap` the holder no longer needs. */
|
|
36
|
-
declare function destroy(options: DestroyOptions): (tx: Transaction) =>
|
|
36
|
+
declare function destroy(options: DestroyOptions): (tx: Transaction) => _mysten_sui_transactions77.TransactionResult;
|
|
37
37
|
//#endregion
|
|
38
38
|
export { pool_valuation_cap_d_exports };
|
|
39
39
|
//# sourceMappingURL=pool_valuation_cap.d.mts.map
|
|
@@ -1,33 +1,33 @@
|
|
|
1
1
|
import { MoveStruct, MoveTuple, RawTransactionArgument } from "../utils/index.mjs";
|
|
2
|
-
import * as
|
|
3
|
-
import * as
|
|
2
|
+
import * as _mysten_sui_bcs102 from "@mysten/sui/bcs";
|
|
3
|
+
import * as _mysten_sui_transactions79 from "@mysten/sui/transactions";
|
|
4
4
|
import { Transaction, TransactionArgument } from "@mysten/sui/transactions";
|
|
5
5
|
|
|
6
6
|
//#region src/contracts/deepbook_predict/predict_account.d.ts
|
|
7
7
|
declare namespace predict_account_d_exports {
|
|
8
8
|
export { BuilderCodeIdArguments, BuilderCodeIdOptions, HasPositionArguments, HasPositionOptions, Position, PositionKey, PredictApp, PredictData, SetBuilderCodeArguments, SetBuilderCodeOptions, UnsetBuilderCodeArguments, UnsetBuilderCodeOptions, builderCodeId, hasPosition, setBuilderCode, unsetBuilderCode };
|
|
9
9
|
}
|
|
10
|
-
declare const PredictApp: MoveTuple<readonly [
|
|
10
|
+
declare const PredictApp: MoveTuple<readonly [_mysten_sui_bcs102.BcsType<boolean, boolean, "bool">], "@local-pkg/deepbook_predict::predict_account::PredictApp">;
|
|
11
11
|
declare const PositionKey: MoveStruct<{
|
|
12
|
-
expiry_market_id:
|
|
13
|
-
order_id:
|
|
12
|
+
expiry_market_id: _mysten_sui_bcs102.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
13
|
+
order_id: _mysten_sui_bcs102.BcsType<bigint, string | number | bigint, "u256">;
|
|
14
14
|
}, "@local-pkg/deepbook_predict::predict_account::PositionKey">;
|
|
15
15
|
declare const Position: MoveStruct<{
|
|
16
|
-
/** Root order ID, carried forward unchanged across partial-close replacements. */root_id:
|
|
16
|
+
/** Root order ID, carried forward unchanged across partial-close replacements. */root_id: _mysten_sui_bcs102.BcsType<bigint, string | number | bigint, "u256">;
|
|
17
17
|
/**
|
|
18
18
|
* On-chain time (`clock.timestamp_ms()`) the position was opened, carried forward
|
|
19
19
|
* unchanged across partial-close replacements. A live redeem in the same timestamp
|
|
20
20
|
* is rejected, blocking an atomic mint -> oracle-update -> redeem in one
|
|
21
21
|
* transaction.
|
|
22
22
|
*/
|
|
23
|
-
opened_at_ms:
|
|
23
|
+
opened_at_ms: _mysten_sui_bcs102.BcsType<bigint, string | number | bigint, "u64">;
|
|
24
24
|
}, "@local-pkg/deepbook_predict::predict_account::Position">;
|
|
25
25
|
declare const PredictData: MoveStruct<{
|
|
26
26
|
/** Open positions scoped by expiry market. */positions: MoveStruct<{
|
|
27
|
-
id:
|
|
28
|
-
size:
|
|
27
|
+
id: _mysten_sui_bcs102.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
28
|
+
size: _mysten_sui_bcs102.BcsType<bigint, string | number | bigint, "u64">;
|
|
29
29
|
}, "0x2::table::Table<phantom K, phantom V>">; /** Sticky builder-code attribution for future trades, if set. */
|
|
30
|
-
builder_code_id:
|
|
30
|
+
builder_code_id: _mysten_sui_bcs102.BcsType<string | null, string | Uint8Array<ArrayBufferLike> | null | undefined, "Option<bytes[32]>">;
|
|
31
31
|
}, "@local-pkg/deepbook_predict::predict_account::PredictData">;
|
|
32
32
|
interface HasPositionArguments {
|
|
33
33
|
account: TransactionArgument;
|
|
@@ -42,7 +42,7 @@ interface HasPositionOptions {
|
|
|
42
42
|
};
|
|
43
43
|
}
|
|
44
44
|
/** Return whether an account holds a position for SDK and devInspect state reads. */
|
|
45
|
-
declare function hasPosition(options: HasPositionOptions): (tx: Transaction) =>
|
|
45
|
+
declare function hasPosition(options: HasPositionOptions): (tx: Transaction) => _mysten_sui_transactions79.TransactionResult;
|
|
46
46
|
interface BuilderCodeIdArguments {
|
|
47
47
|
account: TransactionArgument;
|
|
48
48
|
}
|
|
@@ -54,7 +54,7 @@ interface BuilderCodeIdOptions {
|
|
|
54
54
|
};
|
|
55
55
|
}
|
|
56
56
|
/** Return the sticky builder-code ID, if set. */
|
|
57
|
-
declare function builderCodeId(options: BuilderCodeIdOptions): (tx: Transaction) =>
|
|
57
|
+
declare function builderCodeId(options: BuilderCodeIdOptions): (tx: Transaction) => _mysten_sui_transactions79.TransactionResult;
|
|
58
58
|
interface SetBuilderCodeArguments {
|
|
59
59
|
wrapper: RawTransactionArgument<string>;
|
|
60
60
|
auth: TransactionArgument;
|
|
@@ -71,7 +71,7 @@ interface SetBuilderCodeOptions {
|
|
|
71
71
|
* Set sticky builder-code attribution for future trades using valid account auth.
|
|
72
72
|
* Owner auth and authorized-app auth both satisfy the account borrow boundary.
|
|
73
73
|
*/
|
|
74
|
-
declare function setBuilderCode(options: SetBuilderCodeOptions): (tx: Transaction) =>
|
|
74
|
+
declare function setBuilderCode(options: SetBuilderCodeOptions): (tx: Transaction) => _mysten_sui_transactions79.TransactionResult;
|
|
75
75
|
interface UnsetBuilderCodeArguments {
|
|
76
76
|
wrapper: RawTransactionArgument<string>;
|
|
77
77
|
auth: TransactionArgument;
|
|
@@ -84,7 +84,7 @@ interface UnsetBuilderCodeOptions {
|
|
|
84
84
|
};
|
|
85
85
|
}
|
|
86
86
|
/** Clear sticky builder-code attribution using valid owner or authorized-app auth. */
|
|
87
|
-
declare function unsetBuilderCode(options: UnsetBuilderCodeOptions): (tx: Transaction) =>
|
|
87
|
+
declare function unsetBuilderCode(options: UnsetBuilderCodeOptions): (tx: Transaction) => _mysten_sui_transactions79.TransactionResult;
|
|
88
88
|
//#endregion
|
|
89
89
|
export { predict_account_d_exports };
|
|
90
90
|
//# sourceMappingURL=predict_account.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"predict_account.d.mts","names":[],"sources":["../../../src/contracts/deepbook_predict/predict_account.ts"],"mappings":";;;;;;;;;cA4Ba,UAAA,EAAU,SAAA,WAGrB,
|
|
1
|
+
{"version":3,"file":"predict_account.d.mts","names":[],"sources":["../../../src/contracts/deepbook_predict/predict_account.ts"],"mappings":";;;;;;;;;cA4Ba,UAAA,EAAU,SAAA,WAGrB,kBAAA,CAHqB,OAAA;AAAA,cAIV,WAAA,EAAW,UAAA;;;;cAOX,QAAA,EAAQ,UAAA;6FAanB,kBAAA,CAAA,OAAA;EAxBW;;;;;AAIb;;;cAqBa,WAAA,EAAW,UAAA;;;;iDArBA;;;UA8BP,oBAAA;EAChB,OAAA,EAAS,mBAAA;EACT,cAAA,EAAgB,sBAAA;EAChB,OAAA,EAAS,sBAAA;AAAA;AAAA,UAEO,kBAAA;EAChB,OAAA;EACA,SAAA,EACG,oBAAA,IAEA,OAAA,EAAS,mBAAA,EACT,cAAA,EAAgB,sBAAA,UAChB,OAAA,EAAS,sBAAA;EAEZ,MAAA;IACC,gBAAA;EAAA;AAAA;;iBAIc,WAAA,CAAY,OAAA,EAAS,kBAAA,IAK5B,EAAA,EAAI,WAAA,KAAW,0BAAA,CAAA,iBAAA;AAAA,UAQP,sBAAA;EAChB,OAAA,EAAS,mBAAA;AAAA;AAAA,UAEO,oBAAA;EAChB,OAAA;EACA,SAAA,EAAW,sBAAA,IAA0B,OAAA,EAAS,mBAAA;EAC9C,MAAA;IACC,gBAAA;EAAA;AAAA;;iBAIc,aAAA,CAAc,OAAA,EAAS,oBAAA,IAK9B,EAAA,EAAI,WAAA,KAAW,0BAAA,CAAA,iBAAA;AAAA,UAQP,uBAAA;EAChB,OAAA,EAAS,sBAAA;EACT,IAAA,EAAM,mBAAA;EACN,IAAA,EAAM,sBAAA;AAAA;AAAA,UAEU,qBAAA;EAChB,OAAA;EACA,SAAA,EACG,uBAAA,IAEA,OAAA,EAAS,sBAAA,UACT,IAAA,EAAM,mBAAA,EACN,IAAA,EAAM,sBAAA;EAET,MAAA;IACC,gBAAA;EAAA;AAAA;;;;;iBAOc,cAAA,CAAe,OAAA,EAAS,qBAAA,IAK/B,EAAA,EAAI,WAAA,KAAW,0BAAA,CAAA,iBAAA;AAAA,UAQP,yBAAA;EAChB,OAAA,EAAS,sBAAA;EACT,IAAA,EAAM,mBAAA;AAAA;AAAA,UAEU,uBAAA;EAChB,OAAA;EACA,SAAA,EACG,yBAAA,IACC,OAAA,EAAS,sBAAA,UAAgC,IAAA,EAAM,mBAAA;EACnD,MAAA;IACC,gBAAA;EAAA;AAAA;;iBAIc,gBAAA,CAAiB,OAAA,EAAS,uBAAA,IAKjC,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_bcs110 from "@mysten/sui/bcs";
|
|
3
|
+
import * as _mysten_sui_transactions83 from "@mysten/sui/transactions";
|
|
4
4
|
import { Transaction, TransactionArgument } from "@mysten/sui/transactions";
|
|
5
5
|
|
|
6
6
|
//#region src/contracts/deepbook_predict/pricing.d.ts
|
|
@@ -12,83 +12,83 @@ declare const VolSnapshot: MoveStruct<{
|
|
|
12
12
|
* Canonical Propbook Pyth source for the market's underlying; commit finds this
|
|
13
13
|
* feed in each Lazer update.
|
|
14
14
|
*/
|
|
15
|
-
pyth_source_id:
|
|
16
|
-
bs_spot:
|
|
17
|
-
bs_forward:
|
|
15
|
+
pyth_source_id: _mysten_sui_bcs110.BcsType<number, number, "u32">; /** The matched Block Scholes spot and forward, narrowed to Predict's width. */
|
|
16
|
+
bs_spot: _mysten_sui_bcs110.BcsType<bigint, string | number | bigint, "u64">;
|
|
17
|
+
bs_forward: _mysten_sui_bcs110.BcsType<bigint, string | number | bigint, "u64">; /** Raw SVI parameters before roll-down, at 1e9. */
|
|
18
18
|
svi_a: MoveStruct<{
|
|
19
|
-
magnitude:
|
|
20
|
-
is_negative:
|
|
19
|
+
magnitude: _mysten_sui_bcs110.BcsType<bigint, string | number | bigint, "u64">;
|
|
20
|
+
is_negative: _mysten_sui_bcs110.BcsType<boolean, boolean, "bool">;
|
|
21
21
|
}, "fixed_math::i64::I64">;
|
|
22
|
-
svi_b:
|
|
22
|
+
svi_b: _mysten_sui_bcs110.BcsType<bigint, string | number | bigint, "u64">;
|
|
23
23
|
svi_rho: MoveStruct<{
|
|
24
|
-
magnitude:
|
|
25
|
-
is_negative:
|
|
24
|
+
magnitude: _mysten_sui_bcs110.BcsType<bigint, string | number | bigint, "u64">;
|
|
25
|
+
is_negative: _mysten_sui_bcs110.BcsType<boolean, boolean, "bool">;
|
|
26
26
|
}, "fixed_math::i64::I64">;
|
|
27
27
|
svi_m: MoveStruct<{
|
|
28
|
-
magnitude:
|
|
29
|
-
is_negative:
|
|
28
|
+
magnitude: _mysten_sui_bcs110.BcsType<bigint, string | number | bigint, "u64">;
|
|
29
|
+
is_negative: _mysten_sui_bcs110.BcsType<boolean, boolean, "bool">;
|
|
30
30
|
}, "fixed_math::i64::I64">;
|
|
31
|
-
svi_sigma:
|
|
31
|
+
svi_sigma: _mysten_sui_bcs110.BcsType<bigint, string | number | bigint, "u64">;
|
|
32
32
|
/**
|
|
33
33
|
* Provider source timestamps of the three reads. The SVI one is also the roll-down
|
|
34
34
|
* anchor.
|
|
35
35
|
*/
|
|
36
|
-
bs_spot_source_timestamp_ms:
|
|
37
|
-
bs_forward_source_timestamp_ms:
|
|
38
|
-
svi_source_timestamp_ms:
|
|
36
|
+
bs_spot_source_timestamp_ms: _mysten_sui_bcs110.BcsType<bigint, string | number | bigint, "u64">;
|
|
37
|
+
bs_forward_source_timestamp_ms: _mysten_sui_bcs110.BcsType<bigint, string | number | bigint, "u64">;
|
|
38
|
+
svi_source_timestamp_ms: _mysten_sui_bcs110.BcsType<bigint, string | number | bigint, "u64">;
|
|
39
39
|
}, "@local-pkg/deepbook_predict::pricing::VolSnapshot">;
|
|
40
40
|
declare const PricingSVI: MoveStruct<{
|
|
41
|
-
/** Rolled-down SVI `a`, magnitude at 1e18, sign in `a_is_negative`. */a_magnitude:
|
|
42
|
-
a_is_negative:
|
|
43
|
-
b:
|
|
41
|
+
/** Rolled-down SVI `a`, magnitude at 1e18, sign in `a_is_negative`. */a_magnitude: _mysten_sui_bcs110.BcsType<bigint, string | number | bigint, "u128">;
|
|
42
|
+
a_is_negative: _mysten_sui_bcs110.BcsType<boolean, boolean, "bool">; /** Rolled-down SVI `b`, at 1e18. */
|
|
43
|
+
b: _mysten_sui_bcs110.BcsType<bigint, string | number | bigint, "u128">;
|
|
44
44
|
rho: MoveStruct<{
|
|
45
|
-
magnitude:
|
|
46
|
-
is_negative:
|
|
45
|
+
magnitude: _mysten_sui_bcs110.BcsType<bigint, string | number | bigint, "u64">;
|
|
46
|
+
is_negative: _mysten_sui_bcs110.BcsType<boolean, boolean, "bool">;
|
|
47
47
|
}, "fixed_math::i64::I64">;
|
|
48
48
|
m: MoveStruct<{
|
|
49
|
-
magnitude:
|
|
50
|
-
is_negative:
|
|
49
|
+
magnitude: _mysten_sui_bcs110.BcsType<bigint, string | number | bigint, "u64">;
|
|
50
|
+
is_negative: _mysten_sui_bcs110.BcsType<boolean, boolean, "bool">;
|
|
51
51
|
}, "fixed_math::i64::I64">;
|
|
52
|
-
sigma:
|
|
52
|
+
sigma: _mysten_sui_bcs110.BcsType<bigint, string | number | bigint, "u64">;
|
|
53
53
|
}, "@local-pkg/deepbook_predict::pricing::PricingSVI">;
|
|
54
54
|
declare const FrozenPricer: MoveStruct<{
|
|
55
|
-
expiry_market_id:
|
|
56
|
-
forward:
|
|
55
|
+
expiry_market_id: _mysten_sui_bcs110.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
56
|
+
forward: _mysten_sui_bcs110.BcsType<bigint, string | number | bigint, "u64">;
|
|
57
57
|
svi: MoveStruct<{
|
|
58
|
-
/** Rolled-down SVI `a`, magnitude at 1e18, sign in `a_is_negative`. */a_magnitude:
|
|
59
|
-
a_is_negative:
|
|
60
|
-
b:
|
|
58
|
+
/** Rolled-down SVI `a`, magnitude at 1e18, sign in `a_is_negative`. */a_magnitude: _mysten_sui_bcs110.BcsType<bigint, string | number | bigint, "u128">;
|
|
59
|
+
a_is_negative: _mysten_sui_bcs110.BcsType<boolean, boolean, "bool">; /** Rolled-down SVI `b`, at 1e18. */
|
|
60
|
+
b: _mysten_sui_bcs110.BcsType<bigint, string | number | bigint, "u128">;
|
|
61
61
|
rho: MoveStruct<{
|
|
62
|
-
magnitude:
|
|
63
|
-
is_negative:
|
|
62
|
+
magnitude: _mysten_sui_bcs110.BcsType<bigint, string | number | bigint, "u64">;
|
|
63
|
+
is_negative: _mysten_sui_bcs110.BcsType<boolean, boolean, "bool">;
|
|
64
64
|
}, "fixed_math::i64::I64">;
|
|
65
65
|
m: MoveStruct<{
|
|
66
|
-
magnitude:
|
|
67
|
-
is_negative:
|
|
66
|
+
magnitude: _mysten_sui_bcs110.BcsType<bigint, string | number | bigint, "u64">;
|
|
67
|
+
is_negative: _mysten_sui_bcs110.BcsType<boolean, boolean, "bool">;
|
|
68
68
|
}, "fixed_math::i64::I64">;
|
|
69
|
-
sigma:
|
|
69
|
+
sigma: _mysten_sui_bcs110.BcsType<bigint, string | number | bigint, "u64">;
|
|
70
70
|
}, "@local-pkg/deepbook_predict::pricing::PricingSVI">;
|
|
71
|
-
pyth_spot_source_timestamp_ms:
|
|
72
|
-
block_scholes_spot_source_timestamp_ms:
|
|
73
|
-
block_scholes_forward_source_timestamp_ms:
|
|
74
|
-
block_scholes_svi_source_timestamp_ms:
|
|
71
|
+
pyth_spot_source_timestamp_ms: _mysten_sui_bcs110.BcsType<bigint, string | number | bigint, "u64">;
|
|
72
|
+
block_scholes_spot_source_timestamp_ms: _mysten_sui_bcs110.BcsType<bigint, string | number | bigint, "u64">;
|
|
73
|
+
block_scholes_forward_source_timestamp_ms: _mysten_sui_bcs110.BcsType<bigint, string | number | bigint, "u64">;
|
|
74
|
+
block_scholes_svi_source_timestamp_ms: _mysten_sui_bcs110.BcsType<bigint, string | number | bigint, "u64">;
|
|
75
75
|
}, "@local-pkg/deepbook_predict::pricing::FrozenPricer">;
|
|
76
76
|
declare const Pricer: MoveStruct<{
|
|
77
|
-
/** Expiry market this snapshot was loaded for. */expiry_market_id:
|
|
78
|
-
forward:
|
|
77
|
+
/** Expiry market this snapshot was loaded for. */expiry_market_id: _mysten_sui_bcs110.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
78
|
+
forward: _mysten_sui_bcs110.BcsType<bigint, string | number | bigint, "u64">;
|
|
79
79
|
svi: MoveStruct<{
|
|
80
|
-
/** Rolled-down SVI `a`, magnitude at 1e18, sign in `a_is_negative`. */a_magnitude:
|
|
81
|
-
a_is_negative:
|
|
82
|
-
b:
|
|
80
|
+
/** Rolled-down SVI `a`, magnitude at 1e18, sign in `a_is_negative`. */a_magnitude: _mysten_sui_bcs110.BcsType<bigint, string | number | bigint, "u128">;
|
|
81
|
+
a_is_negative: _mysten_sui_bcs110.BcsType<boolean, boolean, "bool">; /** Rolled-down SVI `b`, at 1e18. */
|
|
82
|
+
b: _mysten_sui_bcs110.BcsType<bigint, string | number | bigint, "u128">;
|
|
83
83
|
rho: MoveStruct<{
|
|
84
|
-
magnitude:
|
|
85
|
-
is_negative:
|
|
84
|
+
magnitude: _mysten_sui_bcs110.BcsType<bigint, string | number | bigint, "u64">;
|
|
85
|
+
is_negative: _mysten_sui_bcs110.BcsType<boolean, boolean, "bool">;
|
|
86
86
|
}, "fixed_math::i64::I64">;
|
|
87
87
|
m: MoveStruct<{
|
|
88
|
-
magnitude:
|
|
89
|
-
is_negative:
|
|
88
|
+
magnitude: _mysten_sui_bcs110.BcsType<bigint, string | number | bigint, "u64">;
|
|
89
|
+
is_negative: _mysten_sui_bcs110.BcsType<boolean, boolean, "bool">;
|
|
90
90
|
}, "fixed_math::i64::I64">;
|
|
91
|
-
sigma:
|
|
91
|
+
sigma: _mysten_sui_bcs110.BcsType<bigint, string | number | bigint, "u64">;
|
|
92
92
|
}, "@local-pkg/deepbook_predict::pricing::PricingSVI">;
|
|
93
93
|
/**
|
|
94
94
|
* Timestamps of the oracle observations this snapshot validated, as trade events
|
|
@@ -101,30 +101,30 @@ declare const Pricer: MoveStruct<{
|
|
|
101
101
|
* `assert_pyth_spot_fresh` gates live trades on, so it must stay the value the
|
|
102
102
|
* load's forward selection read.
|
|
103
103
|
*/
|
|
104
|
-
pyth_spot_source_timestamp_ms:
|
|
105
|
-
block_scholes_spot_source_timestamp_ms:
|
|
106
|
-
block_scholes_forward_source_timestamp_ms:
|
|
107
|
-
block_scholes_svi_source_timestamp_ms:
|
|
104
|
+
pyth_spot_source_timestamp_ms: _mysten_sui_bcs110.BcsType<bigint, string | number | bigint, "u64">;
|
|
105
|
+
block_scholes_spot_source_timestamp_ms: _mysten_sui_bcs110.BcsType<bigint, string | number | bigint, "u64">;
|
|
106
|
+
block_scholes_forward_source_timestamp_ms: _mysten_sui_bcs110.BcsType<bigint, string | number | bigint, "u64">;
|
|
107
|
+
block_scholes_svi_source_timestamp_ms: _mysten_sui_bcs110.BcsType<bigint, string | number | bigint, "u64">;
|
|
108
108
|
}, "@local-pkg/deepbook_predict::pricing::Pricer">;
|
|
109
109
|
declare const RangePrice: MoveStruct<{
|
|
110
|
-
lower_up:
|
|
111
|
-
higher_up:
|
|
110
|
+
lower_up: _mysten_sui_bcs110.BcsType<bigint | null, string | number | bigint | null | undefined, "Option<u64>">;
|
|
111
|
+
higher_up: _mysten_sui_bcs110.BcsType<bigint | null, string | number | bigint | null | undefined, "Option<u64>">;
|
|
112
112
|
}, "@local-pkg/deepbook_predict::pricing::RangePrice">;
|
|
113
113
|
declare const RawSVI: MoveStruct<{
|
|
114
114
|
a: MoveStruct<{
|
|
115
|
-
magnitude:
|
|
116
|
-
is_negative:
|
|
115
|
+
magnitude: _mysten_sui_bcs110.BcsType<bigint, string | number | bigint, "u64">;
|
|
116
|
+
is_negative: _mysten_sui_bcs110.BcsType<boolean, boolean, "bool">;
|
|
117
117
|
}, "fixed_math::i64::I64">;
|
|
118
|
-
b:
|
|
118
|
+
b: _mysten_sui_bcs110.BcsType<bigint, string | number | bigint, "u64">;
|
|
119
119
|
rho: MoveStruct<{
|
|
120
|
-
magnitude:
|
|
121
|
-
is_negative:
|
|
120
|
+
magnitude: _mysten_sui_bcs110.BcsType<bigint, string | number | bigint, "u64">;
|
|
121
|
+
is_negative: _mysten_sui_bcs110.BcsType<boolean, boolean, "bool">;
|
|
122
122
|
}, "fixed_math::i64::I64">;
|
|
123
123
|
m: MoveStruct<{
|
|
124
|
-
magnitude:
|
|
125
|
-
is_negative:
|
|
124
|
+
magnitude: _mysten_sui_bcs110.BcsType<bigint, string | number | bigint, "u64">;
|
|
125
|
+
is_negative: _mysten_sui_bcs110.BcsType<boolean, boolean, "bool">;
|
|
126
126
|
}, "fixed_math::i64::I64">;
|
|
127
|
-
sigma:
|
|
127
|
+
sigma: _mysten_sui_bcs110.BcsType<bigint, string | number | bigint, "u64">;
|
|
128
128
|
}, "@local-pkg/deepbook_predict::pricing::RawSVI">;
|
|
129
129
|
interface UpPriceArguments {
|
|
130
130
|
pricer: TransactionArgument;
|
|
@@ -141,7 +141,7 @@ interface UpPriceOptions {
|
|
|
141
141
|
* Return the current UP digital probability for a typed strike. Public PTB and
|
|
142
142
|
* devInspect reads can compose it with a transaction-local `Pricer`.
|
|
143
143
|
*/
|
|
144
|
-
declare function upPrice(options: UpPriceOptions): (tx: Transaction) =>
|
|
144
|
+
declare function upPrice(options: UpPriceOptions): (tx: Transaction) => _mysten_sui_transactions83.TransactionResult;
|
|
145
145
|
interface RangePriceArguments {
|
|
146
146
|
pricer: TransactionArgument;
|
|
147
147
|
lower: TransactionArgument;
|
|
@@ -158,7 +158,7 @@ interface RangePriceOptions {
|
|
|
158
158
|
* Return both boundary probabilities for `(lower, higher]`. Use `probability()`
|
|
159
159
|
* for the combined range probability; absent boundaries are infinite sentinels.
|
|
160
160
|
*/
|
|
161
|
-
declare function rangePrice(options: RangePriceOptions): (tx: Transaction) =>
|
|
161
|
+
declare function rangePrice(options: RangePriceOptions): (tx: Transaction) => _mysten_sui_transactions83.TransactionResult;
|
|
162
162
|
interface LowerUpArguments {
|
|
163
163
|
price: TransactionArgument;
|
|
164
164
|
}
|
|
@@ -169,7 +169,7 @@ interface LowerUpOptions {
|
|
|
169
169
|
predictPackageId?: string;
|
|
170
170
|
};
|
|
171
171
|
}
|
|
172
|
-
declare function lowerUp(options: LowerUpOptions): (tx: Transaction) =>
|
|
172
|
+
declare function lowerUp(options: LowerUpOptions): (tx: Transaction) => _mysten_sui_transactions83.TransactionResult;
|
|
173
173
|
interface HigherUpArguments {
|
|
174
174
|
price: TransactionArgument;
|
|
175
175
|
}
|
|
@@ -180,7 +180,7 @@ interface HigherUpOptions {
|
|
|
180
180
|
predictPackageId?: string;
|
|
181
181
|
};
|
|
182
182
|
}
|
|
183
|
-
declare function higherUp(options: HigherUpOptions): (tx: Transaction) =>
|
|
183
|
+
declare function higherUp(options: HigherUpOptions): (tx: Transaction) => _mysten_sui_transactions83.TransactionResult;
|
|
184
184
|
interface ProbabilityArguments {
|
|
185
185
|
price: TransactionArgument;
|
|
186
186
|
}
|
|
@@ -195,7 +195,7 @@ interface ProbabilityOptions {
|
|
|
195
195
|
* Return the combined probability, floored at zero if approximated boundary prices
|
|
196
196
|
* invert.
|
|
197
197
|
*/
|
|
198
|
-
declare function probability(options: ProbabilityOptions): (tx: Transaction) =>
|
|
198
|
+
declare function probability(options: ProbabilityOptions): (tx: Transaction) => _mysten_sui_transactions83.TransactionResult;
|
|
199
199
|
//#endregion
|
|
200
200
|
export { pricing_d_exports };
|
|
201
201
|
//# sourceMappingURL=pricing.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pricing.d.mts","names":[],"sources":["../../../src/contracts/deepbook_predict/pricing.ts"],"mappings":";;;;;;;;;cAiCa,WAAA,EAAW,UAAA;;;AAAxB;;kBAyBE,
|
|
1
|
+
{"version":3,"file":"pricing.d.mts","names":[],"sources":["../../../src/contracts/deepbook_predict/pricing.ts"],"mappings":";;;;;;;;;cAiCa,WAAA,EAAW,UAAA;;;AAAxB;;kBAyBE,kBAAA,CAAA,OAAA,yBAAA;;;;;;;;;;;;;;;;;EAzBsB;;;;;;;;cA0BX,UAAA,EAAU,UAAA;sFAYrB,kBAAA,CAAA,OAAA;;;;;;;;;;;;;cACW,YAAA,EAAY,UAAA;;;;;;;;;;;;;;;;;;;;;;cAYZ,MAAA,EAAM,UAAA;;;;IAzBI;;;;;;;;;;;;;;;;;;;;;;;AAavB;;;;;;cAoCa,UAAA,EAAU,UAAA;YAMrB,kBAAA,CAAA,OAAA;;;cACW,MAAA,EAAM,UAAA;;eASjB,kBAAA,CAAA,OAAA;;;;;;;;;;;;;;UACe,gBAAA;EAChB,MAAA,EAAQ,mBAAA;EACR,MAAA,EAAQ,mBAAA;AAAA;AAAA,UAEQ,cAAA;EAChB,OAAA;EACA,SAAA,EAAW,gBAAA,IAAoB,MAAA,EAAQ,mBAAA,EAAqB,MAAA,EAAQ,mBAAA;EACpE,MAAA;IACC,gBAAA;EAAA;AAAA;;;;;iBAOc,OAAA,CAAQ,OAAA,EAAS,cAAA,IAKxB,EAAA,EAAI,WAAA,KAAW,0BAAA,CAAA,iBAAA;AAAA,UAQP,mBAAA;EAChB,MAAA,EAAQ,mBAAA;EACR,KAAA,EAAO,mBAAA;EACP,MAAA,EAAQ,mBAAA;AAAA;AAAA,UAEQ,iBAAA;EAChB,OAAA;EACA,SAAA,EACG,mBAAA,IACC,MAAA,EAAQ,mBAAA,EAAqB,KAAA,EAAO,mBAAA,EAAqB,MAAA,EAAQ,mBAAA;EACrE,MAAA;IACC,gBAAA;EAAA;AAAA;;;;;iBAOc,UAAA,CAAW,OAAA,EAAS,iBAAA,IAK3B,EAAA,EAAI,WAAA,KAAW,0BAAA,CAAA,iBAAA;AAAA,UAQP,gBAAA;EAChB,KAAA,EAAO,mBAAA;AAAA;AAAA,UAES,cAAA;EAChB,OAAA;EACA,SAAA,EAAW,gBAAA,IAAoB,KAAA,EAAO,mBAAA;EACtC,MAAA;IACC,gBAAA;EAAA;AAAA;AAAA,iBAGc,OAAA,CAAQ,OAAA,EAAS,cAAA,IAKxB,EAAA,EAAI,WAAA,KAAW,0BAAA,CAAA,iBAAA;AAAA,UAQP,iBAAA;EAChB,KAAA,EAAO,mBAAA;AAAA;AAAA,UAES,eAAA;EAChB,OAAA;EACA,SAAA,EAAW,iBAAA,IAAqB,KAAA,EAAO,mBAAA;EACvC,MAAA;IACC,gBAAA;EAAA;AAAA;AAAA,iBAGc,QAAA,CAAS,OAAA,EAAS,eAAA,IAKzB,EAAA,EAAI,WAAA,KAAW,0BAAA,CAAA,iBAAA;AAAA,UAQP,oBAAA;EAChB,KAAA,EAAO,mBAAA;AAAA;AAAA,UAES,kBAAA;EAChB,OAAA;EACA,SAAA,EAAW,oBAAA,IAAwB,KAAA,EAAO,mBAAA;EAC1C,MAAA;IACC,gBAAA;EAAA;AAAA;;;;;iBAOc,WAAA,CAAY,OAAA,EAAS,kBAAA,IAK5B,EAAA,EAAI,WAAA,KAAW,0BAAA,CAAA,iBAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { MoveTuple, RawTransactionArgument } from "../utils/index.mjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as _mysten_sui_transactions92 from "@mysten/sui/transactions";
|
|
3
3
|
import { Transaction } from "@mysten/sui/transactions";
|
|
4
4
|
import * as _mysten_bcs0 from "@mysten/bcs";
|
|
5
5
|
|
|
@@ -24,7 +24,7 @@ interface StrikeFromTickOptions {
|
|
|
24
24
|
* Non-sentinel ticks multiply directly by `tick_size`; public PTB and devInspect
|
|
25
25
|
* callers are responsible for supplying the intended market domain.
|
|
26
26
|
*/
|
|
27
|
-
declare function strikeFromTick(options: StrikeFromTickOptions): (tx: Transaction) =>
|
|
27
|
+
declare function strikeFromTick(options: StrikeFromTickOptions): (tx: Transaction) => _mysten_sui_transactions92.TransactionResult;
|
|
28
28
|
//#endregion
|
|
29
29
|
export { range_codec_d_exports };
|
|
30
30
|
//# sourceMappingURL=range_codec.d.mts.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ConfigValue, MoveStruct, RawTransactionArgument } from "../utils/index.mjs";
|
|
2
|
-
import * as
|
|
3
|
-
import * as
|
|
2
|
+
import * as _mysten_sui_bcs170 from "@mysten/sui/bcs";
|
|
3
|
+
import * as _mysten_sui_transactions93 from "@mysten/sui/transactions";
|
|
4
4
|
import { Transaction } from "@mysten/sui/transactions";
|
|
5
5
|
|
|
6
6
|
//#region src/contracts/deepbook_predict/registry.d.ts
|
|
@@ -8,19 +8,19 @@ declare namespace registry_d_exports {
|
|
|
8
8
|
export { CadenceConfigArguments, CadenceConfigOptions, CadenceConfigsArguments, CadenceConfigsOptions, CreateAndShareBuilderCodeArguments, CreateAndShareBuilderCodeOptions, CreateAndShareExpiryMarketArguments, CreateAndShareExpiryMarketOptions, ExpiryMarketIdArguments, ExpiryMarketIdOptions, FreezeProtocolPauseCapArguments, FreezeProtocolPauseCapOptions, GeneratePoolValuationProofArguments, GeneratePoolValuationProofOptions, IdArguments, IdOptions, MintLifecycleCapArguments, MintLifecycleCapOptions, MintPauseCapArguments, MintPauseCapOptions, MintPoolValuationCapArguments, MintPoolValuationCapOptions, PauseExpiryMarketMintPauseCapArguments, PauseExpiryMarketMintPauseCapOptions, PauseTradingPauseCapArguments, PauseTradingPauseCapOptions, RegisterUnderlyingArguments, RegisterUnderlyingOptions, Registry, RevokeLifecycleCapArguments, RevokeLifecycleCapOptions, RevokePauseCapArguments, RevokePauseCapOptions, RevokePoolValuationCapArguments, RevokePoolValuationCapOptions, SetTemplateCadenceConfigArguments, SetTemplateCadenceConfigOptions, cadenceConfig, cadenceConfigs, createAndShareBuilderCode, createAndShareExpiryMarket, expiryMarketId, freezeProtocolPauseCap, generatePoolValuationProof, id, mintLifecycleCap, mintPauseCap, mintPoolValuationCap, pauseExpiryMarketMintPauseCap, pauseTradingPauseCap, registerUnderlying, revokeLifecycleCap, revokePauseCap, revokePoolValuationCap, setTemplateCadenceConfig };
|
|
9
9
|
}
|
|
10
10
|
declare const Registry: MoveStruct<{
|
|
11
|
-
id:
|
|
11
|
+
id: _mysten_sui_bcs170.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
12
12
|
/**
|
|
13
13
|
* Market identity, cadence deployment terms, underlying watermarks, and
|
|
14
14
|
* uniqueness.
|
|
15
15
|
*/
|
|
16
16
|
market_manager: MoveStruct<{
|
|
17
17
|
underlying_configs: MoveStruct<{
|
|
18
|
-
id:
|
|
19
|
-
size:
|
|
18
|
+
id: _mysten_sui_bcs170.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
19
|
+
size: _mysten_sui_bcs170.BcsType<bigint, string | number | bigint, "u64">;
|
|
20
20
|
}, "0x2::table::Table<phantom K, phantom V>">;
|
|
21
21
|
market_ids: MoveStruct<{
|
|
22
|
-
id:
|
|
23
|
-
size:
|
|
22
|
+
id: _mysten_sui_bcs170.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
23
|
+
size: _mysten_sui_bcs170.BcsType<bigint, string | number | bigint, "u64">;
|
|
24
24
|
}, "0x2::table::Table<phantom K, phantom V>">;
|
|
25
25
|
}, "@local-pkg/deepbook_predict::market_manager::MarketManager">;
|
|
26
26
|
/**
|
|
@@ -28,7 +28,7 @@ declare const Registry: MoveStruct<{
|
|
|
28
28
|
* mints into this set and revokes from it.
|
|
29
29
|
*/
|
|
30
30
|
allowed_pause_caps: MoveStruct<{
|
|
31
|
-
contents:
|
|
31
|
+
contents: _mysten_sui_bcs170.BcsType<string[], Iterable<string | Uint8Array<ArrayBufferLike>> & {
|
|
32
32
|
length: number;
|
|
33
33
|
}, string>;
|
|
34
34
|
}, "0x2::vec_set::VecSet<bytes[32]>">;
|
|
@@ -37,7 +37,7 @@ declare const Registry: MoveStruct<{
|
|
|
37
37
|
* markets. Admin mints into this set and revokes from it.
|
|
38
38
|
*/
|
|
39
39
|
allowed_lifecycle_caps: MoveStruct<{
|
|
40
|
-
contents:
|
|
40
|
+
contents: _mysten_sui_bcs170.BcsType<string[], Iterable<string | Uint8Array<ArrayBufferLike>> & {
|
|
41
41
|
length: number;
|
|
42
42
|
}, string>;
|
|
43
43
|
}, "0x2::vec_set::VecSet<bytes[32]>">;
|
|
@@ -46,7 +46,7 @@ declare const Registry: MoveStruct<{
|
|
|
46
46
|
* valuation. Admin mints into this set and revokes from it.
|
|
47
47
|
*/
|
|
48
48
|
allowed_pool_valuation_caps: MoveStruct<{
|
|
49
|
-
contents:
|
|
49
|
+
contents: _mysten_sui_bcs170.BcsType<string[], Iterable<string | Uint8Array<ArrayBufferLike>> & {
|
|
50
50
|
length: number;
|
|
51
51
|
}, string>;
|
|
52
52
|
}, "0x2::vec_set::VecSet<bytes[32]>">;
|
|
@@ -63,7 +63,7 @@ interface IdOptions {
|
|
|
63
63
|
};
|
|
64
64
|
}
|
|
65
65
|
/** Return the registry object ID for external discovery and PTB construction. */
|
|
66
|
-
declare function id(options: IdOptions): (tx: Transaction) =>
|
|
66
|
+
declare function id(options: IdOptions): (tx: Transaction) => _mysten_sui_transactions93.TransactionResult;
|
|
67
67
|
interface ExpiryMarketIdArguments {
|
|
68
68
|
registry?: RawTransactionArgument<string>;
|
|
69
69
|
propbookUnderlyingId: RawTransactionArgument<number>;
|
|
@@ -78,7 +78,7 @@ interface ExpiryMarketIdOptions {
|
|
|
78
78
|
};
|
|
79
79
|
}
|
|
80
80
|
/** Resolve an expiry market ID for external discovery and PTB construction. */
|
|
81
|
-
declare function expiryMarketId(options: ExpiryMarketIdOptions): (tx: Transaction) =>
|
|
81
|
+
declare function expiryMarketId(options: ExpiryMarketIdOptions): (tx: Transaction) => _mysten_sui_transactions93.TransactionResult;
|
|
82
82
|
interface CadenceConfigArguments {
|
|
83
83
|
registry?: RawTransactionArgument<string>;
|
|
84
84
|
propbookUnderlyingId: RawTransactionArgument<number>;
|
|
@@ -93,7 +93,7 @@ interface CadenceConfigOptions {
|
|
|
93
93
|
};
|
|
94
94
|
}
|
|
95
95
|
/** Return deployment policy for SDK and devInspect market discovery. */
|
|
96
|
-
declare function cadenceConfig(options: CadenceConfigOptions): (tx: Transaction) =>
|
|
96
|
+
declare function cadenceConfig(options: CadenceConfigOptions): (tx: Transaction) => _mysten_sui_transactions93.TransactionResult;
|
|
97
97
|
interface CadenceConfigsArguments {
|
|
98
98
|
registry?: RawTransactionArgument<string>;
|
|
99
99
|
propbookUnderlyingId: RawTransactionArgument<number>;
|
|
@@ -114,7 +114,7 @@ interface CadenceConfigsOptions {
|
|
|
114
114
|
* ID; disabled cadences are present as their all-zero configuration. Aborts if the
|
|
115
115
|
* underlying is not registered.
|
|
116
116
|
*/
|
|
117
|
-
declare function cadenceConfigs(options: CadenceConfigsOptions): (tx: Transaction) =>
|
|
117
|
+
declare function cadenceConfigs(options: CadenceConfigsOptions): (tx: Transaction) => _mysten_sui_transactions93.TransactionResult;
|
|
118
118
|
interface MintPauseCapArguments {
|
|
119
119
|
registry?: RawTransactionArgument<string>;
|
|
120
120
|
AdminCap: RawTransactionArgument<string>;
|
|
@@ -131,7 +131,7 @@ interface MintPauseCapOptions {
|
|
|
131
131
|
* Mint a new `PauseCap`. This bypasses the version gate so emergency pause
|
|
132
132
|
* authority remains available from a package version below the runtime floor.
|
|
133
133
|
*/
|
|
134
|
-
declare function mintPauseCap(options: MintPauseCapOptions): (tx: Transaction) =>
|
|
134
|
+
declare function mintPauseCap(options: MintPauseCapOptions): (tx: Transaction) => _mysten_sui_transactions93.TransactionResult;
|
|
135
135
|
interface RevokePauseCapArguments {
|
|
136
136
|
registry?: RawTransactionArgument<string>;
|
|
137
137
|
AdminCap: RawTransactionArgument<string>;
|
|
@@ -146,7 +146,7 @@ interface RevokePauseCapOptions {
|
|
|
146
146
|
};
|
|
147
147
|
}
|
|
148
148
|
/** Revoke a previously minted `PauseCap` by ID. Admin-only. */
|
|
149
|
-
declare function revokePauseCap(options: RevokePauseCapOptions): (tx: Transaction) =>
|
|
149
|
+
declare function revokePauseCap(options: RevokePauseCapOptions): (tx: Transaction) => _mysten_sui_transactions93.TransactionResult;
|
|
150
150
|
interface MintLifecycleCapArguments {
|
|
151
151
|
registry?: RawTransactionArgument<string>;
|
|
152
152
|
config?: RawTransactionArgument<string>;
|
|
@@ -162,7 +162,7 @@ interface MintLifecycleCapOptions {
|
|
|
162
162
|
};
|
|
163
163
|
}
|
|
164
164
|
/** Mint a version-gated `MarketLifecycleCap` with market-creation authority. */
|
|
165
|
-
declare function mintLifecycleCap(options: MintLifecycleCapOptions): (tx: Transaction) =>
|
|
165
|
+
declare function mintLifecycleCap(options: MintLifecycleCapOptions): (tx: Transaction) => _mysten_sui_transactions93.TransactionResult;
|
|
166
166
|
interface RevokeLifecycleCapArguments {
|
|
167
167
|
registry?: RawTransactionArgument<string>;
|
|
168
168
|
AdminCap: RawTransactionArgument<string>;
|
|
@@ -177,7 +177,7 @@ interface RevokeLifecycleCapOptions {
|
|
|
177
177
|
};
|
|
178
178
|
}
|
|
179
179
|
/** Revoke a `MarketLifecycleCap` by ID without applying the version gate. */
|
|
180
|
-
declare function revokeLifecycleCap(options: RevokeLifecycleCapOptions): (tx: Transaction) =>
|
|
180
|
+
declare function revokeLifecycleCap(options: RevokeLifecycleCapOptions): (tx: Transaction) => _mysten_sui_transactions93.TransactionResult;
|
|
181
181
|
interface MintPoolValuationCapArguments {
|
|
182
182
|
registry?: RawTransactionArgument<string>;
|
|
183
183
|
AdminCap: RawTransactionArgument<string>;
|
|
@@ -196,7 +196,7 @@ interface MintPoolValuationCapOptions {
|
|
|
196
196
|
* Mint a version-gated `PoolValuationCap` with authority to start the full-pool
|
|
197
197
|
* valuation.
|
|
198
198
|
*/
|
|
199
|
-
declare function mintPoolValuationCap(options: MintPoolValuationCapOptions): (tx: Transaction) =>
|
|
199
|
+
declare function mintPoolValuationCap(options: MintPoolValuationCapOptions): (tx: Transaction) => _mysten_sui_transactions93.TransactionResult;
|
|
200
200
|
interface RevokePoolValuationCapArguments {
|
|
201
201
|
registry?: RawTransactionArgument<string>;
|
|
202
202
|
AdminCap: RawTransactionArgument<string>;
|
|
@@ -211,7 +211,7 @@ interface RevokePoolValuationCapOptions {
|
|
|
211
211
|
};
|
|
212
212
|
}
|
|
213
213
|
/** Revoke a `PoolValuationCap` by ID without applying the version gate. */
|
|
214
|
-
declare function revokePoolValuationCap(options: RevokePoolValuationCapOptions): (tx: Transaction) =>
|
|
214
|
+
declare function revokePoolValuationCap(options: RevokePoolValuationCapOptions): (tx: Transaction) => _mysten_sui_transactions93.TransactionResult;
|
|
215
215
|
interface GeneratePoolValuationProofArguments {
|
|
216
216
|
registry?: RawTransactionArgument<string>;
|
|
217
217
|
poolValuationCap: RawTransactionArgument<string>;
|
|
@@ -229,7 +229,7 @@ interface GeneratePoolValuationProofOptions {
|
|
|
229
229
|
* allowlisted. `plp::start_pool_valuation` takes the proof by value so a revoked
|
|
230
230
|
* cap cannot start a valuation.
|
|
231
231
|
*/
|
|
232
|
-
declare function generatePoolValuationProof(options: GeneratePoolValuationProofOptions): (tx: Transaction) =>
|
|
232
|
+
declare function generatePoolValuationProof(options: GeneratePoolValuationProofOptions): (tx: Transaction) => _mysten_sui_transactions93.TransactionResult;
|
|
233
233
|
interface PauseTradingPauseCapArguments {
|
|
234
234
|
config?: RawTransactionArgument<string>;
|
|
235
235
|
registry?: RawTransactionArgument<string>;
|
|
@@ -245,7 +245,7 @@ interface PauseTradingPauseCapOptions {
|
|
|
245
245
|
};
|
|
246
246
|
}
|
|
247
247
|
/** Force `trading_paused = true` via a valid `PauseCap`. One-way. */
|
|
248
|
-
declare function pauseTradingPauseCap(options: PauseTradingPauseCapOptions): (tx: Transaction) =>
|
|
248
|
+
declare function pauseTradingPauseCap(options: PauseTradingPauseCapOptions): (tx: Transaction) => _mysten_sui_transactions93.TransactionResult;
|
|
249
249
|
interface FreezeProtocolPauseCapArguments {
|
|
250
250
|
config?: RawTransactionArgument<string>;
|
|
251
251
|
registry?: RawTransactionArgument<string>;
|
|
@@ -264,7 +264,7 @@ interface FreezeProtocolPauseCapOptions {
|
|
|
264
264
|
* Force the protocol-wide emergency freeze via a valid `PauseCap`. One-way;
|
|
265
265
|
* admin's `protocol_config::set_frozen` is needed to lift the freeze.
|
|
266
266
|
*/
|
|
267
|
-
declare function freezeProtocolPauseCap(options: FreezeProtocolPauseCapOptions): (tx: Transaction) =>
|
|
267
|
+
declare function freezeProtocolPauseCap(options: FreezeProtocolPauseCapOptions): (tx: Transaction) => _mysten_sui_transactions93.TransactionResult;
|
|
268
268
|
interface PauseExpiryMarketMintPauseCapArguments {
|
|
269
269
|
market: RawTransactionArgument<string>;
|
|
270
270
|
registry?: RawTransactionArgument<string>;
|
|
@@ -282,7 +282,7 @@ interface PauseExpiryMarketMintPauseCapOptions {
|
|
|
282
282
|
* Force `mint_paused = true` on a single expiry market via a valid `PauseCap`.
|
|
283
283
|
* One-way; admin's `expiry_market::set_mint_paused` is needed to unpause.
|
|
284
284
|
*/
|
|
285
|
-
declare function pauseExpiryMarketMintPauseCap(options: PauseExpiryMarketMintPauseCapOptions): (tx: Transaction) =>
|
|
285
|
+
declare function pauseExpiryMarketMintPauseCap(options: PauseExpiryMarketMintPauseCapOptions): (tx: Transaction) => _mysten_sui_transactions93.TransactionResult;
|
|
286
286
|
interface RegisterUnderlyingArguments {
|
|
287
287
|
registry?: RawTransactionArgument<string>;
|
|
288
288
|
config?: RawTransactionArgument<string>;
|
|
@@ -303,7 +303,7 @@ interface RegisterUnderlyingOptions {
|
|
|
303
303
|
* oracle object IDs remain owned by Propbook; this row only gates which
|
|
304
304
|
* underlyings Predict will build markets on and stores deployment watermarks.
|
|
305
305
|
*/
|
|
306
|
-
declare function registerUnderlying(options: RegisterUnderlyingOptions): (tx: Transaction) =>
|
|
306
|
+
declare function registerUnderlying(options: RegisterUnderlyingOptions): (tx: Transaction) => _mysten_sui_transactions93.TransactionResult;
|
|
307
307
|
interface SetTemplateCadenceConfigArguments {
|
|
308
308
|
registry?: RawTransactionArgument<string>;
|
|
309
309
|
config?: RawTransactionArgument<string>;
|
|
@@ -329,7 +329,7 @@ interface SetTemplateCadenceConfigOptions {
|
|
|
329
329
|
* Set all deployment terms for one underlying's cadence. Passing zero for all five
|
|
330
330
|
* values disables the cadence; otherwise all values must be nonzero and valid.
|
|
331
331
|
*/
|
|
332
|
-
declare function setTemplateCadenceConfig(options: SetTemplateCadenceConfigOptions): (tx: Transaction) =>
|
|
332
|
+
declare function setTemplateCadenceConfig(options: SetTemplateCadenceConfigOptions): (tx: Transaction) => _mysten_sui_transactions93.TransactionResult;
|
|
333
333
|
interface CreateAndShareExpiryMarketArguments {
|
|
334
334
|
registry?: RawTransactionArgument<string>;
|
|
335
335
|
poolVault?: RawTransactionArgument<string>;
|
|
@@ -360,7 +360,7 @@ interface CreateAndShareExpiryMarketOptions {
|
|
|
360
360
|
* snapshots cadence and expiry policy, starts with zero cash, and cannot mint
|
|
361
361
|
* until pool rebalancing funds it. Live pricing reads current Propbook bindings.
|
|
362
362
|
*/
|
|
363
|
-
declare function createAndShareExpiryMarket(options: CreateAndShareExpiryMarketOptions): (tx: Transaction) =>
|
|
363
|
+
declare function createAndShareExpiryMarket(options: CreateAndShareExpiryMarketOptions): (tx: Transaction) => _mysten_sui_transactions93.TransactionResult;
|
|
364
364
|
interface CreateAndShareBuilderCodeArguments {
|
|
365
365
|
registry?: RawTransactionArgument<string>;
|
|
366
366
|
config?: RawTransactionArgument<string>;
|
|
@@ -376,7 +376,7 @@ interface CreateAndShareBuilderCodeOptions {
|
|
|
376
376
|
};
|
|
377
377
|
}
|
|
378
378
|
/** Create a derived shared BuilderCode for the caller and index. */
|
|
379
|
-
declare function createAndShareBuilderCode(options: CreateAndShareBuilderCodeOptions): (tx: Transaction) =>
|
|
379
|
+
declare function createAndShareBuilderCode(options: CreateAndShareBuilderCodeOptions): (tx: Transaction) => _mysten_sui_transactions93.TransactionResult;
|
|
380
380
|
//#endregion
|
|
381
381
|
export { registry_d_exports };
|
|
382
382
|
//# sourceMappingURL=registry.d.mts.map
|