import { ConfigValue, MoveStruct, MoveTuple, RawTransactionArgument } from "../utils/index.mjs"; import * as _mysten_sui_bcs839 from "@mysten/sui/bcs"; import * as _mysten_sui_transactions558 from "@mysten/sui/transactions"; import { Transaction } from "@mysten/sui/transactions"; //#region src/contracts/deepbook_predict/protocol_config.d.ts declare const ProtocolConfig: MoveStruct<{ id: _mysten_sui_bcs839.BcsType, "bytes[32]">; pricing_config: MoveStruct<{ use_pyth_spot_for_forward: _mysten_sui_bcs839.BcsType; pyth_spot_freshness_ms: _mysten_sui_bcs839.BcsType; block_scholes_price_freshness_ms: _mysten_sui_bcs839.BcsType; block_scholes_svi_freshness_ms: _mysten_sui_bcs839.BcsType; }, "@local-pkg/deepbook_predict::pricing_config::PricingConfig">; /** * Merged protocol + insurance reserve share of materialized terminal profit, in * FLOAT_SCALING. The complement accrues to LPs. */ protocol_reserve_profit_share: _mysten_sui_bcs839.BcsType; /** * Portion of a referred mint's trader-paid trading fee and congestion surcharge * routed to the referrer, in FLOAT_SCALING. */ referral_fee_rate: _mysten_sui_bcs839.BcsType; /** * Fee charged on an executed PLP supply fill, in FLOAT_SCALING, deducted from the * USDC taken in before shares are priced. Ships at zero — a deposit dilutes the * pool's risk per dollar rather than concentrating it, so it is not taxed; the * knob exists to keep that reversible. */ plp_supply_fee_rate: _mysten_sui_bcs839.BcsType; /** * Fee charged on an executed PLP withdraw fill, in FLOAT_SCALING, withheld from * the marked payout. Retained by the pool, so it accrues to the holders who stay. * Both rates are read once per flush into the frozen mark, so every fill in one * flush is charged the same pair. */ plp_withdraw_fee_rate: _mysten_sui_bcs839.BcsType; /** * Frozen-mark attempts a queued LP supply/withdraw request gets before the * protocol cancels and refunds it. `1` (the default) is fill-or-kill; above that a * missing request rests at the queue head and stops that queue for the flush, so * this is an LP-queue liveness knob (RP-12). */ lp_request_limit_flush_attempts: _mysten_sui_bcs839.BcsType; /** * Ceiling on LP-attributable pool value that queued supplies may raise the pool * to, enforced at the flush against the frozen mark. Defaults to 500,000 USDC * (RP-23). */ max_lp_pool_value: _mysten_sui_bcs839.BcsType; /** * Hard staleness bound: `finish_flush` refuses to complete a flush in flight * longer than this, so no LP request fills at a mark older than the window; past * it the operator starts a fresh flush (which discards the stale one). A stalled * flush blocks only LP queue fills and the flush-set markets' settlement — trading * continues — so this also bounds LP-fill latency and is tuned alongside flush * cadence (RP-29). */ max_valuation_window_ms: _mysten_sui_bcs839.BcsType; /** * Window before a market's expiry in which live quotes, mints, and live redeems * abort. Read live at trade time rather than snapshotted per market, so it can be * widened on markets already trading. `0` disables. */ no_trade_window_ms: _mysten_sui_bcs839.BcsType; strike_exposure_template_config: MoveStruct<{ backing_buffer_lambda: _mysten_sui_bcs839.BcsType; base_fee: _mysten_sui_bcs839.BcsType; min_fee: _mysten_sui_bcs839.BcsType; min_entry_probability: _mysten_sui_bcs839.BcsType; max_entry_probability: _mysten_sui_bcs839.BcsType; expiry_fee_window_ms: _mysten_sui_bcs839.BcsType; expiry_fee_max_multiplier: _mysten_sui_bcs839.BcsType; inventory_impact_max_rate: _mysten_sui_bcs839.BcsType; }, "@local-pkg/deepbook_predict::strike_exposure_config::StrikeExposureConfig">; ewma_config: MoveStruct<{ alpha: _mysten_sui_bcs839.BcsType; z_score_threshold: _mysten_sui_bcs839.BcsType; penalty_rate: _mysten_sui_bcs839.BcsType; enabled: _mysten_sui_bcs839.BcsType; }, "@local-pkg/deepbook_predict::ewma_config::EwmaConfig">; /** * Minimum package version permitted to run version-gated flows. Monotonic; * `bump_version_watermark` advances it to the running `current_version!()`, * retiring older versions. A running version below this floor is dead * (`chk_version`). `current_version!()` stays the upgrade-required code constant; * this is the runtime floor. */ version_watermark: _mysten_sui_bcs839.BcsType; /** Blocks new risk creation while true. */ trading_paused: _mysten_sui_bcs839.BcsType; /** * Emergency hard stop. While true, `chk_version` aborts, halting every * version-gated flow (mint, redeem, settlement, valuation, LP supply/withdraw, * admin config) — the same blast radius as a version-disable, but reversible * without a package upgrade. Force-on via `PauseCap`; cleared by `AdminCap`. * Account-package custody withdrawals and builder-fee claims are ungated and stay * available (already-earned funds). */ frozen: _mysten_sui_bcs839.BcsType; /** * True for the whole duration of a full-pool valuation, across every transaction * it spans. Keeper cash flows, market lifecycle, and config mutations gate on it; * trading flows do NOT — they read it (with `flush_seq`) only to discard a stale * valuation stamp lazily; a pending market's snapshot state is captured, never * recorded per trade (see `plp`). */ valuation_in_progress: _mysten_sui_bcs839.BcsType; /** * True ONLY while the atomic snapshot stage is open — set by `open_snap` at * `start_pool_valuation` and cleared by `end_snap` at `seal_valuation_snapshot`. * Both live in one PTB (the `SnapshotStage` hot potato forces it), so this can * never be observed across transactions: it blocks only a trade the keeper * composes INTO its own snapshot PTB, where a mid-stamp cash move would skew the * figures the seal freezes. The resumable valuation stage after the seal leaves it * false, so trading stays live. */ snapshot_in_progress: _mysten_sui_bcs839.BcsType; /** * Monotonic flush ordinal, bumped by `begin_val`. A market's valuation stamp names * the flush that made it; a stamp whose ordinal is not the current one — or held * while no valuation is in flight — is stale and is lazily discarded by the next * trade, so aborting a flush never has to visit its stamped markets. */ flush_seq: _mysten_sui_bcs839.BcsType; }, "@local-pkg/deepbook_predict::protocol_config::ProtocolConfig">; declare const SettledRedeemKeepersKey: MoveTuple], "@local-pkg/deepbook_predict::protocol_config::SettledRedeemKeepersKey">; declare const FeeIncentiveSubsidyRateKey: MoveTuple], "@local-pkg/deepbook_predict::protocol_config::FeeIncentiveSubsidyRateKey">; declare const FeeIncentiveLiveTargetRateKey: MoveTuple], "@local-pkg/deepbook_predict::protocol_config::FeeIncentiveLiveTargetRateKey">; declare const FeeIncentiveLifetimeCapRateKey: MoveTuple], "@local-pkg/deepbook_predict::protocol_config::FeeIncentiveLifetimeCapRateKey">; declare const FlushOperatorsKey: MoveTuple], "@local-pkg/deepbook_predict::protocol_config::FlushOperatorsKey">; declare const OrderFlowKey: MoveTuple], "@local-pkg/deepbook_predict::protocol_config::OrderFlowKey">; declare const BuilderFeeCapKey: MoveTuple], "@local-pkg/deepbook_predict::protocol_config::BuilderFeeCapKey">; declare const FeeBandsKey: MoveTuple], "@local-pkg/deepbook_predict::protocol_config::FeeBandsKey">; interface IdArguments { config?: RawTransactionArgument; } interface IdOptions { package?: string; arguments?: IdArguments; config?: { protocolConfig: ConfigValue; predictPackageId?: string; }; } /** * Return the protocol config object ID for external discovery and PTB * construction. */ declare function id(options: IdOptions): (tx: Transaction) => _mysten_sui_transactions558.TransactionResult; interface TradingPausedArguments { config?: RawTransactionArgument; } interface TradingPausedOptions { package?: string; arguments?: TradingPausedArguments; config?: { protocolConfig: ConfigValue; predictPackageId?: string; }; } /** Return the global trading-pause state for SDK and devInspect reads. */ declare function tradingPaused(options: TradingPausedOptions): (tx: Transaction) => _mysten_sui_transactions558.TransactionResult; interface FrozenArguments { config?: RawTransactionArgument; } interface FrozenOptions { package?: string; arguments?: FrozenArguments; config?: { protocolConfig: ConfigValue; predictPackageId?: string; }; } /** Return the global protocol-freeze state for SDK and devInspect reads. */ declare function frozen(options: FrozenOptions): (tx: Transaction) => _mysten_sui_transactions558.TransactionResult; interface ValuationInProgressArguments { config?: RawTransactionArgument; } interface ValuationInProgressOptions { package?: string; arguments?: ValuationInProgressArguments; config?: { protocolConfig: ConfigValue; predictPackageId?: string; }; } /** * Return whether a full-pool valuation is in flight, for SDK and devInspect reads. * The flush spans transactions, so "in flight" is an observable state: a keeper * reads it to notice a flush it must finish or discard, and an integrator reads it * to explain a gated keeper/config transaction. Trading is not gated on it. */ declare function valuationInProgress(options: ValuationInProgressOptions): (tx: Transaction) => _mysten_sui_transactions558.TransactionResult; interface ReferralFeeRateArguments { config?: RawTransactionArgument; } interface ReferralFeeRateOptions { package?: string; arguments?: ReferralFeeRateArguments; config?: { protocolConfig: ConfigValue; predictPackageId?: string; }; } /** Return the live referral fee rate for SDK and devInspect reads. */ declare function referralFeeRate(options: ReferralFeeRateOptions): (tx: Transaction) => _mysten_sui_transactions558.TransactionResult; interface FeeIncentiveSubsidyRateArguments { config?: RawTransactionArgument; } interface FeeIncentiveSubsidyRateOptions { package?: string; arguments?: FeeIncentiveSubsidyRateArguments; config?: { protocolConfig: ConfigValue; predictPackageId?: string; }; } /** * Return the live fee-incentive subsidy rate: the fraction of each mint's trading * fee paid from the market's sponsor-funded fee-incentive balance, in * FLOAT_SCALING. `public` for SDK and devInspect reads: the quote already reports * the subsidy it applied, but a client needs the rate to explain it. */ declare function feeIncentiveSubsidyRate(options: FeeIncentiveSubsidyRateOptions): (tx: Transaction) => _mysten_sui_transactions558.TransactionResult; interface BuilderFeeCapArguments { config?: RawTransactionArgument; } interface BuilderFeeCapOptions { package?: string; arguments?: BuilderFeeCapArguments; config?: { protocolConfig: ConfigValue; predictPackageId?: string; }; } /** * Return the builder fee cap: the most a trade's builder fee can charge per * contract, in FLOAT_SCALING of a contract's $1 payout. Admission charges a * trade's named fee capped at this value. `public` for SDK and devInspect reads, * so an app can show the fee a trade will actually pay. */ declare function builderFeeCap(options: BuilderFeeCapOptions): (tx: Transaction) => _mysten_sui_transactions558.TransactionResult; interface FeeIncentiveLiveTargetRateArguments { config?: RawTransactionArgument; } interface FeeIncentiveLiveTargetRateOptions { package?: string; arguments?: FeeIncentiveLiveTargetRateArguments; config?: { protocolConfig: ConfigValue; predictPackageId?: string; }; } /** * Return the live fee-incentive target rate: the share of an expiry's allocation * cap each live rebalance tops its sponsor-funded balance up to, in FLOAT_SCALING. * `public` for SDK and devInspect reads, so a client can tell how much a market * can hold before reading its balance. */ declare function feeIncentiveLiveTargetRate(options: FeeIncentiveLiveTargetRateOptions): (tx: Transaction) => _mysten_sui_transactions558.TransactionResult; interface FeeIncentiveLifetimeCapRateArguments { config?: RawTransactionArgument; } interface FeeIncentiveLifetimeCapRateOptions { package?: string; arguments?: FeeIncentiveLifetimeCapRateArguments; config?: { protocolConfig: ConfigValue; predictPackageId?: string; }; } /** * Return the fee-incentive lifetime cap rate that newly created expiry markets * snapshot: the share of an expiry's allocation cap it may receive in * sponsor-funded incentives over its life, in FLOAT_SCALING. `public` for SDK and * devInspect reads. */ declare function feeIncentiveLifetimeCapRate(options: FeeIncentiveLifetimeCapRateOptions): (tx: Transaction) => _mysten_sui_transactions558.TransactionResult; interface NoTradeWindowMsArguments { config?: RawTransactionArgument; } interface NoTradeWindowMsOptions { package?: string; arguments?: NoTradeWindowMsArguments; config?: { protocolConfig: ConfigValue; predictPackageId?: string; }; } /** * Window before expiry in which live quotes, mints, and live redeems abort. * `public` for SDK and devInspect reads: a client that cannot see this value can * only learn the window closed by decoding `ETradeWindowClosed` from a failed * quote. */ declare function noTradeWindowMs(options: NoTradeWindowMsOptions): (tx: Transaction) => _mysten_sui_transactions558.TransactionResult; interface IsFlushOperatorArguments { config?: RawTransactionArgument; operator: RawTransactionArgument; } interface IsFlushOperatorOptions { package?: string; arguments: IsFlushOperatorArguments; config?: { protocolConfig: ConfigValue; predictPackageId?: string; }; } /** * Whether `operator` may call `plp::finish_flush`. For SDK, keeper, and devInspect * reads; `finish_flush` gates through `chk_op`. */ declare function isFlushOperator(options: IsFlushOperatorOptions): (tx: Transaction) => _mysten_sui_transactions558.TransactionResult; interface IsOrderFlowArguments { config?: RawTransactionArgument; } interface IsOrderFlowOptions { package?: string; arguments?: IsOrderFlowArguments; config?: { protocolConfig: ConfigValue; predictPackageId?: string; }; typeArguments: [string]; } /** * Whether the witness type `W` may drive Predict's order-flow primitives * (admission, commit, and fill). For SDK, keeper, and devInspect reads and the * companion's setup checks; the primitives gate through `chk_flow`. */ declare function isOrderFlow(options: IsOrderFlowOptions): (tx: Transaction) => _mysten_sui_transactions558.TransactionResult; interface VersionWatermarkArguments { config?: RawTransactionArgument; } interface VersionWatermarkOptions { package?: string; arguments?: VersionWatermarkArguments; config?: { protocolConfig: ConfigValue; predictPackageId?: string; }; } /** * Return the runtime version floor. For SDK, keeper, and devInspect reads: the * delayed-execution cutover is reached once it is at least 4 * (`constants::cutover_version!()`). */ declare function versionWatermark(options: VersionWatermarkOptions): (tx: Transaction) => _mysten_sui_transactions558.TransactionResult; interface SetTemplateBaseFeeArguments { config?: RawTransactionArgument; AdminCap: RawTransactionArgument; fee: RawTransactionArgument; } interface SetTemplateBaseFeeOptions { package?: string; arguments: SetTemplateBaseFeeArguments; config?: { protocolConfig: ConfigValue; predictPackageId?: string; }; } /** Set the base fee multiplier snapshotted by newly created expiry markets. */ declare function setTemplateBaseFee(options: SetTemplateBaseFeeOptions): (tx: Transaction) => _mysten_sui_transactions558.TransactionResult; interface SetTemplateFeeBandsArguments { config?: RawTransactionArgument; AdminCap: RawTransactionArgument; bands: RawTransactionArgument>; } interface SetTemplateFeeBandsOptions { package?: string; arguments: SetTemplateFeeBandsArguments; config?: { protocolConfig: ConfigValue; predictPackageId?: string; }; } /** * Replace the fee-band template snapshotted by newly created expiry markets: flat * `[low, high, multiplier]` triples, in FLOAT_SCALING. A trade whose contract * price is in `[low, high)` pays its trading fee times the multiplier. Empty * clears the template. Markets already created keep their copy. */ declare function setTemplateFeeBands(options: SetTemplateFeeBandsOptions): (tx: Transaction) => _mysten_sui_transactions558.TransactionResult; interface SetTemplateMinFeeArguments { config?: RawTransactionArgument; AdminCap: RawTransactionArgument; fee: RawTransactionArgument; } interface SetTemplateMinFeeOptions { package?: string; arguments: SetTemplateMinFeeArguments; config?: { protocolConfig: ConfigValue; predictPackageId?: string; }; } /** Set the minimum fee floor snapshotted by newly created expiry markets. */ declare function setTemplateMinFee(options: SetTemplateMinFeeOptions): (tx: Transaction) => _mysten_sui_transactions558.TransactionResult; interface SetTemplateExpiryFeeWindowMsArguments { config?: RawTransactionArgument; AdminCap: RawTransactionArgument; value: RawTransactionArgument; } interface SetTemplateExpiryFeeWindowMsOptions { package?: string; arguments: SetTemplateExpiryFeeWindowMsArguments; config?: { protocolConfig: ConfigValue; predictPackageId?: string; }; } /** Set the expiry-fee ramp window snapshotted by newly created expiry markets. */ declare function setTemplateExpiryFeeWindowMs(options: SetTemplateExpiryFeeWindowMsOptions): (tx: Transaction) => _mysten_sui_transactions558.TransactionResult; interface SetTemplateExpiryFeeMaxMultiplierArguments { config?: RawTransactionArgument; AdminCap: RawTransactionArgument; value: RawTransactionArgument; } interface SetTemplateExpiryFeeMaxMultiplierOptions { package?: string; arguments: SetTemplateExpiryFeeMaxMultiplierArguments; config?: { protocolConfig: ConfigValue; predictPackageId?: string; }; } /** Set the expiry-fee max multiplier snapshotted by newly created expiry markets. */ declare function setTemplateExpiryFeeMaxMultiplier(options: SetTemplateExpiryFeeMaxMultiplierOptions): (tx: Transaction) => _mysten_sui_transactions558.TransactionResult; interface SetTemplateBackingBufferLambdaArguments { config?: RawTransactionArgument; AdminCap: RawTransactionArgument; value: RawTransactionArgument; } interface SetTemplateBackingBufferLambdaOptions { package?: string; arguments: SetTemplateBackingBufferLambdaArguments; config?: { protocolConfig: ConfigValue; predictPackageId?: string; }; } /** Set the backing-buffer lambda snapshotted by newly created expiry markets. */ declare function setTemplateBackingBufferLambda(options: SetTemplateBackingBufferLambdaOptions): (tx: Transaction) => _mysten_sui_transactions558.TransactionResult; interface SetTemplateInventoryImpactMaxRateArguments { config?: RawTransactionArgument; AdminCap: RawTransactionArgument; value: RawTransactionArgument; } interface SetTemplateInventoryImpactMaxRateOptions { package?: string; arguments: SetTemplateInventoryImpactMaxRateArguments; config?: { protocolConfig: ConfigValue; predictPackageId?: string; }; } /** * Set the maximum marginal inventory-impact rate snapshotted by newly created * expiry markets. `0` (the default) disables both charges and rebates. */ declare function setTemplateInventoryImpactMaxRate(options: SetTemplateInventoryImpactMaxRateOptions): (tx: Transaction) => _mysten_sui_transactions558.TransactionResult; interface SetTemplateMinEntryProbabilityArguments { config?: RawTransactionArgument; AdminCap: RawTransactionArgument; value: RawTransactionArgument; } interface SetTemplateMinEntryProbabilityOptions { package?: string; arguments: SetTemplateMinEntryProbabilityArguments; config?: { protocolConfig: ConfigValue; predictPackageId?: string; }; } /** * Set the minimum raw entry probability snapshotted by newly created expiry * markets. */ declare function setTemplateMinEntryProbability(options: SetTemplateMinEntryProbabilityOptions): (tx: Transaction) => _mysten_sui_transactions558.TransactionResult; interface SetTemplateMaxEntryProbabilityArguments { config?: RawTransactionArgument; AdminCap: RawTransactionArgument; value: RawTransactionArgument; } interface SetTemplateMaxEntryProbabilityOptions { package?: string; arguments: SetTemplateMaxEntryProbabilityArguments; config?: { protocolConfig: ConfigValue; predictPackageId?: string; }; } /** * Set the maximum raw entry probability snapshotted by newly created expiry * markets. */ declare function setTemplateMaxEntryProbability(options: SetTemplateMaxEntryProbabilityOptions): (tx: Transaction) => _mysten_sui_transactions558.TransactionResult; interface SetUsePythSpotForForwardArguments { config?: RawTransactionArgument; AdminCap: RawTransactionArgument; enabled: RawTransactionArgument; } interface SetUsePythSpotForForwardOptions { package?: string; arguments: SetUsePythSpotForForwardArguments; config?: { protocolConfig: ConfigValue; predictPackageId?: string; }; } /** * Select which source the live forward is built from: `true` carries the Block * Scholes basis on a fresh Pyth spot, `false` uses the Block Scholes forward * directly. Locked during valuation so one flush marks every market on one * formula. Clearing it also lifts the live-trade Pyth freshness requirement * (`pricing::assert_pyth_spot_fresh`), which is the way to keep mints and live * redeems open through a Pyth outage once no valuation is in flight. */ declare function setUsePythSpotForForward(options: SetUsePythSpotForForwardOptions): (tx: Transaction) => _mysten_sui_transactions558.TransactionResult; interface SetPythSpotFreshnessMsArguments { config?: RawTransactionArgument; AdminCap: RawTransactionArgument; value: RawTransactionArgument; } interface SetPythSpotFreshnessMsOptions { package?: string; arguments: SetPythSpotFreshnessMsArguments; config?: { protocolConfig: ConfigValue; predictPackageId?: string; }; } /** * Set the live Pyth spot freshness threshold. While `use_pyth_spot_for_forward` is * set, a Pyth spot older than this makes valuation price off the Block Scholes * forward and makes every mint, mint quote, and live redeem abort * `pricing::EPythSpotStale`, so tightening it rejects more live trades and * widening it admits older Pyth spots. A window shorter than the time a Pyth * update takes to land halts live trading. Locked during valuation, like the * source selector. */ declare function setPythSpotFreshnessMs(options: SetPythSpotFreshnessMsOptions): (tx: Transaction) => _mysten_sui_transactions558.TransactionResult; interface SetBlockScholesPriceFreshnessMsArguments { config?: RawTransactionArgument; AdminCap: RawTransactionArgument; value: RawTransactionArgument; } interface SetBlockScholesPriceFreshnessMsOptions { package?: string; arguments: SetBlockScholesPriceFreshnessMsArguments; config?: { protocolConfig: ConfigValue; predictPackageId?: string; }; } /** Set the live Block Scholes spot/forward freshness threshold. */ declare function setBlockScholesPriceFreshnessMs(options: SetBlockScholesPriceFreshnessMsOptions): (tx: Transaction) => _mysten_sui_transactions558.TransactionResult; interface SetBlockScholesSviFreshnessMsArguments { config?: RawTransactionArgument; AdminCap: RawTransactionArgument; value: RawTransactionArgument; } interface SetBlockScholesSviFreshnessMsOptions { package?: string; arguments: SetBlockScholesSviFreshnessMsArguments; config?: { protocolConfig: ConfigValue; predictPackageId?: string; }; } /** Set the live Block Scholes SVI freshness threshold. */ declare function setBlockScholesSviFreshnessMs(options: SetBlockScholesSviFreshnessMsOptions): (tx: Transaction) => _mysten_sui_transactions558.TransactionResult; interface SetLpRequestLimitFlushAttemptsArguments { config?: RawTransactionArgument; AdminCap: RawTransactionArgument; attempts: RawTransactionArgument; } interface SetLpRequestLimitFlushAttemptsOptions { package?: string; arguments: SetLpRequestLimitFlushAttemptsArguments; config?: { protocolConfig: ConfigValue; predictPackageId?: string; }; } /** * Set how many frozen-mark attempts a queued LP request gets before it is * cancelled and refunded. `1` is fill-or-kill. Raising it lets a request rest at * the head across flushes, which stops that queue each time it misses — see RP-12 * for the liveness cost that buys. */ declare function setLpRequestLimitFlushAttempts(options: SetLpRequestLimitFlushAttemptsOptions): (tx: Transaction) => _mysten_sui_transactions558.TransactionResult; interface SetMaxValuationWindowMsArguments { config?: RawTransactionArgument; AdminCap: RawTransactionArgument; windowMs: RawTransactionArgument; } interface SetMaxValuationWindowMsOptions { package?: string; arguments: SetMaxValuationWindowMsArguments; config?: { protocolConfig: ConfigValue; predictPackageId?: string; }; } /** * Set how long a started full-pool valuation may stay in flight before anyone may * discard it. A stalled flush costs LP-fill latency (and settlement latency for * its own market set), not a trading pause, so this is an operator liveness knob: * too short and a legitimate long flush can be discarded from under the keeper, * too long and an abandoned one delays queued LP fills for that duration. See * RP-29. */ declare function setMaxValuationWindowMs(options: SetMaxValuationWindowMsOptions): (tx: Transaction) => _mysten_sui_transactions558.TransactionResult; interface SetMaxLpPoolValueArguments { config?: RawTransactionArgument; AdminCap: RawTransactionArgument; maxPoolValue: RawTransactionArgument; } interface SetMaxLpPoolValueOptions { package?: string; arguments: SetMaxLpPoolValueArguments; config?: { protocolConfig: ConfigValue; predictPackageId?: string; }; } /** * Set the ceiling on LP-attributable pool value that queued supplies may raise the * pool to. A supply that would carry the pool past it is filled up to the cap at * the flush and its remainder stays queued; withdrawals and already-issued PLP are * unaffected, so lowering this below current pool value closes the pool to new * capital rather than forcing anyone out. */ declare function setMaxLpPoolValue(options: SetMaxLpPoolValueOptions): (tx: Transaction) => _mysten_sui_transactions558.TransactionResult; interface SetEwmaParamsArguments { Config?: RawTransactionArgument; AdminCap: RawTransactionArgument; Alpha: RawTransactionArgument; ZScoreThreshold: RawTransactionArgument; PenaltyRate: RawTransactionArgument; } interface SetEwmaParamsOptions { package?: string; arguments: SetEwmaParamsArguments; config?: { protocolConfig: ConfigValue; predictPackageId?: string; }; } interface SetEwmaEnabledArguments { Config?: RawTransactionArgument; AdminCap: RawTransactionArgument; Enabled: RawTransactionArgument; } interface SetEwmaEnabledOptions { package?: string; arguments: SetEwmaEnabledArguments; config?: { protocolConfig: ConfigValue; predictPackageId?: string; }; } interface SetNoTradeWindowMsArguments { config?: RawTransactionArgument; AdminCap: RawTransactionArgument; value: RawTransactionArgument; } interface SetNoTradeWindowMsOptions { package?: string; arguments: SetNoTradeWindowMsArguments; config?: { protocolConfig: ConfigValue; predictPackageId?: string; }; } /** * Set the window before expiry in which live quotes, mints, and live redeems * abort. `0` disables the block. Read live at trade time, so a change applies to * markets already trading and stays available as an incident control. * * Deliberately not gated on `chk_no_val`, matching `set_trading_paused`: a stalled * flush must not be able to trap a safety control. Nothing in the flush reads this * value, so a mid-valuation change cannot skew a frozen mark. */ declare function setNoTradeWindowMs(options: SetNoTradeWindowMsOptions): (tx: Transaction) => _mysten_sui_transactions558.TransactionResult; interface SetTradingPausedArguments { config?: RawTransactionArgument; AdminCap: RawTransactionArgument; paused: RawTransactionArgument; } interface SetTradingPausedOptions { package?: string; arguments: SetTradingPausedArguments; config?: { protocolConfig: ConfigValue; predictPackageId?: string; }; } /** Set whether trading is paused. */ declare function setTradingPaused(options: SetTradingPausedOptions): (tx: Transaction) => _mysten_sui_transactions558.TransactionResult; interface SetFrozenArguments { config?: RawTransactionArgument; AdminCap: RawTransactionArgument; frozen: RawTransactionArgument; } interface SetFrozenOptions { package?: string; arguments: SetFrozenArguments; config?: { protocolConfig: ConfigValue; predictPackageId?: string; }; } /** * Set the protocol-wide emergency freeze. * * Intentionally NOT version-gated, unlike every other admin setter: the freeze * gate lives inside `chk_version`, so routing this through it would make an * engaged freeze unclearable without a package upgrade — defeating the point. */ declare function setFrozen(options: SetFrozenOptions): (tx: Transaction) => _mysten_sui_transactions558.TransactionResult; interface AddSettledRedeemKeeperArguments { Config?: RawTransactionArgument; AdminCap: RawTransactionArgument; Keeper: RawTransactionArgument; } interface AddSettledRedeemKeeperOptions { package?: string; arguments: AddSettledRedeemKeeperArguments; config?: { protocolConfig: ConfigValue; predictPackageId?: string; }; } interface RemoveSettledRedeemKeeperArguments { Config?: RawTransactionArgument; AdminCap: RawTransactionArgument; Keeper: RawTransactionArgument; } interface RemoveSettledRedeemKeeperOptions { package?: string; arguments: RemoveSettledRedeemKeeperArguments; config?: { protocolConfig: ConfigValue; predictPackageId?: string; }; } interface AddFlushOperatorArguments { config?: RawTransactionArgument; AdminCap: RawTransactionArgument; operator: RawTransactionArgument; } interface AddFlushOperatorOptions { package?: string; arguments: AddFlushOperatorArguments; config?: { protocolConfig: ConfigValue; predictPackageId?: string; }; } /** * Allow `operator` to call `plp::finish_flush`. Admin-only and version-gated; * aborts if `operator` is already allowed. Not gated on an open LP valuation, so * an admin can always add an operator to finish a stuck flush. */ declare function addFlushOperator(options: AddFlushOperatorOptions): (tx: Transaction) => _mysten_sui_transactions558.TransactionResult; interface RemoveFlushOperatorArguments { config?: RawTransactionArgument; AdminCap: RawTransactionArgument; operator: RawTransactionArgument; } interface RemoveFlushOperatorOptions { package?: string; arguments: RemoveFlushOperatorArguments; config?: { protocolConfig: ConfigValue; predictPackageId?: string; }; } /** * Revoke `operator`'s access to `plp::finish_flush`. Admin-only. Bypasses the * version gate, like `remove_settled_redeem_keeper`, so revocation stays available * under the emergency freeze and from a package version below the runtime floor. * Aborts if `operator` is not allowed. */ declare function removeFlushOperator(options: RemoveFlushOperatorOptions): (tx: Transaction) => _mysten_sui_transactions558.TransactionResult; interface SetOrderFlowArguments { config?: RawTransactionArgument; AdminCap: RawTransactionArgument; enabled: RawTransactionArgument; } interface SetOrderFlowOptions { package?: string; arguments: SetOrderFlowArguments; config?: { protocolConfig: ConfigValue; predictPackageId?: string; }; typeArguments: [string]; } /** * Allowlist (`enabled = true`) or remove the witness type `W` of an order-flow * companion for Predict's order-flow primitives. Removing it stops admissions, * commits, and fills only: `release` and `try_pay_settled` need a receipt, not the * allowlist, so waiting orders still drain and queue-held positions are still * paid. Admin-only. Enabling is version-gated, since it grants authority; removing * is ungated, like `remove_flush_operator`, so it works under the emergency freeze * and from a package version below the runtime floor. Setting the state `W` * already has changes nothing but still emits `OrderFlowUpdated`. */ declare function setOrderFlow(options: SetOrderFlowOptions): (tx: Transaction) => _mysten_sui_transactions558.TransactionResult; interface BumpVersionWatermarkArguments { config?: RawTransactionArgument; AdminCap: RawTransactionArgument; } interface BumpVersionWatermarkOptions { package?: string; arguments: BumpVersionWatermarkArguments; config?: { protocolConfig: ConfigValue; predictPackageId?: string; }; } /** * Advance the version floor to this package's compiled-in `current_version!()`. * * The floor cannot be set above the executing package's version. This function is * ungated so an upgraded package can retire older versions; it aborts unless the * executing version is strictly greater than the existing floor. */ declare function bumpVersionWatermark(options: BumpVersionWatermarkOptions): (tx: Transaction) => _mysten_sui_transactions558.TransactionResult; interface SetProtocolReserveProfitShareArguments { config?: RawTransactionArgument; AdminCap: RawTransactionArgument; protocolReserveProfitShare: RawTransactionArgument; } interface SetProtocolReserveProfitShareOptions { package?: string; arguments: SetProtocolReserveProfitShareArguments; config?: { protocolConfig: ConfigValue; predictPackageId?: string; }; } /** * Set the protocol reserve profit share used when materializing aggregate expiry * profit. Admin-gated; validated against its config-constants envelope. */ declare function setProtocolReserveProfitShare(options: SetProtocolReserveProfitShareOptions): (tx: Transaction) => _mysten_sui_transactions558.TransactionResult; interface SetReferralFeeRateArguments { config?: RawTransactionArgument; AdminCap: RawTransactionArgument; rate: RawTransactionArgument; } interface SetReferralFeeRateOptions { package?: string; arguments: SetReferralFeeRateArguments; config?: { protocolConfig: ConfigValue; predictPackageId?: string; }; } /** * Set the portion of referred mint fees routed to the referrer. The new rate * applies to subsequent mints without changing their all-in account withdrawal. */ declare function setReferralFeeRate(options: SetReferralFeeRateOptions): (tx: Transaction) => _mysten_sui_transactions558.TransactionResult; interface SetFeeIncentiveSubsidyRateArguments { config?: RawTransactionArgument; AdminCap: RawTransactionArgument; rate: RawTransactionArgument; } interface SetFeeIncentiveSubsidyRateOptions { package?: string; arguments: SetFeeIncentiveSubsidyRateArguments; config?: { protocolConfig: ConfigValue; predictPackageId?: string; }; } /** * Set the fraction of each mint's trading fee paid from the market's * sponsor-funded fee-incentive balance. Read live at mint time, so the new rate * applies to the next mint on every market, including markets already trading; `0` * stops incentives from being spent without moving them. The subsidy never changes * the trading fee charged, only how much of it the trader pays; on a referred mint * the referral is computed on the trader-paid part, so a higher rate also shrinks * the referral. * * Binds every mint only once the version watermark has retired package versions * older than 4: those compiled in a fixed 20% and never read this rate, so until * then a mint routed through one still draws 20% from the market's balance. A zero * rate does not stop `rebalance_expiry_cash` allocating the pool reserve into * markets; to wind incentives down, also withdraw the reserve * (`plp::withdraw_fee_incentives`), or, once the watermark has retired versions * older than 4, set the live target rate to zero, which keeps the reserve in the * pool. * * Not gated on the valuation flag, matching `set_referral_fee_rate`: nothing in * the flush reads this rate, and a mint that consumes a subsidy mid-flush lands * after the snapshot captured that market's cash, so it cannot reach the frozen * mark. */ declare function setFeeIncentiveSubsidyRate(options: SetFeeIncentiveSubsidyRateOptions): (tx: Transaction) => _mysten_sui_transactions558.TransactionResult; interface SetBuilderFeeCapArguments { config?: RawTransactionArgument; AdminCap: RawTransactionArgument; cap: RawTransactionArgument; } interface SetBuilderFeeCapOptions { package?: string; arguments: SetBuilderFeeCapArguments; config?: { protocolConfig: ConfigValue; predictPackageId?: string; }; } /** * Set the builder fee cap: the most a trade's builder fee can charge per contract, * in FLOAT_SCALING of a contract's $1 payout, from `0` up to the whole payout. A * trade that names a higher fee pays the cap. Read when an order is admitted, so * the new cap applies to the next order on every market, and an order already * queued keeps the fee it was admitted with. `0` stops builder fees. * * Not gated on the valuation flag, matching `set_fee_incentive_subsidy_rate`: * nothing in the flush reads the cap, and a builder fee leaves with the trader's * own payment, never market cash. */ declare function setBuilderFeeCap(options: SetBuilderFeeCapOptions): (tx: Transaction) => _mysten_sui_transactions558.TransactionResult; interface SetFeeIncentiveLiveTargetRateArguments { config?: RawTransactionArgument; AdminCap: RawTransactionArgument; rate: RawTransactionArgument; } interface SetFeeIncentiveLiveTargetRateOptions { package?: string; arguments: SetFeeIncentiveLiveTargetRateArguments; config?: { protocolConfig: ConfigValue; predictPackageId?: string; }; } /** * Set the share of an expiry's allocation cap each live rebalance tops its * sponsor-funded fee-incentive balance up to. Read at every rebalance, so it * applies to markets already trading. Lowering it never claws back a balance * already allocated: a market above the new target receives nothing more until it * spends below it. `0` stops the pool reserve being allocated to markets, so it * stays in the pool and withdrawable. It may exceed a market's lifetime cap: the * cap still bounds what the market receives, so the target is not checked against * the lifetime cap rate. * * Binds every rebalance only once the version watermark has retired package * versions older than 4: `rebalance_expiry_cash` is permissionless, and those * versions top a market up to a fixed 2% whatever this is set to. Not gated on the * valuation flag: the flush never reads it, and the reserve and market incentive * balances it moves between are outside PLP NAV. */ declare function setFeeIncentiveLiveTargetRate(options: SetFeeIncentiveLiveTargetRateOptions): (tx: Transaction) => _mysten_sui_transactions558.TransactionResult; interface SetTemplateFeeIncentiveLifetimeCapRateArguments { config?: RawTransactionArgument; AdminCap: RawTransactionArgument; rate: RawTransactionArgument; } interface SetTemplateFeeIncentiveLifetimeCapRateOptions { package?: string; arguments: SetTemplateFeeIncentiveLifetimeCapRateArguments; config?: { protocolConfig: ConfigValue; predictPackageId?: string; }; } /** * Set the share of an expiry's allocation cap it may receive in sponsor-funded fee * incentives over its life. Snapshotted into each expiry's pool accounting row * when the market is created, so markets already created keep the cap they were * created with, and `vault_events::FeeIncentiveLifetimeCapSnapshotted` reports * each market's cap. * * Binds market creation only once the version watermark has retired package * versions older than 4, which snapshot a fixed 10% whatever this is set to. Not * gated on the valuation flag, for the same reason as the live target rate. */ declare function setTemplateFeeIncentiveLifetimeCapRate(options: SetTemplateFeeIncentiveLifetimeCapRateOptions): (tx: Transaction) => _mysten_sui_transactions558.TransactionResult; interface SetPlpSupplyFeeRateArguments { config?: RawTransactionArgument; AdminCap: RawTransactionArgument; rate: RawTransactionArgument; } interface SetPlpSupplyFeeRateOptions { package?: string; arguments: SetPlpSupplyFeeRateArguments; config?: { protocolConfig: ConfigValue; predictPackageId?: string; }; } /** * Set the fee charged on executed PLP supply fills. Admin-gated and validated * against its config-constants envelope. Locked during valuation so the rate a * flush froze into its mark cannot change midway through that flush. */ declare function setPlpSupplyFeeRate(options: SetPlpSupplyFeeRateOptions): (tx: Transaction) => _mysten_sui_transactions558.TransactionResult; interface SetPlpWithdrawFeeRateArguments { config?: RawTransactionArgument; AdminCap: RawTransactionArgument; rate: RawTransactionArgument; } interface SetPlpWithdrawFeeRateOptions { package?: string; arguments: SetPlpWithdrawFeeRateArguments; config?: { protocolConfig: ConfigValue; predictPackageId?: string; }; } /** * Set the fee charged on executed PLP withdraw fills. Same gating as the supply * leg; the two are independent so the exit charge can move without taxing entry. */ declare function setPlpWithdrawFeeRate(options: SetPlpWithdrawFeeRateOptions): (tx: Transaction) => _mysten_sui_transactions558.TransactionResult; //#endregion export { AddFlushOperatorArguments, AddFlushOperatorOptions, AddSettledRedeemKeeperOptions, BuilderFeeCapArguments, BuilderFeeCapKey, BuilderFeeCapOptions, BumpVersionWatermarkArguments, BumpVersionWatermarkOptions, FeeBandsKey, 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, RemoveSettledRedeemKeeperOptions, SetBlockScholesPriceFreshnessMsArguments, SetBlockScholesPriceFreshnessMsOptions, SetBlockScholesSviFreshnessMsArguments, SetBlockScholesSviFreshnessMsOptions, SetBuilderFeeCapArguments, SetBuilderFeeCapOptions, 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, SetTemplateFeeBandsArguments, SetTemplateFeeBandsOptions, SetTemplateFeeIncentiveLifetimeCapRateArguments, SetTemplateFeeIncentiveLifetimeCapRateOptions, SetTemplateInventoryImpactMaxRateArguments, SetTemplateInventoryImpactMaxRateOptions, SetTemplateMaxEntryProbabilityArguments, SetTemplateMaxEntryProbabilityOptions, SetTemplateMinEntryProbabilityArguments, SetTemplateMinEntryProbabilityOptions, SetTemplateMinFeeArguments, SetTemplateMinFeeOptions, SetTradingPausedArguments, SetTradingPausedOptions, SetUsePythSpotForForwardArguments, SetUsePythSpotForForwardOptions, SettledRedeemKeepersKey, TradingPausedArguments, TradingPausedOptions, ValuationInProgressArguments, ValuationInProgressOptions, VersionWatermarkArguments, VersionWatermarkOptions, addFlushOperator, builderFeeCap, bumpVersionWatermark, feeIncentiveLifetimeCapRate, feeIncentiveLiveTargetRate, feeIncentiveSubsidyRate, frozen, id, isFlushOperator, isOrderFlow, noTradeWindowMs, referralFeeRate, removeFlushOperator, setBlockScholesPriceFreshnessMs, setBlockScholesSviFreshnessMs, setBuilderFeeCap, setFeeIncentiveLiveTargetRate, setFeeIncentiveSubsidyRate, setFrozen, setLpRequestLimitFlushAttempts, setMaxLpPoolValue, setMaxValuationWindowMs, setNoTradeWindowMs, setOrderFlow, setPlpSupplyFeeRate, setPlpWithdrawFeeRate, setProtocolReserveProfitShare, setPythSpotFreshnessMs, setReferralFeeRate, setTemplateBackingBufferLambda, setTemplateBaseFee, setTemplateExpiryFeeMaxMultiplier, setTemplateExpiryFeeWindowMs, setTemplateFeeBands, setTemplateFeeIncentiveLifetimeCapRate, setTemplateInventoryImpactMaxRate, setTemplateMaxEntryProbability, setTemplateMinEntryProbability, setTemplateMinFee, setTradingPaused, setUsePythSpotForForward, tradingPaused, valuationInProgress, versionWatermark }; //# sourceMappingURL=protocol_config.d.mts.map