@mysten/deepbook-v3 2.6.2 → 2.6.4
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 +4 -0
- package/dist/contracts/deepbook/account.d.mts +18 -18
- package/dist/contracts/deepbook/balances.d.mts +4 -4
- package/dist/contracts/deepbook_predict/admin.d.mts +4 -4
- 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 +97 -97
- 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_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 +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 +53 -53
- 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/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 +105 -105
- package/dist/transactions/marginAdmin.d.mts +7 -7
- package/dist/transactions/marginAdmin.d.mts.map +1 -1
- package/dist/transactions/marginMaintainer.d.mts +5 -5
- package/dist/transactions/marginMaintainer.d.mts.map +1 -1
- package/dist/transactions/marginManager.d.mts +32 -32
- package/dist/transactions/marginManager.d.mts.map +1 -1
- package/dist/transactions/marginPool.d.mts +18 -18
- package/dist/transactions/marginPool.d.mts.map +1 -1
- package/dist/transactions/marginTPSL.d.mts +10 -10
- package/dist/transactions/poolProxy.d.mts +8 -8
- package/package.json +3 -3
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { MoveStruct } from "../utils/index.mjs";
|
|
2
|
-
import * as
|
|
3
|
-
import * as
|
|
2
|
+
import * as _mysten_sui_bcs161 from "@mysten/sui/bcs";
|
|
3
|
+
import * as _mysten_sui_transactions251 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
|
|
@@ -8,57 +8,57 @@ declare namespace pricing_d_exports {
|
|
|
8
8
|
export { FrozenPricer, HigherUpArguments, HigherUpOptions, LowerUpArguments, LowerUpOptions, Pricer, PricingSVI, ProbabilityArguments, ProbabilityOptions, RangePrice, RangePriceArguments, RangePriceOptions, RawSVI, UpPriceArguments, UpPriceOptions, higherUp, lowerUp, probability, rangePrice, upPrice };
|
|
9
9
|
}
|
|
10
10
|
declare const PricingSVI: MoveStruct<{
|
|
11
|
-
/** Rolled-down SVI `a`, magnitude at 1e18, sign in `a_is_negative`. */a_magnitude:
|
|
12
|
-
a_is_negative:
|
|
13
|
-
b:
|
|
11
|
+
/** Rolled-down SVI `a`, magnitude at 1e18, sign in `a_is_negative`. */a_magnitude: _mysten_sui_bcs161.BcsType<bigint, string | number | bigint, "u128">;
|
|
12
|
+
a_is_negative: _mysten_sui_bcs161.BcsType<boolean, boolean, "bool">; /** Rolled-down SVI `b`, at 1e18. */
|
|
13
|
+
b: _mysten_sui_bcs161.BcsType<bigint, string | number | bigint, "u128">;
|
|
14
14
|
rho: MoveStruct<{
|
|
15
|
-
magnitude:
|
|
16
|
-
is_negative:
|
|
15
|
+
magnitude: _mysten_sui_bcs161.BcsType<bigint, string | number | bigint, "u64">;
|
|
16
|
+
is_negative: _mysten_sui_bcs161.BcsType<boolean, boolean, "bool">;
|
|
17
17
|
}, "fixed_math::i64::I64">;
|
|
18
18
|
m: MoveStruct<{
|
|
19
|
-
magnitude:
|
|
20
|
-
is_negative:
|
|
19
|
+
magnitude: _mysten_sui_bcs161.BcsType<bigint, string | number | bigint, "u64">;
|
|
20
|
+
is_negative: _mysten_sui_bcs161.BcsType<boolean, boolean, "bool">;
|
|
21
21
|
}, "fixed_math::i64::I64">;
|
|
22
|
-
sigma:
|
|
22
|
+
sigma: _mysten_sui_bcs161.BcsType<bigint, string | number | bigint, "u64">;
|
|
23
23
|
}, "@local-pkg/deepbook_predict::pricing::PricingSVI">;
|
|
24
24
|
declare const FrozenPricer: MoveStruct<{
|
|
25
|
-
expiry_market_id:
|
|
26
|
-
forward:
|
|
25
|
+
expiry_market_id: _mysten_sui_bcs161.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
26
|
+
forward: _mysten_sui_bcs161.BcsType<bigint, string | number | bigint, "u64">;
|
|
27
27
|
svi: MoveStruct<{
|
|
28
|
-
/** Rolled-down SVI `a`, magnitude at 1e18, sign in `a_is_negative`. */a_magnitude:
|
|
29
|
-
a_is_negative:
|
|
30
|
-
b:
|
|
28
|
+
/** Rolled-down SVI `a`, magnitude at 1e18, sign in `a_is_negative`. */a_magnitude: _mysten_sui_bcs161.BcsType<bigint, string | number | bigint, "u128">;
|
|
29
|
+
a_is_negative: _mysten_sui_bcs161.BcsType<boolean, boolean, "bool">; /** Rolled-down SVI `b`, at 1e18. */
|
|
30
|
+
b: _mysten_sui_bcs161.BcsType<bigint, string | number | bigint, "u128">;
|
|
31
31
|
rho: MoveStruct<{
|
|
32
|
-
magnitude:
|
|
33
|
-
is_negative:
|
|
32
|
+
magnitude: _mysten_sui_bcs161.BcsType<bigint, string | number | bigint, "u64">;
|
|
33
|
+
is_negative: _mysten_sui_bcs161.BcsType<boolean, boolean, "bool">;
|
|
34
34
|
}, "fixed_math::i64::I64">;
|
|
35
35
|
m: MoveStruct<{
|
|
36
|
-
magnitude:
|
|
37
|
-
is_negative:
|
|
36
|
+
magnitude: _mysten_sui_bcs161.BcsType<bigint, string | number | bigint, "u64">;
|
|
37
|
+
is_negative: _mysten_sui_bcs161.BcsType<boolean, boolean, "bool">;
|
|
38
38
|
}, "fixed_math::i64::I64">;
|
|
39
|
-
sigma:
|
|
39
|
+
sigma: _mysten_sui_bcs161.BcsType<bigint, string | number | bigint, "u64">;
|
|
40
40
|
}, "@local-pkg/deepbook_predict::pricing::PricingSVI">;
|
|
41
|
-
pyth_spot_source_timestamp_ms:
|
|
42
|
-
block_scholes_spot_source_timestamp_ms:
|
|
43
|
-
block_scholes_forward_source_timestamp_ms:
|
|
44
|
-
block_scholes_svi_source_timestamp_ms:
|
|
41
|
+
pyth_spot_source_timestamp_ms: _mysten_sui_bcs161.BcsType<bigint, string | number | bigint, "u64">;
|
|
42
|
+
block_scholes_spot_source_timestamp_ms: _mysten_sui_bcs161.BcsType<bigint, string | number | bigint, "u64">;
|
|
43
|
+
block_scholes_forward_source_timestamp_ms: _mysten_sui_bcs161.BcsType<bigint, string | number | bigint, "u64">;
|
|
44
|
+
block_scholes_svi_source_timestamp_ms: _mysten_sui_bcs161.BcsType<bigint, string | number | bigint, "u64">;
|
|
45
45
|
}, "@local-pkg/deepbook_predict::pricing::FrozenPricer">;
|
|
46
46
|
declare const Pricer: MoveStruct<{
|
|
47
|
-
/** Expiry market this snapshot was loaded for. */expiry_market_id:
|
|
48
|
-
forward:
|
|
47
|
+
/** Expiry market this snapshot was loaded for. */expiry_market_id: _mysten_sui_bcs161.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
48
|
+
forward: _mysten_sui_bcs161.BcsType<bigint, string | number | bigint, "u64">;
|
|
49
49
|
svi: MoveStruct<{
|
|
50
|
-
/** Rolled-down SVI `a`, magnitude at 1e18, sign in `a_is_negative`. */a_magnitude:
|
|
51
|
-
a_is_negative:
|
|
52
|
-
b:
|
|
50
|
+
/** Rolled-down SVI `a`, magnitude at 1e18, sign in `a_is_negative`. */a_magnitude: _mysten_sui_bcs161.BcsType<bigint, string | number | bigint, "u128">;
|
|
51
|
+
a_is_negative: _mysten_sui_bcs161.BcsType<boolean, boolean, "bool">; /** Rolled-down SVI `b`, at 1e18. */
|
|
52
|
+
b: _mysten_sui_bcs161.BcsType<bigint, string | number | bigint, "u128">;
|
|
53
53
|
rho: MoveStruct<{
|
|
54
|
-
magnitude:
|
|
55
|
-
is_negative:
|
|
54
|
+
magnitude: _mysten_sui_bcs161.BcsType<bigint, string | number | bigint, "u64">;
|
|
55
|
+
is_negative: _mysten_sui_bcs161.BcsType<boolean, boolean, "bool">;
|
|
56
56
|
}, "fixed_math::i64::I64">;
|
|
57
57
|
m: MoveStruct<{
|
|
58
|
-
magnitude:
|
|
59
|
-
is_negative:
|
|
58
|
+
magnitude: _mysten_sui_bcs161.BcsType<bigint, string | number | bigint, "u64">;
|
|
59
|
+
is_negative: _mysten_sui_bcs161.BcsType<boolean, boolean, "bool">;
|
|
60
60
|
}, "fixed_math::i64::I64">;
|
|
61
|
-
sigma:
|
|
61
|
+
sigma: _mysten_sui_bcs161.BcsType<bigint, string | number | bigint, "u64">;
|
|
62
62
|
}, "@local-pkg/deepbook_predict::pricing::PricingSVI">;
|
|
63
63
|
/**
|
|
64
64
|
* Timestamps of the oracle observations this snapshot validated, as trade events
|
|
@@ -68,30 +68,30 @@ declare const Pricer: MoveStruct<{
|
|
|
68
68
|
* provider `svi_timestamp`. Those timestamps are the clocks freshness gates and
|
|
69
69
|
* SVI roll-down use.
|
|
70
70
|
*/
|
|
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_bcs161.BcsType<bigint, string | number | bigint, "u64">;
|
|
72
|
+
block_scholes_spot_source_timestamp_ms: _mysten_sui_bcs161.BcsType<bigint, string | number | bigint, "u64">;
|
|
73
|
+
block_scholes_forward_source_timestamp_ms: _mysten_sui_bcs161.BcsType<bigint, string | number | bigint, "u64">;
|
|
74
|
+
block_scholes_svi_source_timestamp_ms: _mysten_sui_bcs161.BcsType<bigint, string | number | bigint, "u64">;
|
|
75
75
|
}, "@local-pkg/deepbook_predict::pricing::Pricer">;
|
|
76
76
|
declare const RangePrice: MoveStruct<{
|
|
77
|
-
lower_up:
|
|
78
|
-
higher_up:
|
|
77
|
+
lower_up: _mysten_sui_bcs161.BcsType<bigint | null, string | number | bigint | null | undefined, "Option<u64>">;
|
|
78
|
+
higher_up: _mysten_sui_bcs161.BcsType<bigint | null, string | number | bigint | null | undefined, "Option<u64>">;
|
|
79
79
|
}, "@local-pkg/deepbook_predict::pricing::RangePrice">;
|
|
80
80
|
declare const RawSVI: MoveStruct<{
|
|
81
81
|
a: MoveStruct<{
|
|
82
|
-
magnitude:
|
|
83
|
-
is_negative:
|
|
82
|
+
magnitude: _mysten_sui_bcs161.BcsType<bigint, string | number | bigint, "u64">;
|
|
83
|
+
is_negative: _mysten_sui_bcs161.BcsType<boolean, boolean, "bool">;
|
|
84
84
|
}, "fixed_math::i64::I64">;
|
|
85
|
-
b:
|
|
85
|
+
b: _mysten_sui_bcs161.BcsType<bigint, string | number | bigint, "u64">;
|
|
86
86
|
rho: MoveStruct<{
|
|
87
|
-
magnitude:
|
|
88
|
-
is_negative:
|
|
87
|
+
magnitude: _mysten_sui_bcs161.BcsType<bigint, string | number | bigint, "u64">;
|
|
88
|
+
is_negative: _mysten_sui_bcs161.BcsType<boolean, boolean, "bool">;
|
|
89
89
|
}, "fixed_math::i64::I64">;
|
|
90
90
|
m: MoveStruct<{
|
|
91
|
-
magnitude:
|
|
92
|
-
is_negative:
|
|
91
|
+
magnitude: _mysten_sui_bcs161.BcsType<bigint, string | number | bigint, "u64">;
|
|
92
|
+
is_negative: _mysten_sui_bcs161.BcsType<boolean, boolean, "bool">;
|
|
93
93
|
}, "fixed_math::i64::I64">;
|
|
94
|
-
sigma:
|
|
94
|
+
sigma: _mysten_sui_bcs161.BcsType<bigint, string | number | bigint, "u64">;
|
|
95
95
|
}, "@local-pkg/deepbook_predict::pricing::RawSVI">;
|
|
96
96
|
interface UpPriceArguments {
|
|
97
97
|
pricer: TransactionArgument;
|
|
@@ -108,7 +108,7 @@ interface UpPriceOptions {
|
|
|
108
108
|
* Return the current UP digital probability for a typed strike. Public PTB and
|
|
109
109
|
* devInspect reads can compose it with a transaction-local `Pricer`.
|
|
110
110
|
*/
|
|
111
|
-
declare function upPrice(options: UpPriceOptions): (tx: Transaction) =>
|
|
111
|
+
declare function upPrice(options: UpPriceOptions): (tx: Transaction) => _mysten_sui_transactions251.TransactionResult;
|
|
112
112
|
interface RangePriceArguments {
|
|
113
113
|
pricer: TransactionArgument;
|
|
114
114
|
lower: TransactionArgument;
|
|
@@ -125,7 +125,7 @@ interface RangePriceOptions {
|
|
|
125
125
|
* Return both boundary probabilities for `(lower, higher]`. Use `probability()`
|
|
126
126
|
* for the combined range probability; absent boundaries are infinite sentinels.
|
|
127
127
|
*/
|
|
128
|
-
declare function rangePrice(options: RangePriceOptions): (tx: Transaction) =>
|
|
128
|
+
declare function rangePrice(options: RangePriceOptions): (tx: Transaction) => _mysten_sui_transactions251.TransactionResult;
|
|
129
129
|
interface LowerUpArguments {
|
|
130
130
|
price: TransactionArgument;
|
|
131
131
|
}
|
|
@@ -136,7 +136,7 @@ interface LowerUpOptions {
|
|
|
136
136
|
predictPackageId?: string;
|
|
137
137
|
};
|
|
138
138
|
}
|
|
139
|
-
declare function lowerUp(options: LowerUpOptions): (tx: Transaction) =>
|
|
139
|
+
declare function lowerUp(options: LowerUpOptions): (tx: Transaction) => _mysten_sui_transactions251.TransactionResult;
|
|
140
140
|
interface HigherUpArguments {
|
|
141
141
|
price: TransactionArgument;
|
|
142
142
|
}
|
|
@@ -147,7 +147,7 @@ interface HigherUpOptions {
|
|
|
147
147
|
predictPackageId?: string;
|
|
148
148
|
};
|
|
149
149
|
}
|
|
150
|
-
declare function higherUp(options: HigherUpOptions): (tx: Transaction) =>
|
|
150
|
+
declare function higherUp(options: HigherUpOptions): (tx: Transaction) => _mysten_sui_transactions251.TransactionResult;
|
|
151
151
|
interface ProbabilityArguments {
|
|
152
152
|
price: TransactionArgument;
|
|
153
153
|
}
|
|
@@ -162,7 +162,7 @@ interface ProbabilityOptions {
|
|
|
162
162
|
* Return the combined probability, floored at zero if approximated boundary prices
|
|
163
163
|
* invert.
|
|
164
164
|
*/
|
|
165
|
-
declare function probability(options: ProbabilityOptions): (tx: Transaction) =>
|
|
165
|
+
declare function probability(options: ProbabilityOptions): (tx: Transaction) => _mysten_sui_transactions251.TransactionResult;
|
|
166
166
|
//#endregion
|
|
167
167
|
export { pricing_d_exports };
|
|
168
168
|
//# sourceMappingURL=pricing.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pricing.d.mts","names":[],"sources":["../../../src/contracts/deepbook_predict/pricing.ts"],"mappings":";;;;;;;;;cAuBa,UAAA,EAAU,UAAA;sFAYrB,
|
|
1
|
+
{"version":3,"file":"pricing.d.mts","names":[],"sources":["../../../src/contracts/deepbook_predict/pricing.ts"],"mappings":";;;;;;;;;cAuBa,UAAA,EAAU,UAAA;sFAYrB,kBAAA,CAAA,OAAA;;;;;;;;;;;;;cACW,YAAA,EAAY,UAAA;;;;;;;;;;;;;;;;;;;;;;cAYZ,MAAA,EAAM,UAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAqBN,UAAA,EAAU,UAAA;YAMrB,kBAAA,CAAA,OAAA;;;cACW,MAAA,EAAM,UAAA;;eASjB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