{"version":3,"file":"registry.mjs","names":["market_manager.MarketManager","vec_set.VecSet"],"sources":["../../../src/contracts/deepbook_predict/registry.ts"],"sourcesContent":["/**************************************************************\n * THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *\n **************************************************************/\n\n/**\n * Registry and creation entrypoints for the Predict protocol.\n *\n * This module creates shared setup objects, owns registry-level capabilities, and\n * exposes registry-owned governance/creation entrypoints. Market identity, cadence\n * policy, underlying watermarks, and market uniqueness live in the embedded\n * `market_manager`. Runtime pool accounting, expiry risk, oracle feeds, and user\n * positions stay in their owning modules.\n */\n\nimport {\n\tMoveStruct,\n\tMoveTuple,\n\tnormalizeMoveArguments,\n\ttype RawTransactionArgument,\n\ttype ConfigValue,\n} from '../utils/index.js';\nimport { bcs } from '@mysten/sui/bcs';\nimport { type Transaction } from '@mysten/sui/transactions';\nimport * as market_manager from './market_manager.js';\nimport * as vec_set from './deps/sui/vec_set.js';\nconst $moduleName = '@local-pkg/deepbook_predict::registry';\nexport const Registry = new MoveStruct({\n\tname: `${$moduleName}::Registry`,\n\tfields: {\n\t\tid: bcs.Address,\n\t\t/**\n\t\t * Market identity, cadence deployment terms, underlying watermarks, and\n\t\t * uniqueness.\n\t\t */\n\t\tmarket_manager: market_manager.MarketManager,\n\t\t/**\n\t\t * IDs of `PauseCap` objects currently authorized to use pause-only entries. Admin\n\t\t * mints into this set and revokes from it.\n\t\t */\n\t\tallowed_pause_caps: vec_set.VecSet(bcs.Address),\n\t\t/**\n\t\t * IDs of `MarketLifecycleCap` objects currently authorized to create expiry\n\t\t * markets. Admin mints into this set and revokes from it.\n\t\t */\n\t\tallowed_lifecycle_caps: vec_set.VecSet(bcs.Address),\n\t\t/**\n\t\t * IDs of `PoolValuationCap` objects currently authorized to start the full-pool\n\t\t * valuation. Admin mints into this set and revokes from it.\n\t\t */\n\t\tallowed_pool_valuation_caps: vec_set.VecSet(bcs.Address),\n\t},\n});\nexport const CadencePeriodsKey = new MoveTuple({\n\tname: `${$moduleName}::CadencePeriodsKey`,\n\tfields: [bcs.bool()],\n});\nexport interface IdArguments {\n\tregistry?: RawTransactionArgument<string>;\n}\nexport interface IdOptions {\n\tpackage?: string;\n\targuments?: IdArguments;\n\tconfig?: {\n\t\tregistry: ConfigValue;\n\t\tpredictPackageId?: string;\n\t};\n}\n/** Return the registry object ID for external discovery and PTB construction. */\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 = ['registry'];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'registry',\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\tregistry: options.arguments?.registry ?? options.config?.registry,\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 ExpiryMarketIdArguments {\n\tregistry?: RawTransactionArgument<string>;\n\tpropbookUnderlyingId: RawTransactionArgument<number>;\n\texpiry: RawTransactionArgument<number | bigint>;\n}\nexport interface ExpiryMarketIdOptions {\n\tpackage?: string;\n\targuments: ExpiryMarketIdArguments;\n\tconfig?: {\n\t\tregistry: ConfigValue;\n\t\tpredictPackageId?: string;\n\t};\n}\n/** Resolve an expiry market ID for external discovery and PTB construction. */\nexport function expiryMarketId(options: ExpiryMarketIdOptions) {\n\tconst packageAddress =\n\t\toptions.package ?? options.config?.predictPackageId ?? '@local-pkg/deepbook_predict';\n\tconst argumentsTypes = [null, 'u32', 'u64'] satisfies (string | null)[];\n\tconst parameterNames = ['registry', 'propbookUnderlyingId', 'expiry'];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'registry',\n\t\t\tfunction: 'expiry_market_id',\n\t\t\targuments: normalizeMoveArguments(\n\t\t\t\t{\n\t\t\t\t\t...options.arguments,\n\t\t\t\t\tregistry: options.arguments?.registry ?? options.config?.registry,\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 CadenceConfigArguments {\n\tregistry?: RawTransactionArgument<string>;\n\tpropbookUnderlyingId: RawTransactionArgument<number>;\n\tcadenceId: RawTransactionArgument<number>;\n}\nexport interface CadenceConfigOptions {\n\tpackage?: string;\n\targuments: CadenceConfigArguments;\n\tconfig?: {\n\t\tregistry: ConfigValue;\n\t\tpredictPackageId?: string;\n\t};\n}\n/** Return deployment policy for SDK and devInspect market discovery. */\nexport function cadenceConfig(options: CadenceConfigOptions) {\n\tconst packageAddress =\n\t\toptions.package ?? options.config?.predictPackageId ?? '@local-pkg/deepbook_predict';\n\tconst argumentsTypes = [null, 'u32', 'u8'] satisfies (string | null)[];\n\tconst parameterNames = ['registry', 'propbookUnderlyingId', 'cadenceId'];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'registry',\n\t\t\tfunction: 'cadence_config',\n\t\t\targuments: normalizeMoveArguments(\n\t\t\t\t{\n\t\t\t\t\t...options.arguments,\n\t\t\t\t\tregistry: options.arguments?.registry ?? options.config?.registry,\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 CadenceConfigsArguments {\n\tregistry?: RawTransactionArgument<string>;\n\tpropbookUnderlyingId: RawTransactionArgument<number>;\n}\nexport interface CadenceConfigsOptions {\n\tpackage?: string;\n\targuments: CadenceConfigsArguments;\n\tconfig?: {\n\t\tregistry: ConfigValue;\n\t\tpredictPackageId?: string;\n\t};\n}\n/**\n * Return one underlying's complete deployment policy as a single coherent\n * snapshot, for off-chain consumers (SDK and devInspect cadence discovery by the\n * keeper, price updater, and dashboard) that would otherwise need one read per\n * cadence. The vector holds one entry per cadence in `cadence_periods`, indexed by\n * cadence ID; disabled cadences are present as their all-zero configuration.\n * Aborts if the underlying is not registered.\n */\nexport function cadenceConfigs(options: CadenceConfigsOptions) {\n\tconst packageAddress =\n\t\toptions.package ?? options.config?.predictPackageId ?? '@local-pkg/deepbook_predict';\n\tconst argumentsTypes = [null, 'u32'] satisfies (string | null)[];\n\tconst parameterNames = ['registry', 'propbookUnderlyingId'];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'registry',\n\t\t\tfunction: 'cadence_configs',\n\t\t\targuments: normalizeMoveArguments(\n\t\t\t\t{\n\t\t\t\t\t...options.arguments,\n\t\t\t\t\tregistry: options.arguments?.registry ?? options.config?.registry,\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 CadencePeriodsArguments {\n\tregistry?: RawTransactionArgument<string>;\n}\nexport interface CadencePeriodsOptions {\n\tpackage?: string;\n\targuments?: CadencePeriodsArguments;\n\tconfig?: {\n\t\tregistry: ConfigValue;\n\t\tpredictPackageId?: string;\n\t};\n}\n/**\n * Return every cadence's period in milliseconds, indexed by cadence ID, for\n * devInspect cadence discovery by the keeper, price collector, and dashboard. The\n * table starts with the six built-in cadences and grows through `add_cadence`;\n * read it in the same transaction as `cadence_configs` for a consistent pair.\n */\nexport function cadencePeriods(options: CadencePeriodsOptions) {\n\tconst packageAddress =\n\t\toptions.package ?? options.config?.predictPackageId ?? '@local-pkg/deepbook_predict';\n\tconst argumentsTypes = [null] satisfies (string | null)[];\n\tconst parameterNames = ['registry'];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'registry',\n\t\t\tfunction: 'cadence_periods',\n\t\t\targuments: normalizeMoveArguments(\n\t\t\t\t{\n\t\t\t\t\t...options.arguments,\n\t\t\t\t\tregistry: options.arguments?.registry ?? options.config?.registry,\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 MintPauseCapArguments {\n\tregistry?: RawTransactionArgument<string>;\n\tAdminCap: RawTransactionArgument<string>;\n}\nexport interface MintPauseCapOptions {\n\tpackage?: string;\n\targuments: MintPauseCapArguments;\n\tconfig?: {\n\t\tregistry: ConfigValue;\n\t\tpredictPackageId?: string;\n\t};\n}\n/**\n * Mint a new `PauseCap`. This bypasses the version gate so emergency pause\n * authority remains available from a package version below the runtime floor.\n */\nexport function mintPauseCap(options: MintPauseCapOptions) {\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 = ['registry', 'AdminCap'];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'registry',\n\t\t\tfunction: 'mint_pause_cap',\n\t\t\targuments: normalizeMoveArguments(\n\t\t\t\t{\n\t\t\t\t\t...options.arguments,\n\t\t\t\t\tregistry: options.arguments?.registry ?? options.config?.registry,\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 RevokePauseCapArguments {\n\tregistry?: RawTransactionArgument<string>;\n\tAdminCap: RawTransactionArgument<string>;\n\tpauseCapId: RawTransactionArgument<string>;\n}\nexport interface RevokePauseCapOptions {\n\tpackage?: string;\n\targuments: RevokePauseCapArguments;\n\tconfig?: {\n\t\tregistry: ConfigValue;\n\t\tpredictPackageId?: string;\n\t};\n}\n/** Revoke a previously minted `PauseCap` by ID. Admin-only. */\nexport function revokePauseCap(options: RevokePauseCapOptions) {\n\tconst packageAddress =\n\t\toptions.package ?? options.config?.predictPackageId ?? '@local-pkg/deepbook_predict';\n\tconst argumentsTypes = [null, null, '0x2::object::ID'] satisfies (string | null)[];\n\tconst parameterNames = ['registry', 'AdminCap', 'pauseCapId'];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'registry',\n\t\t\tfunction: 'revoke_pause_cap',\n\t\t\targuments: normalizeMoveArguments(\n\t\t\t\t{\n\t\t\t\t\t...options.arguments,\n\t\t\t\t\tregistry: options.arguments?.registry ?? options.config?.registry,\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 MintLifecycleCapArguments {\n\tregistry?: RawTransactionArgument<string>;\n\tconfig?: RawTransactionArgument<string>;\n\tAdminCap: RawTransactionArgument<string>;\n}\nexport interface MintLifecycleCapOptions {\n\tpackage?: string;\n\targuments: MintLifecycleCapArguments;\n\tconfig?: {\n\t\tregistry: ConfigValue;\n\t\tprotocolConfig: ConfigValue;\n\t\tpredictPackageId?: string;\n\t};\n}\n/** Mint a version-gated `MarketLifecycleCap` with market-creation authority. */\nexport function mintLifecycleCap(options: MintLifecycleCapOptions) {\n\tconst packageAddress =\n\t\toptions.package ?? options.config?.predictPackageId ?? '@local-pkg/deepbook_predict';\n\tconst argumentsTypes = [null, null, null] satisfies (string | null)[];\n\tconst parameterNames = ['registry', 'config', 'AdminCap'];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'registry',\n\t\t\tfunction: 'mint_lifecycle_cap',\n\t\t\targuments: normalizeMoveArguments(\n\t\t\t\t{\n\t\t\t\t\t...options.arguments,\n\t\t\t\t\tregistry: options.arguments?.registry ?? options.config?.registry,\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 RevokeLifecycleCapArguments {\n\tregistry?: RawTransactionArgument<string>;\n\tAdminCap: RawTransactionArgument<string>;\n\tlifecycleCapId: RawTransactionArgument<string>;\n}\nexport interface RevokeLifecycleCapOptions {\n\tpackage?: string;\n\targuments: RevokeLifecycleCapArguments;\n\tconfig?: {\n\t\tregistry: ConfigValue;\n\t\tpredictPackageId?: string;\n\t};\n}\n/** Revoke a `MarketLifecycleCap` by ID without applying the version gate. */\nexport function revokeLifecycleCap(options: RevokeLifecycleCapOptions) {\n\tconst packageAddress =\n\t\toptions.package ?? options.config?.predictPackageId ?? '@local-pkg/deepbook_predict';\n\tconst argumentsTypes = [null, null, '0x2::object::ID'] satisfies (string | null)[];\n\tconst parameterNames = ['registry', 'AdminCap', 'lifecycleCapId'];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'registry',\n\t\t\tfunction: 'revoke_lifecycle_cap',\n\t\t\targuments: normalizeMoveArguments(\n\t\t\t\t{\n\t\t\t\t\t...options.arguments,\n\t\t\t\t\tregistry: options.arguments?.registry ?? options.config?.registry,\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 MintPoolValuationCapArguments {\n\tregistry?: RawTransactionArgument<string>;\n\tAdminCap: RawTransactionArgument<string>;\n\tconfig?: RawTransactionArgument<string>;\n}\nexport interface MintPoolValuationCapOptions {\n\tpackage?: string;\n\targuments: MintPoolValuationCapArguments;\n\tconfig?: {\n\t\tregistry: ConfigValue;\n\t\tprotocolConfig: ConfigValue;\n\t\tpredictPackageId?: string;\n\t};\n}\n/**\n * Mint a version-gated `PoolValuationCap` with authority to start the full-pool\n * valuation.\n */\nexport function mintPoolValuationCap(options: MintPoolValuationCapOptions) {\n\tconst packageAddress =\n\t\toptions.package ?? options.config?.predictPackageId ?? '@local-pkg/deepbook_predict';\n\tconst argumentsTypes = [null, null, null] satisfies (string | null)[];\n\tconst parameterNames = ['registry', 'AdminCap', 'config'];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'registry',\n\t\t\tfunction: 'mint_pool_valuation_cap',\n\t\t\targuments: normalizeMoveArguments(\n\t\t\t\t{\n\t\t\t\t\t...options.arguments,\n\t\t\t\t\tregistry: options.arguments?.registry ?? options.config?.registry,\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 RevokePoolValuationCapArguments {\n\tregistry?: RawTransactionArgument<string>;\n\tAdminCap: RawTransactionArgument<string>;\n\tpoolValuationCapId: RawTransactionArgument<string>;\n}\nexport interface RevokePoolValuationCapOptions {\n\tpackage?: string;\n\targuments: RevokePoolValuationCapArguments;\n\tconfig?: {\n\t\tregistry: ConfigValue;\n\t\tpredictPackageId?: string;\n\t};\n}\n/** Revoke a `PoolValuationCap` by ID without applying the version gate. */\nexport function revokePoolValuationCap(options: RevokePoolValuationCapOptions) {\n\tconst packageAddress =\n\t\toptions.package ?? options.config?.predictPackageId ?? '@local-pkg/deepbook_predict';\n\tconst argumentsTypes = [null, null, '0x2::object::ID'] satisfies (string | null)[];\n\tconst parameterNames = ['registry', 'AdminCap', 'poolValuationCapId'];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'registry',\n\t\t\tfunction: 'revoke_pool_valuation_cap',\n\t\t\targuments: normalizeMoveArguments(\n\t\t\t\t{\n\t\t\t\t\t...options.arguments,\n\t\t\t\t\tregistry: options.arguments?.registry ?? options.config?.registry,\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 GeneratePoolValuationProofArguments {\n\tregistry?: RawTransactionArgument<string>;\n\tpoolValuationCap: RawTransactionArgument<string>;\n}\nexport interface GeneratePoolValuationProofOptions {\n\tpackage?: string;\n\targuments: GeneratePoolValuationProofArguments;\n\tconfig?: {\n\t\tregistry: ConfigValue;\n\t\tpredictPackageId?: string;\n\t};\n}\n/**\n * Generate a transaction-local proof that `pool_valuation_cap` is currently\n * allowlisted. `plp::start_pool_valuation` takes the proof by value so a revoked\n * cap cannot start a valuation.\n */\nexport function generatePoolValuationProof(options: GeneratePoolValuationProofOptions) {\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 = ['registry', 'poolValuationCap'];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'registry',\n\t\t\tfunction: 'generate_pool_valuation_proof',\n\t\t\targuments: normalizeMoveArguments(\n\t\t\t\t{\n\t\t\t\t\t...options.arguments,\n\t\t\t\t\tregistry: options.arguments?.registry ?? options.config?.registry,\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 PauseTradingPauseCapArguments {\n\tconfig?: RawTransactionArgument<string>;\n\tregistry?: RawTransactionArgument<string>;\n\tpauseCap: RawTransactionArgument<string>;\n}\nexport interface PauseTradingPauseCapOptions {\n\tpackage?: string;\n\targuments: PauseTradingPauseCapArguments;\n\tconfig?: {\n\t\tprotocolConfig: ConfigValue;\n\t\tregistry: ConfigValue;\n\t\tpredictPackageId?: string;\n\t};\n}\n/** Force `trading_paused = true` via a valid `PauseCap`. One-way. */\nexport function pauseTradingPauseCap(options: PauseTradingPauseCapOptions) {\n\tconst packageAddress =\n\t\toptions.package ?? options.config?.predictPackageId ?? '@local-pkg/deepbook_predict';\n\tconst argumentsTypes = [null, null, null] satisfies (string | null)[];\n\tconst parameterNames = ['config', 'registry', 'pauseCap'];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'registry',\n\t\t\tfunction: 'pause_trading_pause_cap',\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\tregistry: options.arguments?.registry ?? options.config?.registry,\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 FreezeProtocolPauseCapArguments {\n\tconfig?: RawTransactionArgument<string>;\n\tregistry?: RawTransactionArgument<string>;\n\tpauseCap: RawTransactionArgument<string>;\n}\nexport interface FreezeProtocolPauseCapOptions {\n\tpackage?: string;\n\targuments: FreezeProtocolPauseCapArguments;\n\tconfig?: {\n\t\tprotocolConfig: ConfigValue;\n\t\tregistry: ConfigValue;\n\t\tpredictPackageId?: string;\n\t};\n}\n/**\n * Force the protocol-wide emergency freeze via a valid `PauseCap`. One-way;\n * admin's `protocol_config::set_frozen` is needed to lift the freeze.\n */\nexport function freezeProtocolPauseCap(options: FreezeProtocolPauseCapOptions) {\n\tconst packageAddress =\n\t\toptions.package ?? options.config?.predictPackageId ?? '@local-pkg/deepbook_predict';\n\tconst argumentsTypes = [null, null, null] satisfies (string | null)[];\n\tconst parameterNames = ['config', 'registry', 'pauseCap'];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'registry',\n\t\t\tfunction: 'freeze_protocol_pause_cap',\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\tregistry: options.arguments?.registry ?? options.config?.registry,\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 PauseExpiryMarketMintPauseCapArguments {\n\tmarket: RawTransactionArgument<string>;\n\tregistry?: RawTransactionArgument<string>;\n\tpauseCap: RawTransactionArgument<string>;\n}\nexport interface PauseExpiryMarketMintPauseCapOptions {\n\tpackage?: string;\n\targuments: PauseExpiryMarketMintPauseCapArguments;\n\tconfig?: {\n\t\tregistry: ConfigValue;\n\t\tpredictPackageId?: string;\n\t};\n}\n/**\n * Force `mint_paused = true` on a single expiry market via a valid `PauseCap`.\n * One-way; admin's `expiry_market::set_mint_paused` is needed to unpause.\n */\nexport function pauseExpiryMarketMintPauseCap(options: PauseExpiryMarketMintPauseCapOptions) {\n\tconst packageAddress =\n\t\toptions.package ?? options.config?.predictPackageId ?? '@local-pkg/deepbook_predict';\n\tconst argumentsTypes = [null, null, null] satisfies (string | null)[];\n\tconst parameterNames = ['market', 'registry', 'pauseCap'];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'registry',\n\t\t\tfunction: 'pause_expiry_market_mint_pause_cap',\n\t\t\targuments: normalizeMoveArguments(\n\t\t\t\t{\n\t\t\t\t\t...options.arguments,\n\t\t\t\t\tregistry: options.arguments?.registry ?? options.config?.registry,\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 RegisterUnderlyingArguments {\n\tregistry?: RawTransactionArgument<string>;\n\tconfig?: RawTransactionArgument<string>;\n\tAdminCap: RawTransactionArgument<string>;\n\tpropbookUnderlyingId: RawTransactionArgument<number>;\n}\nexport interface RegisterUnderlyingOptions {\n\tpackage?: string;\n\targuments: RegisterUnderlyingArguments;\n\tconfig?: {\n\t\tregistry: ConfigValue;\n\t\tprotocolConfig: ConfigValue;\n\t\tpredictPackageId?: string;\n\t};\n}\n/**\n * Record admin approval of one Propbook underlying. Source IDs and canonical\n * oracle object IDs remain owned by Propbook; this row only gates which\n * underlyings Predict will build markets on and stores deployment watermarks.\n */\nexport function registerUnderlying(options: RegisterUnderlyingOptions) {\n\tconst packageAddress =\n\t\toptions.package ?? options.config?.predictPackageId ?? '@local-pkg/deepbook_predict';\n\tconst argumentsTypes = [null, null, null, 'u32'] satisfies (string | null)[];\n\tconst parameterNames = ['registry', 'config', 'AdminCap', 'propbookUnderlyingId'];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'registry',\n\t\t\tfunction: 'register_underlying',\n\t\t\targuments: normalizeMoveArguments(\n\t\t\t\t{\n\t\t\t\t\t...options.arguments,\n\t\t\t\t\tregistry: options.arguments?.registry ?? options.config?.registry,\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 AddCadenceArguments {\n\tregistry?: RawTransactionArgument<string>;\n\tconfig?: RawTransactionArgument<string>;\n\tAdminCap: RawTransactionArgument<string>;\n\tperiodMs: RawTransactionArgument<number | bigint>;\n}\nexport interface AddCadenceOptions {\n\tpackage?: string;\n\targuments: AddCadenceArguments;\n\tconfig?: {\n\t\tregistry: ConfigValue;\n\t\tprotocolConfig: ConfigValue;\n\t\tpredictPackageId?: string;\n\t};\n}\n/**\n * Append a cadence with period `period_ms` to the cadence table and return its ID.\n * The period is a whole number of minutes, at most one year, and not already in\n * the table, which holds at most 16 cadences. A new cadence is disabled on every\n * underlying until `set_template_cadence_config` sets its terms; periods never\n * change, so retire a cadence by disabling it.\n */\nexport function addCadence(options: AddCadenceOptions) {\n\tconst packageAddress =\n\t\toptions.package ?? options.config?.predictPackageId ?? '@local-pkg/deepbook_predict';\n\tconst argumentsTypes = [null, null, null, 'u64'] satisfies (string | null)[];\n\tconst parameterNames = ['registry', 'config', 'AdminCap', 'periodMs'];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'registry',\n\t\t\tfunction: 'add_cadence',\n\t\t\targuments: normalizeMoveArguments(\n\t\t\t\t{\n\t\t\t\t\t...options.arguments,\n\t\t\t\t\tregistry: options.arguments?.registry ?? options.config?.registry,\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 SetTemplateCadenceConfigArguments {\n\tregistry?: RawTransactionArgument<string>;\n\tconfig?: RawTransactionArgument<string>;\n\tAdminCap: RawTransactionArgument<string>;\n\tpropbookUnderlyingId: RawTransactionArgument<number>;\n\tcadenceId: RawTransactionArgument<number>;\n\ttickSize: RawTransactionArgument<number | bigint>;\n\tadmissionTickSize: RawTransactionArgument<number | bigint>;\n\tmaxExpiryAllocation: RawTransactionArgument<number | bigint>;\n\tinitialExpiryCash: RawTransactionArgument<number | bigint>;\n\twindowSize: RawTransactionArgument<number | bigint>;\n}\nexport interface SetTemplateCadenceConfigOptions {\n\tpackage?: string;\n\targuments: SetTemplateCadenceConfigArguments;\n\tconfig?: {\n\t\tregistry: ConfigValue;\n\t\tprotocolConfig: ConfigValue;\n\t\tpredictPackageId?: string;\n\t};\n}\n/**\n * Set all deployment terms for one underlying's cadence. Passing zero for all five\n * values disables the cadence; otherwise all values must be nonzero and valid.\n * Aborts if the underlying's enabled windows would sum past the pool's live-market\n * cap.\n */\nexport function setTemplateCadenceConfig(options: SetTemplateCadenceConfigOptions) {\n\tconst packageAddress =\n\t\toptions.package ?? options.config?.predictPackageId ?? '@local-pkg/deepbook_predict';\n\tconst argumentsTypes = [\n\t\tnull,\n\t\tnull,\n\t\tnull,\n\t\t'u32',\n\t\t'u8',\n\t\t'u64',\n\t\t'u64',\n\t\t'u64',\n\t\t'u64',\n\t\t'u64',\n\t] satisfies (string | null)[];\n\tconst parameterNames = [\n\t\t'registry',\n\t\t'config',\n\t\t'AdminCap',\n\t\t'propbookUnderlyingId',\n\t\t'cadenceId',\n\t\t'tickSize',\n\t\t'admissionTickSize',\n\t\t'maxExpiryAllocation',\n\t\t'initialExpiryCash',\n\t\t'windowSize',\n\t];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'registry',\n\t\t\tfunction: 'set_template_cadence_config',\n\t\t\targuments: normalizeMoveArguments(\n\t\t\t\t{\n\t\t\t\t\t...options.arguments,\n\t\t\t\t\tregistry: options.arguments?.registry ?? options.config?.registry,\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 CreateAndShareExpiryMarketArguments {\n\tregistry?: RawTransactionArgument<string>;\n\tpoolVault?: RawTransactionArgument<string>;\n\tconfig?: RawTransactionArgument<string>;\n\tpropbookRegistry?: RawTransactionArgument<string>;\n\tlifecycleCap: RawTransactionArgument<string>;\n\tpropbookUnderlyingId: RawTransactionArgument<number>;\n\tcadenceId: RawTransactionArgument<number>;\n}\nexport interface CreateAndShareExpiryMarketOptions {\n\tpackage?: string;\n\targuments: CreateAndShareExpiryMarketArguments;\n\tconfig?: {\n\t\tregistry: ConfigValue;\n\t\tpoolVault: ConfigValue;\n\t\tprotocolConfig: ConfigValue;\n\t\toracleRegistry: ConfigValue;\n\t\tpredictPackageId?: string;\n\t};\n}\n/**\n * Create the next deployable `ExpiryMarket` for one cadence on a Propbook\n * underlying.\n *\n * Requires an allowlisted lifecycle capability, a registered underlying with all\n * canonical feed objects bound, and an enabled cadence with a deployable slot.\n * Slots owned by a longer enabled cadence and existing markets are skipped. The\n * market snapshots cadence and expiry policy, starts with zero cash, and cannot\n * mint until pool rebalancing funds it. Live pricing reads current Propbook\n * bindings.\n */\nexport function createAndShareExpiryMarket(options: CreateAndShareExpiryMarketOptions) {\n\tconst packageAddress =\n\t\toptions.package ?? options.config?.predictPackageId ?? '@local-pkg/deepbook_predict';\n\tconst argumentsTypes = [\n\t\tnull,\n\t\tnull,\n\t\tnull,\n\t\tnull,\n\t\tnull,\n\t\t'u32',\n\t\t'u8',\n\t\t'0x2::clock::Clock',\n\t] satisfies (string | null)[];\n\tconst parameterNames = [\n\t\t'registry',\n\t\t'poolVault',\n\t\t'config',\n\t\t'propbookRegistry',\n\t\t'lifecycleCap',\n\t\t'propbookUnderlyingId',\n\t\t'cadenceId',\n\t];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'registry',\n\t\t\tfunction: 'create_and_share_expiry_market',\n\t\t\targuments: normalizeMoveArguments(\n\t\t\t\t{\n\t\t\t\t\t...options.arguments,\n\t\t\t\t\tregistry: options.arguments?.registry ?? options.config?.registry,\n\t\t\t\t\tpoolVault: options.arguments?.poolVault ?? options.config?.poolVault,\n\t\t\t\t\tconfig: options.arguments?.config ?? options.config?.protocolConfig,\n\t\t\t\t\tpropbookRegistry: options.arguments?.propbookRegistry ?? options.config?.oracleRegistry,\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 CreateAndShareExpiryMarketAtArguments {\n\tregistry?: RawTransactionArgument<string>;\n\tpoolVault?: RawTransactionArgument<string>;\n\tconfig?: RawTransactionArgument<string>;\n\tpropbookRegistry?: RawTransactionArgument<string>;\n\tlifecycleCap: RawTransactionArgument<string>;\n\tpropbookUnderlyingId: RawTransactionArgument<number>;\n\tcadenceId: RawTransactionArgument<number>;\n\texpectedExpiry: RawTransactionArgument<number | bigint>;\n}\nexport interface CreateAndShareExpiryMarketAtOptions {\n\tpackage?: string;\n\targuments: CreateAndShareExpiryMarketAtArguments;\n\tconfig?: {\n\t\tregistry: ConfigValue;\n\t\tpoolVault: ConfigValue;\n\t\tprotocolConfig: ConfigValue;\n\t\toracleRegistry: ConfigValue;\n\t\tpredictPackageId?: string;\n\t};\n}\n/**\n * `create_and_share_expiry_market`, aborting unless the deployable expiry is\n * `expected_expiry`. A keeper that planned the expiry off chain uses this so that\n * a stale view of the cadence table fails instead of creating an unplanned market.\n */\nexport function createAndShareExpiryMarketAt(options: CreateAndShareExpiryMarketAtOptions) {\n\tconst packageAddress =\n\t\toptions.package ?? options.config?.predictPackageId ?? '@local-pkg/deepbook_predict';\n\tconst argumentsTypes = [\n\t\tnull,\n\t\tnull,\n\t\tnull,\n\t\tnull,\n\t\tnull,\n\t\t'u32',\n\t\t'u8',\n\t\t'u64',\n\t\t'0x2::clock::Clock',\n\t] satisfies (string | null)[];\n\tconst parameterNames = [\n\t\t'registry',\n\t\t'poolVault',\n\t\t'config',\n\t\t'propbookRegistry',\n\t\t'lifecycleCap',\n\t\t'propbookUnderlyingId',\n\t\t'cadenceId',\n\t\t'expectedExpiry',\n\t];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'registry',\n\t\t\tfunction: 'create_and_share_expiry_market_at',\n\t\t\targuments: normalizeMoveArguments(\n\t\t\t\t{\n\t\t\t\t\t...options.arguments,\n\t\t\t\t\tregistry: options.arguments?.registry ?? options.config?.registry,\n\t\t\t\t\tpoolVault: options.arguments?.poolVault ?? options.config?.poolVault,\n\t\t\t\t\tconfig: options.arguments?.config ?? options.config?.protocolConfig,\n\t\t\t\t\tpropbookRegistry: options.arguments?.propbookRegistry ?? options.config?.oracleRegistry,\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 CreateAndShareExpiryMarketWithBandArguments {\n\tregistry?: RawTransactionArgument<string>;\n\tpoolVault?: RawTransactionArgument<string>;\n\tconfig?: RawTransactionArgument<string>;\n\tpropbookRegistry?: RawTransactionArgument<string>;\n\tlifecycleCap: RawTransactionArgument<string>;\n\tpropbookUnderlyingId: RawTransactionArgument<number>;\n\tcadenceId: RawTransactionArgument<number>;\n\texpectedExpiry: RawTransactionArgument<number | bigint | null>;\n\tminEntryProbability: RawTransactionArgument<number | bigint>;\n\tmaxEntryProbability: RawTransactionArgument<number | bigint>;\n}\nexport interface CreateAndShareExpiryMarketWithBandOptions {\n\tpackage?: string;\n\targuments: CreateAndShareExpiryMarketWithBandArguments;\n\tconfig?: {\n\t\tregistry: ConfigValue;\n\t\tpoolVault: ConfigValue;\n\t\tprotocolConfig: ConfigValue;\n\t\toracleRegistry: ConfigValue;\n\t\tpredictPackageId?: string;\n\t};\n}\n/**\n * `create_and_share_expiry_market` with the new market's mint entry band narrowed\n * to `[min_entry_probability, max_entry_probability]`, aborting unless the\n * deployable expiry is `expected_expiry` when that is set. The other two creation\n * entrypoints call this with `[0, u64::MAX]`, which keeps the template's band.\n *\n * The band can only tighten: each side keeps the tighter of the requested value\n * and the template's, so a bound looser than the template leaves that side at the\n * template's, and the call aborts when the two bands do not overlap. Like every\n * snapshotted term, the band is fixed for the market's life, and `MarketCreated`\n * reports it. A keeper uses this to admit fewer mints in markets open across a\n * chosen window.\n */\nexport function createAndShareExpiryMarketWithBand(\n\toptions: CreateAndShareExpiryMarketWithBandOptions,\n) {\n\tconst packageAddress =\n\t\toptions.package ?? options.config?.predictPackageId ?? '@local-pkg/deepbook_predict';\n\tconst argumentsTypes = [\n\t\tnull,\n\t\tnull,\n\t\tnull,\n\t\tnull,\n\t\tnull,\n\t\t'u32',\n\t\t'u8',\n\t\t'0x1::option::Option<u64>',\n\t\t'u64',\n\t\t'u64',\n\t\t'0x2::clock::Clock',\n\t] satisfies (string | null)[];\n\tconst parameterNames = [\n\t\t'registry',\n\t\t'poolVault',\n\t\t'config',\n\t\t'propbookRegistry',\n\t\t'lifecycleCap',\n\t\t'propbookUnderlyingId',\n\t\t'cadenceId',\n\t\t'expectedExpiry',\n\t\t'minEntryProbability',\n\t\t'maxEntryProbability',\n\t];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'registry',\n\t\t\tfunction: 'create_and_share_expiry_market_with_band',\n\t\t\targuments: normalizeMoveArguments(\n\t\t\t\t{\n\t\t\t\t\t...options.arguments,\n\t\t\t\t\tregistry: options.arguments?.registry ?? options.config?.registry,\n\t\t\t\t\tpoolVault: options.arguments?.poolVault ?? options.config?.poolVault,\n\t\t\t\t\tconfig: options.arguments?.config ?? options.config?.protocolConfig,\n\t\t\t\t\tpropbookRegistry: options.arguments?.propbookRegistry ?? options.config?.oracleRegistry,\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 CreateAndShareBuilderCodeArguments {\n\tregistry?: RawTransactionArgument<string>;\n\tconfig?: RawTransactionArgument<string>;\n\tindex: RawTransactionArgument<number | bigint>;\n}\nexport interface CreateAndShareBuilderCodeOptions {\n\tpackage?: string;\n\targuments: CreateAndShareBuilderCodeArguments;\n\tconfig?: {\n\t\tregistry: ConfigValue;\n\t\tprotocolConfig: ConfigValue;\n\t\tpredictPackageId?: string;\n\t};\n}\n/** Create a derived shared BuilderCode for the caller and index. */\nexport function createAndShareBuilderCode(options: CreateAndShareBuilderCodeOptions) {\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 = ['registry', 'config', 'index'];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'registry',\n\t\t\tfunction: 'create_and_share_builder_code',\n\t\t\targuments: normalizeMoveArguments(\n\t\t\t\t{\n\t\t\t\t\t...options.arguments,\n\t\t\t\t\tregistry: options.arguments?.registry ?? options.config?.registry,\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":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAyBA,MAAM,cAAc;AACpB,MAAa,WAAW,IAAI,WAAW;CACtC,MAAM,GAAG,YAAY;CACrB,QAAQ;EACP,IAAI,IAAI;EAKR,gBAA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