@mysten/deepbook-v3 2.6.4 → 2.8.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 +153 -0
- package/PREDICT.md +389 -61
- package/dist/contracts/account/account.d.mts +23 -23
- package/dist/contracts/account/account.d.mts.map +1 -1
- package/dist/contracts/account/account_registry.d.mts +13 -13
- 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 +93 -68
- package/dist/contracts/deepbook_predict/config_events.d.mts.map +1 -1
- package/dist/contracts/deepbook_predict/config_events.mjs +45 -1
- package/dist/contracts/deepbook_predict/config_events.mjs.map +1 -1
- package/dist/contracts/deepbook_predict/deps/std/type_name.mjs +17 -0
- package/dist/contracts/deepbook_predict/deps/std/type_name.mjs.map +1 -0
- package/dist/contracts/deepbook_predict/expiry_market.d.mts +652 -235
- package/dist/contracts/deepbook_predict/expiry_market.d.mts.map +1 -1
- package/dist/contracts/deepbook_predict/expiry_market.mjs +652 -186
- package/dist/contracts/deepbook_predict/expiry_market.mjs.map +1 -1
- package/dist/contracts/deepbook_predict/lp_book.mjs +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/order_events.d.mts +50 -50
- package/dist/contracts/deepbook_predict/order_events.d.mts.map +1 -1
- package/dist/contracts/deepbook_predict/order_events.mjs +3 -1
- package/dist/contracts/deepbook_predict/order_events.mjs.map +1 -1
- package/dist/contracts/deepbook_predict/pause_cap.d.mts +5 -5
- package/dist/contracts/deepbook_predict/plp.d.mts +184 -82
- package/dist/contracts/deepbook_predict/plp.d.mts.map +1 -1
- package/dist/contracts/deepbook_predict/plp.mjs +126 -7
- package/dist/contracts/deepbook_predict/plp.mjs.map +1 -1
- package/dist/contracts/deepbook_predict/pool_accounting.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 +91 -58
- package/dist/contracts/deepbook_predict/pricing.d.mts.map +1 -1
- package/dist/contracts/deepbook_predict/pricing.mjs +30 -3
- package/dist/contracts/deepbook_predict/pricing.mjs.map +1 -1
- package/dist/contracts/deepbook_predict/pricing_config.mjs.map +1 -1
- package/dist/contracts/deepbook_predict/protocol_config.d.mts +400 -92
- package/dist/contracts/deepbook_predict/protocol_config.d.mts.map +1 -1
- package/dist/contracts/deepbook_predict/protocol_config.mjs +451 -61
- package/dist/contracts/deepbook_predict/protocol_config.mjs.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/strike_exposure.mjs +1 -1
- package/dist/contracts/deepbook_predict/strike_payout_tree.mjs +17 -12
- package/dist/contracts/deepbook_predict/strike_payout_tree.mjs.map +1 -1
- package/dist/contracts/deepbook_predict/vault_events.d.mts +154 -106
- package/dist/contracts/deepbook_predict/vault_events.d.mts.map +1 -1
- package/dist/contracts/deepbook_predict/vault_events.mjs +57 -1
- package/dist/contracts/deepbook_predict/vault_events.mjs.map +1 -1
- package/dist/contracts/deepbook_predict_math/config-arguments.d.mts +10 -0
- package/dist/contracts/deepbook_predict_math/config-arguments.d.mts.map +1 -0
- package/dist/contracts/deepbook_predict_math/lazer_price.d.mts +106 -0
- package/dist/contracts/deepbook_predict_math/lazer_price.d.mts.map +1 -0
- package/dist/contracts/deepbook_predict_math/lazer_price.mjs +125 -0
- package/dist/contracts/deepbook_predict_math/lazer_price.mjs.map +1 -0
- package/dist/contracts/deepbook_predict_math/math.d.mts +284 -0
- package/dist/contracts/deepbook_predict_math/math.d.mts.map +1 -0
- package/dist/contracts/deepbook_predict_math/math.mjs +364 -0
- package/dist/contracts/deepbook_predict_math/math.mjs.map +1 -0
- package/dist/contracts/deepbook_predict_orders/config-arguments.d.mts +13 -0
- package/dist/contracts/deepbook_predict_orders/config-arguments.d.mts.map +1 -0
- package/dist/contracts/deepbook_predict_orders/delayed_execution_config.d.mts +215 -0
- package/dist/contracts/deepbook_predict_orders/delayed_execution_config.d.mts.map +1 -0
- package/dist/contracts/deepbook_predict_orders/delayed_execution_config.mjs +215 -0
- package/dist/contracts/deepbook_predict_orders/delayed_execution_config.mjs.map +1 -0
- package/dist/contracts/deepbook_predict_orders/deps/deepbook_predict/expiry_market.mjs +87 -0
- package/dist/contracts/deepbook_predict_orders/deps/deepbook_predict/expiry_market.mjs.map +1 -0
- package/dist/contracts/deepbook_predict_orders/deps/deepbook_predict/pricing.mjs +52 -0
- package/dist/contracts/deepbook_predict_orders/deps/deepbook_predict/pricing.mjs.map +1 -0
- package/dist/contracts/deepbook_predict_orders/deps/fixed_math/i64.mjs +25 -0
- package/dist/contracts/deepbook_predict_orders/deps/fixed_math/i64.mjs.map +1 -0
- package/dist/contracts/deepbook_predict_orders/deps/sui/balance.mjs +21 -0
- package/dist/contracts/deepbook_predict_orders/deps/sui/balance.mjs.map +1 -0
- package/dist/contracts/deepbook_predict_orders/deps/sui/table.mjs +39 -0
- package/dist/contracts/deepbook_predict_orders/deps/sui/table.mjs.map +1 -0
- package/dist/contracts/deepbook_predict_orders/desk.d.mts +187 -0
- package/dist/contracts/deepbook_predict_orders/desk.d.mts.map +1 -0
- package/dist/contracts/deepbook_predict_orders/desk.mjs +261 -0
- package/dist/contracts/deepbook_predict_orders/desk.mjs.map +1 -0
- package/dist/contracts/deepbook_predict_orders/order_queue.d.mts +1042 -0
- package/dist/contracts/deepbook_predict_orders/order_queue.d.mts.map +1 -0
- package/dist/contracts/deepbook_predict_orders/order_queue.mjs +849 -0
- package/dist/contracts/deepbook_predict_orders/order_queue.mjs.map +1 -0
- package/dist/contracts/deepbook_predict_orders/queue.d.mts +683 -0
- package/dist/contracts/deepbook_predict_orders/queue.d.mts.map +1 -0
- package/dist/contracts/deepbook_predict_orders/queue.mjs +912 -0
- package/dist/contracts/deepbook_predict_orders/queue.mjs.map +1 -0
- package/dist/contracts/deepbook_predict_orders/queue_events.d.mts +195 -0
- package/dist/contracts/deepbook_predict_orders/queue_events.d.mts.map +1 -0
- package/dist/contracts/deepbook_predict_orders/queue_events.mjs +187 -0
- package/dist/contracts/deepbook_predict_orders/queue_events.mjs.map +1 -0
- package/dist/contracts/deepbook_sessions/session_config.d.mts +8 -8
- package/dist/contracts/deepbook_sessions/sessions.d.mts +163 -28
- package/dist/contracts/deepbook_sessions/sessions.d.mts.map +1 -1
- package/dist/contracts/deepbook_sessions/sessions.mjs +234 -5
- package/dist/contracts/deepbook_sessions/sessions.mjs.map +1 -1
- package/dist/deployments/mainnet.mjs +7 -4
- package/dist/deployments/mainnet.mjs.map +1 -1
- package/dist/deployments/testnet.mjs +7 -4
- package/dist/deployments/testnet.mjs.map +1 -1
- package/dist/predict/bindings/expiry-market.d.mts +77 -0
- package/dist/predict/bindings/expiry-market.d.mts.map +1 -0
- package/dist/predict/bindings/expiry-market.mjs +139 -0
- package/dist/predict/bindings/expiry-market.mjs.map +1 -0
- package/dist/predict/bindings/protocol-config.d.mts +39 -0
- package/dist/predict/bindings/protocol-config.d.mts.map +1 -0
- package/dist/predict/bindings/protocol-config.mjs +90 -0
- package/dist/predict/bindings/protocol-config.mjs.map +1 -0
- package/dist/predict/bindings/rename.mjs +9 -0
- package/dist/predict/bindings/rename.mjs.map +1 -0
- package/dist/predict/client.d.mts +595 -16
- package/dist/predict/client.d.mts.map +1 -1
- package/dist/predict/client.mjs +986 -10
- package/dist/predict/client.mjs.map +1 -1
- package/dist/predict/config/generated.d.mts +22 -1
- package/dist/predict/config/generated.d.mts.map +1 -1
- package/dist/predict/config/generated.mjs +30 -1
- package/dist/predict/config/generated.mjs.map +1 -1
- package/dist/predict/config/mainnet.mjs +11 -3
- package/dist/predict/config/mainnet.mjs.map +1 -1
- package/dist/predict/config/testnet.mjs +11 -3
- package/dist/predict/config/testnet.mjs.map +1 -1
- package/dist/predict/config/types.d.mts +50 -1
- package/dist/predict/config/types.d.mts.map +1 -1
- package/dist/predict/cost.d.mts +38 -11
- package/dist/predict/cost.d.mts.map +1 -1
- package/dist/predict/cost.mjs +37 -11
- package/dist/predict/cost.mjs.map +1 -1
- package/dist/predict/decode.d.mts +251 -1
- package/dist/predict/decode.d.mts.map +1 -1
- package/dist/predict/decode.mjs +342 -4
- package/dist/predict/decode.mjs.map +1 -1
- package/dist/predict/errors.d.mts +69 -6
- package/dist/predict/errors.d.mts.map +1 -1
- package/dist/predict/errors.mjs +277 -4
- package/dist/predict/errors.mjs.map +1 -1
- package/dist/predict/index.d.mts +21 -10
- package/dist/predict/index.mjs +24 -12
- package/dist/predict/queue-id.d.mts +13 -0
- package/dist/predict/queue-id.d.mts.map +1 -0
- package/dist/predict/queue-id.mjs +19 -0
- package/dist/predict/queue-id.mjs.map +1 -0
- package/dist/predict/queue.d.mts +505 -0
- package/dist/predict/queue.d.mts.map +1 -0
- package/dist/predict/queue.mjs +774 -0
- package/dist/predict/queue.mjs.map +1 -0
- package/dist/predict/reads/balances.mjs +1 -1
- package/dist/predict/reads/markets.mjs +46 -5
- package/dist/predict/reads/markets.mjs.map +1 -1
- package/dist/predict/reads/pool.mjs +1 -1
- package/dist/predict/reads/pricing.d.mts +1 -1
- package/dist/predict/reads/queue.d.mts +105 -0
- package/dist/predict/reads/queue.d.mts.map +1 -0
- package/dist/predict/reads/queue.mjs +445 -0
- package/dist/predict/reads/queue.mjs.map +1 -0
- package/dist/predict/ticks.d.mts +9 -1
- package/dist/predict/ticks.d.mts.map +1 -1
- package/dist/predict/ticks.mjs +18 -1
- package/dist/predict/ticks.mjs.map +1 -1
- package/dist/predict/tx/authed.mjs +1 -1
- package/dist/predict/tx/common.d.mts.map +1 -1
- package/dist/predict/tx/common.mjs +12 -1
- package/dist/predict/tx/common.mjs.map +1 -1
- package/dist/predict/tx/queue.d.mts +220 -0
- package/dist/predict/tx/queue.d.mts.map +1 -0
- package/dist/predict/tx/queue.mjs +399 -0
- package/dist/predict/tx/queue.mjs.map +1 -0
- package/dist/predict/tx/trade.d.mts.map +1 -1
- package/dist/predict/tx/trade.mjs +61 -43
- package/dist/predict/tx/trade.mjs.map +1 -1
- package/dist/sessions.d.mts +90 -2
- package/dist/sessions.d.mts.map +1 -1
- package/dist/sessions.mjs +107 -2
- package/dist/sessions.mjs.map +1 -1
- package/dist/transactions/balanceManager.d.mts +12 -12
- package/dist/transactions/balanceManager.d.mts.map +1 -1
- package/dist/transactions/deepbook.d.mts +20 -20
- package/dist/transactions/deepbook.d.mts.map +1 -1
- package/dist/transactions/deepbookAdmin.d.mts +4 -4
- package/dist/transactions/deepbookAdmin.d.mts.map +1 -1
- package/dist/transactions/marginAdmin.d.mts +7 -7
- package/dist/transactions/marginAdmin.d.mts.map +1 -1
- package/dist/transactions/marginLiquidations.d.mts +3 -3
- package/dist/transactions/marginMaintainer.d.mts +5 -5
- package/dist/transactions/marginMaintainer.d.mts.map +1 -1
- package/dist/transactions/marginManager.d.mts +32 -32
- package/dist/transactions/marginManager.d.mts.map +1 -1
- package/dist/transactions/marginPool.d.mts +18 -18
- package/dist/transactions/marginRegistry.d.mts +16 -16
- package/dist/transactions/marginTPSL.d.mts +10 -10
- package/dist/transactions/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 +4 -4
- package/src/contracts/deepbook_predict/config_events.ts +39 -0
- package/src/contracts/deepbook_predict/deps/std/type_name.ts +24 -0
- package/src/contracts/deepbook_predict/expiry_market.ts +960 -169
- package/src/contracts/deepbook_predict/order_events.ts +3 -1
- package/src/contracts/deepbook_predict/plp.ts +150 -9
- package/src/contracts/deepbook_predict/pricing.ts +46 -7
- package/src/contracts/deepbook_predict/pricing_config.ts +3 -1
- package/src/contracts/deepbook_predict/protocol_config.ts +648 -33
- package/src/contracts/deepbook_predict/strike_payout_tree.ts +25 -21
- package/src/contracts/deepbook_predict/vault_events.ts +65 -0
- package/src/contracts/deepbook_predict_math/config-arguments.ts +6 -0
- package/src/contracts/deepbook_predict_math/lazer_price.ts +196 -0
- package/src/contracts/deepbook_predict_math/math.ts +553 -0
- package/src/contracts/deepbook_predict_orders/config-arguments.ts +11 -0
- package/src/contracts/deepbook_predict_orders/delayed_execution_config.ts +430 -0
- package/src/contracts/deepbook_predict_orders/deps/deepbook_predict/expiry_market.ts +108 -0
- package/src/contracts/deepbook_predict_orders/deps/deepbook_predict/pricing.ts +58 -0
- package/src/contracts/deepbook_predict_orders/deps/fixed_math/i64.ts +21 -0
- package/src/contracts/deepbook_predict_orders/deps/sui/balance.ts +19 -0
- package/src/contracts/deepbook_predict_orders/deps/sui/table.ts +37 -0
- package/src/contracts/deepbook_predict_orders/desk.ts +419 -0
- package/src/contracts/deepbook_predict_orders/order_flow.ts +19 -0
- package/src/contracts/deepbook_predict_orders/order_queue.ts +1670 -0
- package/src/contracts/deepbook_predict_orders/queue.ts +1394 -0
- package/src/contracts/deepbook_predict_orders/queue_events.ts +189 -0
- package/src/contracts/deepbook_sessions/sessions.ts +355 -4
- package/src/deployments/mainnet.ts +7 -2
- package/src/deployments/testnet.ts +7 -2
- package/src/deployments/types.ts +14 -1
- package/src/predict/bindings/expiry-market.ts +127 -0
- package/src/predict/bindings/protocol-config.ts +59 -0
- package/src/predict/bindings/rename.ts +14 -0
- package/src/predict/client.ts +2076 -13
- package/src/predict/config/generated.ts +50 -0
- package/src/predict/config/mainnet.ts +16 -2
- package/src/predict/config/testnet.ts +16 -2
- package/src/predict/config/types.ts +51 -1
- package/src/predict/cost.ts +62 -14
- package/src/predict/decode.ts +691 -2
- package/src/predict/errors.ts +391 -14
- package/src/predict/index.ts +87 -6
- package/src/predict/queue-id.ts +22 -0
- package/src/predict/queue.ts +1231 -0
- package/src/predict/reads/markets.ts +30 -0
- package/src/predict/reads/queue.ts +606 -0
- package/src/predict/ticks.ts +35 -0
- package/src/predict/tx/common.ts +25 -1
- package/src/predict/tx/queue.ts +525 -0
- package/src/predict/tx/trade.ts +80 -49
- package/src/sessions.ts +206 -1
|
@@ -1,57 +1,54 @@
|
|
|
1
|
-
import { ConfigValue, MoveStruct, RawTransactionArgument } from "../utils/index.mjs";
|
|
2
|
-
import * as
|
|
3
|
-
import * as
|
|
1
|
+
import { ConfigValue, MoveStruct, MoveTuple, RawTransactionArgument } from "../utils/index.mjs";
|
|
2
|
+
import * as _mysten_sui_bcs833 from "@mysten/sui/bcs";
|
|
3
|
+
import * as _mysten_sui_transactions477 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
|
|
7
|
-
declare namespace protocol_config_d_exports {
|
|
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
|
-
}
|
|
10
7
|
declare const ProtocolConfig: MoveStruct<{
|
|
11
|
-
id:
|
|
8
|
+
id: _mysten_sui_bcs833.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
12
9
|
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:
|
|
10
|
+
use_pyth_spot_for_forward: _mysten_sui_bcs833.BcsType<boolean, boolean, "bool">;
|
|
11
|
+
pyth_spot_freshness_ms: _mysten_sui_bcs833.BcsType<bigint, string | number | bigint, "u64">;
|
|
12
|
+
block_scholes_price_freshness_ms: _mysten_sui_bcs833.BcsType<bigint, string | number | bigint, "u64">;
|
|
13
|
+
block_scholes_svi_freshness_ms: _mysten_sui_bcs833.BcsType<bigint, string | number | bigint, "u64">;
|
|
17
14
|
}, "@local-pkg/deepbook_predict::pricing_config::PricingConfig">;
|
|
18
15
|
/**
|
|
19
16
|
* Merged protocol + insurance reserve share of materialized terminal profit, in
|
|
20
17
|
* FLOAT_SCALING. The complement accrues to LPs.
|
|
21
18
|
*/
|
|
22
|
-
protocol_reserve_profit_share:
|
|
19
|
+
protocol_reserve_profit_share: _mysten_sui_bcs833.BcsType<bigint, string | number | bigint, "u64">;
|
|
23
20
|
/**
|
|
24
21
|
* Portion of a referred mint's trader-paid trading fee and congestion surcharge
|
|
25
22
|
* routed to the referrer, in FLOAT_SCALING.
|
|
26
23
|
*/
|
|
27
|
-
referral_fee_rate:
|
|
24
|
+
referral_fee_rate: _mysten_sui_bcs833.BcsType<bigint, string | number | bigint, "u64">;
|
|
28
25
|
/**
|
|
29
26
|
* Fee charged on an executed PLP supply fill, in FLOAT_SCALING, deducted from the
|
|
30
27
|
* USDC taken in before shares are priced. Ships at zero — a deposit dilutes the
|
|
31
28
|
* pool's risk per dollar rather than concentrating it, so it is not taxed; the
|
|
32
29
|
* knob exists to keep that reversible.
|
|
33
30
|
*/
|
|
34
|
-
plp_supply_fee_rate:
|
|
31
|
+
plp_supply_fee_rate: _mysten_sui_bcs833.BcsType<bigint, string | number | bigint, "u64">;
|
|
35
32
|
/**
|
|
36
33
|
* Fee charged on an executed PLP withdraw fill, in FLOAT_SCALING, withheld from
|
|
37
34
|
* the marked payout. Retained by the pool, so it accrues to the holders who stay.
|
|
38
35
|
* Both rates are read once per flush into the frozen mark, so every fill in one
|
|
39
36
|
* flush is charged the same pair.
|
|
40
37
|
*/
|
|
41
|
-
plp_withdraw_fee_rate:
|
|
38
|
+
plp_withdraw_fee_rate: _mysten_sui_bcs833.BcsType<bigint, string | number | bigint, "u64">;
|
|
42
39
|
/**
|
|
43
40
|
* Frozen-mark attempts a queued LP supply/withdraw request gets before the
|
|
44
41
|
* protocol cancels and refunds it. `1` (the default) is fill-or-kill; above that a
|
|
45
42
|
* missing request rests at the queue head and stops that queue for the flush, so
|
|
46
43
|
* this is an LP-queue liveness knob (RP-12).
|
|
47
44
|
*/
|
|
48
|
-
lp_request_limit_flush_attempts:
|
|
45
|
+
lp_request_limit_flush_attempts: _mysten_sui_bcs833.BcsType<bigint, string | number | bigint, "u64">;
|
|
49
46
|
/**
|
|
50
47
|
* Ceiling on LP-attributable pool value that queued supplies may raise the pool
|
|
51
48
|
* to, enforced at the flush against the frozen mark. Defaults to 500,000 USDC
|
|
52
49
|
* (RP-23).
|
|
53
50
|
*/
|
|
54
|
-
max_lp_pool_value:
|
|
51
|
+
max_lp_pool_value: _mysten_sui_bcs833.BcsType<bigint, string | number | bigint, "u64">;
|
|
55
52
|
/**
|
|
56
53
|
* Hard staleness bound: `finish_flush` refuses to complete a flush in flight
|
|
57
54
|
* longer than this, so no LP request fills at a mark older than the window; past
|
|
@@ -60,47 +57,47 @@ declare const ProtocolConfig: MoveStruct<{
|
|
|
60
57
|
* continues — so this also bounds LP-fill latency and is tuned alongside flush
|
|
61
58
|
* cadence (RP-29).
|
|
62
59
|
*/
|
|
63
|
-
max_valuation_window_ms:
|
|
60
|
+
max_valuation_window_ms: _mysten_sui_bcs833.BcsType<bigint, string | number | bigint, "u64">;
|
|
64
61
|
/**
|
|
65
62
|
* Window before a market's expiry in which live quotes, mints, and live redeems
|
|
66
63
|
* abort. Read live at trade time rather than snapshotted per market, so it can be
|
|
67
64
|
* widened on markets already trading. `0` disables.
|
|
68
65
|
*/
|
|
69
|
-
no_trade_window_ms:
|
|
66
|
+
no_trade_window_ms: _mysten_sui_bcs833.BcsType<bigint, string | number | bigint, "u64">;
|
|
70
67
|
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:
|
|
68
|
+
backing_buffer_lambda: _mysten_sui_bcs833.BcsType<bigint, string | number | bigint, "u64">;
|
|
69
|
+
base_fee: _mysten_sui_bcs833.BcsType<bigint, string | number | bigint, "u64">;
|
|
70
|
+
min_fee: _mysten_sui_bcs833.BcsType<bigint, string | number | bigint, "u64">;
|
|
71
|
+
min_entry_probability: _mysten_sui_bcs833.BcsType<bigint, string | number | bigint, "u64">;
|
|
72
|
+
max_entry_probability: _mysten_sui_bcs833.BcsType<bigint, string | number | bigint, "u64">;
|
|
73
|
+
expiry_fee_window_ms: _mysten_sui_bcs833.BcsType<bigint, string | number | bigint, "u64">;
|
|
74
|
+
expiry_fee_max_multiplier: _mysten_sui_bcs833.BcsType<bigint, string | number | bigint, "u64">;
|
|
75
|
+
inventory_impact_max_rate: _mysten_sui_bcs833.BcsType<bigint, string | number | bigint, "u64">;
|
|
79
76
|
}, "@local-pkg/deepbook_predict::strike_exposure_config::StrikeExposureConfig">;
|
|
80
77
|
ewma_config: MoveStruct<{
|
|
81
|
-
alpha:
|
|
82
|
-
z_score_threshold:
|
|
83
|
-
penalty_rate:
|
|
84
|
-
enabled:
|
|
78
|
+
alpha: _mysten_sui_bcs833.BcsType<bigint, string | number | bigint, "u64">;
|
|
79
|
+
z_score_threshold: _mysten_sui_bcs833.BcsType<bigint, string | number | bigint, "u64">;
|
|
80
|
+
penalty_rate: _mysten_sui_bcs833.BcsType<bigint, string | number | bigint, "u64">;
|
|
81
|
+
enabled: _mysten_sui_bcs833.BcsType<boolean, boolean, "bool">;
|
|
85
82
|
}, "@local-pkg/deepbook_predict::ewma_config::EwmaConfig">;
|
|
86
83
|
/**
|
|
87
84
|
* Minimum package version permitted to run version-gated flows. Monotonic;
|
|
88
85
|
* `bump_version_watermark` advances it to the running `current_version!()`,
|
|
89
86
|
* retiring older versions. A running version below this floor is dead
|
|
90
|
-
* (`
|
|
91
|
-
*
|
|
87
|
+
* (`chk_version`). `current_version!()` stays the upgrade-required code constant;
|
|
88
|
+
* this is the runtime floor.
|
|
92
89
|
*/
|
|
93
|
-
version_watermark:
|
|
94
|
-
trading_paused:
|
|
90
|
+
version_watermark: _mysten_sui_bcs833.BcsType<bigint, string | number | bigint, "u64">; /** Blocks new risk creation while true. */
|
|
91
|
+
trading_paused: _mysten_sui_bcs833.BcsType<boolean, boolean, "bool">;
|
|
95
92
|
/**
|
|
96
|
-
* Emergency hard stop. While true, `
|
|
93
|
+
* Emergency hard stop. While true, `chk_version` aborts, halting every
|
|
97
94
|
* version-gated flow (mint, redeem, settlement, valuation, LP supply/withdraw,
|
|
98
95
|
* admin config) — the same blast radius as a version-disable, but reversible
|
|
99
96
|
* without a package upgrade. Force-on via `PauseCap`; cleared by `AdminCap`.
|
|
100
97
|
* Account-package custody withdrawals and builder-fee claims are ungated and stay
|
|
101
98
|
* available (already-earned funds).
|
|
102
99
|
*/
|
|
103
|
-
frozen:
|
|
100
|
+
frozen: _mysten_sui_bcs833.BcsType<boolean, boolean, "bool">;
|
|
104
101
|
/**
|
|
105
102
|
* True for the whole duration of a full-pool valuation, across every transaction
|
|
106
103
|
* it spans. Keeper cash flows, market lifecycle, and config mutations gate on it;
|
|
@@ -108,9 +105,9 @@ declare const ProtocolConfig: MoveStruct<{
|
|
|
108
105
|
* valuation stamp lazily; a pending market's snapshot state is captured, never
|
|
109
106
|
* recorded per trade (see `plp`).
|
|
110
107
|
*/
|
|
111
|
-
valuation_in_progress:
|
|
108
|
+
valuation_in_progress: _mysten_sui_bcs833.BcsType<boolean, boolean, "bool">;
|
|
112
109
|
/**
|
|
113
|
-
* True ONLY while the atomic snapshot stage is open — set by `
|
|
110
|
+
* True ONLY while the atomic snapshot stage is open — set by `open_snap` at
|
|
114
111
|
* `start_pool_valuation` and cleared by `end_snapshot` at
|
|
115
112
|
* `seal_valuation_snapshot`. Both live in one PTB (the `SnapshotStage` hot potato
|
|
116
113
|
* forces it), so this can never be observed across transactions: it blocks only a
|
|
@@ -118,15 +115,21 @@ declare const ProtocolConfig: MoveStruct<{
|
|
|
118
115
|
* would skew the figures the seal freezes. The resumable valuation stage after the
|
|
119
116
|
* seal leaves it false, so trading stays live.
|
|
120
117
|
*/
|
|
121
|
-
snapshot_in_progress:
|
|
118
|
+
snapshot_in_progress: _mysten_sui_bcs833.BcsType<boolean, boolean, "bool">;
|
|
122
119
|
/**
|
|
123
|
-
* Monotonic flush ordinal, bumped by `
|
|
124
|
-
*
|
|
125
|
-
*
|
|
126
|
-
*
|
|
120
|
+
* Monotonic flush ordinal, bumped by `begin_val`. A market's valuation stamp names
|
|
121
|
+
* the flush that made it; a stamp whose ordinal is not the current one — or held
|
|
122
|
+
* while no valuation is in flight — is stale and is lazily discarded by the next
|
|
123
|
+
* trade, so aborting a flush never has to visit its stamped markets.
|
|
127
124
|
*/
|
|
128
|
-
flush_seq:
|
|
125
|
+
flush_seq: _mysten_sui_bcs833.BcsType<bigint, string | number | bigint, "u64">;
|
|
129
126
|
}, "@local-pkg/deepbook_predict::protocol_config::ProtocolConfig">;
|
|
127
|
+
declare const SettledRedeemKeepersKey: MoveTuple<readonly [_mysten_sui_bcs833.BcsType<boolean, boolean, "bool">], "@local-pkg/deepbook_predict::protocol_config::SettledRedeemKeepersKey">;
|
|
128
|
+
declare const FeeIncentiveSubsidyRateKey: MoveTuple<readonly [_mysten_sui_bcs833.BcsType<boolean, boolean, "bool">], "@local-pkg/deepbook_predict::protocol_config::FeeIncentiveSubsidyRateKey">;
|
|
129
|
+
declare const FeeIncentiveLiveTargetRateKey: MoveTuple<readonly [_mysten_sui_bcs833.BcsType<boolean, boolean, "bool">], "@local-pkg/deepbook_predict::protocol_config::FeeIncentiveLiveTargetRateKey">;
|
|
130
|
+
declare const FeeIncentiveLifetimeCapRateKey: MoveTuple<readonly [_mysten_sui_bcs833.BcsType<boolean, boolean, "bool">], "@local-pkg/deepbook_predict::protocol_config::FeeIncentiveLifetimeCapRateKey">;
|
|
131
|
+
declare const FlushOperatorsKey: MoveTuple<readonly [_mysten_sui_bcs833.BcsType<boolean, boolean, "bool">], "@local-pkg/deepbook_predict::protocol_config::FlushOperatorsKey">;
|
|
132
|
+
declare const OrderFlowKey: MoveTuple<readonly [_mysten_sui_bcs833.BcsType<boolean, boolean, "bool">], "@local-pkg/deepbook_predict::protocol_config::OrderFlowKey<phantom W>">;
|
|
130
133
|
interface IdArguments {
|
|
131
134
|
config?: RawTransactionArgument<string>;
|
|
132
135
|
}
|
|
@@ -142,7 +145,7 @@ interface IdOptions {
|
|
|
142
145
|
* Return the protocol config object ID for external discovery and PTB
|
|
143
146
|
* construction.
|
|
144
147
|
*/
|
|
145
|
-
declare function id(options: IdOptions): (tx: Transaction) =>
|
|
148
|
+
declare function id(options: IdOptions): (tx: Transaction) => _mysten_sui_transactions477.TransactionResult;
|
|
146
149
|
interface TradingPausedArguments {
|
|
147
150
|
config?: RawTransactionArgument<string>;
|
|
148
151
|
}
|
|
@@ -155,7 +158,7 @@ interface TradingPausedOptions {
|
|
|
155
158
|
};
|
|
156
159
|
}
|
|
157
160
|
/** Return the global trading-pause state for SDK and devInspect reads. */
|
|
158
|
-
declare function tradingPaused(options: TradingPausedOptions): (tx: Transaction) =>
|
|
161
|
+
declare function tradingPaused(options: TradingPausedOptions): (tx: Transaction) => _mysten_sui_transactions477.TransactionResult;
|
|
159
162
|
interface FrozenArguments {
|
|
160
163
|
config?: RawTransactionArgument<string>;
|
|
161
164
|
}
|
|
@@ -168,7 +171,7 @@ interface FrozenOptions {
|
|
|
168
171
|
};
|
|
169
172
|
}
|
|
170
173
|
/** Return the global protocol-freeze state for SDK and devInspect reads. */
|
|
171
|
-
declare function frozen(options: FrozenOptions): (tx: Transaction) =>
|
|
174
|
+
declare function frozen(options: FrozenOptions): (tx: Transaction) => _mysten_sui_transactions477.TransactionResult;
|
|
172
175
|
interface ValuationInProgressArguments {
|
|
173
176
|
config?: RawTransactionArgument<string>;
|
|
174
177
|
}
|
|
@@ -186,7 +189,7 @@ interface ValuationInProgressOptions {
|
|
|
186
189
|
* reads it to notice a flush it must finish or discard, and an integrator reads it
|
|
187
190
|
* to explain a gated keeper/config transaction. Trading is not gated on it.
|
|
188
191
|
*/
|
|
189
|
-
declare function valuationInProgress(options: ValuationInProgressOptions): (tx: Transaction) =>
|
|
192
|
+
declare function valuationInProgress(options: ValuationInProgressOptions): (tx: Transaction) => _mysten_sui_transactions477.TransactionResult;
|
|
190
193
|
interface ReferralFeeRateArguments {
|
|
191
194
|
config?: RawTransactionArgument<string>;
|
|
192
195
|
}
|
|
@@ -199,7 +202,61 @@ interface ReferralFeeRateOptions {
|
|
|
199
202
|
};
|
|
200
203
|
}
|
|
201
204
|
/** Return the live referral fee rate for SDK and devInspect reads. */
|
|
202
|
-
declare function referralFeeRate(options: ReferralFeeRateOptions): (tx: Transaction) =>
|
|
205
|
+
declare function referralFeeRate(options: ReferralFeeRateOptions): (tx: Transaction) => _mysten_sui_transactions477.TransactionResult;
|
|
206
|
+
interface FeeIncentiveSubsidyRateArguments {
|
|
207
|
+
config?: RawTransactionArgument<string>;
|
|
208
|
+
}
|
|
209
|
+
interface FeeIncentiveSubsidyRateOptions {
|
|
210
|
+
package?: string;
|
|
211
|
+
arguments?: FeeIncentiveSubsidyRateArguments;
|
|
212
|
+
config?: {
|
|
213
|
+
protocolConfig: ConfigValue;
|
|
214
|
+
predictPackageId?: string;
|
|
215
|
+
};
|
|
216
|
+
}
|
|
217
|
+
/**
|
|
218
|
+
* Return the live fee-incentive subsidy rate: the fraction of each mint's trading
|
|
219
|
+
* fee paid from the market's sponsor-funded fee-incentive balance, in
|
|
220
|
+
* FLOAT_SCALING. `public` for SDK and devInspect reads: the quote already reports
|
|
221
|
+
* the subsidy it applied, but a client needs the rate to explain it.
|
|
222
|
+
*/
|
|
223
|
+
declare function feeIncentiveSubsidyRate(options: FeeIncentiveSubsidyRateOptions): (tx: Transaction) => _mysten_sui_transactions477.TransactionResult;
|
|
224
|
+
interface FeeIncentiveLiveTargetRateArguments {
|
|
225
|
+
config?: RawTransactionArgument<string>;
|
|
226
|
+
}
|
|
227
|
+
interface FeeIncentiveLiveTargetRateOptions {
|
|
228
|
+
package?: string;
|
|
229
|
+
arguments?: FeeIncentiveLiveTargetRateArguments;
|
|
230
|
+
config?: {
|
|
231
|
+
protocolConfig: ConfigValue;
|
|
232
|
+
predictPackageId?: string;
|
|
233
|
+
};
|
|
234
|
+
}
|
|
235
|
+
/**
|
|
236
|
+
* Return the live fee-incentive target rate: the share of an expiry's allocation
|
|
237
|
+
* cap each live rebalance tops its sponsor-funded balance up to, in FLOAT_SCALING.
|
|
238
|
+
* `public` for SDK and devInspect reads, so a client can tell how much a market
|
|
239
|
+
* can hold before reading its balance.
|
|
240
|
+
*/
|
|
241
|
+
declare function feeIncentiveLiveTargetRate(options: FeeIncentiveLiveTargetRateOptions): (tx: Transaction) => _mysten_sui_transactions477.TransactionResult;
|
|
242
|
+
interface FeeIncentiveLifetimeCapRateArguments {
|
|
243
|
+
config?: RawTransactionArgument<string>;
|
|
244
|
+
}
|
|
245
|
+
interface FeeIncentiveLifetimeCapRateOptions {
|
|
246
|
+
package?: string;
|
|
247
|
+
arguments?: FeeIncentiveLifetimeCapRateArguments;
|
|
248
|
+
config?: {
|
|
249
|
+
protocolConfig: ConfigValue;
|
|
250
|
+
predictPackageId?: string;
|
|
251
|
+
};
|
|
252
|
+
}
|
|
253
|
+
/**
|
|
254
|
+
* Return the fee-incentive lifetime cap rate that newly created expiry markets
|
|
255
|
+
* snapshot: the share of an expiry's allocation cap it may receive in
|
|
256
|
+
* sponsor-funded incentives over its life, in FLOAT_SCALING. `public` for SDK and
|
|
257
|
+
* devInspect reads.
|
|
258
|
+
*/
|
|
259
|
+
declare function feeIncentiveLifetimeCapRate(options: FeeIncentiveLifetimeCapRateOptions): (tx: Transaction) => _mysten_sui_transactions477.TransactionResult;
|
|
203
260
|
interface NoTradeWindowMsArguments {
|
|
204
261
|
config?: RawTransactionArgument<string>;
|
|
205
262
|
}
|
|
@@ -217,7 +274,59 @@ interface NoTradeWindowMsOptions {
|
|
|
217
274
|
* only learn the window closed by decoding `ETradeWindowClosed` from a failed
|
|
218
275
|
* quote.
|
|
219
276
|
*/
|
|
220
|
-
declare function noTradeWindowMs(options: NoTradeWindowMsOptions): (tx: Transaction) =>
|
|
277
|
+
declare function noTradeWindowMs(options: NoTradeWindowMsOptions): (tx: Transaction) => _mysten_sui_transactions477.TransactionResult;
|
|
278
|
+
interface IsFlushOperatorArguments {
|
|
279
|
+
config?: RawTransactionArgument<string>;
|
|
280
|
+
operator: RawTransactionArgument<string>;
|
|
281
|
+
}
|
|
282
|
+
interface IsFlushOperatorOptions {
|
|
283
|
+
package?: string;
|
|
284
|
+
arguments: IsFlushOperatorArguments;
|
|
285
|
+
config?: {
|
|
286
|
+
protocolConfig: ConfigValue;
|
|
287
|
+
predictPackageId?: string;
|
|
288
|
+
};
|
|
289
|
+
}
|
|
290
|
+
/**
|
|
291
|
+
* Whether `operator` may call `plp::finish_flush`. For SDK, keeper, and devInspect
|
|
292
|
+
* reads; `finish_flush` gates through `chk_operator`.
|
|
293
|
+
*/
|
|
294
|
+
declare function isFlushOperator(options: IsFlushOperatorOptions): (tx: Transaction) => _mysten_sui_transactions477.TransactionResult;
|
|
295
|
+
interface IsOrderFlowArguments {
|
|
296
|
+
config?: RawTransactionArgument<string>;
|
|
297
|
+
}
|
|
298
|
+
interface IsOrderFlowOptions {
|
|
299
|
+
package?: string;
|
|
300
|
+
arguments?: IsOrderFlowArguments;
|
|
301
|
+
config?: {
|
|
302
|
+
protocolConfig: ConfigValue;
|
|
303
|
+
predictPackageId?: string;
|
|
304
|
+
};
|
|
305
|
+
typeArguments: [string];
|
|
306
|
+
}
|
|
307
|
+
/**
|
|
308
|
+
* Whether the witness type `W` may drive Predict's order-flow primitives
|
|
309
|
+
* (admission, commit, and fill). For SDK, keeper, and devInspect reads and the
|
|
310
|
+
* companion's setup checks; the primitives gate through `chk_flow`.
|
|
311
|
+
*/
|
|
312
|
+
declare function isOrderFlow(options: IsOrderFlowOptions): (tx: Transaction) => _mysten_sui_transactions477.TransactionResult;
|
|
313
|
+
interface VersionWatermarkArguments {
|
|
314
|
+
config?: RawTransactionArgument<string>;
|
|
315
|
+
}
|
|
316
|
+
interface VersionWatermarkOptions {
|
|
317
|
+
package?: string;
|
|
318
|
+
arguments?: VersionWatermarkArguments;
|
|
319
|
+
config?: {
|
|
320
|
+
protocolConfig: ConfigValue;
|
|
321
|
+
predictPackageId?: string;
|
|
322
|
+
};
|
|
323
|
+
}
|
|
324
|
+
/**
|
|
325
|
+
* Return the runtime version floor. For SDK, keeper, and devInspect reads: the
|
|
326
|
+
* delayed-execution cutover is reached once it is at least 4
|
|
327
|
+
* (`constants::cutover_version!()`).
|
|
328
|
+
*/
|
|
329
|
+
declare function versionWatermark(options: VersionWatermarkOptions): (tx: Transaction) => _mysten_sui_transactions477.TransactionResult;
|
|
221
330
|
interface SetTemplateBaseFeeArguments {
|
|
222
331
|
config?: RawTransactionArgument<string>;
|
|
223
332
|
AdminCap: RawTransactionArgument<string>;
|
|
@@ -232,7 +341,7 @@ interface SetTemplateBaseFeeOptions {
|
|
|
232
341
|
};
|
|
233
342
|
}
|
|
234
343
|
/** Set the base fee multiplier snapshotted by newly created expiry markets. */
|
|
235
|
-
declare function setTemplateBaseFee(options: SetTemplateBaseFeeOptions): (tx: Transaction) =>
|
|
344
|
+
declare function setTemplateBaseFee(options: SetTemplateBaseFeeOptions): (tx: Transaction) => _mysten_sui_transactions477.TransactionResult;
|
|
236
345
|
interface SetTemplateMinFeeArguments {
|
|
237
346
|
config?: RawTransactionArgument<string>;
|
|
238
347
|
AdminCap: RawTransactionArgument<string>;
|
|
@@ -247,7 +356,7 @@ interface SetTemplateMinFeeOptions {
|
|
|
247
356
|
};
|
|
248
357
|
}
|
|
249
358
|
/** Set the minimum fee floor snapshotted by newly created expiry markets. */
|
|
250
|
-
declare function setTemplateMinFee(options: SetTemplateMinFeeOptions): (tx: Transaction) =>
|
|
359
|
+
declare function setTemplateMinFee(options: SetTemplateMinFeeOptions): (tx: Transaction) => _mysten_sui_transactions477.TransactionResult;
|
|
251
360
|
interface SetTemplateExpiryFeeWindowMsArguments {
|
|
252
361
|
config?: RawTransactionArgument<string>;
|
|
253
362
|
AdminCap: RawTransactionArgument<string>;
|
|
@@ -262,7 +371,7 @@ interface SetTemplateExpiryFeeWindowMsOptions {
|
|
|
262
371
|
};
|
|
263
372
|
}
|
|
264
373
|
/** Set the expiry-fee ramp window snapshotted by newly created expiry markets. */
|
|
265
|
-
declare function setTemplateExpiryFeeWindowMs(options: SetTemplateExpiryFeeWindowMsOptions): (tx: Transaction) =>
|
|
374
|
+
declare function setTemplateExpiryFeeWindowMs(options: SetTemplateExpiryFeeWindowMsOptions): (tx: Transaction) => _mysten_sui_transactions477.TransactionResult;
|
|
266
375
|
interface SetTemplateExpiryFeeMaxMultiplierArguments {
|
|
267
376
|
config?: RawTransactionArgument<string>;
|
|
268
377
|
AdminCap: RawTransactionArgument<string>;
|
|
@@ -277,7 +386,7 @@ interface SetTemplateExpiryFeeMaxMultiplierOptions {
|
|
|
277
386
|
};
|
|
278
387
|
}
|
|
279
388
|
/** Set the expiry-fee max multiplier snapshotted by newly created expiry markets. */
|
|
280
|
-
declare function setTemplateExpiryFeeMaxMultiplier(options: SetTemplateExpiryFeeMaxMultiplierOptions): (tx: Transaction) =>
|
|
389
|
+
declare function setTemplateExpiryFeeMaxMultiplier(options: SetTemplateExpiryFeeMaxMultiplierOptions): (tx: Transaction) => _mysten_sui_transactions477.TransactionResult;
|
|
281
390
|
interface SetTemplateBackingBufferLambdaArguments {
|
|
282
391
|
config?: RawTransactionArgument<string>;
|
|
283
392
|
AdminCap: RawTransactionArgument<string>;
|
|
@@ -292,7 +401,7 @@ interface SetTemplateBackingBufferLambdaOptions {
|
|
|
292
401
|
};
|
|
293
402
|
}
|
|
294
403
|
/** Set the backing-buffer lambda snapshotted by newly created expiry markets. */
|
|
295
|
-
declare function setTemplateBackingBufferLambda(options: SetTemplateBackingBufferLambdaOptions): (tx: Transaction) =>
|
|
404
|
+
declare function setTemplateBackingBufferLambda(options: SetTemplateBackingBufferLambdaOptions): (tx: Transaction) => _mysten_sui_transactions477.TransactionResult;
|
|
296
405
|
interface SetTemplateInventoryImpactMaxRateArguments {
|
|
297
406
|
config?: RawTransactionArgument<string>;
|
|
298
407
|
AdminCap: RawTransactionArgument<string>;
|
|
@@ -310,7 +419,7 @@ interface SetTemplateInventoryImpactMaxRateOptions {
|
|
|
310
419
|
* Set the maximum marginal inventory-impact rate snapshotted by newly created
|
|
311
420
|
* expiry markets. `0` (the default) disables both charges and rebates.
|
|
312
421
|
*/
|
|
313
|
-
declare function setTemplateInventoryImpactMaxRate(options: SetTemplateInventoryImpactMaxRateOptions): (tx: Transaction) =>
|
|
422
|
+
declare function setTemplateInventoryImpactMaxRate(options: SetTemplateInventoryImpactMaxRateOptions): (tx: Transaction) => _mysten_sui_transactions477.TransactionResult;
|
|
314
423
|
interface SetTemplateMinEntryProbabilityArguments {
|
|
315
424
|
config?: RawTransactionArgument<string>;
|
|
316
425
|
AdminCap: RawTransactionArgument<string>;
|
|
@@ -328,7 +437,7 @@ interface SetTemplateMinEntryProbabilityOptions {
|
|
|
328
437
|
* Set the minimum raw entry probability snapshotted by newly created expiry
|
|
329
438
|
* markets.
|
|
330
439
|
*/
|
|
331
|
-
declare function setTemplateMinEntryProbability(options: SetTemplateMinEntryProbabilityOptions): (tx: Transaction) =>
|
|
440
|
+
declare function setTemplateMinEntryProbability(options: SetTemplateMinEntryProbabilityOptions): (tx: Transaction) => _mysten_sui_transactions477.TransactionResult;
|
|
332
441
|
interface SetTemplateMaxEntryProbabilityArguments {
|
|
333
442
|
config?: RawTransactionArgument<string>;
|
|
334
443
|
AdminCap: RawTransactionArgument<string>;
|
|
@@ -346,7 +455,7 @@ interface SetTemplateMaxEntryProbabilityOptions {
|
|
|
346
455
|
* Set the maximum raw entry probability snapshotted by newly created expiry
|
|
347
456
|
* markets.
|
|
348
457
|
*/
|
|
349
|
-
declare function setTemplateMaxEntryProbability(options: SetTemplateMaxEntryProbabilityOptions): (tx: Transaction) =>
|
|
458
|
+
declare function setTemplateMaxEntryProbability(options: SetTemplateMaxEntryProbabilityOptions): (tx: Transaction) => _mysten_sui_transactions477.TransactionResult;
|
|
350
459
|
interface SetUsePythSpotForForwardArguments {
|
|
351
460
|
config?: RawTransactionArgument<string>;
|
|
352
461
|
AdminCap: RawTransactionArgument<string>;
|
|
@@ -364,9 +473,11 @@ interface SetUsePythSpotForForwardOptions {
|
|
|
364
473
|
* Select which source the live forward is built from: `true` carries the Block
|
|
365
474
|
* Scholes basis on a fresh Pyth spot, `false` uses the Block Scholes forward
|
|
366
475
|
* directly. Locked during valuation so one flush marks every market on one
|
|
367
|
-
* formula.
|
|
476
|
+
* formula. Clearing it also lifts the live-trade Pyth freshness requirement
|
|
477
|
+
* (`pricing::assert_pyth_spot_fresh`), which is the way to keep mints and live
|
|
478
|
+
* redeems open through a Pyth outage once no valuation is in flight.
|
|
368
479
|
*/
|
|
369
|
-
declare function setUsePythSpotForForward(options: SetUsePythSpotForForwardOptions): (tx: Transaction) =>
|
|
480
|
+
declare function setUsePythSpotForForward(options: SetUsePythSpotForForwardOptions): (tx: Transaction) => _mysten_sui_transactions477.TransactionResult;
|
|
370
481
|
interface SetPythSpotFreshnessMsArguments {
|
|
371
482
|
config?: RawTransactionArgument<string>;
|
|
372
483
|
AdminCap: RawTransactionArgument<string>;
|
|
@@ -380,8 +491,16 @@ interface SetPythSpotFreshnessMsOptions {
|
|
|
380
491
|
predictPackageId?: string;
|
|
381
492
|
};
|
|
382
493
|
}
|
|
383
|
-
/**
|
|
384
|
-
|
|
494
|
+
/**
|
|
495
|
+
* Set the live Pyth spot freshness threshold. While `use_pyth_spot_for_forward` is
|
|
496
|
+
* set, a Pyth spot older than this makes valuation price off the Block Scholes
|
|
497
|
+
* forward and makes every mint, mint quote, and live redeem abort
|
|
498
|
+
* `pricing::EPythSpotStale`, so tightening it rejects more live trades and
|
|
499
|
+
* widening it admits older Pyth spots. A window shorter than the time a Pyth
|
|
500
|
+
* update takes to land halts live trading. Locked during valuation, like the
|
|
501
|
+
* source selector.
|
|
502
|
+
*/
|
|
503
|
+
declare function setPythSpotFreshnessMs(options: SetPythSpotFreshnessMsOptions): (tx: Transaction) => _mysten_sui_transactions477.TransactionResult;
|
|
385
504
|
interface SetBlockScholesPriceFreshnessMsArguments {
|
|
386
505
|
config?: RawTransactionArgument<string>;
|
|
387
506
|
AdminCap: RawTransactionArgument<string>;
|
|
@@ -396,7 +515,7 @@ interface SetBlockScholesPriceFreshnessMsOptions {
|
|
|
396
515
|
};
|
|
397
516
|
}
|
|
398
517
|
/** Set the live Block Scholes spot/forward freshness threshold. */
|
|
399
|
-
declare function setBlockScholesPriceFreshnessMs(options: SetBlockScholesPriceFreshnessMsOptions): (tx: Transaction) =>
|
|
518
|
+
declare function setBlockScholesPriceFreshnessMs(options: SetBlockScholesPriceFreshnessMsOptions): (tx: Transaction) => _mysten_sui_transactions477.TransactionResult;
|
|
400
519
|
interface SetBlockScholesSviFreshnessMsArguments {
|
|
401
520
|
config?: RawTransactionArgument<string>;
|
|
402
521
|
AdminCap: RawTransactionArgument<string>;
|
|
@@ -411,7 +530,7 @@ interface SetBlockScholesSviFreshnessMsOptions {
|
|
|
411
530
|
};
|
|
412
531
|
}
|
|
413
532
|
/** Set the live Block Scholes SVI freshness threshold. */
|
|
414
|
-
declare function setBlockScholesSviFreshnessMs(options: SetBlockScholesSviFreshnessMsOptions): (tx: Transaction) =>
|
|
533
|
+
declare function setBlockScholesSviFreshnessMs(options: SetBlockScholesSviFreshnessMsOptions): (tx: Transaction) => _mysten_sui_transactions477.TransactionResult;
|
|
415
534
|
interface SetLpRequestLimitFlushAttemptsArguments {
|
|
416
535
|
config?: RawTransactionArgument<string>;
|
|
417
536
|
AdminCap: RawTransactionArgument<string>;
|
|
@@ -431,7 +550,7 @@ interface SetLpRequestLimitFlushAttemptsOptions {
|
|
|
431
550
|
* the head across flushes, which stops that queue each time it misses — see RP-12
|
|
432
551
|
* for the liveness cost that buys.
|
|
433
552
|
*/
|
|
434
|
-
declare function setLpRequestLimitFlushAttempts(options: SetLpRequestLimitFlushAttemptsOptions): (tx: Transaction) =>
|
|
553
|
+
declare function setLpRequestLimitFlushAttempts(options: SetLpRequestLimitFlushAttemptsOptions): (tx: Transaction) => _mysten_sui_transactions477.TransactionResult;
|
|
435
554
|
interface SetMaxValuationWindowMsArguments {
|
|
436
555
|
config?: RawTransactionArgument<string>;
|
|
437
556
|
AdminCap: RawTransactionArgument<string>;
|
|
@@ -453,7 +572,7 @@ interface SetMaxValuationWindowMsOptions {
|
|
|
453
572
|
* too long and an abandoned one delays queued LP fills for that duration. See
|
|
454
573
|
* RP-29.
|
|
455
574
|
*/
|
|
456
|
-
declare function setMaxValuationWindowMs(options: SetMaxValuationWindowMsOptions): (tx: Transaction) =>
|
|
575
|
+
declare function setMaxValuationWindowMs(options: SetMaxValuationWindowMsOptions): (tx: Transaction) => _mysten_sui_transactions477.TransactionResult;
|
|
457
576
|
interface SetMaxLpPoolValueArguments {
|
|
458
577
|
config?: RawTransactionArgument<string>;
|
|
459
578
|
AdminCap: RawTransactionArgument<string>;
|
|
@@ -474,13 +593,13 @@ interface SetMaxLpPoolValueOptions {
|
|
|
474
593
|
* unaffected, so lowering this below current pool value closes the pool to new
|
|
475
594
|
* capital rather than forcing anyone out.
|
|
476
595
|
*/
|
|
477
|
-
declare function setMaxLpPoolValue(options: SetMaxLpPoolValueOptions): (tx: Transaction) =>
|
|
596
|
+
declare function setMaxLpPoolValue(options: SetMaxLpPoolValueOptions): (tx: Transaction) => _mysten_sui_transactions477.TransactionResult;
|
|
478
597
|
interface SetEwmaParamsArguments {
|
|
479
|
-
|
|
598
|
+
Config?: RawTransactionArgument<string>;
|
|
480
599
|
AdminCap: RawTransactionArgument<string>;
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
600
|
+
Alpha: RawTransactionArgument<number | bigint>;
|
|
601
|
+
ZScoreThreshold: RawTransactionArgument<number | bigint>;
|
|
602
|
+
PenaltyRate: RawTransactionArgument<number | bigint>;
|
|
484
603
|
}
|
|
485
604
|
interface SetEwmaParamsOptions {
|
|
486
605
|
package?: string;
|
|
@@ -490,12 +609,10 @@ interface SetEwmaParamsOptions {
|
|
|
490
609
|
predictPackageId?: string;
|
|
491
610
|
};
|
|
492
611
|
}
|
|
493
|
-
/** Set the EWMA gas-price penalty parameters. */
|
|
494
|
-
declare function setEwmaParams(options: SetEwmaParamsOptions): (tx: Transaction) => _mysten_sui_transactions256.TransactionResult;
|
|
495
612
|
interface SetEwmaEnabledArguments {
|
|
496
|
-
|
|
613
|
+
Config?: RawTransactionArgument<string>;
|
|
497
614
|
AdminCap: RawTransactionArgument<string>;
|
|
498
|
-
|
|
615
|
+
Enabled: RawTransactionArgument<boolean>;
|
|
499
616
|
}
|
|
500
617
|
interface SetEwmaEnabledOptions {
|
|
501
618
|
package?: string;
|
|
@@ -505,8 +622,6 @@ interface SetEwmaEnabledOptions {
|
|
|
505
622
|
predictPackageId?: string;
|
|
506
623
|
};
|
|
507
624
|
}
|
|
508
|
-
/** Enable or disable the EWMA gas-price penalty. */
|
|
509
|
-
declare function setEwmaEnabled(options: SetEwmaEnabledOptions): (tx: Transaction) => _mysten_sui_transactions256.TransactionResult;
|
|
510
625
|
interface SetNoTradeWindowMsArguments {
|
|
511
626
|
config?: RawTransactionArgument<string>;
|
|
512
627
|
AdminCap: RawTransactionArgument<string>;
|
|
@@ -525,12 +640,11 @@ interface SetNoTradeWindowMsOptions {
|
|
|
525
640
|
* abort. `0` disables the block. Read live at trade time, so a change applies to
|
|
526
641
|
* markets already trading and stays available as an incident control.
|
|
527
642
|
*
|
|
528
|
-
* Deliberately not gated on `
|
|
529
|
-
*
|
|
530
|
-
*
|
|
531
|
-
* frozen mark.
|
|
643
|
+
* Deliberately not gated on `chk_no_val`, matching `set_trading_paused`: a stalled
|
|
644
|
+
* flush must not be able to trap a safety control. Nothing in the flush reads this
|
|
645
|
+
* value, so a mid-valuation change cannot skew a frozen mark.
|
|
532
646
|
*/
|
|
533
|
-
declare function setNoTradeWindowMs(options: SetNoTradeWindowMsOptions): (tx: Transaction) =>
|
|
647
|
+
declare function setNoTradeWindowMs(options: SetNoTradeWindowMsOptions): (tx: Transaction) => _mysten_sui_transactions477.TransactionResult;
|
|
534
648
|
interface SetTradingPausedArguments {
|
|
535
649
|
config?: RawTransactionArgument<string>;
|
|
536
650
|
AdminCap: RawTransactionArgument<string>;
|
|
@@ -545,7 +659,7 @@ interface SetTradingPausedOptions {
|
|
|
545
659
|
};
|
|
546
660
|
}
|
|
547
661
|
/** Set whether trading is paused. */
|
|
548
|
-
declare function setTradingPaused(options: SetTradingPausedOptions): (tx: Transaction) =>
|
|
662
|
+
declare function setTradingPaused(options: SetTradingPausedOptions): (tx: Transaction) => _mysten_sui_transactions477.TransactionResult;
|
|
549
663
|
interface SetFrozenArguments {
|
|
550
664
|
config?: RawTransactionArgument<string>;
|
|
551
665
|
AdminCap: RawTransactionArgument<string>;
|
|
@@ -563,10 +677,112 @@ interface SetFrozenOptions {
|
|
|
563
677
|
* Set the protocol-wide emergency freeze.
|
|
564
678
|
*
|
|
565
679
|
* Intentionally NOT version-gated, unlike every other admin setter: the freeze
|
|
566
|
-
* gate lives inside `
|
|
680
|
+
* gate lives inside `chk_version`, so routing this through it would make an
|
|
567
681
|
* engaged freeze unclearable without a package upgrade — defeating the point.
|
|
568
682
|
*/
|
|
569
|
-
declare function setFrozen(options: SetFrozenOptions): (tx: Transaction) =>
|
|
683
|
+
declare function setFrozen(options: SetFrozenOptions): (tx: Transaction) => _mysten_sui_transactions477.TransactionResult;
|
|
684
|
+
interface AddSettledRedeemKeeperArguments {
|
|
685
|
+
config?: RawTransactionArgument<string>;
|
|
686
|
+
AdminCap: RawTransactionArgument<string>;
|
|
687
|
+
keeper: RawTransactionArgument<string>;
|
|
688
|
+
}
|
|
689
|
+
interface AddSettledRedeemKeeperOptions {
|
|
690
|
+
package?: string;
|
|
691
|
+
arguments: AddSettledRedeemKeeperArguments;
|
|
692
|
+
config?: {
|
|
693
|
+
protocolConfig: ConfigValue;
|
|
694
|
+
predictPackageId?: string;
|
|
695
|
+
};
|
|
696
|
+
}
|
|
697
|
+
/**
|
|
698
|
+
* Allow `keeper` to call `expiry_market::redeem_settled_permissionless`.
|
|
699
|
+
* Admin-only and version-gated. Aborts if `keeper` is already allowed.
|
|
700
|
+
*/
|
|
701
|
+
declare function addSettledRedeemKeeper(options: AddSettledRedeemKeeperOptions): (tx: Transaction) => _mysten_sui_transactions477.TransactionResult;
|
|
702
|
+
interface RemoveSettledRedeemKeeperArguments {
|
|
703
|
+
config?: RawTransactionArgument<string>;
|
|
704
|
+
AdminCap: RawTransactionArgument<string>;
|
|
705
|
+
keeper: RawTransactionArgument<string>;
|
|
706
|
+
}
|
|
707
|
+
interface RemoveSettledRedeemKeeperOptions {
|
|
708
|
+
package?: string;
|
|
709
|
+
arguments: RemoveSettledRedeemKeeperArguments;
|
|
710
|
+
config?: {
|
|
711
|
+
protocolConfig: ConfigValue;
|
|
712
|
+
predictPackageId?: string;
|
|
713
|
+
};
|
|
714
|
+
}
|
|
715
|
+
/**
|
|
716
|
+
* Revoke `keeper`'s access to `expiry_market::redeem_settled_permissionless`.
|
|
717
|
+
* Admin-only. Bypasses the version gate, like the registry's cap revocations, so
|
|
718
|
+
* revocation stays available under the emergency freeze and from a package version
|
|
719
|
+
* below the runtime floor. Aborts if `keeper` is not allowed.
|
|
720
|
+
*/
|
|
721
|
+
declare function removeSettledRedeemKeeper(options: RemoveSettledRedeemKeeperOptions): (tx: Transaction) => _mysten_sui_transactions477.TransactionResult;
|
|
722
|
+
interface AddFlushOperatorArguments {
|
|
723
|
+
config?: RawTransactionArgument<string>;
|
|
724
|
+
AdminCap: RawTransactionArgument<string>;
|
|
725
|
+
operator: RawTransactionArgument<string>;
|
|
726
|
+
}
|
|
727
|
+
interface AddFlushOperatorOptions {
|
|
728
|
+
package?: string;
|
|
729
|
+
arguments: AddFlushOperatorArguments;
|
|
730
|
+
config?: {
|
|
731
|
+
protocolConfig: ConfigValue;
|
|
732
|
+
predictPackageId?: string;
|
|
733
|
+
};
|
|
734
|
+
}
|
|
735
|
+
/**
|
|
736
|
+
* Allow `operator` to call `plp::finish_flush`. Admin-only and version-gated;
|
|
737
|
+
* aborts if `operator` is already allowed. Not gated on an open LP valuation, so
|
|
738
|
+
* an admin can always add an operator to finish a stuck flush.
|
|
739
|
+
*/
|
|
740
|
+
declare function addFlushOperator(options: AddFlushOperatorOptions): (tx: Transaction) => _mysten_sui_transactions477.TransactionResult;
|
|
741
|
+
interface RemoveFlushOperatorArguments {
|
|
742
|
+
config?: RawTransactionArgument<string>;
|
|
743
|
+
AdminCap: RawTransactionArgument<string>;
|
|
744
|
+
operator: RawTransactionArgument<string>;
|
|
745
|
+
}
|
|
746
|
+
interface RemoveFlushOperatorOptions {
|
|
747
|
+
package?: string;
|
|
748
|
+
arguments: RemoveFlushOperatorArguments;
|
|
749
|
+
config?: {
|
|
750
|
+
protocolConfig: ConfigValue;
|
|
751
|
+
predictPackageId?: string;
|
|
752
|
+
};
|
|
753
|
+
}
|
|
754
|
+
/**
|
|
755
|
+
* Revoke `operator`'s access to `plp::finish_flush`. Admin-only. Bypasses the
|
|
756
|
+
* version gate, like `remove_settled_redeem_keeper`, so revocation stays available
|
|
757
|
+
* under the emergency freeze and from a package version below the runtime floor.
|
|
758
|
+
* Aborts if `operator` is not allowed.
|
|
759
|
+
*/
|
|
760
|
+
declare function removeFlushOperator(options: RemoveFlushOperatorOptions): (tx: Transaction) => _mysten_sui_transactions477.TransactionResult;
|
|
761
|
+
interface SetOrderFlowArguments {
|
|
762
|
+
config?: RawTransactionArgument<string>;
|
|
763
|
+
AdminCap: RawTransactionArgument<string>;
|
|
764
|
+
enabled: RawTransactionArgument<boolean>;
|
|
765
|
+
}
|
|
766
|
+
interface SetOrderFlowOptions {
|
|
767
|
+
package?: string;
|
|
768
|
+
arguments: SetOrderFlowArguments;
|
|
769
|
+
config?: {
|
|
770
|
+
protocolConfig: ConfigValue;
|
|
771
|
+
predictPackageId?: string;
|
|
772
|
+
};
|
|
773
|
+
typeArguments: [string];
|
|
774
|
+
}
|
|
775
|
+
/**
|
|
776
|
+
* Allowlist (`enabled = true`) or remove the witness type `W` of an order-flow
|
|
777
|
+
* companion for Predict's order-flow primitives. Removing it stops admissions,
|
|
778
|
+
* commits, and fills only: `release` and `try_pay_settled` need a receipt, not the
|
|
779
|
+
* allowlist, so waiting orders still drain and queue-held positions are still
|
|
780
|
+
* paid. Admin-only. Enabling is version-gated, since it grants authority; removing
|
|
781
|
+
* is ungated, like `remove_flush_operator`, so it works under the emergency freeze
|
|
782
|
+
* and from a package version below the runtime floor. Setting the state `W`
|
|
783
|
+
* already has changes nothing but still emits `OrderFlowUpdated`.
|
|
784
|
+
*/
|
|
785
|
+
declare function setOrderFlow(options: SetOrderFlowOptions): (tx: Transaction) => _mysten_sui_transactions477.TransactionResult;
|
|
570
786
|
interface BumpVersionWatermarkArguments {
|
|
571
787
|
config?: RawTransactionArgument<string>;
|
|
572
788
|
AdminCap: RawTransactionArgument<string>;
|
|
@@ -586,7 +802,7 @@ interface BumpVersionWatermarkOptions {
|
|
|
586
802
|
* ungated so an upgraded package can retire older versions; it aborts unless the
|
|
587
803
|
* executing version is strictly greater than the existing floor.
|
|
588
804
|
*/
|
|
589
|
-
declare function bumpVersionWatermark(options: BumpVersionWatermarkOptions): (tx: Transaction) =>
|
|
805
|
+
declare function bumpVersionWatermark(options: BumpVersionWatermarkOptions): (tx: Transaction) => _mysten_sui_transactions477.TransactionResult;
|
|
590
806
|
interface SetProtocolReserveProfitShareArguments {
|
|
591
807
|
config?: RawTransactionArgument<string>;
|
|
592
808
|
AdminCap: RawTransactionArgument<string>;
|
|
@@ -604,7 +820,7 @@ interface SetProtocolReserveProfitShareOptions {
|
|
|
604
820
|
* Set the protocol reserve profit share used when materializing aggregate expiry
|
|
605
821
|
* profit. Admin-gated; validated against its config-constants envelope.
|
|
606
822
|
*/
|
|
607
|
-
declare function setProtocolReserveProfitShare(options: SetProtocolReserveProfitShareOptions): (tx: Transaction) =>
|
|
823
|
+
declare function setProtocolReserveProfitShare(options: SetProtocolReserveProfitShareOptions): (tx: Transaction) => _mysten_sui_transactions477.TransactionResult;
|
|
608
824
|
interface SetReferralFeeRateArguments {
|
|
609
825
|
config?: RawTransactionArgument<string>;
|
|
610
826
|
AdminCap: RawTransactionArgument<string>;
|
|
@@ -622,7 +838,99 @@ interface SetReferralFeeRateOptions {
|
|
|
622
838
|
* Set the portion of referred mint fees routed to the referrer. The new rate
|
|
623
839
|
* applies to subsequent mints without changing their all-in account withdrawal.
|
|
624
840
|
*/
|
|
625
|
-
declare function setReferralFeeRate(options: SetReferralFeeRateOptions): (tx: Transaction) =>
|
|
841
|
+
declare function setReferralFeeRate(options: SetReferralFeeRateOptions): (tx: Transaction) => _mysten_sui_transactions477.TransactionResult;
|
|
842
|
+
interface SetFeeIncentiveSubsidyRateArguments {
|
|
843
|
+
config?: RawTransactionArgument<string>;
|
|
844
|
+
AdminCap: RawTransactionArgument<string>;
|
|
845
|
+
rate: RawTransactionArgument<number | bigint>;
|
|
846
|
+
}
|
|
847
|
+
interface SetFeeIncentiveSubsidyRateOptions {
|
|
848
|
+
package?: string;
|
|
849
|
+
arguments: SetFeeIncentiveSubsidyRateArguments;
|
|
850
|
+
config?: {
|
|
851
|
+
protocolConfig: ConfigValue;
|
|
852
|
+
predictPackageId?: string;
|
|
853
|
+
};
|
|
854
|
+
}
|
|
855
|
+
/**
|
|
856
|
+
* Set the fraction of each mint's trading fee paid from the market's
|
|
857
|
+
* sponsor-funded fee-incentive balance. Read live at mint time, so the new rate
|
|
858
|
+
* applies to the next mint on every market, including markets already trading; `0`
|
|
859
|
+
* stops incentives from being spent without moving them. The subsidy never changes
|
|
860
|
+
* the trading fee charged, only how much of it the trader pays; on a referred mint
|
|
861
|
+
* the referral is computed on the trader-paid part, so a higher rate also shrinks
|
|
862
|
+
* the referral.
|
|
863
|
+
*
|
|
864
|
+
* Binds every mint only once the version watermark has retired package versions
|
|
865
|
+
* older than 4: those compiled in a fixed 20% and never read this rate, so until
|
|
866
|
+
* then a mint routed through one still draws 20% from the market's balance. A zero
|
|
867
|
+
* rate does not stop `rebalance_expiry_cash` allocating the pool reserve into
|
|
868
|
+
* markets; to wind incentives down, also withdraw the reserve
|
|
869
|
+
* (`plp::withdraw_fee_incentives`), or, once the watermark has retired versions
|
|
870
|
+
* older than 4, set the live target rate to zero, which keeps the reserve in the
|
|
871
|
+
* pool.
|
|
872
|
+
*
|
|
873
|
+
* Not gated on the valuation flag, matching `set_referral_fee_rate`: nothing in
|
|
874
|
+
* the flush reads this rate, and a mint that consumes a subsidy mid-flush lands
|
|
875
|
+
* after the snapshot captured that market's cash, so it cannot reach the frozen
|
|
876
|
+
* mark.
|
|
877
|
+
*/
|
|
878
|
+
declare function setFeeIncentiveSubsidyRate(options: SetFeeIncentiveSubsidyRateOptions): (tx: Transaction) => _mysten_sui_transactions477.TransactionResult;
|
|
879
|
+
interface SetFeeIncentiveLiveTargetRateArguments {
|
|
880
|
+
config?: RawTransactionArgument<string>;
|
|
881
|
+
AdminCap: RawTransactionArgument<string>;
|
|
882
|
+
rate: RawTransactionArgument<number | bigint>;
|
|
883
|
+
}
|
|
884
|
+
interface SetFeeIncentiveLiveTargetRateOptions {
|
|
885
|
+
package?: string;
|
|
886
|
+
arguments: SetFeeIncentiveLiveTargetRateArguments;
|
|
887
|
+
config?: {
|
|
888
|
+
protocolConfig: ConfigValue;
|
|
889
|
+
predictPackageId?: string;
|
|
890
|
+
};
|
|
891
|
+
}
|
|
892
|
+
/**
|
|
893
|
+
* Set the share of an expiry's allocation cap each live rebalance tops its
|
|
894
|
+
* sponsor-funded fee-incentive balance up to. Read at every rebalance, so it
|
|
895
|
+
* applies to markets already trading. Lowering it never claws back a balance
|
|
896
|
+
* already allocated: a market above the new target receives nothing more until it
|
|
897
|
+
* spends below it. `0` stops the pool reserve being allocated to markets, so it
|
|
898
|
+
* stays in the pool and withdrawable. It may exceed a market's lifetime cap: the
|
|
899
|
+
* cap still bounds what the market receives, so the target is not checked against
|
|
900
|
+
* the lifetime cap rate.
|
|
901
|
+
*
|
|
902
|
+
* Binds every rebalance only once the version watermark has retired package
|
|
903
|
+
* versions older than 4: `rebalance_expiry_cash` is permissionless, and those
|
|
904
|
+
* versions top a market up to a fixed 2% whatever this is set to. Not gated on the
|
|
905
|
+
* valuation flag: the flush never reads it, and the reserve and market incentive
|
|
906
|
+
* balances it moves between are outside PLP NAV.
|
|
907
|
+
*/
|
|
908
|
+
declare function setFeeIncentiveLiveTargetRate(options: SetFeeIncentiveLiveTargetRateOptions): (tx: Transaction) => _mysten_sui_transactions477.TransactionResult;
|
|
909
|
+
interface SetTemplateFeeIncentiveLifetimeCapRateArguments {
|
|
910
|
+
config?: RawTransactionArgument<string>;
|
|
911
|
+
AdminCap: RawTransactionArgument<string>;
|
|
912
|
+
rate: RawTransactionArgument<number | bigint>;
|
|
913
|
+
}
|
|
914
|
+
interface SetTemplateFeeIncentiveLifetimeCapRateOptions {
|
|
915
|
+
package?: string;
|
|
916
|
+
arguments: SetTemplateFeeIncentiveLifetimeCapRateArguments;
|
|
917
|
+
config?: {
|
|
918
|
+
protocolConfig: ConfigValue;
|
|
919
|
+
predictPackageId?: string;
|
|
920
|
+
};
|
|
921
|
+
}
|
|
922
|
+
/**
|
|
923
|
+
* Set the share of an expiry's allocation cap it may receive in sponsor-funded fee
|
|
924
|
+
* incentives over its life. Snapshotted into each expiry's pool accounting row
|
|
925
|
+
* when the market is created, so markets already created keep the cap they were
|
|
926
|
+
* created with, and `vault_events::FeeIncentiveLifetimeCapSnapshotted` reports
|
|
927
|
+
* each market's cap.
|
|
928
|
+
*
|
|
929
|
+
* Binds market creation only once the version watermark has retired package
|
|
930
|
+
* versions older than 4, which snapshot a fixed 10% whatever this is set to. Not
|
|
931
|
+
* gated on the valuation flag, for the same reason as the live target rate.
|
|
932
|
+
*/
|
|
933
|
+
declare function setTemplateFeeIncentiveLifetimeCapRate(options: SetTemplateFeeIncentiveLifetimeCapRateOptions): (tx: Transaction) => _mysten_sui_transactions477.TransactionResult;
|
|
626
934
|
interface SetPlpSupplyFeeRateArguments {
|
|
627
935
|
config?: RawTransactionArgument<string>;
|
|
628
936
|
AdminCap: RawTransactionArgument<string>;
|
|
@@ -641,7 +949,7 @@ interface SetPlpSupplyFeeRateOptions {
|
|
|
641
949
|
* against its config-constants envelope. Locked during valuation so the rate a
|
|
642
950
|
* flush froze into its mark cannot change midway through that flush.
|
|
643
951
|
*/
|
|
644
|
-
declare function setPlpSupplyFeeRate(options: SetPlpSupplyFeeRateOptions): (tx: Transaction) =>
|
|
952
|
+
declare function setPlpSupplyFeeRate(options: SetPlpSupplyFeeRateOptions): (tx: Transaction) => _mysten_sui_transactions477.TransactionResult;
|
|
645
953
|
interface SetPlpWithdrawFeeRateArguments {
|
|
646
954
|
config?: RawTransactionArgument<string>;
|
|
647
955
|
AdminCap: RawTransactionArgument<string>;
|
|
@@ -659,7 +967,7 @@ interface SetPlpWithdrawFeeRateOptions {
|
|
|
659
967
|
* Set the fee charged on executed PLP withdraw fills. Same gating as the supply
|
|
660
968
|
* leg; the two are independent so the exit charge can move without taxing entry.
|
|
661
969
|
*/
|
|
662
|
-
declare function setPlpWithdrawFeeRate(options: SetPlpWithdrawFeeRateOptions): (tx: Transaction) =>
|
|
970
|
+
declare function setPlpWithdrawFeeRate(options: SetPlpWithdrawFeeRateOptions): (tx: Transaction) => _mysten_sui_transactions477.TransactionResult;
|
|
663
971
|
//#endregion
|
|
664
|
-
export {
|
|
972
|
+
export { AddFlushOperatorArguments, AddFlushOperatorOptions, AddSettledRedeemKeeperArguments, AddSettledRedeemKeeperOptions, BumpVersionWatermarkArguments, BumpVersionWatermarkOptions, FeeIncentiveLifetimeCapRateArguments, FeeIncentiveLifetimeCapRateKey, FeeIncentiveLifetimeCapRateOptions, FeeIncentiveLiveTargetRateArguments, FeeIncentiveLiveTargetRateKey, FeeIncentiveLiveTargetRateOptions, FeeIncentiveSubsidyRateArguments, FeeIncentiveSubsidyRateKey, FeeIncentiveSubsidyRateOptions, FlushOperatorsKey, FrozenArguments, FrozenOptions, IdArguments, IdOptions, IsFlushOperatorArguments, IsFlushOperatorOptions, IsOrderFlowArguments, IsOrderFlowOptions, NoTradeWindowMsArguments, NoTradeWindowMsOptions, OrderFlowKey, ProtocolConfig, ReferralFeeRateArguments, ReferralFeeRateOptions, RemoveFlushOperatorArguments, RemoveFlushOperatorOptions, RemoveSettledRedeemKeeperArguments, RemoveSettledRedeemKeeperOptions, SetBlockScholesPriceFreshnessMsArguments, SetBlockScholesPriceFreshnessMsOptions, SetBlockScholesSviFreshnessMsArguments, SetBlockScholesSviFreshnessMsOptions, SetEwmaEnabledOptions, SetEwmaParamsOptions, SetFeeIncentiveLiveTargetRateArguments, SetFeeIncentiveLiveTargetRateOptions, SetFeeIncentiveSubsidyRateArguments, SetFeeIncentiveSubsidyRateOptions, SetFrozenArguments, SetFrozenOptions, SetLpRequestLimitFlushAttemptsArguments, SetLpRequestLimitFlushAttemptsOptions, SetMaxLpPoolValueArguments, SetMaxLpPoolValueOptions, SetMaxValuationWindowMsArguments, SetMaxValuationWindowMsOptions, SetNoTradeWindowMsArguments, SetNoTradeWindowMsOptions, SetOrderFlowArguments, SetOrderFlowOptions, SetPlpSupplyFeeRateArguments, SetPlpSupplyFeeRateOptions, SetPlpWithdrawFeeRateArguments, SetPlpWithdrawFeeRateOptions, SetProtocolReserveProfitShareArguments, SetProtocolReserveProfitShareOptions, SetPythSpotFreshnessMsArguments, SetPythSpotFreshnessMsOptions, SetReferralFeeRateArguments, SetReferralFeeRateOptions, SetTemplateBackingBufferLambdaArguments, SetTemplateBackingBufferLambdaOptions, SetTemplateBaseFeeArguments, SetTemplateBaseFeeOptions, SetTemplateExpiryFeeMaxMultiplierArguments, SetTemplateExpiryFeeMaxMultiplierOptions, SetTemplateExpiryFeeWindowMsArguments, SetTemplateExpiryFeeWindowMsOptions, SetTemplateFeeIncentiveLifetimeCapRateArguments, SetTemplateFeeIncentiveLifetimeCapRateOptions, SetTemplateInventoryImpactMaxRateArguments, SetTemplateInventoryImpactMaxRateOptions, SetTemplateMaxEntryProbabilityArguments, SetTemplateMaxEntryProbabilityOptions, SetTemplateMinEntryProbabilityArguments, SetTemplateMinEntryProbabilityOptions, SetTemplateMinFeeArguments, SetTemplateMinFeeOptions, SetTradingPausedArguments, SetTradingPausedOptions, SetUsePythSpotForForwardArguments, SetUsePythSpotForForwardOptions, SettledRedeemKeepersKey, TradingPausedArguments, TradingPausedOptions, ValuationInProgressArguments, ValuationInProgressOptions, VersionWatermarkArguments, VersionWatermarkOptions, addFlushOperator, addSettledRedeemKeeper, bumpVersionWatermark, feeIncentiveLifetimeCapRate, feeIncentiveLiveTargetRate, feeIncentiveSubsidyRate, frozen, id, isFlushOperator, isOrderFlow, noTradeWindowMs, referralFeeRate, removeFlushOperator, removeSettledRedeemKeeper, setBlockScholesPriceFreshnessMs, setBlockScholesSviFreshnessMs, setFeeIncentiveLiveTargetRate, setFeeIncentiveSubsidyRate, setFrozen, setLpRequestLimitFlushAttempts, setMaxLpPoolValue, setMaxValuationWindowMs, setNoTradeWindowMs, setOrderFlow, setPlpSupplyFeeRate, setPlpWithdrawFeeRate, setProtocolReserveProfitShare, setPythSpotFreshnessMs, setReferralFeeRate, setTemplateBackingBufferLambda, setTemplateBaseFee, setTemplateExpiryFeeMaxMultiplier, setTemplateExpiryFeeWindowMs, setTemplateFeeIncentiveLifetimeCapRate, setTemplateInventoryImpactMaxRate, setTemplateMaxEntryProbability, setTemplateMinEntryProbability, setTemplateMinFee, setTradingPaused, setUsePythSpotForForward, tradingPaused, valuationInProgress, versionWatermark };
|
|
665
973
|
//# sourceMappingURL=protocol_config.d.mts.map
|