@mysten/deepbook-v3 2.3.0 → 2.4.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 +27 -0
- package/PREDICT.md +149 -55
- package/README.md +18 -13
- package/dist/contracts/account/account.d.mts +23 -23
- package/dist/contracts/account/account.d.mts.map +1 -1
- package/dist/contracts/account/account_events.d.mts +20 -20
- package/dist/contracts/account/account_registry.d.mts +19 -19
- package/dist/contracts/deepbook/account.d.mts +18 -18
- package/dist/contracts/deepbook/account.d.mts.map +1 -1
- package/dist/contracts/deepbook/balances.d.mts +4 -4
- package/dist/contracts/deepbook/balances.d.mts.map +1 -1
- package/dist/contracts/deepbook/deep_price.d.mts +3 -3
- package/dist/contracts/deepbook/deep_price.d.mts.map +1 -1
- package/dist/contracts/deepbook/order.d.mts +12 -12
- package/dist/contracts/deepbook_predict/admin.d.mts +27 -0
- package/dist/contracts/deepbook_predict/admin.d.mts.map +1 -0
- package/dist/contracts/deepbook_predict/admin.mjs +38 -0
- package/dist/contracts/deepbook_predict/admin.mjs.map +1 -0
- package/dist/contracts/deepbook_predict/builder_code.d.mts +81 -0
- package/dist/contracts/deepbook_predict/builder_code.d.mts.map +1 -0
- package/dist/contracts/deepbook_predict/builder_code.mjs +103 -0
- package/dist/contracts/deepbook_predict/builder_code.mjs.map +1 -0
- package/dist/contracts/deepbook_predict/builder_code_events.d.mts +25 -0
- package/dist/contracts/deepbook_predict/builder_code_events.d.mts.map +1 -0
- package/dist/contracts/deepbook_predict/builder_code_events.mjs +7 -1
- package/dist/contracts/deepbook_predict/builder_code_events.mjs.map +1 -1
- package/dist/contracts/deepbook_predict/config_events.d.mts +104 -0
- package/dist/contracts/deepbook_predict/config_events.d.mts.map +1 -0
- package/dist/contracts/deepbook_predict/config_events.mjs +155 -0
- package/dist/contracts/deepbook_predict/config_events.mjs.map +1 -0
- package/dist/contracts/deepbook_predict/ewma_config.mjs +28 -0
- package/dist/contracts/deepbook_predict/ewma_config.mjs.map +1 -0
- package/dist/contracts/deepbook_predict/expiry_market.d.mts +859 -0
- package/dist/contracts/deepbook_predict/expiry_market.d.mts.map +1 -0
- package/dist/contracts/deepbook_predict/expiry_market.mjs +647 -1
- package/dist/contracts/deepbook_predict/expiry_market.mjs.map +1 -1
- package/dist/contracts/deepbook_predict/market_lifecycle_cap.d.mts +39 -0
- package/dist/contracts/deepbook_predict/market_lifecycle_cap.d.mts.map +1 -0
- package/dist/contracts/deepbook_predict/market_lifecycle_cap.mjs +51 -0
- package/dist/contracts/deepbook_predict/market_lifecycle_cap.mjs.map +1 -0
- package/dist/contracts/deepbook_predict/market_manager.d.mts +159 -0
- package/dist/contracts/deepbook_predict/market_manager.d.mts.map +1 -0
- package/dist/contracts/deepbook_predict/market_manager.mjs +88 -2
- package/dist/contracts/deepbook_predict/market_manager.mjs.map +1 -1
- package/dist/contracts/deepbook_predict/order_events.d.mts +101 -0
- package/dist/contracts/deepbook_predict/order_events.d.mts.map +1 -0
- package/dist/contracts/deepbook_predict/order_events.mjs +7 -1
- package/dist/contracts/deepbook_predict/order_events.mjs.map +1 -1
- package/dist/contracts/deepbook_predict/pause_cap.d.mts +39 -0
- package/dist/contracts/deepbook_predict/pause_cap.d.mts.map +1 -0
- package/dist/contracts/deepbook_predict/pause_cap.mjs +51 -0
- package/dist/contracts/deepbook_predict/pause_cap.mjs.map +1 -0
- package/dist/contracts/deepbook_predict/plp.d.mts +801 -0
- package/dist/contracts/deepbook_predict/plp.d.mts.map +1 -0
- package/dist/contracts/deepbook_predict/plp.mjs +458 -1
- package/dist/contracts/deepbook_predict/plp.mjs.map +1 -1
- package/dist/contracts/deepbook_predict/pool_valuation_cap.d.mts +39 -0
- package/dist/contracts/deepbook_predict/pool_valuation_cap.d.mts.map +1 -0
- package/dist/contracts/deepbook_predict/pool_valuation_cap.mjs +52 -0
- package/dist/contracts/deepbook_predict/pool_valuation_cap.mjs.map +1 -0
- package/dist/contracts/deepbook_predict/predict_account.d.mts +90 -0
- package/dist/contracts/deepbook_predict/predict_account.d.mts.map +1 -0
- package/dist/contracts/deepbook_predict/predict_account.mjs +24 -1
- package/dist/contracts/deepbook_predict/predict_account.mjs.map +1 -1
- package/dist/contracts/deepbook_predict/pricing.d.mts +127 -0
- package/dist/contracts/deepbook_predict/pricing.d.mts.map +1 -0
- package/dist/contracts/deepbook_predict/pricing.mjs +25 -1
- package/dist/contracts/deepbook_predict/pricing.mjs.map +1 -1
- package/dist/contracts/deepbook_predict/pricing_config.mjs +28 -0
- package/dist/contracts/deepbook_predict/pricing_config.mjs.map +1 -0
- package/dist/contracts/deepbook_predict/protocol_config.d.mts +665 -0
- package/dist/contracts/deepbook_predict/protocol_config.d.mts.map +1 -0
- package/dist/contracts/deepbook_predict/protocol_config.mjs +841 -0
- package/dist/contracts/deepbook_predict/protocol_config.mjs.map +1 -0
- package/dist/contracts/deepbook_predict/range_codec.d.mts +30 -0
- package/dist/contracts/deepbook_predict/range_codec.d.mts.map +1 -0
- package/dist/contracts/deepbook_predict/range_codec.mjs +6 -1
- package/dist/contracts/deepbook_predict/range_codec.mjs.map +1 -1
- package/dist/contracts/deepbook_predict/registry.d.mts +382 -0
- package/dist/contracts/deepbook_predict/registry.d.mts.map +1 -0
- package/dist/contracts/deepbook_predict/registry.mjs +456 -1
- package/dist/contracts/deepbook_predict/registry.mjs.map +1 -1
- package/dist/contracts/deepbook_predict/vault_events.d.mts +199 -0
- package/dist/contracts/deepbook_predict/vault_events.d.mts.map +1 -0
- package/dist/contracts/deepbook_predict/vault_events.mjs +19 -1
- package/dist/contracts/deepbook_predict/vault_events.mjs.map +1 -1
- package/dist/contracts/deepbook_sessions/session_config.d.mts +8 -8
- package/dist/contracts/deepbook_sessions/sessions.d.mts +22 -22
- package/dist/contracts/deepbook_sessions/sessions.d.mts.map +1 -1
- package/dist/predict/client.d.mts +3 -2
- package/dist/predict/client.d.mts.map +1 -1
- package/dist/predict/client.mjs +3 -2
- package/dist/predict/client.mjs.map +1 -1
- package/dist/predict/index.d.mts +18 -1
- package/dist/predict/index.mjs +18 -1
- package/dist/transactions/balanceManager.d.mts +12 -12
- package/dist/transactions/deepbook.d.mts +20 -20
- package/dist/transactions/deepbookAdmin.d.mts +4 -4
- package/dist/transactions/marginAdmin.d.mts +7 -7
- package/dist/transactions/marginLiquidations.d.mts +3 -3
- package/dist/transactions/marginMaintainer.d.mts +5 -5
- package/dist/transactions/marginManager.d.mts +32 -32
- package/dist/transactions/marginPool.d.mts +18 -18
- package/dist/transactions/marginRegistry.d.mts +16 -16
- package/dist/transactions/marginTPSL.d.mts +10 -10
- package/dist/transactions/poolProxy.d.mts +8 -8
- package/package.json +1 -1
- package/src/predict/client.ts +3 -2
- package/src/predict/index.ts +26 -2
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"protocol_config.mjs","names":["pricing_config.PricingConfig","strike_exposure_config.StrikeExposureConfig","ewma_config.EwmaConfig"],"sources":["../../../src/contracts/deepbook_predict/protocol_config.ts"],"sourcesContent":["/**************************************************************\n * THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *\n **************************************************************/\n\n/**\n * Protocol-wide configuration and flow gates for Predict.\n *\n * This shared object owns the admin-tunable config structs, the trading pause\n * gate, the protocol-wide emergency freeze, and the full-pool valuation in-flight\n * state (flag + flush ordinal, held across the transactions a flush spans;\n * keeper/config flows gate on it, trading flows read it only to discard stale\n * stamps lazily). Flow modules decide which gates apply before they mutate expiry,\n * oracle, pool, or account state.\n */\n\nimport {\n\tMoveStruct,\n\tnormalizeMoveArguments,\n\ttype RawTransactionArgument,\n\ttype ConfigValue,\n} from '../utils/index.js';\nimport { bcs } from '@mysten/sui/bcs';\nimport { U64 } from '../../bcs/integers.js';\nimport { type Transaction } from '@mysten/sui/transactions';\nimport * as pricing_config from './pricing_config.js';\nimport * as strike_exposure_config from './strike_exposure_config.js';\nimport * as ewma_config from './ewma_config.js';\nconst $moduleName = '@local-pkg/deepbook_predict::protocol_config';\nexport const ProtocolConfig = new MoveStruct({\n\tname: `${$moduleName}::ProtocolConfig`,\n\tfields: {\n\t\tid: bcs.Address,\n\t\tpricing_config: pricing_config.PricingConfig,\n\t\t/**\n\t\t * Merged protocol + insurance reserve share of materialized terminal profit, in\n\t\t * FLOAT_SCALING. The complement accrues to LPs.\n\t\t */\n\t\tprotocol_reserve_profit_share: U64,\n\t\t/**\n\t\t * Portion of a referred mint's trader-paid trading fee and congestion surcharge\n\t\t * routed to the referrer, in FLOAT_SCALING.\n\t\t */\n\t\treferral_fee_rate: U64,\n\t\t/**\n\t\t * Fee charged on an executed PLP supply fill, in FLOAT_SCALING, deducted from the\n\t\t * USDC taken in before shares are priced. Ships at zero — a deposit dilutes the\n\t\t * pool's risk per dollar rather than concentrating it, so it is not taxed; the\n\t\t * knob exists to keep that reversible.\n\t\t */\n\t\tplp_supply_fee_rate: U64,\n\t\t/**\n\t\t * Fee charged on an executed PLP withdraw fill, in FLOAT_SCALING, withheld from\n\t\t * the marked payout. Retained by the pool, so it accrues to the holders who stay.\n\t\t * Both rates are read once per flush into the frozen mark, so every fill in one\n\t\t * flush is charged the same pair.\n\t\t */\n\t\tplp_withdraw_fee_rate: U64,\n\t\t/**\n\t\t * Frozen-mark attempts a queued LP supply/withdraw request gets before the\n\t\t * protocol cancels and refunds it. `1` (the default) is fill-or-kill; above that a\n\t\t * missing request rests at the queue head and stops that queue for the flush, so\n\t\t * this is an LP-queue liveness knob (RP-12).\n\t\t */\n\t\tlp_request_limit_flush_attempts: U64,\n\t\t/**\n\t\t * Ceiling on LP-attributable pool value that queued supplies may raise the pool\n\t\t * to, enforced at the flush against the frozen mark. Defaults to 500,000 USDC\n\t\t * (RP-23).\n\t\t */\n\t\tmax_lp_pool_value: U64,\n\t\t/**\n\t\t * Hard staleness bound: `finish_flush` refuses to complete a flush in flight\n\t\t * longer than this, so no LP request fills at a mark older than the window; past\n\t\t * it the operator starts a fresh flush (which discards the stale one). A stalled\n\t\t * flush blocks only LP queue fills and the flush-set markets' settlement — trading\n\t\t * continues — so this also bounds LP-fill latency and is tuned alongside flush\n\t\t * cadence (RP-29).\n\t\t */\n\t\tmax_valuation_window_ms: U64,\n\t\t/**\n\t\t * Window before a market's expiry in which live quotes, mints, and live redeems\n\t\t * abort. Read live at trade time rather than snapshotted per market, so it can be\n\t\t * widened on markets already trading. `0` disables.\n\t\t */\n\t\tno_trade_window_ms: U64,\n\t\tstrike_exposure_template_config: strike_exposure_config.StrikeExposureConfig,\n\t\tewma_config: ewma_config.EwmaConfig,\n\t\t/**\n\t\t * Minimum package version permitted to run version-gated flows. Monotonic;\n\t\t * `bump_version_watermark` advances it to the running `current_version!()`,\n\t\t * retiring older versions. A running version below this floor is dead\n\t\t * (`assert_version`). `current_version!()` stays the upgrade-required code\n\t\t * constant; this is the runtime floor.\n\t\t */\n\t\tversion_watermark: U64,\n\t\t/** Blocks new risk creation while true. */\n\t\ttrading_paused: bcs.bool(),\n\t\t/**\n\t\t * Emergency hard stop. While true, `assert_version` aborts, halting every\n\t\t * version-gated flow (mint, redeem, settlement, valuation, LP supply/withdraw,\n\t\t * admin config) — the same blast radius as a version-disable, but reversible\n\t\t * without a package upgrade. Force-on via `PauseCap`; cleared by `AdminCap`.\n\t\t * Account-package custody withdrawals and builder-fee claims are ungated and stay\n\t\t * available (already-earned funds).\n\t\t */\n\t\tfrozen: bcs.bool(),\n\t\t/**\n\t\t * True for the whole duration of a full-pool valuation, across every transaction\n\t\t * it spans. Keeper cash flows, market lifecycle, and config mutations gate on it;\n\t\t * trading flows do NOT — they read it (with `flush_seq`) only to discard a stale\n\t\t * valuation stamp lazily; a pending market's snapshot state is captured, never\n\t\t * recorded per trade (see `plp`).\n\t\t */\n\t\tvaluation_in_progress: bcs.bool(),\n\t\t/**\n\t\t * True ONLY while the atomic snapshot stage is open — set by `begin_snapshot` at\n\t\t * `start_pool_valuation` and cleared by `end_snapshot` at\n\t\t * `seal_valuation_snapshot`. Both live in one PTB (the `SnapshotStage` hot potato\n\t\t * forces it), so this can never be observed across transactions: it blocks only a\n\t\t * trade the keeper composes INTO its own snapshot PTB, where a mid-stamp cash move\n\t\t * would skew the figures the seal freezes. The resumable valuation stage after the\n\t\t * seal leaves it false, so trading stays live.\n\t\t */\n\t\tsnapshot_in_progress: bcs.bool(),\n\t\t/**\n\t\t * Monotonic flush ordinal, bumped by `begin_valuation`. A market's valuation stamp\n\t\t * names the flush that made it; a stamp whose ordinal is not the current one — or\n\t\t * held while no valuation is in flight — is stale and is lazily discarded by the\n\t\t * next trade, so aborting a flush never has to visit its stamped markets.\n\t\t */\n\t\tflush_seq: U64,\n\t},\n});\nexport interface IdArguments {\n\tconfig?: RawTransactionArgument<string>;\n}\nexport interface IdOptions {\n\tpackage?: string;\n\targuments?: IdArguments;\n\tconfig?: {\n\t\tprotocolConfig: ConfigValue;\n\t\tpredictPackageId?: string;\n\t};\n}\n/**\n * Return the protocol config object ID for external discovery and PTB\n * construction.\n */\nexport function id(options: IdOptions) {\n\tconst packageAddress =\n\t\toptions.package ?? options.config?.predictPackageId ?? '@local-pkg/deepbook_predict';\n\tconst argumentsTypes = [null] satisfies (string | null)[];\n\tconst parameterNames = ['config'];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'protocol_config',\n\t\t\tfunction: 'id',\n\t\t\targuments: normalizeMoveArguments(\n\t\t\t\t{\n\t\t\t\t\t...options.arguments,\n\t\t\t\t\tconfig: options.arguments?.config ?? options.config?.protocolConfig,\n\t\t\t\t},\n\t\t\t\targumentsTypes,\n\t\t\t\tparameterNames,\n\t\t\t),\n\t\t});\n}\nexport interface TradingPausedArguments {\n\tconfig?: RawTransactionArgument<string>;\n}\nexport interface TradingPausedOptions {\n\tpackage?: string;\n\targuments?: TradingPausedArguments;\n\tconfig?: {\n\t\tprotocolConfig: ConfigValue;\n\t\tpredictPackageId?: string;\n\t};\n}\n/** Return the global trading-pause state for SDK and devInspect reads. */\nexport function tradingPaused(options: TradingPausedOptions) {\n\tconst packageAddress =\n\t\toptions.package ?? options.config?.predictPackageId ?? '@local-pkg/deepbook_predict';\n\tconst argumentsTypes = [null] satisfies (string | null)[];\n\tconst parameterNames = ['config'];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'protocol_config',\n\t\t\tfunction: 'trading_paused',\n\t\t\targuments: normalizeMoveArguments(\n\t\t\t\t{\n\t\t\t\t\t...options.arguments,\n\t\t\t\t\tconfig: options.arguments?.config ?? options.config?.protocolConfig,\n\t\t\t\t},\n\t\t\t\targumentsTypes,\n\t\t\t\tparameterNames,\n\t\t\t),\n\t\t});\n}\nexport interface FrozenArguments {\n\tconfig?: RawTransactionArgument<string>;\n}\nexport interface FrozenOptions {\n\tpackage?: string;\n\targuments?: FrozenArguments;\n\tconfig?: {\n\t\tprotocolConfig: ConfigValue;\n\t\tpredictPackageId?: string;\n\t};\n}\n/** Return the global protocol-freeze state for SDK and devInspect reads. */\nexport function frozen(options: FrozenOptions) {\n\tconst packageAddress =\n\t\toptions.package ?? options.config?.predictPackageId ?? '@local-pkg/deepbook_predict';\n\tconst argumentsTypes = [null] satisfies (string | null)[];\n\tconst parameterNames = ['config'];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'protocol_config',\n\t\t\tfunction: 'frozen',\n\t\t\targuments: normalizeMoveArguments(\n\t\t\t\t{\n\t\t\t\t\t...options.arguments,\n\t\t\t\t\tconfig: options.arguments?.config ?? options.config?.protocolConfig,\n\t\t\t\t},\n\t\t\t\targumentsTypes,\n\t\t\t\tparameterNames,\n\t\t\t),\n\t\t});\n}\nexport interface ValuationInProgressArguments {\n\tconfig?: RawTransactionArgument<string>;\n}\nexport interface ValuationInProgressOptions {\n\tpackage?: string;\n\targuments?: ValuationInProgressArguments;\n\tconfig?: {\n\t\tprotocolConfig: ConfigValue;\n\t\tpredictPackageId?: string;\n\t};\n}\n/**\n * Return whether a full-pool valuation is in flight, for SDK and devInspect reads.\n * The flush spans transactions, so \"in flight\" is an observable state: a keeper\n * reads it to notice a flush it must finish or discard, and an integrator reads it\n * to explain a gated keeper/config transaction. Trading is not gated on it.\n */\nexport function valuationInProgress(options: ValuationInProgressOptions) {\n\tconst packageAddress =\n\t\toptions.package ?? options.config?.predictPackageId ?? '@local-pkg/deepbook_predict';\n\tconst argumentsTypes = [null] satisfies (string | null)[];\n\tconst parameterNames = ['config'];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'protocol_config',\n\t\t\tfunction: 'valuation_in_progress',\n\t\t\targuments: normalizeMoveArguments(\n\t\t\t\t{\n\t\t\t\t\t...options.arguments,\n\t\t\t\t\tconfig: options.arguments?.config ?? options.config?.protocolConfig,\n\t\t\t\t},\n\t\t\t\targumentsTypes,\n\t\t\t\tparameterNames,\n\t\t\t),\n\t\t});\n}\nexport interface ReferralFeeRateArguments {\n\tconfig?: RawTransactionArgument<string>;\n}\nexport interface ReferralFeeRateOptions {\n\tpackage?: string;\n\targuments?: ReferralFeeRateArguments;\n\tconfig?: {\n\t\tprotocolConfig: ConfigValue;\n\t\tpredictPackageId?: string;\n\t};\n}\n/** Return the live referral fee rate for SDK and devInspect reads. */\nexport function referralFeeRate(options: ReferralFeeRateOptions) {\n\tconst packageAddress =\n\t\toptions.package ?? options.config?.predictPackageId ?? '@local-pkg/deepbook_predict';\n\tconst argumentsTypes = [null] satisfies (string | null)[];\n\tconst parameterNames = ['config'];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'protocol_config',\n\t\t\tfunction: 'referral_fee_rate',\n\t\t\targuments: normalizeMoveArguments(\n\t\t\t\t{\n\t\t\t\t\t...options.arguments,\n\t\t\t\t\tconfig: options.arguments?.config ?? options.config?.protocolConfig,\n\t\t\t\t},\n\t\t\t\targumentsTypes,\n\t\t\t\tparameterNames,\n\t\t\t),\n\t\t});\n}\nexport interface NoTradeWindowMsArguments {\n\tconfig?: RawTransactionArgument<string>;\n}\nexport interface NoTradeWindowMsOptions {\n\tpackage?: string;\n\targuments?: NoTradeWindowMsArguments;\n\tconfig?: {\n\t\tprotocolConfig: ConfigValue;\n\t\tpredictPackageId?: string;\n\t};\n}\n/**\n * Window before expiry in which live quotes, mints, and live redeems abort.\n * `public` for SDK and devInspect reads: a client that cannot see this value can\n * only learn the window closed by decoding `ETradeWindowClosed` from a failed\n * quote.\n */\nexport function noTradeWindowMs(options: NoTradeWindowMsOptions) {\n\tconst packageAddress =\n\t\toptions.package ?? options.config?.predictPackageId ?? '@local-pkg/deepbook_predict';\n\tconst argumentsTypes = [null] satisfies (string | null)[];\n\tconst parameterNames = ['config'];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'protocol_config',\n\t\t\tfunction: 'no_trade_window_ms',\n\t\t\targuments: normalizeMoveArguments(\n\t\t\t\t{\n\t\t\t\t\t...options.arguments,\n\t\t\t\t\tconfig: options.arguments?.config ?? options.config?.protocolConfig,\n\t\t\t\t},\n\t\t\t\targumentsTypes,\n\t\t\t\tparameterNames,\n\t\t\t),\n\t\t});\n}\nexport interface SetTemplateBaseFeeArguments {\n\tconfig?: RawTransactionArgument<string>;\n\tAdminCap: RawTransactionArgument<string>;\n\tfee: RawTransactionArgument<number | bigint>;\n}\nexport interface SetTemplateBaseFeeOptions {\n\tpackage?: string;\n\targuments: SetTemplateBaseFeeArguments;\n\tconfig?: {\n\t\tprotocolConfig: ConfigValue;\n\t\tpredictPackageId?: string;\n\t};\n}\n/** Set the base fee multiplier snapshotted by newly created expiry markets. */\nexport function setTemplateBaseFee(options: SetTemplateBaseFeeOptions) {\n\tconst packageAddress =\n\t\toptions.package ?? options.config?.predictPackageId ?? '@local-pkg/deepbook_predict';\n\tconst argumentsTypes = [null, null, 'u64', '0x2::clock::Clock'] satisfies (string | null)[];\n\tconst parameterNames = ['config', 'AdminCap', 'fee'];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'protocol_config',\n\t\t\tfunction: 'set_template_base_fee',\n\t\t\targuments: normalizeMoveArguments(\n\t\t\t\t{\n\t\t\t\t\t...options.arguments,\n\t\t\t\t\tconfig: options.arguments?.config ?? options.config?.protocolConfig,\n\t\t\t\t},\n\t\t\t\targumentsTypes,\n\t\t\t\tparameterNames,\n\t\t\t),\n\t\t});\n}\nexport interface SetTemplateMinFeeArguments {\n\tconfig?: RawTransactionArgument<string>;\n\tAdminCap: RawTransactionArgument<string>;\n\tfee: RawTransactionArgument<number | bigint>;\n}\nexport interface SetTemplateMinFeeOptions {\n\tpackage?: string;\n\targuments: SetTemplateMinFeeArguments;\n\tconfig?: {\n\t\tprotocolConfig: ConfigValue;\n\t\tpredictPackageId?: string;\n\t};\n}\n/** Set the minimum fee floor snapshotted by newly created expiry markets. */\nexport function setTemplateMinFee(options: SetTemplateMinFeeOptions) {\n\tconst packageAddress =\n\t\toptions.package ?? options.config?.predictPackageId ?? '@local-pkg/deepbook_predict';\n\tconst argumentsTypes = [null, null, 'u64', '0x2::clock::Clock'] satisfies (string | null)[];\n\tconst parameterNames = ['config', 'AdminCap', 'fee'];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'protocol_config',\n\t\t\tfunction: 'set_template_min_fee',\n\t\t\targuments: normalizeMoveArguments(\n\t\t\t\t{\n\t\t\t\t\t...options.arguments,\n\t\t\t\t\tconfig: options.arguments?.config ?? options.config?.protocolConfig,\n\t\t\t\t},\n\t\t\t\targumentsTypes,\n\t\t\t\tparameterNames,\n\t\t\t),\n\t\t});\n}\nexport interface SetTemplateExpiryFeeWindowMsArguments {\n\tconfig?: RawTransactionArgument<string>;\n\tAdminCap: RawTransactionArgument<string>;\n\tvalue: RawTransactionArgument<number | bigint>;\n}\nexport interface SetTemplateExpiryFeeWindowMsOptions {\n\tpackage?: string;\n\targuments: SetTemplateExpiryFeeWindowMsArguments;\n\tconfig?: {\n\t\tprotocolConfig: ConfigValue;\n\t\tpredictPackageId?: string;\n\t};\n}\n/** Set the expiry-fee ramp window snapshotted by newly created expiry markets. */\nexport function setTemplateExpiryFeeWindowMs(options: SetTemplateExpiryFeeWindowMsOptions) {\n\tconst packageAddress =\n\t\toptions.package ?? options.config?.predictPackageId ?? '@local-pkg/deepbook_predict';\n\tconst argumentsTypes = [null, null, 'u64', '0x2::clock::Clock'] satisfies (string | null)[];\n\tconst parameterNames = ['config', 'AdminCap', 'value'];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'protocol_config',\n\t\t\tfunction: 'set_template_expiry_fee_window_ms',\n\t\t\targuments: normalizeMoveArguments(\n\t\t\t\t{\n\t\t\t\t\t...options.arguments,\n\t\t\t\t\tconfig: options.arguments?.config ?? options.config?.protocolConfig,\n\t\t\t\t},\n\t\t\t\targumentsTypes,\n\t\t\t\tparameterNames,\n\t\t\t),\n\t\t});\n}\nexport interface SetTemplateExpiryFeeMaxMultiplierArguments {\n\tconfig?: RawTransactionArgument<string>;\n\tAdminCap: RawTransactionArgument<string>;\n\tvalue: RawTransactionArgument<number | bigint>;\n}\nexport interface SetTemplateExpiryFeeMaxMultiplierOptions {\n\tpackage?: string;\n\targuments: SetTemplateExpiryFeeMaxMultiplierArguments;\n\tconfig?: {\n\t\tprotocolConfig: ConfigValue;\n\t\tpredictPackageId?: string;\n\t};\n}\n/** Set the expiry-fee max multiplier snapshotted by newly created expiry markets. */\nexport function setTemplateExpiryFeeMaxMultiplier(\n\toptions: SetTemplateExpiryFeeMaxMultiplierOptions,\n) {\n\tconst packageAddress =\n\t\toptions.package ?? options.config?.predictPackageId ?? '@local-pkg/deepbook_predict';\n\tconst argumentsTypes = [null, null, 'u64', '0x2::clock::Clock'] satisfies (string | null)[];\n\tconst parameterNames = ['config', 'AdminCap', 'value'];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'protocol_config',\n\t\t\tfunction: 'set_template_expiry_fee_max_multiplier',\n\t\t\targuments: normalizeMoveArguments(\n\t\t\t\t{\n\t\t\t\t\t...options.arguments,\n\t\t\t\t\tconfig: options.arguments?.config ?? options.config?.protocolConfig,\n\t\t\t\t},\n\t\t\t\targumentsTypes,\n\t\t\t\tparameterNames,\n\t\t\t),\n\t\t});\n}\nexport interface SetTemplateBackingBufferLambdaArguments {\n\tconfig?: RawTransactionArgument<string>;\n\tAdminCap: RawTransactionArgument<string>;\n\tvalue: RawTransactionArgument<number | bigint>;\n}\nexport interface SetTemplateBackingBufferLambdaOptions {\n\tpackage?: string;\n\targuments: SetTemplateBackingBufferLambdaArguments;\n\tconfig?: {\n\t\tprotocolConfig: ConfigValue;\n\t\tpredictPackageId?: string;\n\t};\n}\n/** Set the backing-buffer lambda snapshotted by newly created expiry markets. */\nexport function setTemplateBackingBufferLambda(options: SetTemplateBackingBufferLambdaOptions) {\n\tconst packageAddress =\n\t\toptions.package ?? options.config?.predictPackageId ?? '@local-pkg/deepbook_predict';\n\tconst argumentsTypes = [null, null, 'u64', '0x2::clock::Clock'] satisfies (string | null)[];\n\tconst parameterNames = ['config', 'AdminCap', 'value'];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'protocol_config',\n\t\t\tfunction: 'set_template_backing_buffer_lambda',\n\t\t\targuments: normalizeMoveArguments(\n\t\t\t\t{\n\t\t\t\t\t...options.arguments,\n\t\t\t\t\tconfig: options.arguments?.config ?? options.config?.protocolConfig,\n\t\t\t\t},\n\t\t\t\targumentsTypes,\n\t\t\t\tparameterNames,\n\t\t\t),\n\t\t});\n}\nexport interface SetTemplateInventoryImpactMaxRateArguments {\n\tconfig?: RawTransactionArgument<string>;\n\tAdminCap: RawTransactionArgument<string>;\n\tvalue: RawTransactionArgument<number | bigint>;\n}\nexport interface SetTemplateInventoryImpactMaxRateOptions {\n\tpackage?: string;\n\targuments: SetTemplateInventoryImpactMaxRateArguments;\n\tconfig?: {\n\t\tprotocolConfig: ConfigValue;\n\t\tpredictPackageId?: string;\n\t};\n}\n/**\n * Set the maximum marginal inventory-impact rate snapshotted by newly created\n * expiry markets. `0` (the default) disables both charges and rebates.\n */\nexport function setTemplateInventoryImpactMaxRate(\n\toptions: SetTemplateInventoryImpactMaxRateOptions,\n) {\n\tconst packageAddress =\n\t\toptions.package ?? options.config?.predictPackageId ?? '@local-pkg/deepbook_predict';\n\tconst argumentsTypes = [null, null, 'u64', '0x2::clock::Clock'] satisfies (string | null)[];\n\tconst parameterNames = ['config', 'AdminCap', 'value'];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'protocol_config',\n\t\t\tfunction: 'set_template_inventory_impact_max_rate',\n\t\t\targuments: normalizeMoveArguments(\n\t\t\t\t{\n\t\t\t\t\t...options.arguments,\n\t\t\t\t\tconfig: options.arguments?.config ?? options.config?.protocolConfig,\n\t\t\t\t},\n\t\t\t\targumentsTypes,\n\t\t\t\tparameterNames,\n\t\t\t),\n\t\t});\n}\nexport interface SetTemplateMinEntryProbabilityArguments {\n\tconfig?: RawTransactionArgument<string>;\n\tAdminCap: RawTransactionArgument<string>;\n\tvalue: RawTransactionArgument<number | bigint>;\n}\nexport interface SetTemplateMinEntryProbabilityOptions {\n\tpackage?: string;\n\targuments: SetTemplateMinEntryProbabilityArguments;\n\tconfig?: {\n\t\tprotocolConfig: ConfigValue;\n\t\tpredictPackageId?: string;\n\t};\n}\n/**\n * Set the minimum raw entry probability snapshotted by newly created expiry\n * markets.\n */\nexport function setTemplateMinEntryProbability(options: SetTemplateMinEntryProbabilityOptions) {\n\tconst packageAddress =\n\t\toptions.package ?? options.config?.predictPackageId ?? '@local-pkg/deepbook_predict';\n\tconst argumentsTypes = [null, null, 'u64', '0x2::clock::Clock'] satisfies (string | null)[];\n\tconst parameterNames = ['config', 'AdminCap', 'value'];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'protocol_config',\n\t\t\tfunction: 'set_template_min_entry_probability',\n\t\t\targuments: normalizeMoveArguments(\n\t\t\t\t{\n\t\t\t\t\t...options.arguments,\n\t\t\t\t\tconfig: options.arguments?.config ?? options.config?.protocolConfig,\n\t\t\t\t},\n\t\t\t\targumentsTypes,\n\t\t\t\tparameterNames,\n\t\t\t),\n\t\t});\n}\nexport interface SetTemplateMaxEntryProbabilityArguments {\n\tconfig?: RawTransactionArgument<string>;\n\tAdminCap: RawTransactionArgument<string>;\n\tvalue: RawTransactionArgument<number | bigint>;\n}\nexport interface SetTemplateMaxEntryProbabilityOptions {\n\tpackage?: string;\n\targuments: SetTemplateMaxEntryProbabilityArguments;\n\tconfig?: {\n\t\tprotocolConfig: ConfigValue;\n\t\tpredictPackageId?: string;\n\t};\n}\n/**\n * Set the maximum raw entry probability snapshotted by newly created expiry\n * markets.\n */\nexport function setTemplateMaxEntryProbability(options: SetTemplateMaxEntryProbabilityOptions) {\n\tconst packageAddress =\n\t\toptions.package ?? options.config?.predictPackageId ?? '@local-pkg/deepbook_predict';\n\tconst argumentsTypes = [null, null, 'u64', '0x2::clock::Clock'] satisfies (string | null)[];\n\tconst parameterNames = ['config', 'AdminCap', 'value'];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'protocol_config',\n\t\t\tfunction: 'set_template_max_entry_probability',\n\t\t\targuments: normalizeMoveArguments(\n\t\t\t\t{\n\t\t\t\t\t...options.arguments,\n\t\t\t\t\tconfig: options.arguments?.config ?? options.config?.protocolConfig,\n\t\t\t\t},\n\t\t\t\targumentsTypes,\n\t\t\t\tparameterNames,\n\t\t\t),\n\t\t});\n}\nexport interface SetUsePythSpotForForwardArguments {\n\tconfig?: RawTransactionArgument<string>;\n\tAdminCap: RawTransactionArgument<string>;\n\tenabled: RawTransactionArgument<boolean>;\n}\nexport interface SetUsePythSpotForForwardOptions {\n\tpackage?: string;\n\targuments: SetUsePythSpotForForwardArguments;\n\tconfig?: {\n\t\tprotocolConfig: ConfigValue;\n\t\tpredictPackageId?: string;\n\t};\n}\n/**\n * Select which source the live forward is built from: `true` carries the Block\n * Scholes basis on a fresh Pyth spot, `false` uses the Block Scholes forward\n * directly. Locked during valuation so one flush marks every market on one\n * formula.\n */\nexport function setUsePythSpotForForward(options: SetUsePythSpotForForwardOptions) {\n\tconst packageAddress =\n\t\toptions.package ?? options.config?.predictPackageId ?? '@local-pkg/deepbook_predict';\n\tconst argumentsTypes = [null, null, 'bool', '0x2::clock::Clock'] satisfies (string | null)[];\n\tconst parameterNames = ['config', 'AdminCap', 'enabled'];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'protocol_config',\n\t\t\tfunction: 'set_use_pyth_spot_for_forward',\n\t\t\targuments: normalizeMoveArguments(\n\t\t\t\t{\n\t\t\t\t\t...options.arguments,\n\t\t\t\t\tconfig: options.arguments?.config ?? options.config?.protocolConfig,\n\t\t\t\t},\n\t\t\t\targumentsTypes,\n\t\t\t\tparameterNames,\n\t\t\t),\n\t\t});\n}\nexport interface SetPythSpotFreshnessMsArguments {\n\tconfig?: RawTransactionArgument<string>;\n\tAdminCap: RawTransactionArgument<string>;\n\tvalue: RawTransactionArgument<number | bigint>;\n}\nexport interface SetPythSpotFreshnessMsOptions {\n\tpackage?: string;\n\targuments: SetPythSpotFreshnessMsArguments;\n\tconfig?: {\n\t\tprotocolConfig: ConfigValue;\n\t\tpredictPackageId?: string;\n\t};\n}\n/** Set the live Pyth spot freshness threshold. */\nexport function setPythSpotFreshnessMs(options: SetPythSpotFreshnessMsOptions) {\n\tconst packageAddress =\n\t\toptions.package ?? options.config?.predictPackageId ?? '@local-pkg/deepbook_predict';\n\tconst argumentsTypes = [null, null, 'u64', '0x2::clock::Clock'] satisfies (string | null)[];\n\tconst parameterNames = ['config', 'AdminCap', 'value'];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'protocol_config',\n\t\t\tfunction: 'set_pyth_spot_freshness_ms',\n\t\t\targuments: normalizeMoveArguments(\n\t\t\t\t{\n\t\t\t\t\t...options.arguments,\n\t\t\t\t\tconfig: options.arguments?.config ?? options.config?.protocolConfig,\n\t\t\t\t},\n\t\t\t\targumentsTypes,\n\t\t\t\tparameterNames,\n\t\t\t),\n\t\t});\n}\nexport interface SetBlockScholesPriceFreshnessMsArguments {\n\tconfig?: RawTransactionArgument<string>;\n\tAdminCap: RawTransactionArgument<string>;\n\tvalue: RawTransactionArgument<number | bigint>;\n}\nexport interface SetBlockScholesPriceFreshnessMsOptions {\n\tpackage?: string;\n\targuments: SetBlockScholesPriceFreshnessMsArguments;\n\tconfig?: {\n\t\tprotocolConfig: ConfigValue;\n\t\tpredictPackageId?: string;\n\t};\n}\n/** Set the live Block Scholes spot/forward freshness threshold. */\nexport function setBlockScholesPriceFreshnessMs(options: SetBlockScholesPriceFreshnessMsOptions) {\n\tconst packageAddress =\n\t\toptions.package ?? options.config?.predictPackageId ?? '@local-pkg/deepbook_predict';\n\tconst argumentsTypes = [null, null, 'u64', '0x2::clock::Clock'] satisfies (string | null)[];\n\tconst parameterNames = ['config', 'AdminCap', 'value'];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'protocol_config',\n\t\t\tfunction: 'set_block_scholes_price_freshness_ms',\n\t\t\targuments: normalizeMoveArguments(\n\t\t\t\t{\n\t\t\t\t\t...options.arguments,\n\t\t\t\t\tconfig: options.arguments?.config ?? options.config?.protocolConfig,\n\t\t\t\t},\n\t\t\t\targumentsTypes,\n\t\t\t\tparameterNames,\n\t\t\t),\n\t\t});\n}\nexport interface SetBlockScholesSviFreshnessMsArguments {\n\tconfig?: RawTransactionArgument<string>;\n\tAdminCap: RawTransactionArgument<string>;\n\tvalue: RawTransactionArgument<number | bigint>;\n}\nexport interface SetBlockScholesSviFreshnessMsOptions {\n\tpackage?: string;\n\targuments: SetBlockScholesSviFreshnessMsArguments;\n\tconfig?: {\n\t\tprotocolConfig: ConfigValue;\n\t\tpredictPackageId?: string;\n\t};\n}\n/** Set the live Block Scholes SVI freshness threshold. */\nexport function setBlockScholesSviFreshnessMs(options: SetBlockScholesSviFreshnessMsOptions) {\n\tconst packageAddress =\n\t\toptions.package ?? options.config?.predictPackageId ?? '@local-pkg/deepbook_predict';\n\tconst argumentsTypes = [null, null, 'u64', '0x2::clock::Clock'] satisfies (string | null)[];\n\tconst parameterNames = ['config', 'AdminCap', 'value'];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'protocol_config',\n\t\t\tfunction: 'set_block_scholes_svi_freshness_ms',\n\t\t\targuments: normalizeMoveArguments(\n\t\t\t\t{\n\t\t\t\t\t...options.arguments,\n\t\t\t\t\tconfig: options.arguments?.config ?? options.config?.protocolConfig,\n\t\t\t\t},\n\t\t\t\targumentsTypes,\n\t\t\t\tparameterNames,\n\t\t\t),\n\t\t});\n}\nexport interface SetLpRequestLimitFlushAttemptsArguments {\n\tconfig?: RawTransactionArgument<string>;\n\tAdminCap: RawTransactionArgument<string>;\n\tattempts: RawTransactionArgument<number | bigint>;\n}\nexport interface SetLpRequestLimitFlushAttemptsOptions {\n\tpackage?: string;\n\targuments: SetLpRequestLimitFlushAttemptsArguments;\n\tconfig?: {\n\t\tprotocolConfig: ConfigValue;\n\t\tpredictPackageId?: string;\n\t};\n}\n/**\n * Set how many frozen-mark attempts a queued LP request gets before it is\n * cancelled and refunded. `1` is fill-or-kill. Raising it lets a request rest at\n * the head across flushes, which stops that queue each time it misses — see RP-12\n * for the liveness cost that buys.\n */\nexport function setLpRequestLimitFlushAttempts(options: SetLpRequestLimitFlushAttemptsOptions) {\n\tconst packageAddress =\n\t\toptions.package ?? options.config?.predictPackageId ?? '@local-pkg/deepbook_predict';\n\tconst argumentsTypes = [null, null, 'u64'] satisfies (string | null)[];\n\tconst parameterNames = ['config', 'AdminCap', 'attempts'];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'protocol_config',\n\t\t\tfunction: 'set_lp_request_limit_flush_attempts',\n\t\t\targuments: normalizeMoveArguments(\n\t\t\t\t{\n\t\t\t\t\t...options.arguments,\n\t\t\t\t\tconfig: options.arguments?.config ?? options.config?.protocolConfig,\n\t\t\t\t},\n\t\t\t\targumentsTypes,\n\t\t\t\tparameterNames,\n\t\t\t),\n\t\t});\n}\nexport interface SetMaxValuationWindowMsArguments {\n\tconfig?: RawTransactionArgument<string>;\n\tAdminCap: RawTransactionArgument<string>;\n\twindowMs: RawTransactionArgument<number | bigint>;\n}\nexport interface SetMaxValuationWindowMsOptions {\n\tpackage?: string;\n\targuments: SetMaxValuationWindowMsArguments;\n\tconfig?: {\n\t\tprotocolConfig: ConfigValue;\n\t\tpredictPackageId?: string;\n\t};\n}\n/**\n * Set how long a started full-pool valuation may stay in flight before anyone may\n * discard it. A stalled flush costs LP-fill latency (and settlement latency for\n * its own market set), not a trading pause, so this is an operator liveness knob:\n * too short and a legitimate long flush can be discarded from under the keeper,\n * too long and an abandoned one delays queued LP fills for that duration. See\n * RP-29.\n */\nexport function setMaxValuationWindowMs(options: SetMaxValuationWindowMsOptions) {\n\tconst packageAddress =\n\t\toptions.package ?? options.config?.predictPackageId ?? '@local-pkg/deepbook_predict';\n\tconst argumentsTypes = [null, null, 'u64'] satisfies (string | null)[];\n\tconst parameterNames = ['config', 'AdminCap', 'windowMs'];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'protocol_config',\n\t\t\tfunction: 'set_max_valuation_window_ms',\n\t\t\targuments: normalizeMoveArguments(\n\t\t\t\t{\n\t\t\t\t\t...options.arguments,\n\t\t\t\t\tconfig: options.arguments?.config ?? options.config?.protocolConfig,\n\t\t\t\t},\n\t\t\t\targumentsTypes,\n\t\t\t\tparameterNames,\n\t\t\t),\n\t\t});\n}\nexport interface SetMaxLpPoolValueArguments {\n\tconfig?: RawTransactionArgument<string>;\n\tAdminCap: RawTransactionArgument<string>;\n\tmaxPoolValue: RawTransactionArgument<number | bigint>;\n}\nexport interface SetMaxLpPoolValueOptions {\n\tpackage?: string;\n\targuments: SetMaxLpPoolValueArguments;\n\tconfig?: {\n\t\tprotocolConfig: ConfigValue;\n\t\tpredictPackageId?: string;\n\t};\n}\n/**\n * Set the ceiling on LP-attributable pool value that queued supplies may raise the\n * pool to. A supply that would carry the pool past it is filled up to the cap at\n * the flush and its remainder stays queued; withdrawals and already-issued PLP are\n * unaffected, so lowering this below current pool value closes the pool to new\n * capital rather than forcing anyone out.\n */\nexport function setMaxLpPoolValue(options: SetMaxLpPoolValueOptions) {\n\tconst packageAddress =\n\t\toptions.package ?? options.config?.predictPackageId ?? '@local-pkg/deepbook_predict';\n\tconst argumentsTypes = [null, null, 'u64'] satisfies (string | null)[];\n\tconst parameterNames = ['config', 'AdminCap', 'maxPoolValue'];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'protocol_config',\n\t\t\tfunction: 'set_max_lp_pool_value',\n\t\t\targuments: normalizeMoveArguments(\n\t\t\t\t{\n\t\t\t\t\t...options.arguments,\n\t\t\t\t\tconfig: options.arguments?.config ?? options.config?.protocolConfig,\n\t\t\t\t},\n\t\t\t\targumentsTypes,\n\t\t\t\tparameterNames,\n\t\t\t),\n\t\t});\n}\nexport interface SetEwmaParamsArguments {\n\tconfig?: RawTransactionArgument<string>;\n\tAdminCap: RawTransactionArgument<string>;\n\talpha: RawTransactionArgument<number | bigint>;\n\tzScoreThreshold: RawTransactionArgument<number | bigint>;\n\tpenaltyRate: RawTransactionArgument<number | bigint>;\n}\nexport interface SetEwmaParamsOptions {\n\tpackage?: string;\n\targuments: SetEwmaParamsArguments;\n\tconfig?: {\n\t\tprotocolConfig: ConfigValue;\n\t\tpredictPackageId?: string;\n\t};\n}\n/** Set the EWMA gas-price penalty parameters. */\nexport function setEwmaParams(options: SetEwmaParamsOptions) {\n\tconst packageAddress =\n\t\toptions.package ?? options.config?.predictPackageId ?? '@local-pkg/deepbook_predict';\n\tconst argumentsTypes = [null, null, 'u64', 'u64', 'u64', '0x2::clock::Clock'] satisfies (\n\t\tstring | null\n\t)[];\n\tconst parameterNames = ['config', 'AdminCap', 'alpha', 'zScoreThreshold', 'penaltyRate'];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'protocol_config',\n\t\t\tfunction: 'set_ewma_params',\n\t\t\targuments: normalizeMoveArguments(\n\t\t\t\t{\n\t\t\t\t\t...options.arguments,\n\t\t\t\t\tconfig: options.arguments?.config ?? options.config?.protocolConfig,\n\t\t\t\t},\n\t\t\t\targumentsTypes,\n\t\t\t\tparameterNames,\n\t\t\t),\n\t\t});\n}\nexport interface SetEwmaEnabledArguments {\n\tconfig?: RawTransactionArgument<string>;\n\tAdminCap: RawTransactionArgument<string>;\n\tenabled: RawTransactionArgument<boolean>;\n}\nexport interface SetEwmaEnabledOptions {\n\tpackage?: string;\n\targuments: SetEwmaEnabledArguments;\n\tconfig?: {\n\t\tprotocolConfig: ConfigValue;\n\t\tpredictPackageId?: string;\n\t};\n}\n/** Enable or disable the EWMA gas-price penalty. */\nexport function setEwmaEnabled(options: SetEwmaEnabledOptions) {\n\tconst packageAddress =\n\t\toptions.package ?? options.config?.predictPackageId ?? '@local-pkg/deepbook_predict';\n\tconst argumentsTypes = [null, null, 'bool', '0x2::clock::Clock'] satisfies (string | null)[];\n\tconst parameterNames = ['config', 'AdminCap', 'enabled'];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'protocol_config',\n\t\t\tfunction: 'set_ewma_enabled',\n\t\t\targuments: normalizeMoveArguments(\n\t\t\t\t{\n\t\t\t\t\t...options.arguments,\n\t\t\t\t\tconfig: options.arguments?.config ?? options.config?.protocolConfig,\n\t\t\t\t},\n\t\t\t\targumentsTypes,\n\t\t\t\tparameterNames,\n\t\t\t),\n\t\t});\n}\nexport interface SetNoTradeWindowMsArguments {\n\tconfig?: RawTransactionArgument<string>;\n\tAdminCap: RawTransactionArgument<string>;\n\tvalue: RawTransactionArgument<number | bigint>;\n}\nexport interface SetNoTradeWindowMsOptions {\n\tpackage?: string;\n\targuments: SetNoTradeWindowMsArguments;\n\tconfig?: {\n\t\tprotocolConfig: ConfigValue;\n\t\tpredictPackageId?: string;\n\t};\n}\n/**\n * Set the window before expiry in which live quotes, mints, and live redeems\n * abort. `0` disables the block. Read live at trade time, so a change applies to\n * markets already trading and stays available as an incident control.\n *\n * Deliberately not gated on `assert_not_valuation_in_progress`, matching\n * `set_trading_paused`: a stalled flush must not be able to trap a safety control.\n * Nothing in the flush reads this value, so a mid-valuation change cannot skew a\n * frozen mark.\n */\nexport function setNoTradeWindowMs(options: SetNoTradeWindowMsOptions) {\n\tconst packageAddress =\n\t\toptions.package ?? options.config?.predictPackageId ?? '@local-pkg/deepbook_predict';\n\tconst argumentsTypes = [null, null, 'u64', '0x2::clock::Clock'] satisfies (string | null)[];\n\tconst parameterNames = ['config', 'AdminCap', 'value'];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'protocol_config',\n\t\t\tfunction: 'set_no_trade_window_ms',\n\t\t\targuments: normalizeMoveArguments(\n\t\t\t\t{\n\t\t\t\t\t...options.arguments,\n\t\t\t\t\tconfig: options.arguments?.config ?? options.config?.protocolConfig,\n\t\t\t\t},\n\t\t\t\targumentsTypes,\n\t\t\t\tparameterNames,\n\t\t\t),\n\t\t});\n}\nexport interface SetTradingPausedArguments {\n\tconfig?: RawTransactionArgument<string>;\n\tAdminCap: RawTransactionArgument<string>;\n\tpaused: RawTransactionArgument<boolean>;\n}\nexport interface SetTradingPausedOptions {\n\tpackage?: string;\n\targuments: SetTradingPausedArguments;\n\tconfig?: {\n\t\tprotocolConfig: ConfigValue;\n\t\tpredictPackageId?: string;\n\t};\n}\n/** Set whether trading is paused. */\nexport function setTradingPaused(options: SetTradingPausedOptions) {\n\tconst packageAddress =\n\t\toptions.package ?? options.config?.predictPackageId ?? '@local-pkg/deepbook_predict';\n\tconst argumentsTypes = [null, null, 'bool'] satisfies (string | null)[];\n\tconst parameterNames = ['config', 'AdminCap', 'paused'];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'protocol_config',\n\t\t\tfunction: 'set_trading_paused',\n\t\t\targuments: normalizeMoveArguments(\n\t\t\t\t{\n\t\t\t\t\t...options.arguments,\n\t\t\t\t\tconfig: options.arguments?.config ?? options.config?.protocolConfig,\n\t\t\t\t},\n\t\t\t\targumentsTypes,\n\t\t\t\tparameterNames,\n\t\t\t),\n\t\t});\n}\nexport interface SetFrozenArguments {\n\tconfig?: RawTransactionArgument<string>;\n\tAdminCap: RawTransactionArgument<string>;\n\tfrozen: RawTransactionArgument<boolean>;\n}\nexport interface SetFrozenOptions {\n\tpackage?: string;\n\targuments: SetFrozenArguments;\n\tconfig?: {\n\t\tprotocolConfig: ConfigValue;\n\t\tpredictPackageId?: string;\n\t};\n}\n/**\n * Set the protocol-wide emergency freeze.\n *\n * Intentionally NOT version-gated, unlike every other admin setter: the freeze\n * gate lives inside `assert_version`, so routing this through it would make an\n * engaged freeze unclearable without a package upgrade — defeating the point.\n */\nexport function setFrozen(options: SetFrozenOptions) {\n\tconst packageAddress =\n\t\toptions.package ?? options.config?.predictPackageId ?? '@local-pkg/deepbook_predict';\n\tconst argumentsTypes = [null, null, 'bool'] satisfies (string | null)[];\n\tconst parameterNames = ['config', 'AdminCap', 'frozen'];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'protocol_config',\n\t\t\tfunction: 'set_frozen',\n\t\t\targuments: normalizeMoveArguments(\n\t\t\t\t{\n\t\t\t\t\t...options.arguments,\n\t\t\t\t\tconfig: options.arguments?.config ?? options.config?.protocolConfig,\n\t\t\t\t},\n\t\t\t\targumentsTypes,\n\t\t\t\tparameterNames,\n\t\t\t),\n\t\t});\n}\nexport interface BumpVersionWatermarkArguments {\n\tconfig?: RawTransactionArgument<string>;\n\tAdminCap: RawTransactionArgument<string>;\n}\nexport interface BumpVersionWatermarkOptions {\n\tpackage?: string;\n\targuments: BumpVersionWatermarkArguments;\n\tconfig?: {\n\t\tprotocolConfig: ConfigValue;\n\t\tpredictPackageId?: string;\n\t};\n}\n/**\n * Advance the version floor to this package's compiled-in `current_version!()`.\n *\n * The floor cannot be set above the executing package's version. This function is\n * ungated so an upgraded package can retire older versions; it aborts unless the\n * executing version is strictly greater than the existing floor.\n */\nexport function bumpVersionWatermark(options: BumpVersionWatermarkOptions) {\n\tconst packageAddress =\n\t\toptions.package ?? options.config?.predictPackageId ?? '@local-pkg/deepbook_predict';\n\tconst argumentsTypes = [null, null] satisfies (string | null)[];\n\tconst parameterNames = ['config', 'AdminCap'];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'protocol_config',\n\t\t\tfunction: 'bump_version_watermark',\n\t\t\targuments: normalizeMoveArguments(\n\t\t\t\t{\n\t\t\t\t\t...options.arguments,\n\t\t\t\t\tconfig: options.arguments?.config ?? options.config?.protocolConfig,\n\t\t\t\t},\n\t\t\t\targumentsTypes,\n\t\t\t\tparameterNames,\n\t\t\t),\n\t\t});\n}\nexport interface SetProtocolReserveProfitShareArguments {\n\tconfig?: RawTransactionArgument<string>;\n\tAdminCap: RawTransactionArgument<string>;\n\tprotocolReserveProfitShare: RawTransactionArgument<number | bigint>;\n}\nexport interface SetProtocolReserveProfitShareOptions {\n\tpackage?: string;\n\targuments: SetProtocolReserveProfitShareArguments;\n\tconfig?: {\n\t\tprotocolConfig: ConfigValue;\n\t\tpredictPackageId?: string;\n\t};\n}\n/**\n * Set the protocol reserve profit share used when materializing aggregate expiry\n * profit. Admin-gated; validated against its config-constants envelope.\n */\nexport function setProtocolReserveProfitShare(options: SetProtocolReserveProfitShareOptions) {\n\tconst packageAddress =\n\t\toptions.package ?? options.config?.predictPackageId ?? '@local-pkg/deepbook_predict';\n\tconst argumentsTypes = [null, null, 'u64'] satisfies (string | null)[];\n\tconst parameterNames = ['config', 'AdminCap', 'protocolReserveProfitShare'];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'protocol_config',\n\t\t\tfunction: 'set_protocol_reserve_profit_share',\n\t\t\targuments: normalizeMoveArguments(\n\t\t\t\t{\n\t\t\t\t\t...options.arguments,\n\t\t\t\t\tconfig: options.arguments?.config ?? options.config?.protocolConfig,\n\t\t\t\t},\n\t\t\t\targumentsTypes,\n\t\t\t\tparameterNames,\n\t\t\t),\n\t\t});\n}\nexport interface SetReferralFeeRateArguments {\n\tconfig?: RawTransactionArgument<string>;\n\tAdminCap: RawTransactionArgument<string>;\n\trate: RawTransactionArgument<number | bigint>;\n}\nexport interface SetReferralFeeRateOptions {\n\tpackage?: string;\n\targuments: SetReferralFeeRateArguments;\n\tconfig?: {\n\t\tprotocolConfig: ConfigValue;\n\t\tpredictPackageId?: string;\n\t};\n}\n/**\n * Set the portion of referred mint fees routed to the referrer. The new rate\n * applies to subsequent mints without changing their all-in account withdrawal.\n */\nexport function setReferralFeeRate(options: SetReferralFeeRateOptions) {\n\tconst packageAddress =\n\t\toptions.package ?? options.config?.predictPackageId ?? '@local-pkg/deepbook_predict';\n\tconst argumentsTypes = [null, null, 'u64'] satisfies (string | null)[];\n\tconst parameterNames = ['config', 'AdminCap', 'rate'];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'protocol_config',\n\t\t\tfunction: 'set_referral_fee_rate',\n\t\t\targuments: normalizeMoveArguments(\n\t\t\t\t{\n\t\t\t\t\t...options.arguments,\n\t\t\t\t\tconfig: options.arguments?.config ?? options.config?.protocolConfig,\n\t\t\t\t},\n\t\t\t\targumentsTypes,\n\t\t\t\tparameterNames,\n\t\t\t),\n\t\t});\n}\nexport interface SetPlpSupplyFeeRateArguments {\n\tconfig?: RawTransactionArgument<string>;\n\tAdminCap: RawTransactionArgument<string>;\n\trate: RawTransactionArgument<number | bigint>;\n}\nexport interface SetPlpSupplyFeeRateOptions {\n\tpackage?: string;\n\targuments: SetPlpSupplyFeeRateArguments;\n\tconfig?: {\n\t\tprotocolConfig: ConfigValue;\n\t\tpredictPackageId?: string;\n\t};\n}\n/**\n * Set the fee charged on executed PLP supply fills. Admin-gated and validated\n * against its config-constants envelope. Locked during valuation so the rate a\n * flush froze into its mark cannot change midway through that flush.\n */\nexport function setPlpSupplyFeeRate(options: SetPlpSupplyFeeRateOptions) {\n\tconst packageAddress =\n\t\toptions.package ?? options.config?.predictPackageId ?? '@local-pkg/deepbook_predict';\n\tconst argumentsTypes = [null, null, 'u64', '0x2::clock::Clock'] satisfies (string | null)[];\n\tconst parameterNames = ['config', 'AdminCap', 'rate'];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'protocol_config',\n\t\t\tfunction: 'set_plp_supply_fee_rate',\n\t\t\targuments: normalizeMoveArguments(\n\t\t\t\t{\n\t\t\t\t\t...options.arguments,\n\t\t\t\t\tconfig: options.arguments?.config ?? options.config?.protocolConfig,\n\t\t\t\t},\n\t\t\t\targumentsTypes,\n\t\t\t\tparameterNames,\n\t\t\t),\n\t\t});\n}\nexport interface SetPlpWithdrawFeeRateArguments {\n\tconfig?: RawTransactionArgument<string>;\n\tAdminCap: RawTransactionArgument<string>;\n\trate: RawTransactionArgument<number | bigint>;\n}\nexport interface SetPlpWithdrawFeeRateOptions {\n\tpackage?: string;\n\targuments: SetPlpWithdrawFeeRateArguments;\n\tconfig?: {\n\t\tprotocolConfig: ConfigValue;\n\t\tpredictPackageId?: string;\n\t};\n}\n/**\n * Set the fee charged on executed PLP withdraw fills. Same gating as the supply\n * leg; the two are independent so the exit charge can move without taxing entry.\n */\nexport function setPlpWithdrawFeeRate(options: SetPlpWithdrawFeeRateOptions) {\n\tconst packageAddress =\n\t\toptions.package ?? options.config?.predictPackageId ?? '@local-pkg/deepbook_predict';\n\tconst argumentsTypes = [null, null, 'u64', '0x2::clock::Clock'] satisfies (string | null)[];\n\tconst parameterNames = ['config', 'AdminCap', 'rate'];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'protocol_config',\n\t\t\tfunction: 'set_plp_withdraw_fee_rate',\n\t\t\targuments: normalizeMoveArguments(\n\t\t\t\t{\n\t\t\t\t\t...options.arguments,\n\t\t\t\t\tconfig: options.arguments?.config ?? options.config?.protocolConfig,\n\t\t\t\t},\n\t\t\t\targumentsTypes,\n\t\t\t\tparameterNames,\n\t\t\t),\n\t\t});\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA2BA,MAAM,cAAc;AACpB,MAAa,iBAAiB,IAAI,WAAW;CAC5C,MAAM,GAAG,YAAY;CACrB,QAAQ;EACP,IAAI,IAAI;EACR,gBAAgBA;EAKhB,+BAA+B;EAK/B,mBAAmB;EAOnB,qBAAqB;EAOrB,uBAAuB;EAOvB,iCAAiC;EAMjC,mBAAmB;EASnB,yBAAyB;EAMzB,oBAAoB;EACpB,iCAAiCC;EACjC,aAAaC;EAQb,mBAAmB;EAEnB,gBAAgB,IAAI,MAA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;EACV,WAAW,uBACV;GACC,GAAG,QAAQ;GACX,QAAQ,QAAQ,WAAW,UAAU,QAAQ,QAAQ;GACrD,EACD,gBACA,eACA;EACD,CAAC"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { MoveTuple, RawTransactionArgument } from "../utils/index.mjs";
|
|
2
|
+
import * as _mysten_sui_transactions279 from "@mysten/sui/transactions";
|
|
3
|
+
import { Transaction } from "@mysten/sui/transactions";
|
|
4
|
+
import * as _mysten_bcs0 from "@mysten/bcs";
|
|
5
|
+
|
|
6
|
+
//#region src/contracts/deepbook_predict/range_codec.d.ts
|
|
7
|
+
declare namespace range_codec_d_exports {
|
|
8
|
+
export { Strike, StrikeFromTickArguments, StrikeFromTickOptions, strikeFromTick };
|
|
9
|
+
}
|
|
10
|
+
declare const Strike: MoveTuple<readonly [_mysten_bcs0.BcsType<bigint, string | number | bigint, "u64">], "@local-pkg/deepbook_predict::range_codec::Strike">;
|
|
11
|
+
interface StrikeFromTickArguments {
|
|
12
|
+
tick: RawTransactionArgument<number | bigint>;
|
|
13
|
+
tickSize: RawTransactionArgument<number | bigint>;
|
|
14
|
+
}
|
|
15
|
+
interface StrikeFromTickOptions {
|
|
16
|
+
package?: string;
|
|
17
|
+
arguments: StrikeFromTickArguments | [tick: RawTransactionArgument<number | bigint>, tickSize: RawTransactionArgument<number | bigint>];
|
|
18
|
+
config?: {
|
|
19
|
+
predictPackageId?: string;
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Convert a boundary tick to its raw strike, including the open-end sentinels.
|
|
24
|
+
* Non-sentinel ticks multiply directly by `tick_size`; public PTB and devInspect
|
|
25
|
+
* callers are responsible for supplying the intended market domain.
|
|
26
|
+
*/
|
|
27
|
+
declare function strikeFromTick(options: StrikeFromTickOptions): (tx: Transaction) => _mysten_sui_transactions279.TransactionResult;
|
|
28
|
+
//#endregion
|
|
29
|
+
export { range_codec_d_exports };
|
|
30
|
+
//# sourceMappingURL=range_codec.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"range_codec.d.mts","names":[],"sources":["../../../src/contracts/deepbook_predict/range_codec.ts"],"mappings":";;;;;;;;;cAkBa,MAAA,EAAM,SAAA,WAAmE,YAAA,CAAnE,OAAA;AAAA,UACF,uBAAA;EAChB,IAAA,EAAM,sBAAA;EACN,QAAA,EAAU,sBAAA;AAAA;AAAA,UAEM,qBAAA;EAChB,OAAA;EACA,SAAA,EACG,uBAAA,IAEA,IAAA,EAAM,sBAAA,mBACN,QAAA,EAAU,sBAAA;EAEb,MAAA;IACC,gBAAA;EAAA;AAAA;;;;;;iBAQc,cAAA,CAAe,OAAA,EAAS,qBAAA,IAK/B,EAAA,EAAI,WAAA,KAAW,2BAAA,CAAA,iBAAA"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { __exportAll } from "../../_virtual/rolldown_runtime.mjs";
|
|
1
2
|
import { MoveTuple, normalizeMoveArguments } from "../utils/index.mjs";
|
|
2
3
|
import { U64 } from "../../bcs/integers.mjs";
|
|
3
4
|
|
|
@@ -14,6 +15,10 @@ import { U64 } from "../../bcs/integers.mjs";
|
|
|
14
15
|
* conversion between those ticks and raw oracle-price coordinates; `order` owns
|
|
15
16
|
* range-shape validation.
|
|
16
17
|
*/
|
|
18
|
+
var range_codec_exports = /* @__PURE__ */ __exportAll({
|
|
19
|
+
Strike: () => Strike,
|
|
20
|
+
strikeFromTick: () => strikeFromTick
|
|
21
|
+
});
|
|
17
22
|
const $moduleName = "@local-pkg/deepbook_predict::range_codec";
|
|
18
23
|
const Strike = new MoveTuple({
|
|
19
24
|
name: `${$moduleName}::Strike`,
|
|
@@ -37,5 +42,5 @@ function strikeFromTick(options) {
|
|
|
37
42
|
}
|
|
38
43
|
|
|
39
44
|
//#endregion
|
|
40
|
-
export { strikeFromTick };
|
|
45
|
+
export { range_codec_exports, strikeFromTick };
|
|
41
46
|
//# sourceMappingURL=range_codec.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"range_codec.mjs","names":[],"sources":["../../../src/contracts/deepbook_predict/range_codec.ts"],"sourcesContent":["/**************************************************************\n * THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *\n **************************************************************/\n\n/**\n * Canonical strike-range codec for Predict.\n *\n * Finite strikes are absolute ticks from zero: `strike = tick * tick_size`. Ranges\n * use `(lower_tick, higher_tick)` in entrypoints, events, and order IDs. Tick zero\n * and `pos_inf_tick` are the open lower and upper sentinels. This module owns\n * conversion between those ticks and raw oracle-price coordinates; `order` owns\n * range-shape validation.\n */\n\nimport { MoveTuple, normalizeMoveArguments, type RawTransactionArgument } from '../utils/index.js';\nimport { U64 } from '../../bcs/integers.js';\nimport { type Transaction } from '@mysten/sui/transactions';\nconst $moduleName = '@local-pkg/deepbook_predict::range_codec';\nexport const Strike = new MoveTuple({ name: `${$moduleName}::Strike`, fields: [U64] });\nexport interface StrikeFromTickArguments {\n\ttick: RawTransactionArgument<number | bigint>;\n\ttickSize: RawTransactionArgument<number | bigint>;\n}\nexport interface StrikeFromTickOptions {\n\tpackage?: string;\n\targuments:\n\t\t| StrikeFromTickArguments\n\t\t| [\n\t\t\t\ttick: RawTransactionArgument<number | bigint>,\n\t\t\t\ttickSize: RawTransactionArgument<number | bigint>,\n\t\t ];\n\tconfig?: {\n\t\tpredictPackageId?: string;\n\t};\n}\n/**\n * Convert a boundary tick to its raw strike, including the open-end sentinels.\n * Non-sentinel ticks multiply directly by `tick_size`; public PTB and devInspect\n * callers are responsible for supplying the intended market domain.\n */\nexport function strikeFromTick(options: StrikeFromTickOptions) {\n\tconst packageAddress =\n\t\toptions.package ?? options.config?.predictPackageId ?? '@local-pkg/deepbook_predict';\n\tconst argumentsTypes = ['u64', 'u64'] satisfies (string | null)[];\n\tconst parameterNames = ['tick', 'tickSize'];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'range_codec',\n\t\t\tfunction: 'strike_from_tick',\n\t\t\targuments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),\n\t\t});\n}\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"range_codec.mjs","names":[],"sources":["../../../src/contracts/deepbook_predict/range_codec.ts"],"sourcesContent":["/**************************************************************\n * THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *\n **************************************************************/\n\n/**\n * Canonical strike-range codec for Predict.\n *\n * Finite strikes are absolute ticks from zero: `strike = tick * tick_size`. Ranges\n * use `(lower_tick, higher_tick)` in entrypoints, events, and order IDs. Tick zero\n * and `pos_inf_tick` are the open lower and upper sentinels. This module owns\n * conversion between those ticks and raw oracle-price coordinates; `order` owns\n * range-shape validation.\n */\n\nimport { MoveTuple, normalizeMoveArguments, type RawTransactionArgument } from '../utils/index.js';\nimport { U64 } from '../../bcs/integers.js';\nimport { type Transaction } from '@mysten/sui/transactions';\nconst $moduleName = '@local-pkg/deepbook_predict::range_codec';\nexport const Strike = new MoveTuple({ name: `${$moduleName}::Strike`, fields: [U64] });\nexport interface StrikeFromTickArguments {\n\ttick: RawTransactionArgument<number | bigint>;\n\ttickSize: RawTransactionArgument<number | bigint>;\n}\nexport interface StrikeFromTickOptions {\n\tpackage?: string;\n\targuments:\n\t\t| StrikeFromTickArguments\n\t\t| [\n\t\t\t\ttick: RawTransactionArgument<number | bigint>,\n\t\t\t\ttickSize: RawTransactionArgument<number | bigint>,\n\t\t ];\n\tconfig?: {\n\t\tpredictPackageId?: string;\n\t};\n}\n/**\n * Convert a boundary tick to its raw strike, including the open-end sentinels.\n * Non-sentinel ticks multiply directly by `tick_size`; public PTB and devInspect\n * callers are responsible for supplying the intended market domain.\n */\nexport function strikeFromTick(options: StrikeFromTickOptions) {\n\tconst packageAddress =\n\t\toptions.package ?? options.config?.predictPackageId ?? '@local-pkg/deepbook_predict';\n\tconst argumentsTypes = ['u64', 'u64'] satisfies (string | null)[];\n\tconst parameterNames = ['tick', 'tickSize'];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'range_codec',\n\t\t\tfunction: 'strike_from_tick',\n\t\t\targuments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),\n\t\t});\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAiBA,MAAM,cAAc;AACpB,MAAa,SAAS,IAAI,UAAU;CAAE,MAAM,GAAG,YAAY;CAAW,QAAQ,CAAC,IAAI;CAAE,CAAC;;;;;;AAsBtF,SAAgB,eAAe,SAAgC;CAC9D,MAAM,iBACL,QAAQ,WAAW,QAAQ,QAAQ,oBAAoB;CACxD,MAAM,iBAAiB,CAAC,OAAO,MAAM;CACrC,MAAM,iBAAiB,CAAC,QAAQ,WAAW;AAC3C,SAAQ,OACP,GAAG,SAAS;EACX,SAAS;EACT,QAAQ;EACR,UAAU;EACV,WAAW,uBAAuB,QAAQ,WAAW,gBAAgB,eAAe;EACpF,CAAC"}
|
|
@@ -0,0 +1,382 @@
|
|
|
1
|
+
import { ConfigValue, MoveStruct, RawTransactionArgument } from "../utils/index.mjs";
|
|
2
|
+
import * as _mysten_sui_bcs239 from "@mysten/sui/bcs";
|
|
3
|
+
import * as _mysten_sui_transactions280 from "@mysten/sui/transactions";
|
|
4
|
+
import { Transaction } from "@mysten/sui/transactions";
|
|
5
|
+
|
|
6
|
+
//#region src/contracts/deepbook_predict/registry.d.ts
|
|
7
|
+
declare namespace registry_d_exports {
|
|
8
|
+
export { CadenceConfigArguments, CadenceConfigOptions, CadenceConfigsArguments, CadenceConfigsOptions, CreateAndShareBuilderCodeArguments, CreateAndShareBuilderCodeOptions, CreateAndShareExpiryMarketArguments, CreateAndShareExpiryMarketOptions, ExpiryMarketIdArguments, ExpiryMarketIdOptions, FreezeProtocolPauseCapArguments, FreezeProtocolPauseCapOptions, GeneratePoolValuationProofArguments, GeneratePoolValuationProofOptions, IdArguments, IdOptions, MintLifecycleCapArguments, MintLifecycleCapOptions, MintPauseCapArguments, MintPauseCapOptions, MintPoolValuationCapArguments, MintPoolValuationCapOptions, PauseExpiryMarketMintPauseCapArguments, PauseExpiryMarketMintPauseCapOptions, PauseTradingPauseCapArguments, PauseTradingPauseCapOptions, RegisterUnderlyingArguments, RegisterUnderlyingOptions, Registry, RevokeLifecycleCapArguments, RevokeLifecycleCapOptions, RevokePauseCapArguments, RevokePauseCapOptions, RevokePoolValuationCapArguments, RevokePoolValuationCapOptions, SetTemplateCadenceConfigArguments, SetTemplateCadenceConfigOptions, cadenceConfig, cadenceConfigs, createAndShareBuilderCode, createAndShareExpiryMarket, expiryMarketId, freezeProtocolPauseCap, generatePoolValuationProof, id, mintLifecycleCap, mintPauseCap, mintPoolValuationCap, pauseExpiryMarketMintPauseCap, pauseTradingPauseCap, registerUnderlying, revokeLifecycleCap, revokePauseCap, revokePoolValuationCap, setTemplateCadenceConfig };
|
|
9
|
+
}
|
|
10
|
+
declare const Registry: MoveStruct<{
|
|
11
|
+
id: _mysten_sui_bcs239.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
12
|
+
/**
|
|
13
|
+
* Market identity, cadence deployment terms, underlying watermarks, and
|
|
14
|
+
* uniqueness.
|
|
15
|
+
*/
|
|
16
|
+
market_manager: MoveStruct<{
|
|
17
|
+
underlying_configs: MoveStruct<{
|
|
18
|
+
id: _mysten_sui_bcs239.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
19
|
+
size: _mysten_sui_bcs239.BcsType<bigint, string | number | bigint, "u64">;
|
|
20
|
+
}, "0x2::table::Table<phantom K, phantom V>">;
|
|
21
|
+
market_ids: MoveStruct<{
|
|
22
|
+
id: _mysten_sui_bcs239.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
23
|
+
size: _mysten_sui_bcs239.BcsType<bigint, string | number | bigint, "u64">;
|
|
24
|
+
}, "0x2::table::Table<phantom K, phantom V>">;
|
|
25
|
+
}, "@local-pkg/deepbook_predict::market_manager::MarketManager">;
|
|
26
|
+
/**
|
|
27
|
+
* IDs of `PauseCap` objects currently authorized to use pause-only entries. Admin
|
|
28
|
+
* mints into this set and revokes from it.
|
|
29
|
+
*/
|
|
30
|
+
allowed_pause_caps: MoveStruct<{
|
|
31
|
+
contents: _mysten_sui_bcs239.BcsType<string[], Iterable<string | Uint8Array<ArrayBufferLike>> & {
|
|
32
|
+
length: number;
|
|
33
|
+
}, string>;
|
|
34
|
+
}, "0x2::vec_set::VecSet<bytes[32]>">;
|
|
35
|
+
/**
|
|
36
|
+
* IDs of `MarketLifecycleCap` objects currently authorized to create expiry
|
|
37
|
+
* markets. Admin mints into this set and revokes from it.
|
|
38
|
+
*/
|
|
39
|
+
allowed_lifecycle_caps: MoveStruct<{
|
|
40
|
+
contents: _mysten_sui_bcs239.BcsType<string[], Iterable<string | Uint8Array<ArrayBufferLike>> & {
|
|
41
|
+
length: number;
|
|
42
|
+
}, string>;
|
|
43
|
+
}, "0x2::vec_set::VecSet<bytes[32]>">;
|
|
44
|
+
/**
|
|
45
|
+
* IDs of `PoolValuationCap` objects currently authorized to start the full-pool
|
|
46
|
+
* valuation. Admin mints into this set and revokes from it.
|
|
47
|
+
*/
|
|
48
|
+
allowed_pool_valuation_caps: MoveStruct<{
|
|
49
|
+
contents: _mysten_sui_bcs239.BcsType<string[], Iterable<string | Uint8Array<ArrayBufferLike>> & {
|
|
50
|
+
length: number;
|
|
51
|
+
}, string>;
|
|
52
|
+
}, "0x2::vec_set::VecSet<bytes[32]>">;
|
|
53
|
+
}, "@local-pkg/deepbook_predict::registry::Registry">;
|
|
54
|
+
interface IdArguments {
|
|
55
|
+
registry?: RawTransactionArgument<string>;
|
|
56
|
+
}
|
|
57
|
+
interface IdOptions {
|
|
58
|
+
package?: string;
|
|
59
|
+
arguments?: IdArguments;
|
|
60
|
+
config?: {
|
|
61
|
+
registry: ConfigValue;
|
|
62
|
+
predictPackageId?: string;
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
/** Return the registry object ID for external discovery and PTB construction. */
|
|
66
|
+
declare function id(options: IdOptions): (tx: Transaction) => _mysten_sui_transactions280.TransactionResult;
|
|
67
|
+
interface ExpiryMarketIdArguments {
|
|
68
|
+
registry?: RawTransactionArgument<string>;
|
|
69
|
+
propbookUnderlyingId: RawTransactionArgument<number>;
|
|
70
|
+
expiry: RawTransactionArgument<number | bigint>;
|
|
71
|
+
}
|
|
72
|
+
interface ExpiryMarketIdOptions {
|
|
73
|
+
package?: string;
|
|
74
|
+
arguments: ExpiryMarketIdArguments;
|
|
75
|
+
config?: {
|
|
76
|
+
registry: ConfigValue;
|
|
77
|
+
predictPackageId?: string;
|
|
78
|
+
};
|
|
79
|
+
}
|
|
80
|
+
/** Resolve an expiry market ID for external discovery and PTB construction. */
|
|
81
|
+
declare function expiryMarketId(options: ExpiryMarketIdOptions): (tx: Transaction) => _mysten_sui_transactions280.TransactionResult;
|
|
82
|
+
interface CadenceConfigArguments {
|
|
83
|
+
registry?: RawTransactionArgument<string>;
|
|
84
|
+
propbookUnderlyingId: RawTransactionArgument<number>;
|
|
85
|
+
cadenceId: RawTransactionArgument<number>;
|
|
86
|
+
}
|
|
87
|
+
interface CadenceConfigOptions {
|
|
88
|
+
package?: string;
|
|
89
|
+
arguments: CadenceConfigArguments;
|
|
90
|
+
config?: {
|
|
91
|
+
registry: ConfigValue;
|
|
92
|
+
predictPackageId?: string;
|
|
93
|
+
};
|
|
94
|
+
}
|
|
95
|
+
/** Return deployment policy for SDK and devInspect market discovery. */
|
|
96
|
+
declare function cadenceConfig(options: CadenceConfigOptions): (tx: Transaction) => _mysten_sui_transactions280.TransactionResult;
|
|
97
|
+
interface CadenceConfigsArguments {
|
|
98
|
+
registry?: RawTransactionArgument<string>;
|
|
99
|
+
propbookUnderlyingId: RawTransactionArgument<number>;
|
|
100
|
+
}
|
|
101
|
+
interface CadenceConfigsOptions {
|
|
102
|
+
package?: string;
|
|
103
|
+
arguments: CadenceConfigsArguments;
|
|
104
|
+
config?: {
|
|
105
|
+
registry: ConfigValue;
|
|
106
|
+
predictPackageId?: string;
|
|
107
|
+
};
|
|
108
|
+
}
|
|
109
|
+
/**
|
|
110
|
+
* Return one underlying's complete deployment policy as a single coherent
|
|
111
|
+
* snapshot, for off-chain consumers (SDK and devInspect cadence discovery by the
|
|
112
|
+
* keeper, price updater, and dashboard) that would otherwise need one read per
|
|
113
|
+
* cadence. The vector holds one entry per supported cadence, indexed by cadence
|
|
114
|
+
* ID; disabled cadences are present as their all-zero configuration. Aborts if the
|
|
115
|
+
* underlying is not registered.
|
|
116
|
+
*/
|
|
117
|
+
declare function cadenceConfigs(options: CadenceConfigsOptions): (tx: Transaction) => _mysten_sui_transactions280.TransactionResult;
|
|
118
|
+
interface MintPauseCapArguments {
|
|
119
|
+
registry?: RawTransactionArgument<string>;
|
|
120
|
+
AdminCap: RawTransactionArgument<string>;
|
|
121
|
+
}
|
|
122
|
+
interface MintPauseCapOptions {
|
|
123
|
+
package?: string;
|
|
124
|
+
arguments: MintPauseCapArguments;
|
|
125
|
+
config?: {
|
|
126
|
+
registry: ConfigValue;
|
|
127
|
+
predictPackageId?: string;
|
|
128
|
+
};
|
|
129
|
+
}
|
|
130
|
+
/**
|
|
131
|
+
* Mint a new `PauseCap`. This bypasses the version gate so emergency pause
|
|
132
|
+
* authority remains available from a package version below the runtime floor.
|
|
133
|
+
*/
|
|
134
|
+
declare function mintPauseCap(options: MintPauseCapOptions): (tx: Transaction) => _mysten_sui_transactions280.TransactionResult;
|
|
135
|
+
interface RevokePauseCapArguments {
|
|
136
|
+
registry?: RawTransactionArgument<string>;
|
|
137
|
+
AdminCap: RawTransactionArgument<string>;
|
|
138
|
+
pauseCapId: RawTransactionArgument<string>;
|
|
139
|
+
}
|
|
140
|
+
interface RevokePauseCapOptions {
|
|
141
|
+
package?: string;
|
|
142
|
+
arguments: RevokePauseCapArguments;
|
|
143
|
+
config?: {
|
|
144
|
+
registry: ConfigValue;
|
|
145
|
+
predictPackageId?: string;
|
|
146
|
+
};
|
|
147
|
+
}
|
|
148
|
+
/** Revoke a previously minted `PauseCap` by ID. Admin-only. */
|
|
149
|
+
declare function revokePauseCap(options: RevokePauseCapOptions): (tx: Transaction) => _mysten_sui_transactions280.TransactionResult;
|
|
150
|
+
interface MintLifecycleCapArguments {
|
|
151
|
+
registry?: RawTransactionArgument<string>;
|
|
152
|
+
config?: RawTransactionArgument<string>;
|
|
153
|
+
AdminCap: RawTransactionArgument<string>;
|
|
154
|
+
}
|
|
155
|
+
interface MintLifecycleCapOptions {
|
|
156
|
+
package?: string;
|
|
157
|
+
arguments: MintLifecycleCapArguments;
|
|
158
|
+
config?: {
|
|
159
|
+
registry: ConfigValue;
|
|
160
|
+
protocolConfig: ConfigValue;
|
|
161
|
+
predictPackageId?: string;
|
|
162
|
+
};
|
|
163
|
+
}
|
|
164
|
+
/** Mint a version-gated `MarketLifecycleCap` with market-creation authority. */
|
|
165
|
+
declare function mintLifecycleCap(options: MintLifecycleCapOptions): (tx: Transaction) => _mysten_sui_transactions280.TransactionResult;
|
|
166
|
+
interface RevokeLifecycleCapArguments {
|
|
167
|
+
registry?: RawTransactionArgument<string>;
|
|
168
|
+
AdminCap: RawTransactionArgument<string>;
|
|
169
|
+
lifecycleCapId: RawTransactionArgument<string>;
|
|
170
|
+
}
|
|
171
|
+
interface RevokeLifecycleCapOptions {
|
|
172
|
+
package?: string;
|
|
173
|
+
arguments: RevokeLifecycleCapArguments;
|
|
174
|
+
config?: {
|
|
175
|
+
registry: ConfigValue;
|
|
176
|
+
predictPackageId?: string;
|
|
177
|
+
};
|
|
178
|
+
}
|
|
179
|
+
/** Revoke a `MarketLifecycleCap` by ID without applying the version gate. */
|
|
180
|
+
declare function revokeLifecycleCap(options: RevokeLifecycleCapOptions): (tx: Transaction) => _mysten_sui_transactions280.TransactionResult;
|
|
181
|
+
interface MintPoolValuationCapArguments {
|
|
182
|
+
registry?: RawTransactionArgument<string>;
|
|
183
|
+
AdminCap: RawTransactionArgument<string>;
|
|
184
|
+
config?: RawTransactionArgument<string>;
|
|
185
|
+
}
|
|
186
|
+
interface MintPoolValuationCapOptions {
|
|
187
|
+
package?: string;
|
|
188
|
+
arguments: MintPoolValuationCapArguments;
|
|
189
|
+
config?: {
|
|
190
|
+
registry: ConfigValue;
|
|
191
|
+
protocolConfig: ConfigValue;
|
|
192
|
+
predictPackageId?: string;
|
|
193
|
+
};
|
|
194
|
+
}
|
|
195
|
+
/**
|
|
196
|
+
* Mint a version-gated `PoolValuationCap` with authority to start the full-pool
|
|
197
|
+
* valuation.
|
|
198
|
+
*/
|
|
199
|
+
declare function mintPoolValuationCap(options: MintPoolValuationCapOptions): (tx: Transaction) => _mysten_sui_transactions280.TransactionResult;
|
|
200
|
+
interface RevokePoolValuationCapArguments {
|
|
201
|
+
registry?: RawTransactionArgument<string>;
|
|
202
|
+
AdminCap: RawTransactionArgument<string>;
|
|
203
|
+
poolValuationCapId: RawTransactionArgument<string>;
|
|
204
|
+
}
|
|
205
|
+
interface RevokePoolValuationCapOptions {
|
|
206
|
+
package?: string;
|
|
207
|
+
arguments: RevokePoolValuationCapArguments;
|
|
208
|
+
config?: {
|
|
209
|
+
registry: ConfigValue;
|
|
210
|
+
predictPackageId?: string;
|
|
211
|
+
};
|
|
212
|
+
}
|
|
213
|
+
/** Revoke a `PoolValuationCap` by ID without applying the version gate. */
|
|
214
|
+
declare function revokePoolValuationCap(options: RevokePoolValuationCapOptions): (tx: Transaction) => _mysten_sui_transactions280.TransactionResult;
|
|
215
|
+
interface GeneratePoolValuationProofArguments {
|
|
216
|
+
registry?: RawTransactionArgument<string>;
|
|
217
|
+
poolValuationCap: RawTransactionArgument<string>;
|
|
218
|
+
}
|
|
219
|
+
interface GeneratePoolValuationProofOptions {
|
|
220
|
+
package?: string;
|
|
221
|
+
arguments: GeneratePoolValuationProofArguments;
|
|
222
|
+
config?: {
|
|
223
|
+
registry: ConfigValue;
|
|
224
|
+
predictPackageId?: string;
|
|
225
|
+
};
|
|
226
|
+
}
|
|
227
|
+
/**
|
|
228
|
+
* Generate a transaction-local proof that `pool_valuation_cap` is currently
|
|
229
|
+
* allowlisted. `plp::start_pool_valuation` takes the proof by value so a revoked
|
|
230
|
+
* cap cannot start a valuation.
|
|
231
|
+
*/
|
|
232
|
+
declare function generatePoolValuationProof(options: GeneratePoolValuationProofOptions): (tx: Transaction) => _mysten_sui_transactions280.TransactionResult;
|
|
233
|
+
interface PauseTradingPauseCapArguments {
|
|
234
|
+
config?: RawTransactionArgument<string>;
|
|
235
|
+
registry?: RawTransactionArgument<string>;
|
|
236
|
+
pauseCap: RawTransactionArgument<string>;
|
|
237
|
+
}
|
|
238
|
+
interface PauseTradingPauseCapOptions {
|
|
239
|
+
package?: string;
|
|
240
|
+
arguments: PauseTradingPauseCapArguments;
|
|
241
|
+
config?: {
|
|
242
|
+
protocolConfig: ConfigValue;
|
|
243
|
+
registry: ConfigValue;
|
|
244
|
+
predictPackageId?: string;
|
|
245
|
+
};
|
|
246
|
+
}
|
|
247
|
+
/** Force `trading_paused = true` via a valid `PauseCap`. One-way. */
|
|
248
|
+
declare function pauseTradingPauseCap(options: PauseTradingPauseCapOptions): (tx: Transaction) => _mysten_sui_transactions280.TransactionResult;
|
|
249
|
+
interface FreezeProtocolPauseCapArguments {
|
|
250
|
+
config?: RawTransactionArgument<string>;
|
|
251
|
+
registry?: RawTransactionArgument<string>;
|
|
252
|
+
pauseCap: RawTransactionArgument<string>;
|
|
253
|
+
}
|
|
254
|
+
interface FreezeProtocolPauseCapOptions {
|
|
255
|
+
package?: string;
|
|
256
|
+
arguments: FreezeProtocolPauseCapArguments;
|
|
257
|
+
config?: {
|
|
258
|
+
protocolConfig: ConfigValue;
|
|
259
|
+
registry: ConfigValue;
|
|
260
|
+
predictPackageId?: string;
|
|
261
|
+
};
|
|
262
|
+
}
|
|
263
|
+
/**
|
|
264
|
+
* Force the protocol-wide emergency freeze via a valid `PauseCap`. One-way;
|
|
265
|
+
* admin's `protocol_config::set_frozen` is needed to lift the freeze.
|
|
266
|
+
*/
|
|
267
|
+
declare function freezeProtocolPauseCap(options: FreezeProtocolPauseCapOptions): (tx: Transaction) => _mysten_sui_transactions280.TransactionResult;
|
|
268
|
+
interface PauseExpiryMarketMintPauseCapArguments {
|
|
269
|
+
market: RawTransactionArgument<string>;
|
|
270
|
+
registry?: RawTransactionArgument<string>;
|
|
271
|
+
pauseCap: RawTransactionArgument<string>;
|
|
272
|
+
}
|
|
273
|
+
interface PauseExpiryMarketMintPauseCapOptions {
|
|
274
|
+
package?: string;
|
|
275
|
+
arguments: PauseExpiryMarketMintPauseCapArguments;
|
|
276
|
+
config?: {
|
|
277
|
+
registry: ConfigValue;
|
|
278
|
+
predictPackageId?: string;
|
|
279
|
+
};
|
|
280
|
+
}
|
|
281
|
+
/**
|
|
282
|
+
* Force `mint_paused = true` on a single expiry market via a valid `PauseCap`.
|
|
283
|
+
* One-way; admin's `expiry_market::set_mint_paused` is needed to unpause.
|
|
284
|
+
*/
|
|
285
|
+
declare function pauseExpiryMarketMintPauseCap(options: PauseExpiryMarketMintPauseCapOptions): (tx: Transaction) => _mysten_sui_transactions280.TransactionResult;
|
|
286
|
+
interface RegisterUnderlyingArguments {
|
|
287
|
+
registry?: RawTransactionArgument<string>;
|
|
288
|
+
config?: RawTransactionArgument<string>;
|
|
289
|
+
AdminCap: RawTransactionArgument<string>;
|
|
290
|
+
propbookUnderlyingId: RawTransactionArgument<number>;
|
|
291
|
+
}
|
|
292
|
+
interface RegisterUnderlyingOptions {
|
|
293
|
+
package?: string;
|
|
294
|
+
arguments: RegisterUnderlyingArguments;
|
|
295
|
+
config?: {
|
|
296
|
+
registry: ConfigValue;
|
|
297
|
+
protocolConfig: ConfigValue;
|
|
298
|
+
predictPackageId?: string;
|
|
299
|
+
};
|
|
300
|
+
}
|
|
301
|
+
/**
|
|
302
|
+
* Record admin approval of one Propbook underlying. Source IDs and canonical
|
|
303
|
+
* oracle object IDs remain owned by Propbook; this row only gates which
|
|
304
|
+
* underlyings Predict will build markets on and stores deployment watermarks.
|
|
305
|
+
*/
|
|
306
|
+
declare function registerUnderlying(options: RegisterUnderlyingOptions): (tx: Transaction) => _mysten_sui_transactions280.TransactionResult;
|
|
307
|
+
interface SetTemplateCadenceConfigArguments {
|
|
308
|
+
registry?: RawTransactionArgument<string>;
|
|
309
|
+
config?: RawTransactionArgument<string>;
|
|
310
|
+
AdminCap: RawTransactionArgument<string>;
|
|
311
|
+
propbookUnderlyingId: RawTransactionArgument<number>;
|
|
312
|
+
cadenceId: RawTransactionArgument<number>;
|
|
313
|
+
tickSize: RawTransactionArgument<number | bigint>;
|
|
314
|
+
admissionTickSize: RawTransactionArgument<number | bigint>;
|
|
315
|
+
maxExpiryAllocation: RawTransactionArgument<number | bigint>;
|
|
316
|
+
initialExpiryCash: RawTransactionArgument<number | bigint>;
|
|
317
|
+
windowSize: RawTransactionArgument<number | bigint>;
|
|
318
|
+
}
|
|
319
|
+
interface SetTemplateCadenceConfigOptions {
|
|
320
|
+
package?: string;
|
|
321
|
+
arguments: SetTemplateCadenceConfigArguments;
|
|
322
|
+
config?: {
|
|
323
|
+
registry: ConfigValue;
|
|
324
|
+
protocolConfig: ConfigValue;
|
|
325
|
+
predictPackageId?: string;
|
|
326
|
+
};
|
|
327
|
+
}
|
|
328
|
+
/**
|
|
329
|
+
* Set all deployment terms for one underlying's cadence. Passing zero for all five
|
|
330
|
+
* values disables the cadence; otherwise all values must be nonzero and valid.
|
|
331
|
+
*/
|
|
332
|
+
declare function setTemplateCadenceConfig(options: SetTemplateCadenceConfigOptions): (tx: Transaction) => _mysten_sui_transactions280.TransactionResult;
|
|
333
|
+
interface CreateAndShareExpiryMarketArguments {
|
|
334
|
+
registry?: RawTransactionArgument<string>;
|
|
335
|
+
poolVault?: RawTransactionArgument<string>;
|
|
336
|
+
config?: RawTransactionArgument<string>;
|
|
337
|
+
propbookRegistry?: RawTransactionArgument<string>;
|
|
338
|
+
lifecycleCap: RawTransactionArgument<string>;
|
|
339
|
+
propbookUnderlyingId: RawTransactionArgument<number>;
|
|
340
|
+
cadenceId: RawTransactionArgument<number>;
|
|
341
|
+
}
|
|
342
|
+
interface CreateAndShareExpiryMarketOptions {
|
|
343
|
+
package?: string;
|
|
344
|
+
arguments: CreateAndShareExpiryMarketArguments;
|
|
345
|
+
config?: {
|
|
346
|
+
registry: ConfigValue;
|
|
347
|
+
poolVault: ConfigValue;
|
|
348
|
+
protocolConfig: ConfigValue;
|
|
349
|
+
oracleRegistry: ConfigValue;
|
|
350
|
+
predictPackageId?: string;
|
|
351
|
+
};
|
|
352
|
+
}
|
|
353
|
+
/**
|
|
354
|
+
* Create the next deployable `ExpiryMarket` for one cadence on a Propbook
|
|
355
|
+
* underlying.
|
|
356
|
+
*
|
|
357
|
+
* Requires an allowlisted lifecycle capability, a registered underlying with all
|
|
358
|
+
* canonical feed objects bound, and an enabled cadence with a deployable slot.
|
|
359
|
+
* Higher-rank cadence overlaps and existing markets are skipped. The market
|
|
360
|
+
* snapshots cadence and expiry policy, starts with zero cash, and cannot mint
|
|
361
|
+
* until pool rebalancing funds it. Live pricing reads current Propbook bindings.
|
|
362
|
+
*/
|
|
363
|
+
declare function createAndShareExpiryMarket(options: CreateAndShareExpiryMarketOptions): (tx: Transaction) => _mysten_sui_transactions280.TransactionResult;
|
|
364
|
+
interface CreateAndShareBuilderCodeArguments {
|
|
365
|
+
registry?: RawTransactionArgument<string>;
|
|
366
|
+
config?: RawTransactionArgument<string>;
|
|
367
|
+
index: RawTransactionArgument<number | bigint>;
|
|
368
|
+
}
|
|
369
|
+
interface CreateAndShareBuilderCodeOptions {
|
|
370
|
+
package?: string;
|
|
371
|
+
arguments: CreateAndShareBuilderCodeArguments;
|
|
372
|
+
config?: {
|
|
373
|
+
registry: ConfigValue;
|
|
374
|
+
protocolConfig: ConfigValue;
|
|
375
|
+
predictPackageId?: string;
|
|
376
|
+
};
|
|
377
|
+
}
|
|
378
|
+
/** Create a derived shared BuilderCode for the caller and index. */
|
|
379
|
+
declare function createAndShareBuilderCode(options: CreateAndShareBuilderCodeOptions): (tx: Transaction) => _mysten_sui_transactions280.TransactionResult;
|
|
380
|
+
//#endregion
|
|
381
|
+
export { registry_d_exports };
|
|
382
|
+
//# sourceMappingURL=registry.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"registry.d.mts","names":[],"sources":["../../../src/contracts/deepbook_predict/registry.ts"],"mappings":";;;;;;;;;cAyBa,QAAA,EAAQ,UAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;UA0BJ,WAAA;EAChB,QAAA,GAAW,sBAAA;AAAA;AAAA,UAEK,SAAA;EAChB,OAAA;EACA,SAAA,GAAY,WAAA;EACZ,MAAA;IACC,QAAA,EAAU,WAAA;IACV,gBAAA;EAAA;AAAA;;iBAIc,EAAA,CAAG,OAAA,EAAS,SAAA,IAKnB,EAAA,EAAI,WAAA,KAAW,2BAAA,CAAA,iBAAA;AAAA,UAeP,uBAAA;EAChB,QAAA,GAAW,sBAAA;EACX,oBAAA,EAAsB,sBAAA;EACtB,MAAA,EAAQ,sBAAA;AAAA;AAAA,UAEQ,qBAAA;EAChB,OAAA;EACA,SAAA,EAAW,uBAAA;EACX,MAAA;IACC,QAAA,EAAU,WAAA;IACV,gBAAA;EAAA;AAAA;;iBAIc,cAAA,CAAe,OAAA,EAAS,qBAAA,IAK/B,EAAA,EAAI,WAAA,KAAW,2BAAA,CAAA,iBAAA;AAAA,UAeP,sBAAA;EAChB,QAAA,GAAW,sBAAA;EACX,oBAAA,EAAsB,sBAAA;EACtB,SAAA,EAAW,sBAAA;AAAA;AAAA,UAEK,oBAAA;EAChB,OAAA;EACA,SAAA,EAAW,sBAAA;EACX,MAAA;IACC,QAAA,EAAU,WAAA;IACV,gBAAA;EAAA;AAAA;;iBAIc,aAAA,CAAc,OAAA,EAAS,oBAAA,IAK9B,EAAA,EAAI,WAAA,KAAW,2BAAA,CAAA,iBA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