@mysten/deepbook-v3 2.8.2 → 2.9.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 +10 -0
- package/PREDICT.md +26 -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_events.d.mts.map +1 -1
- package/dist/contracts/account/account_registry.d.mts +19 -19
- package/dist/contracts/account/account_registry.d.mts.map +1 -1
- package/dist/contracts/deepbook/account.d.mts +18 -18
- package/dist/contracts/deepbook/balances.d.mts +4 -4
- package/dist/contracts/deepbook/deep_price.d.mts +3 -3
- package/dist/contracts/deepbook/order.d.mts +12 -12
- package/dist/contracts/deepbook_predict/admin.d.mts +4 -4
- package/dist/contracts/deepbook_predict/builder_code.d.mts +11 -11
- package/dist/contracts/deepbook_predict/builder_code_events.d.mts +10 -10
- package/dist/contracts/deepbook_predict/config_events.d.mts +86 -81
- package/dist/contracts/deepbook_predict/config_events.d.mts.map +1 -1
- package/dist/contracts/deepbook_predict/config_events.mjs +9 -0
- package/dist/contracts/deepbook_predict/config_events.mjs.map +1 -1
- package/dist/contracts/deepbook_predict/expiry_market.d.mts +59 -59
- package/dist/contracts/deepbook_predict/market_lifecycle_cap.d.mts +5 -5
- package/dist/contracts/deepbook_predict/market_manager.d.mts +33 -28
- package/dist/contracts/deepbook_predict/market_manager.d.mts.map +1 -1
- package/dist/contracts/deepbook_predict/market_manager.mjs +5 -3
- package/dist/contracts/deepbook_predict/market_manager.mjs.map +1 -1
- package/dist/contracts/deepbook_predict/order_events.d.mts +50 -50
- package/dist/contracts/deepbook_predict/pause_cap.d.mts +2 -2
- package/dist/contracts/deepbook_predict/plp.d.mts +74 -74
- package/dist/contracts/deepbook_predict/pool_valuation_cap.d.mts +5 -5
- package/dist/contracts/deepbook_predict/predict_account.d.mts +14 -14
- package/dist/contracts/deepbook_predict/predict_account.d.mts.map +1 -1
- package/dist/contracts/deepbook_predict/pricing.d.mts +67 -67
- package/dist/contracts/deepbook_predict/protocol_config.d.mts +82 -82
- package/dist/contracts/deepbook_predict/range_codec.d.mts +2 -2
- package/dist/contracts/deepbook_predict/registry.d.mts +108 -36
- package/dist/contracts/deepbook_predict/registry.d.mts.map +1 -1
- package/dist/contracts/deepbook_predict/registry.mjs +111 -7
- package/dist/contracts/deepbook_predict/registry.mjs.map +1 -1
- package/dist/contracts/deepbook_predict/vault_events.d.mts +131 -131
- package/dist/contracts/deepbook_predict_math/lazer_price.d.mts +13 -13
- package/dist/contracts/deepbook_predict_math/math.d.mts +14 -14
- package/dist/contracts/deepbook_predict_orders/delayed_execution_config.d.mts +30 -30
- package/dist/contracts/deepbook_predict_orders/desk.d.mts +28 -28
- package/dist/contracts/deepbook_predict_orders/desk.d.mts.map +1 -1
- package/dist/contracts/deepbook_predict_orders/order_queue.d.mts +187 -187
- package/dist/contracts/deepbook_predict_orders/queue.d.mts +49 -49
- package/dist/contracts/deepbook_predict_orders/queue_events.d.mts +140 -140
- package/dist/contracts/deepbook_sessions/session_config.d.mts +8 -8
- package/dist/contracts/deepbook_sessions/session_config.d.mts.map +1 -1
- package/dist/contracts/deepbook_sessions/sessions.d.mts +27 -27
- package/dist/contracts/deepbook_sessions/sessions.d.mts.map +1 -1
- package/dist/deployments/testnet.mjs +1 -1
- package/dist/deployments/testnet.mjs.map +1 -1
- package/dist/predict/bindings/expiry-market.d.mts +5 -5
- package/dist/predict/bindings/protocol-config.d.mts +3 -3
- 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/contracts/deepbook_predict/config_events.ts +8 -0
- package/src/contracts/deepbook_predict/market_manager.ts +11 -5
- package/src/contracts/deepbook_predict/registry.ts +162 -6
- package/src/contracts/propbook/block_scholes_store.ts +48 -3
- package/src/contracts/propbook/registry.ts +45 -0
- package/src/deployments/testnet.ts +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"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\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 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 supported cadence, indexed by cadence\n * ID; disabled cadences are present as their all-zero configuration. Aborts if the\n * 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 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 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 */\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 * Higher-rank cadence overlaps and existing markets are skipped. The market\n * snapshots cadence and expiry policy, starts with zero cash, and cannot mint\n * until pool rebalancing funds it. Live pricing reads current Propbook 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 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":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAwBA,MAAM,cAAc;AACpB,MAAa,WAAW,IAAI,WAAW;CACtC,MAAM,GAAG,YAA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;;;;;;;;AAgCJ,SAAgB,2BAA2B,SAA4C;CACtF,MAAM,iBACL,QAAQ,WAAW,QAAQ,QAAQ,oBAAoB;CACxD,MAAM,iBAAiB;EACtB;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;CACD,MAAM,iBAAiB;EACtB;EACA;EACA;EACA;EACA;EACA;EACA;EACA;AACD,SAAQ,OACP,GAAG,SAAS;EACX,SAAS;EACT,QAAQ;EACR,UAAU;EACV,WAAW,uBACV;GACC,GAAG,QAAQ;GACX,UAAU,QAAQ,WAAW,YAAY,QAAQ,QAAQ;GACzD,WAAW,QAAQ,WAAW,aAAa,QAAQ,QAAQ;GAC3D,QAAQ,QAAQ,WAAW,UAAU,QAAQ,QAAQ;GACrD,kBAAkB,QAAQ,WAAW,oBAAoB,QAAQ,QAAQ;GACzE,EACD,gBACA,eACA;EACD,CAAC;;;AAiBJ,SAAgB,0BAA0B,SAA2C;CACpF,MAAM,iBACL,QAAQ,WAAW,QAAQ,QAAQ,oBAAoB;CACxD,MAAM,iBAAiB;EAAC;EAAM;EAAM;EAAM;CAC1C,MAAM,iBAAiB;EAAC;EAAY;EAAU;EAAQ;AACtD,SAAQ,OACP,GAAG,SAAS;EACX,SAAS;EACT,QAAQ;EACR,UAAU;EACV,WAAW,uBACV;GACC,GAAG,QAAQ;GACX,UAAU,QAAQ,WAAW,YAAY,QAAQ,QAAQ;GACzD,QAAQ,QAAQ,WAAW,UAAU,QAAQ,QAAQ;GACrD,EACD,gBACA,eACA;EACD,CAAC"}
|
|
1
|
+
{"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 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,gBAAgBA;EAKhB,oBAAoBC,OAAe,IAAI,QAAQ;EAK/C,wBAAwBA,OAAe,IAAI,QAAQ;EAKnD,6BAA6BA,OAAe,IAAI,QAAQ;EACxD;CACD,CAAC;AACF,MAAa,oBAAoB,IAAI,UAAU;CAC9C,MAAM,GAAG,YAAY;CACrB,QAAQ,CAAC,IAAI,MAAM,CAAC;CACpB,CAAC;;AAaF,SAAgB,GAAG,SAAoB;CACtC,MAAM,iBACL,QAAQ,WAAW,QAAQ,QAAQ,oBAAoB;CACxD,MAAM,iBAAiB,CAAC,KAAK;CAC7B,MAAM,iBAAiB,CAAC,WAAW;AACnC,SAAQ,OACP,GAAG,SAAS;EACX,SAAS;EACT,QAAQ;EACR,UAAU;EACV,WAAW,uBACV;GACC,GAAG,QAAQ;GACX,UAAU,QAAQ,WAAW,YAAY,QAAQ,QAAQ;GACzD,EACD,gBACA,eACA;EACD,CAAC;;;AAgBJ,SAAgB,eAAe,SAAgC;CAC9D,MAAM,iBACL,QAAQ,WAAW,QAAQ,QAAQ,oBAAoB;CACxD,MAAM,iBAAiB;EAAC;EAAM;EAAO;EAAM;CAC3C,MAAM,iBAAiB;EAAC;EAAY;EAAwB;EAAS;AACrE,SAAQ,OACP,GAAG,SAAS;EACX,SAAS;EACT,QAAQ;EACR,UAAU;EACV,WAAW,uBACV;GACC,GAAG,QAAQ;GACX,UAAU,QAAQ,WAAW,YAAY,QAAQ,QAAQ;GACzD,EACD,gBACA,eACA;EACD,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AAU;EACV,WAAW,uBACV;GACC,GAAG,QAAQ;GACX,UAAU,QAAQ,WAAW,YAAY,QAAQ,QAAQ;GACzD,QAAQ,QAAQ,WAAW,UAAU,QAAQ,QAAQ;GACrD,EACD,gBACA,eACA;EACD,CAAC"}
|
|
@@ -1,246 +1,246 @@
|
|
|
1
1
|
import { MoveStruct } from "../utils/index.mjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as _mysten_sui_bcs314 from "@mysten/sui/bcs";
|
|
3
3
|
|
|
4
4
|
//#region src/contracts/deepbook_predict/vault_events.d.ts
|
|
5
5
|
declare namespace vault_events_d_exports {
|
|
6
6
|
export { CapitalLocked, ExpiryCashRebalanced, ExpiryCashReceived, ExpiryPnl, ExpiryPnlRealized, ExpiryProfitMaterialized, FeeIncentiveLifetimeCapSnapshotted, FeeIncentivesAllocated, FeeIncentivesReturned, FeeIncentivesSponsored, FeeIncentivesWithdrawn, FlushExecuted, FlushRestarted, RequestCancelled, RequestLimitMissed, SupplyFilled, SupplyRequested, UsdcAddedToPlp, WithdrawFilled, WithdrawRequested };
|
|
7
7
|
}
|
|
8
8
|
declare const ExpiryCashReceived: MoveStruct<{
|
|
9
|
-
pool_vault_id:
|
|
10
|
-
expiry_market_id:
|
|
11
|
-
settlement_price:
|
|
12
|
-
amount:
|
|
9
|
+
pool_vault_id: _mysten_sui_bcs314.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
10
|
+
expiry_market_id: _mysten_sui_bcs314.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
11
|
+
settlement_price: _mysten_sui_bcs314.BcsType<bigint, string | number | bigint, "u64">;
|
|
12
|
+
amount: _mysten_sui_bcs314.BcsType<bigint, string | number | bigint, "u64">;
|
|
13
13
|
}, "@local-pkg/deepbook_predict::vault_events::ExpiryCashReceived">;
|
|
14
14
|
declare const ExpiryCashRebalanced: MoveStruct<{
|
|
15
|
-
pool_vault_id:
|
|
16
|
-
expiry_market_id:
|
|
17
|
-
amount:
|
|
18
|
-
to_expiry:
|
|
19
|
-
target_cash:
|
|
20
|
-
protocol_profit_realized:
|
|
15
|
+
pool_vault_id: _mysten_sui_bcs314.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
16
|
+
expiry_market_id: _mysten_sui_bcs314.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
17
|
+
amount: _mysten_sui_bcs314.BcsType<bigint, string | number | bigint, "u64">;
|
|
18
|
+
to_expiry: _mysten_sui_bcs314.BcsType<boolean, boolean, "bool">;
|
|
19
|
+
target_cash: _mysten_sui_bcs314.BcsType<bigint, string | number | bigint, "u64">;
|
|
20
|
+
protocol_profit_realized: _mysten_sui_bcs314.BcsType<bigint, string | number | bigint, "u64">;
|
|
21
21
|
}, "@local-pkg/deepbook_predict::vault_events::ExpiryCashRebalanced">;
|
|
22
22
|
declare const ExpiryProfitMaterialized: MoveStruct<{
|
|
23
|
-
pool_vault_id:
|
|
24
|
-
expiry_market_id:
|
|
25
|
-
lp_profit:
|
|
26
|
-
protocol_profit:
|
|
27
|
-
protocol_reserve_balance_after:
|
|
28
|
-
profit_basis_after:
|
|
29
|
-
pending_protocol_profit_after:
|
|
23
|
+
pool_vault_id: _mysten_sui_bcs314.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
24
|
+
expiry_market_id: _mysten_sui_bcs314.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
25
|
+
lp_profit: _mysten_sui_bcs314.BcsType<bigint, string | number | bigint, "u64">;
|
|
26
|
+
protocol_profit: _mysten_sui_bcs314.BcsType<bigint, string | number | bigint, "u64">;
|
|
27
|
+
protocol_reserve_balance_after: _mysten_sui_bcs314.BcsType<bigint, string | number | bigint, "u64">;
|
|
28
|
+
profit_basis_after: _mysten_sui_bcs314.BcsType<bigint, string | number | bigint, "u64">;
|
|
29
|
+
pending_protocol_profit_after: _mysten_sui_bcs314.BcsType<bigint, string | number | bigint, "u64">;
|
|
30
30
|
}, "@local-pkg/deepbook_predict::vault_events::ExpiryProfitMaterialized">;
|
|
31
31
|
declare const ExpiryPnl: MoveStruct<{
|
|
32
|
-
pool_vault_id:
|
|
33
|
-
expiry_market_id:
|
|
34
|
-
propbook_underlying_id:
|
|
32
|
+
pool_vault_id: _mysten_sui_bcs314.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
33
|
+
expiry_market_id: _mysten_sui_bcs314.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
34
|
+
propbook_underlying_id: _mysten_sui_bcs314.BcsType<number, number, "u32">;
|
|
35
35
|
/**
|
|
36
36
|
* Start of the market's cadence period (`expiry` minus the cadence period), in
|
|
37
37
|
* milliseconds. The market's creation transaction may land before it.
|
|
38
38
|
*/
|
|
39
|
-
period_start_ms:
|
|
40
|
-
expiry:
|
|
41
|
-
settlement_price:
|
|
42
|
-
sent_to_expiry:
|
|
43
|
-
received_from_expiry:
|
|
39
|
+
period_start_ms: _mysten_sui_bcs314.BcsType<bigint, string | number | bigint, "u64">;
|
|
40
|
+
expiry: _mysten_sui_bcs314.BcsType<bigint, string | number | bigint, "u64">;
|
|
41
|
+
settlement_price: _mysten_sui_bcs314.BcsType<bigint, string | number | bigint, "u64">;
|
|
42
|
+
sent_to_expiry: _mysten_sui_bcs314.BcsType<bigint, string | number | bigint, "u64">;
|
|
43
|
+
received_from_expiry: _mysten_sui_bcs314.BcsType<bigint, string | number | bigint, "u64">;
|
|
44
44
|
/**
|
|
45
45
|
* True when `received_from_expiry >= sent_to_expiry`; break-even reports a zero
|
|
46
46
|
* profit.
|
|
47
47
|
*/
|
|
48
|
-
in_profit:
|
|
49
|
-
amount:
|
|
48
|
+
in_profit: _mysten_sui_bcs314.BcsType<boolean, boolean, "bool">; /** Absolute difference between `received_from_expiry` and `sent_to_expiry`. */
|
|
49
|
+
amount: _mysten_sui_bcs314.BcsType<bigint, string | number | bigint, "u64">;
|
|
50
50
|
}, "@local-pkg/deepbook_predict::vault_events::ExpiryPnl">;
|
|
51
51
|
declare const ExpiryPnlRealized: MoveStruct<{
|
|
52
|
-
pool_vault_id:
|
|
53
|
-
expiry_market_id:
|
|
54
|
-
propbook_underlying_id:
|
|
55
|
-
expiry:
|
|
56
|
-
settlement_price:
|
|
57
|
-
in_profit:
|
|
52
|
+
pool_vault_id: _mysten_sui_bcs314.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
53
|
+
expiry_market_id: _mysten_sui_bcs314.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
54
|
+
propbook_underlying_id: _mysten_sui_bcs314.BcsType<number, number, "u32">;
|
|
55
|
+
expiry: _mysten_sui_bcs314.BcsType<bigint, string | number | bigint, "u64">;
|
|
56
|
+
settlement_price: _mysten_sui_bcs314.BcsType<bigint, string | number | bigint, "u64">; /** False only for a loss, which only an expiry's first emission can report. */
|
|
57
|
+
in_profit: _mysten_sui_bcs314.BcsType<boolean, boolean, "bool">;
|
|
58
58
|
/**
|
|
59
59
|
* Magnitude of the change in the gross realized result since the previous
|
|
60
60
|
* emission.
|
|
61
61
|
*/
|
|
62
|
-
amount:
|
|
62
|
+
amount: _mysten_sui_bcs314.BcsType<bigint, string | number | bigint, "u64">;
|
|
63
63
|
}, "@local-pkg/deepbook_predict::vault_events::ExpiryPnlRealized">;
|
|
64
64
|
declare const SupplyRequested: MoveStruct<{
|
|
65
|
-
pool_vault_id:
|
|
66
|
-
account_id:
|
|
67
|
-
recipient:
|
|
68
|
-
index:
|
|
69
|
-
amount:
|
|
70
|
-
min_plp_out:
|
|
71
|
-
requests_pending_after:
|
|
65
|
+
pool_vault_id: _mysten_sui_bcs314.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
66
|
+
account_id: _mysten_sui_bcs314.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
67
|
+
recipient: _mysten_sui_bcs314.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
68
|
+
index: _mysten_sui_bcs314.BcsType<bigint, string | number | bigint, "u64">;
|
|
69
|
+
amount: _mysten_sui_bcs314.BcsType<bigint, string | number | bigint, "u64">;
|
|
70
|
+
min_plp_out: _mysten_sui_bcs314.BcsType<bigint, string | number | bigint, "u64">;
|
|
71
|
+
requests_pending_after: _mysten_sui_bcs314.BcsType<bigint, string | number | bigint, "u64">;
|
|
72
72
|
}, "@local-pkg/deepbook_predict::vault_events::SupplyRequested">;
|
|
73
73
|
declare const WithdrawRequested: MoveStruct<{
|
|
74
|
-
pool_vault_id:
|
|
75
|
-
account_id:
|
|
76
|
-
recipient:
|
|
77
|
-
index:
|
|
78
|
-
amount:
|
|
79
|
-
min_usdc_out:
|
|
80
|
-
requests_pending_after:
|
|
74
|
+
pool_vault_id: _mysten_sui_bcs314.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
75
|
+
account_id: _mysten_sui_bcs314.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
76
|
+
recipient: _mysten_sui_bcs314.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
77
|
+
index: _mysten_sui_bcs314.BcsType<bigint, string | number | bigint, "u64">;
|
|
78
|
+
amount: _mysten_sui_bcs314.BcsType<bigint, string | number | bigint, "u64">;
|
|
79
|
+
min_usdc_out: _mysten_sui_bcs314.BcsType<bigint, string | number | bigint, "u64">;
|
|
80
|
+
requests_pending_after: _mysten_sui_bcs314.BcsType<bigint, string | number | bigint, "u64">;
|
|
81
81
|
}, "@local-pkg/deepbook_predict::vault_events::WithdrawRequested">;
|
|
82
82
|
declare const RequestCancelled: MoveStruct<{
|
|
83
|
-
pool_vault_id:
|
|
84
|
-
account_id:
|
|
85
|
-
recipient:
|
|
86
|
-
index:
|
|
87
|
-
amount:
|
|
88
|
-
is_supply:
|
|
83
|
+
pool_vault_id: _mysten_sui_bcs314.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
84
|
+
account_id: _mysten_sui_bcs314.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
85
|
+
recipient: _mysten_sui_bcs314.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
86
|
+
index: _mysten_sui_bcs314.BcsType<bigint, string | number | bigint, "u64">;
|
|
87
|
+
amount: _mysten_sui_bcs314.BcsType<bigint, string | number | bigint, "u64">;
|
|
88
|
+
is_supply: _mysten_sui_bcs314.BcsType<boolean, boolean, "bool">;
|
|
89
89
|
/**
|
|
90
90
|
* 0=user, 1=non-executable frozen mark, 2=quote below the request's minimum
|
|
91
91
|
* output.
|
|
92
92
|
*/
|
|
93
|
-
reason:
|
|
94
|
-
requests_pending_after:
|
|
93
|
+
reason: _mysten_sui_bcs314.BcsType<number, number, "u8">;
|
|
94
|
+
requests_pending_after: _mysten_sui_bcs314.BcsType<bigint, string | number | bigint, "u64">;
|
|
95
95
|
}, "@local-pkg/deepbook_predict::vault_events::RequestCancelled">;
|
|
96
96
|
declare const RequestLimitMissed: MoveStruct<{
|
|
97
|
-
pool_vault_id:
|
|
98
|
-
account_id:
|
|
99
|
-
recipient:
|
|
100
|
-
index:
|
|
101
|
-
amount:
|
|
102
|
-
is_supply:
|
|
103
|
-
quoted_output:
|
|
104
|
-
min_output:
|
|
105
|
-
missed_flushes:
|
|
106
|
-
max_misses:
|
|
97
|
+
pool_vault_id: _mysten_sui_bcs314.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
98
|
+
account_id: _mysten_sui_bcs314.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
99
|
+
recipient: _mysten_sui_bcs314.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
100
|
+
index: _mysten_sui_bcs314.BcsType<bigint, string | number | bigint, "u64">;
|
|
101
|
+
amount: _mysten_sui_bcs314.BcsType<bigint, string | number | bigint, "u64">;
|
|
102
|
+
is_supply: _mysten_sui_bcs314.BcsType<boolean, boolean, "bool">;
|
|
103
|
+
quoted_output: _mysten_sui_bcs314.BcsType<bigint, string | number | bigint, "u64">;
|
|
104
|
+
min_output: _mysten_sui_bcs314.BcsType<bigint, string | number | bigint, "u64">;
|
|
105
|
+
missed_flushes: _mysten_sui_bcs314.BcsType<bigint, string | number | bigint, "u64">;
|
|
106
|
+
max_misses: _mysten_sui_bcs314.BcsType<bigint, string | number | bigint, "u64">;
|
|
107
107
|
}, "@local-pkg/deepbook_predict::vault_events::RequestLimitMissed">;
|
|
108
108
|
declare const SupplyFilled: MoveStruct<{
|
|
109
|
-
pool_vault_id:
|
|
110
|
-
account_id:
|
|
111
|
-
recipient:
|
|
112
|
-
index:
|
|
109
|
+
pool_vault_id: _mysten_sui_bcs314.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
110
|
+
account_id: _mysten_sui_bcs314.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
111
|
+
recipient: _mysten_sui_bcs314.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
112
|
+
index: _mysten_sui_bcs314.BcsType<bigint, string | number | bigint, "u64">;
|
|
113
113
|
/**
|
|
114
114
|
* USDC actually taken into the pool, which is less than the request's escrow when
|
|
115
115
|
* the supply cap left only part of it room. Shares were priced on
|
|
116
116
|
* `usdc_amount - fee_usdc`.
|
|
117
117
|
*/
|
|
118
|
-
usdc_amount:
|
|
119
|
-
shares_minted:
|
|
120
|
-
fee_usdc:
|
|
118
|
+
usdc_amount: _mysten_sui_bcs314.BcsType<bigint, string | number | bigint, "u64">;
|
|
119
|
+
shares_minted: _mysten_sui_bcs314.BcsType<bigint, string | number | bigint, "u64">; /** Supply fee withheld from `usdc_amount` and retained by the pool. */
|
|
120
|
+
fee_usdc: _mysten_sui_bcs314.BcsType<bigint, string | number | bigint, "u64">;
|
|
121
121
|
/**
|
|
122
122
|
* Escrow still queued at the head after a partial fill; `0` on a full fill, in
|
|
123
123
|
* which case the request is gone. `usdc_amount + usdc_remaining` is the amount the
|
|
124
124
|
* request carried into this flush.
|
|
125
125
|
*/
|
|
126
|
-
usdc_remaining:
|
|
127
|
-
requests_pending_after:
|
|
126
|
+
usdc_remaining: _mysten_sui_bcs314.BcsType<bigint, string | number | bigint, "u64">;
|
|
127
|
+
requests_pending_after: _mysten_sui_bcs314.BcsType<bigint, string | number | bigint, "u64">;
|
|
128
128
|
}, "@local-pkg/deepbook_predict::vault_events::SupplyFilled">;
|
|
129
129
|
declare const WithdrawFilled: MoveStruct<{
|
|
130
|
-
pool_vault_id:
|
|
131
|
-
account_id:
|
|
132
|
-
recipient:
|
|
133
|
-
index:
|
|
134
|
-
shares_burned:
|
|
130
|
+
pool_vault_id: _mysten_sui_bcs314.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
131
|
+
account_id: _mysten_sui_bcs314.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
132
|
+
recipient: _mysten_sui_bcs314.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
133
|
+
index: _mysten_sui_bcs314.BcsType<bigint, string | number | bigint, "u64">;
|
|
134
|
+
shares_burned: _mysten_sui_bcs314.BcsType<bigint, string | number | bigint, "u64">;
|
|
135
135
|
/**
|
|
136
136
|
* Net USDC delivered to `recipient`. The gross marked value of `shares_burned` was
|
|
137
137
|
* `usdc_amount + fee_usdc`.
|
|
138
138
|
*/
|
|
139
|
-
usdc_amount:
|
|
140
|
-
fee_usdc:
|
|
139
|
+
usdc_amount: _mysten_sui_bcs314.BcsType<bigint, string | number | bigint, "u64">; /** Withdraw fee withheld from the payout and retained by the pool. */
|
|
140
|
+
fee_usdc: _mysten_sui_bcs314.BcsType<bigint, string | number | bigint, "u64">;
|
|
141
141
|
/**
|
|
142
142
|
* Escrowed PLP still queued at the head after a partial fill; `0` on a full fill,
|
|
143
143
|
* in which case the request is gone. `shares_burned + shares_remaining` is the
|
|
144
144
|
* amount the request carried into this flush.
|
|
145
145
|
*/
|
|
146
|
-
shares_remaining:
|
|
147
|
-
requests_pending_after:
|
|
146
|
+
shares_remaining: _mysten_sui_bcs314.BcsType<bigint, string | number | bigint, "u64">;
|
|
147
|
+
requests_pending_after: _mysten_sui_bcs314.BcsType<bigint, string | number | bigint, "u64">;
|
|
148
148
|
}, "@local-pkg/deepbook_predict::vault_events::WithdrawFilled">;
|
|
149
149
|
declare const FlushExecuted: MoveStruct<{
|
|
150
|
-
pool_vault_id:
|
|
151
|
-
epoch:
|
|
150
|
+
pool_vault_id: _mysten_sui_bcs314.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
151
|
+
epoch: _mysten_sui_bcs314.BcsType<bigint, string | number | bigint, "u64">;
|
|
152
152
|
/**
|
|
153
153
|
* LP-attributable pool NAV every fill was priced at: idle plus
|
|
154
154
|
* `active_market_nav`, excluding unrealized and pending protocol profit.
|
|
155
155
|
*/
|
|
156
|
-
pool_value:
|
|
157
|
-
total_supply:
|
|
156
|
+
pool_value: _mysten_sui_bcs314.BcsType<bigint, string | number | bigint, "u64">; /** PLP supply in the frozen pre-drain mark used to price every fill. */
|
|
157
|
+
total_supply: _mysten_sui_bcs314.BcsType<bigint, string | number | bigint, "u64">;
|
|
158
158
|
/**
|
|
159
159
|
* Supply-leg fee rate in FLOAT_SCALING, frozen with the mark and charged on every
|
|
160
160
|
* supply fill in this flush.
|
|
161
161
|
*/
|
|
162
|
-
supply_fee_rate:
|
|
163
|
-
withdraw_fee_rate:
|
|
162
|
+
supply_fee_rate: _mysten_sui_bcs314.BcsType<bigint, string | number | bigint, "u64">; /** Withdraw-leg fee rate in FLOAT_SCALING, frozen alongside it. */
|
|
163
|
+
withdraw_fee_rate: _mysten_sui_bcs314.BcsType<bigint, string | number | bigint, "u64">;
|
|
164
164
|
/**
|
|
165
165
|
* Sum of the marked NAV contributed by each active market; settled markets add
|
|
166
166
|
* zero.
|
|
167
167
|
*/
|
|
168
|
-
active_market_nav:
|
|
169
|
-
market_count:
|
|
168
|
+
active_market_nav: _mysten_sui_bcs314.BcsType<bigint, string | number | bigint, "u64">; /** Number of active markets valued for this flush. */
|
|
169
|
+
market_count: _mysten_sui_bcs314.BcsType<bigint, string | number | bigint, "u64">;
|
|
170
170
|
/**
|
|
171
171
|
* LIVE idle USDC read at finish time, immediately before the drain — NOT a mark
|
|
172
172
|
* input. It brackets the drain with `idle_balance_after`; because maintenance,
|
|
173
173
|
* settlement sweeps, and trading run mid-window, it can differ from
|
|
174
174
|
* `frozen_idle_balance` below. Drain telemetry, not the mark.
|
|
175
175
|
*/
|
|
176
|
-
idle_balance_before:
|
|
176
|
+
idle_balance_before: _mysten_sui_bcs314.BcsType<bigint, string | number | bigint, "u64">;
|
|
177
177
|
/**
|
|
178
178
|
* The mark's idle component: idle USDC FROZEN at the seal. `frozen_idle_balance
|
|
179
179
|
*
|
|
180
180
|
* - active_market_nav`reconstructs the priced mark's gross; every fill in the flush is priced from this, never from`idle_balance_before`.
|
|
181
181
|
*/
|
|
182
|
-
frozen_idle_balance:
|
|
183
|
-
supplies_filled:
|
|
184
|
-
withdrawals_filled:
|
|
185
|
-
requests_processed:
|
|
186
|
-
idle_balance_after:
|
|
187
|
-
total_supply_after:
|
|
182
|
+
frozen_idle_balance: _mysten_sui_bcs314.BcsType<bigint, string | number | bigint, "u64">;
|
|
183
|
+
supplies_filled: _mysten_sui_bcs314.BcsType<bigint, string | number | bigint, "u64">;
|
|
184
|
+
withdrawals_filled: _mysten_sui_bcs314.BcsType<bigint, string | number | bigint, "u64">;
|
|
185
|
+
requests_processed: _mysten_sui_bcs314.BcsType<bigint, string | number | bigint, "u64">;
|
|
186
|
+
idle_balance_after: _mysten_sui_bcs314.BcsType<bigint, string | number | bigint, "u64">; /** PLP supply after the drain's completed mints and burns. */
|
|
187
|
+
total_supply_after: _mysten_sui_bcs314.BcsType<bigint, string | number | bigint, "u64">;
|
|
188
188
|
/**
|
|
189
189
|
* Each queue's `next_index` at this flush's snapshot instant; the drain filled
|
|
190
190
|
* only requests indexed strictly below these.
|
|
191
191
|
*/
|
|
192
|
-
supply_request_cutoff:
|
|
193
|
-
withdraw_request_cutoff:
|
|
192
|
+
supply_request_cutoff: _mysten_sui_bcs314.BcsType<bigint, string | number | bigint, "u64">;
|
|
193
|
+
withdraw_request_cutoff: _mysten_sui_bcs314.BcsType<bigint, string | number | bigint, "u64">;
|
|
194
194
|
/**
|
|
195
195
|
* Clock instant the snapshot stage froze every market's pricer — the moment the
|
|
196
196
|
* mark prices the pool at. Fills execute later in the same flush; this is the
|
|
197
197
|
* timestamp they were priced as of.
|
|
198
198
|
*/
|
|
199
|
-
snapshot_timestamp_ms:
|
|
199
|
+
snapshot_timestamp_ms: _mysten_sui_bcs314.BcsType<bigint, string | number | bigint, "u64">;
|
|
200
200
|
}, "@local-pkg/deepbook_predict::vault_events::FlushExecuted">;
|
|
201
201
|
declare const FlushRestarted: MoveStruct<{
|
|
202
|
-
pool_vault_id:
|
|
203
|
-
expected_market_count:
|
|
204
|
-
valued_market_count:
|
|
202
|
+
pool_vault_id: _mysten_sui_bcs314.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
203
|
+
expected_market_count: _mysten_sui_bcs314.BcsType<bigint, string | number | bigint, "u64">;
|
|
204
|
+
valued_market_count: _mysten_sui_bcs314.BcsType<bigint, string | number | bigint, "u64">;
|
|
205
205
|
}, "@local-pkg/deepbook_predict::vault_events::FlushRestarted">;
|
|
206
206
|
declare const CapitalLocked: MoveStruct<{
|
|
207
|
-
pool_vault_id:
|
|
208
|
-
amount:
|
|
207
|
+
pool_vault_id: _mysten_sui_bcs314.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
208
|
+
amount: _mysten_sui_bcs314.BcsType<bigint, string | number | bigint, "u64">;
|
|
209
209
|
}, "@local-pkg/deepbook_predict::vault_events::CapitalLocked">;
|
|
210
210
|
declare const UsdcAddedToPlp: MoveStruct<{
|
|
211
|
-
pool_vault_id:
|
|
212
|
-
contributor:
|
|
213
|
-
amount:
|
|
211
|
+
pool_vault_id: _mysten_sui_bcs314.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
212
|
+
contributor: _mysten_sui_bcs314.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
213
|
+
amount: _mysten_sui_bcs314.BcsType<bigint, string | number | bigint, "u64">;
|
|
214
214
|
}, "@local-pkg/deepbook_predict::vault_events::UsdcAddedToPlp">;
|
|
215
215
|
declare const FeeIncentivesSponsored: MoveStruct<{
|
|
216
|
-
pool_vault_id:
|
|
217
|
-
sponsor:
|
|
218
|
-
amount:
|
|
219
|
-
reserve_after:
|
|
216
|
+
pool_vault_id: _mysten_sui_bcs314.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
217
|
+
sponsor: _mysten_sui_bcs314.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
218
|
+
amount: _mysten_sui_bcs314.BcsType<bigint, string | number | bigint, "u64">;
|
|
219
|
+
reserve_after: _mysten_sui_bcs314.BcsType<bigint, string | number | bigint, "u64">;
|
|
220
220
|
}, "@local-pkg/deepbook_predict::vault_events::FeeIncentivesSponsored">;
|
|
221
221
|
declare const FeeIncentivesWithdrawn: MoveStruct<{
|
|
222
|
-
pool_vault_id:
|
|
223
|
-
amount:
|
|
224
|
-
reserve_after:
|
|
222
|
+
pool_vault_id: _mysten_sui_bcs314.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
223
|
+
amount: _mysten_sui_bcs314.BcsType<bigint, string | number | bigint, "u64">;
|
|
224
|
+
reserve_after: _mysten_sui_bcs314.BcsType<bigint, string | number | bigint, "u64">;
|
|
225
225
|
}, "@local-pkg/deepbook_predict::vault_events::FeeIncentivesWithdrawn">;
|
|
226
226
|
declare const FeeIncentiveLifetimeCapSnapshotted: MoveStruct<{
|
|
227
|
-
pool_vault_id:
|
|
228
|
-
expiry_market_id:
|
|
229
|
-
fee_incentive_lifetime_cap:
|
|
227
|
+
pool_vault_id: _mysten_sui_bcs314.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
228
|
+
expiry_market_id: _mysten_sui_bcs314.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
229
|
+
fee_incentive_lifetime_cap: _mysten_sui_bcs314.BcsType<bigint, string | number | bigint, "u64">;
|
|
230
230
|
}, "@local-pkg/deepbook_predict::vault_events::FeeIncentiveLifetimeCapSnapshotted">;
|
|
231
231
|
declare const FeeIncentivesAllocated: MoveStruct<{
|
|
232
|
-
pool_vault_id:
|
|
233
|
-
expiry_market_id:
|
|
234
|
-
amount:
|
|
235
|
-
pool_reserve_after:
|
|
236
|
-
expiry_incentive_balance_after:
|
|
237
|
-
expiry_incentives_allocated_after:
|
|
232
|
+
pool_vault_id: _mysten_sui_bcs314.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
233
|
+
expiry_market_id: _mysten_sui_bcs314.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
234
|
+
amount: _mysten_sui_bcs314.BcsType<bigint, string | number | bigint, "u64">;
|
|
235
|
+
pool_reserve_after: _mysten_sui_bcs314.BcsType<bigint, string | number | bigint, "u64">;
|
|
236
|
+
expiry_incentive_balance_after: _mysten_sui_bcs314.BcsType<bigint, string | number | bigint, "u64">;
|
|
237
|
+
expiry_incentives_allocated_after: _mysten_sui_bcs314.BcsType<bigint, string | number | bigint, "u64">;
|
|
238
238
|
}, "@local-pkg/deepbook_predict::vault_events::FeeIncentivesAllocated">;
|
|
239
239
|
declare const FeeIncentivesReturned: MoveStruct<{
|
|
240
|
-
pool_vault_id:
|
|
241
|
-
expiry_market_id:
|
|
242
|
-
amount:
|
|
243
|
-
pool_reserve_after:
|
|
240
|
+
pool_vault_id: _mysten_sui_bcs314.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
241
|
+
expiry_market_id: _mysten_sui_bcs314.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
242
|
+
amount: _mysten_sui_bcs314.BcsType<bigint, string | number | bigint, "u64">;
|
|
243
|
+
pool_reserve_after: _mysten_sui_bcs314.BcsType<bigint, string | number | bigint, "u64">;
|
|
244
244
|
}, "@local-pkg/deepbook_predict::vault_events::FeeIncentivesReturned">;
|
|
245
245
|
//#endregion
|
|
246
246
|
export { vault_events_d_exports };
|