@mysten/deepbook-v3 2.4.1 → 2.5.0
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 +23 -0
- package/dist/contracts/account/account.d.mts +23 -23
- package/dist/contracts/account/account.d.mts.map +1 -1
- package/dist/contracts/account/account_events.d.mts +20 -20
- package/dist/contracts/account/account_events.d.mts.map +1 -1
- package/dist/contracts/account/account_registry.d.mts +19 -19
- package/dist/contracts/account/account_registry.d.mts.map +1 -1
- package/dist/contracts/deepbook/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/builder_code.d.mts +11 -11
- package/dist/contracts/deepbook_predict/builder_code_events.d.mts +10 -10
- package/dist/contracts/deepbook_predict/config_events.d.mts +67 -67
- package/dist/contracts/deepbook_predict/expiry_market.d.mts +95 -95
- package/dist/contracts/deepbook_predict/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.mjs +1 -1
- 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/pricing.d.mts +92 -51
- package/dist/contracts/deepbook_predict/pricing.d.mts.map +1 -1
- package/dist/contracts/deepbook_predict/pricing.mjs +57 -7
- package/dist/contracts/deepbook_predict/pricing.mjs.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/strike_exposure.mjs +3 -2
- package/dist/contracts/deepbook_predict/strike_exposure.mjs.map +1 -1
- package/dist/contracts/deepbook_predict/vault_events.d.mts +105 -105
- package/dist/contracts/deepbook_sessions/session_config.d.mts +8 -8
- package/dist/contracts/deepbook_sessions/session_config.d.mts.map +1 -1
- package/dist/contracts/deepbook_sessions/sessions.d.mts +22 -22
- package/dist/contracts/deepbook_sessions/sessions.d.mts.map +1 -1
- package/dist/deployments/mainnet.mjs +21 -21
- package/dist/deployments/mainnet.mjs.map +1 -1
- package/dist/deployments/testnet.mjs +21 -21
- package/dist/deployments/testnet.mjs.map +1 -1
- package/dist/predict/index.mjs +1 -1
- package/dist/predict/reads/markets.mjs +11 -3
- package/dist/predict/reads/markets.mjs.map +1 -1
- package/dist/predict/reads/pricing.mjs +1 -1
- package/dist/transactions/balanceManager.d.mts +12 -12
- package/dist/transactions/balanceManager.d.mts.map +1 -1
- package/dist/transactions/deepbook.d.mts +20 -20
- package/dist/transactions/deepbookAdmin.d.mts +4 -4
- package/dist/transactions/marginAdmin.d.mts +7 -7
- package/dist/transactions/marginLiquidations.d.mts +3 -3
- 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/marginPool.d.mts.map +1 -1
- package/dist/transactions/marginRegistry.d.mts +16 -16
- package/dist/transactions/marginTPSL.d.mts +10 -10
- package/dist/transactions/marginTPSL.d.mts.map +1 -1
- package/dist/transactions/poolProxy.d.mts +8 -8
- package/dist/transactions/poolProxy.d.mts.map +1 -1
- package/package.json +2 -2
- package/src/contracts/deepbook_predict/pricing.ts +88 -6
- package/src/contracts/deepbook_predict/strike_exposure.ts +3 -2
- package/src/contracts/propbook/block_scholes_store.ts +34 -0
- package/src/contracts/propbook/pyth_feed.ts +3 -1
- package/src/deployments/mainnet.ts +22 -22
- package/src/deployments/testnet.ts +22 -22
- package/src/predict/reads/markets.ts +16 -3
|
@@ -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_bcs194 from "@mysten/sui/bcs";
|
|
3
|
+
import * as _mysten_sui_transactions202 from "@mysten/sui/transactions";
|
|
4
4
|
import { Transaction } from "@mysten/sui/transactions";
|
|
5
5
|
|
|
6
6
|
//#region src/contracts/deepbook_predict/protocol_config.d.ts
|
|
@@ -8,50 +8,50 @@ declare namespace protocol_config_d_exports {
|
|
|
8
8
|
export { BumpVersionWatermarkArguments, BumpVersionWatermarkOptions, FrozenArguments, FrozenOptions, IdArguments, IdOptions, NoTradeWindowMsArguments, NoTradeWindowMsOptions, ProtocolConfig, ReferralFeeRateArguments, ReferralFeeRateOptions, SetBlockScholesPriceFreshnessMsArguments, SetBlockScholesPriceFreshnessMsOptions, SetBlockScholesSviFreshnessMsArguments, SetBlockScholesSviFreshnessMsOptions, SetEwmaEnabledArguments, SetEwmaEnabledOptions, SetEwmaParamsArguments, SetEwmaParamsOptions, SetFrozenArguments, SetFrozenOptions, SetLpRequestLimitFlushAttemptsArguments, SetLpRequestLimitFlushAttemptsOptions, SetMaxLpPoolValueArguments, SetMaxLpPoolValueOptions, SetMaxValuationWindowMsArguments, SetMaxValuationWindowMsOptions, SetNoTradeWindowMsArguments, SetNoTradeWindowMsOptions, SetPlpSupplyFeeRateArguments, SetPlpSupplyFeeRateOptions, SetPlpWithdrawFeeRateArguments, SetPlpWithdrawFeeRateOptions, SetProtocolReserveProfitShareArguments, SetProtocolReserveProfitShareOptions, SetPythSpotFreshnessMsArguments, SetPythSpotFreshnessMsOptions, SetReferralFeeRateArguments, SetReferralFeeRateOptions, SetTemplateBackingBufferLambdaArguments, SetTemplateBackingBufferLambdaOptions, SetTemplateBaseFeeArguments, SetTemplateBaseFeeOptions, SetTemplateExpiryFeeMaxMultiplierArguments, SetTemplateExpiryFeeMaxMultiplierOptions, SetTemplateExpiryFeeWindowMsArguments, SetTemplateExpiryFeeWindowMsOptions, SetTemplateInventoryImpactMaxRateArguments, SetTemplateInventoryImpactMaxRateOptions, SetTemplateMaxEntryProbabilityArguments, SetTemplateMaxEntryProbabilityOptions, SetTemplateMinEntryProbabilityArguments, SetTemplateMinEntryProbabilityOptions, SetTemplateMinFeeArguments, SetTemplateMinFeeOptions, SetTradingPausedArguments, SetTradingPausedOptions, SetUsePythSpotForForwardArguments, SetUsePythSpotForForwardOptions, TradingPausedArguments, TradingPausedOptions, ValuationInProgressArguments, ValuationInProgressOptions, bumpVersionWatermark, frozen, id, noTradeWindowMs, referralFeeRate, setBlockScholesPriceFreshnessMs, setBlockScholesSviFreshnessMs, setEwmaEnabled, setEwmaParams, setFrozen, setLpRequestLimitFlushAttempts, setMaxLpPoolValue, setMaxValuationWindowMs, setNoTradeWindowMs, setPlpSupplyFeeRate, setPlpWithdrawFeeRate, setProtocolReserveProfitShare, setPythSpotFreshnessMs, setReferralFeeRate, setTemplateBackingBufferLambda, setTemplateBaseFee, setTemplateExpiryFeeMaxMultiplier, setTemplateExpiryFeeWindowMs, setTemplateInventoryImpactMaxRate, setTemplateMaxEntryProbability, setTemplateMinEntryProbability, setTemplateMinFee, setTradingPaused, setUsePythSpotForForward, tradingPaused, valuationInProgress };
|
|
9
9
|
}
|
|
10
10
|
declare const ProtocolConfig: MoveStruct<{
|
|
11
|
-
id:
|
|
11
|
+
id: _mysten_sui_bcs194.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
12
12
|
pricing_config: MoveStruct<{
|
|
13
|
-
use_pyth_spot_for_forward:
|
|
14
|
-
pyth_spot_freshness_ms:
|
|
15
|
-
block_scholes_price_freshness_ms:
|
|
16
|
-
block_scholes_svi_freshness_ms:
|
|
13
|
+
use_pyth_spot_for_forward: _mysten_sui_bcs194.BcsType<boolean, boolean, "bool">;
|
|
14
|
+
pyth_spot_freshness_ms: _mysten_sui_bcs194.BcsType<bigint, string | number | bigint, "u64">;
|
|
15
|
+
block_scholes_price_freshness_ms: _mysten_sui_bcs194.BcsType<bigint, string | number | bigint, "u64">;
|
|
16
|
+
block_scholes_svi_freshness_ms: _mysten_sui_bcs194.BcsType<bigint, string | number | bigint, "u64">;
|
|
17
17
|
}, "@local-pkg/deepbook_predict::pricing_config::PricingConfig">;
|
|
18
18
|
/**
|
|
19
19
|
* Merged protocol + insurance reserve share of materialized terminal profit, in
|
|
20
20
|
* FLOAT_SCALING. The complement accrues to LPs.
|
|
21
21
|
*/
|
|
22
|
-
protocol_reserve_profit_share:
|
|
22
|
+
protocol_reserve_profit_share: _mysten_sui_bcs194.BcsType<bigint, string | number | bigint, "u64">;
|
|
23
23
|
/**
|
|
24
24
|
* Portion of a referred mint's trader-paid trading fee and congestion surcharge
|
|
25
25
|
* routed to the referrer, in FLOAT_SCALING.
|
|
26
26
|
*/
|
|
27
|
-
referral_fee_rate:
|
|
27
|
+
referral_fee_rate: _mysten_sui_bcs194.BcsType<bigint, string | number | bigint, "u64">;
|
|
28
28
|
/**
|
|
29
29
|
* Fee charged on an executed PLP supply fill, in FLOAT_SCALING, deducted from the
|
|
30
30
|
* USDC taken in before shares are priced. Ships at zero — a deposit dilutes the
|
|
31
31
|
* pool's risk per dollar rather than concentrating it, so it is not taxed; the
|
|
32
32
|
* knob exists to keep that reversible.
|
|
33
33
|
*/
|
|
34
|
-
plp_supply_fee_rate:
|
|
34
|
+
plp_supply_fee_rate: _mysten_sui_bcs194.BcsType<bigint, string | number | bigint, "u64">;
|
|
35
35
|
/**
|
|
36
36
|
* Fee charged on an executed PLP withdraw fill, in FLOAT_SCALING, withheld from
|
|
37
37
|
* the marked payout. Retained by the pool, so it accrues to the holders who stay.
|
|
38
38
|
* Both rates are read once per flush into the frozen mark, so every fill in one
|
|
39
39
|
* flush is charged the same pair.
|
|
40
40
|
*/
|
|
41
|
-
plp_withdraw_fee_rate:
|
|
41
|
+
plp_withdraw_fee_rate: _mysten_sui_bcs194.BcsType<bigint, string | number | bigint, "u64">;
|
|
42
42
|
/**
|
|
43
43
|
* Frozen-mark attempts a queued LP supply/withdraw request gets before the
|
|
44
44
|
* protocol cancels and refunds it. `1` (the default) is fill-or-kill; above that a
|
|
45
45
|
* missing request rests at the queue head and stops that queue for the flush, so
|
|
46
46
|
* this is an LP-queue liveness knob (RP-12).
|
|
47
47
|
*/
|
|
48
|
-
lp_request_limit_flush_attempts:
|
|
48
|
+
lp_request_limit_flush_attempts: _mysten_sui_bcs194.BcsType<bigint, string | number | bigint, "u64">;
|
|
49
49
|
/**
|
|
50
50
|
* Ceiling on LP-attributable pool value that queued supplies may raise the pool
|
|
51
51
|
* to, enforced at the flush against the frozen mark. Defaults to 500,000 USDC
|
|
52
52
|
* (RP-23).
|
|
53
53
|
*/
|
|
54
|
-
max_lp_pool_value:
|
|
54
|
+
max_lp_pool_value: _mysten_sui_bcs194.BcsType<bigint, string | number | bigint, "u64">;
|
|
55
55
|
/**
|
|
56
56
|
* Hard staleness bound: `finish_flush` refuses to complete a flush in flight
|
|
57
57
|
* longer than this, so no LP request fills at a mark older than the window; past
|
|
@@ -60,28 +60,28 @@ declare const ProtocolConfig: MoveStruct<{
|
|
|
60
60
|
* continues — so this also bounds LP-fill latency and is tuned alongside flush
|
|
61
61
|
* cadence (RP-29).
|
|
62
62
|
*/
|
|
63
|
-
max_valuation_window_ms:
|
|
63
|
+
max_valuation_window_ms: _mysten_sui_bcs194.BcsType<bigint, string | number | bigint, "u64">;
|
|
64
64
|
/**
|
|
65
65
|
* Window before a market's expiry in which live quotes, mints, and live redeems
|
|
66
66
|
* abort. Read live at trade time rather than snapshotted per market, so it can be
|
|
67
67
|
* widened on markets already trading. `0` disables.
|
|
68
68
|
*/
|
|
69
|
-
no_trade_window_ms:
|
|
69
|
+
no_trade_window_ms: _mysten_sui_bcs194.BcsType<bigint, string | number | bigint, "u64">;
|
|
70
70
|
strike_exposure_template_config: MoveStruct<{
|
|
71
|
-
backing_buffer_lambda:
|
|
72
|
-
base_fee:
|
|
73
|
-
min_fee:
|
|
74
|
-
min_entry_probability:
|
|
75
|
-
max_entry_probability:
|
|
76
|
-
expiry_fee_window_ms:
|
|
77
|
-
expiry_fee_max_multiplier:
|
|
78
|
-
inventory_impact_max_rate:
|
|
71
|
+
backing_buffer_lambda: _mysten_sui_bcs194.BcsType<bigint, string | number | bigint, "u64">;
|
|
72
|
+
base_fee: _mysten_sui_bcs194.BcsType<bigint, string | number | bigint, "u64">;
|
|
73
|
+
min_fee: _mysten_sui_bcs194.BcsType<bigint, string | number | bigint, "u64">;
|
|
74
|
+
min_entry_probability: _mysten_sui_bcs194.BcsType<bigint, string | number | bigint, "u64">;
|
|
75
|
+
max_entry_probability: _mysten_sui_bcs194.BcsType<bigint, string | number | bigint, "u64">;
|
|
76
|
+
expiry_fee_window_ms: _mysten_sui_bcs194.BcsType<bigint, string | number | bigint, "u64">;
|
|
77
|
+
expiry_fee_max_multiplier: _mysten_sui_bcs194.BcsType<bigint, string | number | bigint, "u64">;
|
|
78
|
+
inventory_impact_max_rate: _mysten_sui_bcs194.BcsType<bigint, string | number | bigint, "u64">;
|
|
79
79
|
}, "@local-pkg/deepbook_predict::strike_exposure_config::StrikeExposureConfig">;
|
|
80
80
|
ewma_config: MoveStruct<{
|
|
81
|
-
alpha:
|
|
82
|
-
z_score_threshold:
|
|
83
|
-
penalty_rate:
|
|
84
|
-
enabled:
|
|
81
|
+
alpha: _mysten_sui_bcs194.BcsType<bigint, string | number | bigint, "u64">;
|
|
82
|
+
z_score_threshold: _mysten_sui_bcs194.BcsType<bigint, string | number | bigint, "u64">;
|
|
83
|
+
penalty_rate: _mysten_sui_bcs194.BcsType<bigint, string | number | bigint, "u64">;
|
|
84
|
+
enabled: _mysten_sui_bcs194.BcsType<boolean, boolean, "bool">;
|
|
85
85
|
}, "@local-pkg/deepbook_predict::ewma_config::EwmaConfig">;
|
|
86
86
|
/**
|
|
87
87
|
* Minimum package version permitted to run version-gated flows. Monotonic;
|
|
@@ -90,8 +90,8 @@ declare const ProtocolConfig: MoveStruct<{
|
|
|
90
90
|
* (`assert_version`). `current_version!()` stays the upgrade-required code
|
|
91
91
|
* constant; this is the runtime floor.
|
|
92
92
|
*/
|
|
93
|
-
version_watermark:
|
|
94
|
-
trading_paused:
|
|
93
|
+
version_watermark: _mysten_sui_bcs194.BcsType<bigint, string | number | bigint, "u64">; /** Blocks new risk creation while true. */
|
|
94
|
+
trading_paused: _mysten_sui_bcs194.BcsType<boolean, boolean, "bool">;
|
|
95
95
|
/**
|
|
96
96
|
* Emergency hard stop. While true, `assert_version` aborts, halting every
|
|
97
97
|
* version-gated flow (mint, redeem, settlement, valuation, LP supply/withdraw,
|
|
@@ -100,7 +100,7 @@ declare const ProtocolConfig: MoveStruct<{
|
|
|
100
100
|
* Account-package custody withdrawals and builder-fee claims are ungated and stay
|
|
101
101
|
* available (already-earned funds).
|
|
102
102
|
*/
|
|
103
|
-
frozen:
|
|
103
|
+
frozen: _mysten_sui_bcs194.BcsType<boolean, boolean, "bool">;
|
|
104
104
|
/**
|
|
105
105
|
* True for the whole duration of a full-pool valuation, across every transaction
|
|
106
106
|
* it spans. Keeper cash flows, market lifecycle, and config mutations gate on it;
|
|
@@ -108,7 +108,7 @@ declare const ProtocolConfig: MoveStruct<{
|
|
|
108
108
|
* valuation stamp lazily; a pending market's snapshot state is captured, never
|
|
109
109
|
* recorded per trade (see `plp`).
|
|
110
110
|
*/
|
|
111
|
-
valuation_in_progress:
|
|
111
|
+
valuation_in_progress: _mysten_sui_bcs194.BcsType<boolean, boolean, "bool">;
|
|
112
112
|
/**
|
|
113
113
|
* True ONLY while the atomic snapshot stage is open — set by `begin_snapshot` at
|
|
114
114
|
* `start_pool_valuation` and cleared by `end_snapshot` at
|
|
@@ -118,14 +118,14 @@ declare const ProtocolConfig: MoveStruct<{
|
|
|
118
118
|
* would skew the figures the seal freezes. The resumable valuation stage after the
|
|
119
119
|
* seal leaves it false, so trading stays live.
|
|
120
120
|
*/
|
|
121
|
-
snapshot_in_progress:
|
|
121
|
+
snapshot_in_progress: _mysten_sui_bcs194.BcsType<boolean, boolean, "bool">;
|
|
122
122
|
/**
|
|
123
123
|
* Monotonic flush ordinal, bumped by `begin_valuation`. A market's valuation stamp
|
|
124
124
|
* names the flush that made it; a stamp whose ordinal is not the current one — or
|
|
125
125
|
* held while no valuation is in flight — is stale and is lazily discarded by the
|
|
126
126
|
* next trade, so aborting a flush never has to visit its stamped markets.
|
|
127
127
|
*/
|
|
128
|
-
flush_seq:
|
|
128
|
+
flush_seq: _mysten_sui_bcs194.BcsType<bigint, string | number | bigint, "u64">;
|
|
129
129
|
}, "@local-pkg/deepbook_predict::protocol_config::ProtocolConfig">;
|
|
130
130
|
interface IdArguments {
|
|
131
131
|
config?: RawTransactionArgument<string>;
|
|
@@ -142,7 +142,7 @@ interface IdOptions {
|
|
|
142
142
|
* Return the protocol config object ID for external discovery and PTB
|
|
143
143
|
* construction.
|
|
144
144
|
*/
|
|
145
|
-
declare function id(options: IdOptions): (tx: Transaction) =>
|
|
145
|
+
declare function id(options: IdOptions): (tx: Transaction) => _mysten_sui_transactions202.TransactionResult;
|
|
146
146
|
interface TradingPausedArguments {
|
|
147
147
|
config?: RawTransactionArgument<string>;
|
|
148
148
|
}
|
|
@@ -155,7 +155,7 @@ interface TradingPausedOptions {
|
|
|
155
155
|
};
|
|
156
156
|
}
|
|
157
157
|
/** Return the global trading-pause state for SDK and devInspect reads. */
|
|
158
|
-
declare function tradingPaused(options: TradingPausedOptions): (tx: Transaction) =>
|
|
158
|
+
declare function tradingPaused(options: TradingPausedOptions): (tx: Transaction) => _mysten_sui_transactions202.TransactionResult;
|
|
159
159
|
interface FrozenArguments {
|
|
160
160
|
config?: RawTransactionArgument<string>;
|
|
161
161
|
}
|
|
@@ -168,7 +168,7 @@ interface FrozenOptions {
|
|
|
168
168
|
};
|
|
169
169
|
}
|
|
170
170
|
/** Return the global protocol-freeze state for SDK and devInspect reads. */
|
|
171
|
-
declare function frozen(options: FrozenOptions): (tx: Transaction) =>
|
|
171
|
+
declare function frozen(options: FrozenOptions): (tx: Transaction) => _mysten_sui_transactions202.TransactionResult;
|
|
172
172
|
interface ValuationInProgressArguments {
|
|
173
173
|
config?: RawTransactionArgument<string>;
|
|
174
174
|
}
|
|
@@ -186,7 +186,7 @@ interface ValuationInProgressOptions {
|
|
|
186
186
|
* reads it to notice a flush it must finish or discard, and an integrator reads it
|
|
187
187
|
* to explain a gated keeper/config transaction. Trading is not gated on it.
|
|
188
188
|
*/
|
|
189
|
-
declare function valuationInProgress(options: ValuationInProgressOptions): (tx: Transaction) =>
|
|
189
|
+
declare function valuationInProgress(options: ValuationInProgressOptions): (tx: Transaction) => _mysten_sui_transactions202.TransactionResult;
|
|
190
190
|
interface ReferralFeeRateArguments {
|
|
191
191
|
config?: RawTransactionArgument<string>;
|
|
192
192
|
}
|
|
@@ -199,7 +199,7 @@ interface ReferralFeeRateOptions {
|
|
|
199
199
|
};
|
|
200
200
|
}
|
|
201
201
|
/** Return the live referral fee rate for SDK and devInspect reads. */
|
|
202
|
-
declare function referralFeeRate(options: ReferralFeeRateOptions): (tx: Transaction) =>
|
|
202
|
+
declare function referralFeeRate(options: ReferralFeeRateOptions): (tx: Transaction) => _mysten_sui_transactions202.TransactionResult;
|
|
203
203
|
interface NoTradeWindowMsArguments {
|
|
204
204
|
config?: RawTransactionArgument<string>;
|
|
205
205
|
}
|
|
@@ -217,7 +217,7 @@ interface NoTradeWindowMsOptions {
|
|
|
217
217
|
* only learn the window closed by decoding `ETradeWindowClosed` from a failed
|
|
218
218
|
* quote.
|
|
219
219
|
*/
|
|
220
|
-
declare function noTradeWindowMs(options: NoTradeWindowMsOptions): (tx: Transaction) =>
|
|
220
|
+
declare function noTradeWindowMs(options: NoTradeWindowMsOptions): (tx: Transaction) => _mysten_sui_transactions202.TransactionResult;
|
|
221
221
|
interface SetTemplateBaseFeeArguments {
|
|
222
222
|
config?: RawTransactionArgument<string>;
|
|
223
223
|
AdminCap: RawTransactionArgument<string>;
|
|
@@ -232,7 +232,7 @@ interface SetTemplateBaseFeeOptions {
|
|
|
232
232
|
};
|
|
233
233
|
}
|
|
234
234
|
/** Set the base fee multiplier snapshotted by newly created expiry markets. */
|
|
235
|
-
declare function setTemplateBaseFee(options: SetTemplateBaseFeeOptions): (tx: Transaction) =>
|
|
235
|
+
declare function setTemplateBaseFee(options: SetTemplateBaseFeeOptions): (tx: Transaction) => _mysten_sui_transactions202.TransactionResult;
|
|
236
236
|
interface SetTemplateMinFeeArguments {
|
|
237
237
|
config?: RawTransactionArgument<string>;
|
|
238
238
|
AdminCap: RawTransactionArgument<string>;
|
|
@@ -247,7 +247,7 @@ interface SetTemplateMinFeeOptions {
|
|
|
247
247
|
};
|
|
248
248
|
}
|
|
249
249
|
/** Set the minimum fee floor snapshotted by newly created expiry markets. */
|
|
250
|
-
declare function setTemplateMinFee(options: SetTemplateMinFeeOptions): (tx: Transaction) =>
|
|
250
|
+
declare function setTemplateMinFee(options: SetTemplateMinFeeOptions): (tx: Transaction) => _mysten_sui_transactions202.TransactionResult;
|
|
251
251
|
interface SetTemplateExpiryFeeWindowMsArguments {
|
|
252
252
|
config?: RawTransactionArgument<string>;
|
|
253
253
|
AdminCap: RawTransactionArgument<string>;
|
|
@@ -262,7 +262,7 @@ interface SetTemplateExpiryFeeWindowMsOptions {
|
|
|
262
262
|
};
|
|
263
263
|
}
|
|
264
264
|
/** Set the expiry-fee ramp window snapshotted by newly created expiry markets. */
|
|
265
|
-
declare function setTemplateExpiryFeeWindowMs(options: SetTemplateExpiryFeeWindowMsOptions): (tx: Transaction) =>
|
|
265
|
+
declare function setTemplateExpiryFeeWindowMs(options: SetTemplateExpiryFeeWindowMsOptions): (tx: Transaction) => _mysten_sui_transactions202.TransactionResult;
|
|
266
266
|
interface SetTemplateExpiryFeeMaxMultiplierArguments {
|
|
267
267
|
config?: RawTransactionArgument<string>;
|
|
268
268
|
AdminCap: RawTransactionArgument<string>;
|
|
@@ -277,7 +277,7 @@ interface SetTemplateExpiryFeeMaxMultiplierOptions {
|
|
|
277
277
|
};
|
|
278
278
|
}
|
|
279
279
|
/** Set the expiry-fee max multiplier snapshotted by newly created expiry markets. */
|
|
280
|
-
declare function setTemplateExpiryFeeMaxMultiplier(options: SetTemplateExpiryFeeMaxMultiplierOptions): (tx: Transaction) =>
|
|
280
|
+
declare function setTemplateExpiryFeeMaxMultiplier(options: SetTemplateExpiryFeeMaxMultiplierOptions): (tx: Transaction) => _mysten_sui_transactions202.TransactionResult;
|
|
281
281
|
interface SetTemplateBackingBufferLambdaArguments {
|
|
282
282
|
config?: RawTransactionArgument<string>;
|
|
283
283
|
AdminCap: RawTransactionArgument<string>;
|
|
@@ -292,7 +292,7 @@ interface SetTemplateBackingBufferLambdaOptions {
|
|
|
292
292
|
};
|
|
293
293
|
}
|
|
294
294
|
/** Set the backing-buffer lambda snapshotted by newly created expiry markets. */
|
|
295
|
-
declare function setTemplateBackingBufferLambda(options: SetTemplateBackingBufferLambdaOptions): (tx: Transaction) =>
|
|
295
|
+
declare function setTemplateBackingBufferLambda(options: SetTemplateBackingBufferLambdaOptions): (tx: Transaction) => _mysten_sui_transactions202.TransactionResult;
|
|
296
296
|
interface SetTemplateInventoryImpactMaxRateArguments {
|
|
297
297
|
config?: RawTransactionArgument<string>;
|
|
298
298
|
AdminCap: RawTransactionArgument<string>;
|
|
@@ -310,7 +310,7 @@ interface SetTemplateInventoryImpactMaxRateOptions {
|
|
|
310
310
|
* Set the maximum marginal inventory-impact rate snapshotted by newly created
|
|
311
311
|
* expiry markets. `0` (the default) disables both charges and rebates.
|
|
312
312
|
*/
|
|
313
|
-
declare function setTemplateInventoryImpactMaxRate(options: SetTemplateInventoryImpactMaxRateOptions): (tx: Transaction) =>
|
|
313
|
+
declare function setTemplateInventoryImpactMaxRate(options: SetTemplateInventoryImpactMaxRateOptions): (tx: Transaction) => _mysten_sui_transactions202.TransactionResult;
|
|
314
314
|
interface SetTemplateMinEntryProbabilityArguments {
|
|
315
315
|
config?: RawTransactionArgument<string>;
|
|
316
316
|
AdminCap: RawTransactionArgument<string>;
|
|
@@ -328,7 +328,7 @@ interface SetTemplateMinEntryProbabilityOptions {
|
|
|
328
328
|
* Set the minimum raw entry probability snapshotted by newly created expiry
|
|
329
329
|
* markets.
|
|
330
330
|
*/
|
|
331
|
-
declare function setTemplateMinEntryProbability(options: SetTemplateMinEntryProbabilityOptions): (tx: Transaction) =>
|
|
331
|
+
declare function setTemplateMinEntryProbability(options: SetTemplateMinEntryProbabilityOptions): (tx: Transaction) => _mysten_sui_transactions202.TransactionResult;
|
|
332
332
|
interface SetTemplateMaxEntryProbabilityArguments {
|
|
333
333
|
config?: RawTransactionArgument<string>;
|
|
334
334
|
AdminCap: RawTransactionArgument<string>;
|
|
@@ -346,7 +346,7 @@ interface SetTemplateMaxEntryProbabilityOptions {
|
|
|
346
346
|
* Set the maximum raw entry probability snapshotted by newly created expiry
|
|
347
347
|
* markets.
|
|
348
348
|
*/
|
|
349
|
-
declare function setTemplateMaxEntryProbability(options: SetTemplateMaxEntryProbabilityOptions): (tx: Transaction) =>
|
|
349
|
+
declare function setTemplateMaxEntryProbability(options: SetTemplateMaxEntryProbabilityOptions): (tx: Transaction) => _mysten_sui_transactions202.TransactionResult;
|
|
350
350
|
interface SetUsePythSpotForForwardArguments {
|
|
351
351
|
config?: RawTransactionArgument<string>;
|
|
352
352
|
AdminCap: RawTransactionArgument<string>;
|
|
@@ -366,7 +366,7 @@ interface SetUsePythSpotForForwardOptions {
|
|
|
366
366
|
* directly. Locked during valuation so one flush marks every market on one
|
|
367
367
|
* formula.
|
|
368
368
|
*/
|
|
369
|
-
declare function setUsePythSpotForForward(options: SetUsePythSpotForForwardOptions): (tx: Transaction) =>
|
|
369
|
+
declare function setUsePythSpotForForward(options: SetUsePythSpotForForwardOptions): (tx: Transaction) => _mysten_sui_transactions202.TransactionResult;
|
|
370
370
|
interface SetPythSpotFreshnessMsArguments {
|
|
371
371
|
config?: RawTransactionArgument<string>;
|
|
372
372
|
AdminCap: RawTransactionArgument<string>;
|
|
@@ -381,7 +381,7 @@ interface SetPythSpotFreshnessMsOptions {
|
|
|
381
381
|
};
|
|
382
382
|
}
|
|
383
383
|
/** Set the live Pyth spot freshness threshold. */
|
|
384
|
-
declare function setPythSpotFreshnessMs(options: SetPythSpotFreshnessMsOptions): (tx: Transaction) =>
|
|
384
|
+
declare function setPythSpotFreshnessMs(options: SetPythSpotFreshnessMsOptions): (tx: Transaction) => _mysten_sui_transactions202.TransactionResult;
|
|
385
385
|
interface SetBlockScholesPriceFreshnessMsArguments {
|
|
386
386
|
config?: RawTransactionArgument<string>;
|
|
387
387
|
AdminCap: RawTransactionArgument<string>;
|
|
@@ -396,7 +396,7 @@ interface SetBlockScholesPriceFreshnessMsOptions {
|
|
|
396
396
|
};
|
|
397
397
|
}
|
|
398
398
|
/** Set the live Block Scholes spot/forward freshness threshold. */
|
|
399
|
-
declare function setBlockScholesPriceFreshnessMs(options: SetBlockScholesPriceFreshnessMsOptions): (tx: Transaction) =>
|
|
399
|
+
declare function setBlockScholesPriceFreshnessMs(options: SetBlockScholesPriceFreshnessMsOptions): (tx: Transaction) => _mysten_sui_transactions202.TransactionResult;
|
|
400
400
|
interface SetBlockScholesSviFreshnessMsArguments {
|
|
401
401
|
config?: RawTransactionArgument<string>;
|
|
402
402
|
AdminCap: RawTransactionArgument<string>;
|
|
@@ -411,7 +411,7 @@ interface SetBlockScholesSviFreshnessMsOptions {
|
|
|
411
411
|
};
|
|
412
412
|
}
|
|
413
413
|
/** Set the live Block Scholes SVI freshness threshold. */
|
|
414
|
-
declare function setBlockScholesSviFreshnessMs(options: SetBlockScholesSviFreshnessMsOptions): (tx: Transaction) =>
|
|
414
|
+
declare function setBlockScholesSviFreshnessMs(options: SetBlockScholesSviFreshnessMsOptions): (tx: Transaction) => _mysten_sui_transactions202.TransactionResult;
|
|
415
415
|
interface SetLpRequestLimitFlushAttemptsArguments {
|
|
416
416
|
config?: RawTransactionArgument<string>;
|
|
417
417
|
AdminCap: RawTransactionArgument<string>;
|
|
@@ -431,7 +431,7 @@ interface SetLpRequestLimitFlushAttemptsOptions {
|
|
|
431
431
|
* the head across flushes, which stops that queue each time it misses — see RP-12
|
|
432
432
|
* for the liveness cost that buys.
|
|
433
433
|
*/
|
|
434
|
-
declare function setLpRequestLimitFlushAttempts(options: SetLpRequestLimitFlushAttemptsOptions): (tx: Transaction) =>
|
|
434
|
+
declare function setLpRequestLimitFlushAttempts(options: SetLpRequestLimitFlushAttemptsOptions): (tx: Transaction) => _mysten_sui_transactions202.TransactionResult;
|
|
435
435
|
interface SetMaxValuationWindowMsArguments {
|
|
436
436
|
config?: RawTransactionArgument<string>;
|
|
437
437
|
AdminCap: RawTransactionArgument<string>;
|
|
@@ -453,7 +453,7 @@ interface SetMaxValuationWindowMsOptions {
|
|
|
453
453
|
* too long and an abandoned one delays queued LP fills for that duration. See
|
|
454
454
|
* RP-29.
|
|
455
455
|
*/
|
|
456
|
-
declare function setMaxValuationWindowMs(options: SetMaxValuationWindowMsOptions): (tx: Transaction) =>
|
|
456
|
+
declare function setMaxValuationWindowMs(options: SetMaxValuationWindowMsOptions): (tx: Transaction) => _mysten_sui_transactions202.TransactionResult;
|
|
457
457
|
interface SetMaxLpPoolValueArguments {
|
|
458
458
|
config?: RawTransactionArgument<string>;
|
|
459
459
|
AdminCap: RawTransactionArgument<string>;
|
|
@@ -474,7 +474,7 @@ interface SetMaxLpPoolValueOptions {
|
|
|
474
474
|
* unaffected, so lowering this below current pool value closes the pool to new
|
|
475
475
|
* capital rather than forcing anyone out.
|
|
476
476
|
*/
|
|
477
|
-
declare function setMaxLpPoolValue(options: SetMaxLpPoolValueOptions): (tx: Transaction) =>
|
|
477
|
+
declare function setMaxLpPoolValue(options: SetMaxLpPoolValueOptions): (tx: Transaction) => _mysten_sui_transactions202.TransactionResult;
|
|
478
478
|
interface SetEwmaParamsArguments {
|
|
479
479
|
config?: RawTransactionArgument<string>;
|
|
480
480
|
AdminCap: RawTransactionArgument<string>;
|
|
@@ -491,7 +491,7 @@ interface SetEwmaParamsOptions {
|
|
|
491
491
|
};
|
|
492
492
|
}
|
|
493
493
|
/** Set the EWMA gas-price penalty parameters. */
|
|
494
|
-
declare function setEwmaParams(options: SetEwmaParamsOptions): (tx: Transaction) =>
|
|
494
|
+
declare function setEwmaParams(options: SetEwmaParamsOptions): (tx: Transaction) => _mysten_sui_transactions202.TransactionResult;
|
|
495
495
|
interface SetEwmaEnabledArguments {
|
|
496
496
|
config?: RawTransactionArgument<string>;
|
|
497
497
|
AdminCap: RawTransactionArgument<string>;
|
|
@@ -506,7 +506,7 @@ interface SetEwmaEnabledOptions {
|
|
|
506
506
|
};
|
|
507
507
|
}
|
|
508
508
|
/** Enable or disable the EWMA gas-price penalty. */
|
|
509
|
-
declare function setEwmaEnabled(options: SetEwmaEnabledOptions): (tx: Transaction) =>
|
|
509
|
+
declare function setEwmaEnabled(options: SetEwmaEnabledOptions): (tx: Transaction) => _mysten_sui_transactions202.TransactionResult;
|
|
510
510
|
interface SetNoTradeWindowMsArguments {
|
|
511
511
|
config?: RawTransactionArgument<string>;
|
|
512
512
|
AdminCap: RawTransactionArgument<string>;
|
|
@@ -530,7 +530,7 @@ interface SetNoTradeWindowMsOptions {
|
|
|
530
530
|
* Nothing in the flush reads this value, so a mid-valuation change cannot skew a
|
|
531
531
|
* frozen mark.
|
|
532
532
|
*/
|
|
533
|
-
declare function setNoTradeWindowMs(options: SetNoTradeWindowMsOptions): (tx: Transaction) =>
|
|
533
|
+
declare function setNoTradeWindowMs(options: SetNoTradeWindowMsOptions): (tx: Transaction) => _mysten_sui_transactions202.TransactionResult;
|
|
534
534
|
interface SetTradingPausedArguments {
|
|
535
535
|
config?: RawTransactionArgument<string>;
|
|
536
536
|
AdminCap: RawTransactionArgument<string>;
|
|
@@ -545,7 +545,7 @@ interface SetTradingPausedOptions {
|
|
|
545
545
|
};
|
|
546
546
|
}
|
|
547
547
|
/** Set whether trading is paused. */
|
|
548
|
-
declare function setTradingPaused(options: SetTradingPausedOptions): (tx: Transaction) =>
|
|
548
|
+
declare function setTradingPaused(options: SetTradingPausedOptions): (tx: Transaction) => _mysten_sui_transactions202.TransactionResult;
|
|
549
549
|
interface SetFrozenArguments {
|
|
550
550
|
config?: RawTransactionArgument<string>;
|
|
551
551
|
AdminCap: RawTransactionArgument<string>;
|
|
@@ -566,7 +566,7 @@ interface SetFrozenOptions {
|
|
|
566
566
|
* gate lives inside `assert_version`, so routing this through it would make an
|
|
567
567
|
* engaged freeze unclearable without a package upgrade — defeating the point.
|
|
568
568
|
*/
|
|
569
|
-
declare function setFrozen(options: SetFrozenOptions): (tx: Transaction) =>
|
|
569
|
+
declare function setFrozen(options: SetFrozenOptions): (tx: Transaction) => _mysten_sui_transactions202.TransactionResult;
|
|
570
570
|
interface BumpVersionWatermarkArguments {
|
|
571
571
|
config?: RawTransactionArgument<string>;
|
|
572
572
|
AdminCap: RawTransactionArgument<string>;
|
|
@@ -586,7 +586,7 @@ interface BumpVersionWatermarkOptions {
|
|
|
586
586
|
* ungated so an upgraded package can retire older versions; it aborts unless the
|
|
587
587
|
* executing version is strictly greater than the existing floor.
|
|
588
588
|
*/
|
|
589
|
-
declare function bumpVersionWatermark(options: BumpVersionWatermarkOptions): (tx: Transaction) =>
|
|
589
|
+
declare function bumpVersionWatermark(options: BumpVersionWatermarkOptions): (tx: Transaction) => _mysten_sui_transactions202.TransactionResult;
|
|
590
590
|
interface SetProtocolReserveProfitShareArguments {
|
|
591
591
|
config?: RawTransactionArgument<string>;
|
|
592
592
|
AdminCap: RawTransactionArgument<string>;
|
|
@@ -604,7 +604,7 @@ interface SetProtocolReserveProfitShareOptions {
|
|
|
604
604
|
* Set the protocol reserve profit share used when materializing aggregate expiry
|
|
605
605
|
* profit. Admin-gated; validated against its config-constants envelope.
|
|
606
606
|
*/
|
|
607
|
-
declare function setProtocolReserveProfitShare(options: SetProtocolReserveProfitShareOptions): (tx: Transaction) =>
|
|
607
|
+
declare function setProtocolReserveProfitShare(options: SetProtocolReserveProfitShareOptions): (tx: Transaction) => _mysten_sui_transactions202.TransactionResult;
|
|
608
608
|
interface SetReferralFeeRateArguments {
|
|
609
609
|
config?: RawTransactionArgument<string>;
|
|
610
610
|
AdminCap: RawTransactionArgument<string>;
|
|
@@ -622,7 +622,7 @@ interface SetReferralFeeRateOptions {
|
|
|
622
622
|
* Set the portion of referred mint fees routed to the referrer. The new rate
|
|
623
623
|
* applies to subsequent mints without changing their all-in account withdrawal.
|
|
624
624
|
*/
|
|
625
|
-
declare function setReferralFeeRate(options: SetReferralFeeRateOptions): (tx: Transaction) =>
|
|
625
|
+
declare function setReferralFeeRate(options: SetReferralFeeRateOptions): (tx: Transaction) => _mysten_sui_transactions202.TransactionResult;
|
|
626
626
|
interface SetPlpSupplyFeeRateArguments {
|
|
627
627
|
config?: RawTransactionArgument<string>;
|
|
628
628
|
AdminCap: RawTransactionArgument<string>;
|
|
@@ -641,7 +641,7 @@ interface SetPlpSupplyFeeRateOptions {
|
|
|
641
641
|
* against its config-constants envelope. Locked during valuation so the rate a
|
|
642
642
|
* flush froze into its mark cannot change midway through that flush.
|
|
643
643
|
*/
|
|
644
|
-
declare function setPlpSupplyFeeRate(options: SetPlpSupplyFeeRateOptions): (tx: Transaction) =>
|
|
644
|
+
declare function setPlpSupplyFeeRate(options: SetPlpSupplyFeeRateOptions): (tx: Transaction) => _mysten_sui_transactions202.TransactionResult;
|
|
645
645
|
interface SetPlpWithdrawFeeRateArguments {
|
|
646
646
|
config?: RawTransactionArgument<string>;
|
|
647
647
|
AdminCap: RawTransactionArgument<string>;
|
|
@@ -659,7 +659,7 @@ interface SetPlpWithdrawFeeRateOptions {
|
|
|
659
659
|
* Set the fee charged on executed PLP withdraw fills. Same gating as the supply
|
|
660
660
|
* leg; the two are independent so the exit charge can move without taxing entry.
|
|
661
661
|
*/
|
|
662
|
-
declare function setPlpWithdrawFeeRate(options: SetPlpWithdrawFeeRateOptions): (tx: Transaction) =>
|
|
662
|
+
declare function setPlpWithdrawFeeRate(options: SetPlpWithdrawFeeRateOptions): (tx: Transaction) => _mysten_sui_transactions202.TransactionResult;
|
|
663
663
|
//#endregion
|
|
664
664
|
export { protocol_config_d_exports };
|
|
665
665
|
//# sourceMappingURL=protocol_config.d.mts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { MoveTuple, RawTransactionArgument } from "../utils/index.mjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as _mysten_sui_transactions233 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_transactions233.TransactionResult;
|
|
28
28
|
//#endregion
|
|
29
29
|
export { range_codec_d_exports };
|
|
30
30
|
//# sourceMappingURL=range_codec.d.mts.map
|