@mysten/deepbook-v3 2.3.0 → 2.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (109) hide show
  1. package/CHANGELOG.md +27 -0
  2. package/PREDICT.md +149 -55
  3. package/README.md +18 -13
  4. package/dist/contracts/account/account.d.mts +23 -23
  5. package/dist/contracts/account/account.d.mts.map +1 -1
  6. package/dist/contracts/account/account_events.d.mts +20 -20
  7. package/dist/contracts/account/account_registry.d.mts +19 -19
  8. package/dist/contracts/deepbook/account.d.mts +18 -18
  9. package/dist/contracts/deepbook/account.d.mts.map +1 -1
  10. package/dist/contracts/deepbook/balances.d.mts +4 -4
  11. package/dist/contracts/deepbook/balances.d.mts.map +1 -1
  12. package/dist/contracts/deepbook/deep_price.d.mts +3 -3
  13. package/dist/contracts/deepbook/deep_price.d.mts.map +1 -1
  14. package/dist/contracts/deepbook/order.d.mts +12 -12
  15. package/dist/contracts/deepbook_predict/admin.d.mts +27 -0
  16. package/dist/contracts/deepbook_predict/admin.d.mts.map +1 -0
  17. package/dist/contracts/deepbook_predict/admin.mjs +38 -0
  18. package/dist/contracts/deepbook_predict/admin.mjs.map +1 -0
  19. package/dist/contracts/deepbook_predict/builder_code.d.mts +81 -0
  20. package/dist/contracts/deepbook_predict/builder_code.d.mts.map +1 -0
  21. package/dist/contracts/deepbook_predict/builder_code.mjs +103 -0
  22. package/dist/contracts/deepbook_predict/builder_code.mjs.map +1 -0
  23. package/dist/contracts/deepbook_predict/builder_code_events.d.mts +25 -0
  24. package/dist/contracts/deepbook_predict/builder_code_events.d.mts.map +1 -0
  25. package/dist/contracts/deepbook_predict/builder_code_events.mjs +7 -1
  26. package/dist/contracts/deepbook_predict/builder_code_events.mjs.map +1 -1
  27. package/dist/contracts/deepbook_predict/config_events.d.mts +104 -0
  28. package/dist/contracts/deepbook_predict/config_events.d.mts.map +1 -0
  29. package/dist/contracts/deepbook_predict/config_events.mjs +155 -0
  30. package/dist/contracts/deepbook_predict/config_events.mjs.map +1 -0
  31. package/dist/contracts/deepbook_predict/ewma_config.mjs +28 -0
  32. package/dist/contracts/deepbook_predict/ewma_config.mjs.map +1 -0
  33. package/dist/contracts/deepbook_predict/expiry_market.d.mts +859 -0
  34. package/dist/contracts/deepbook_predict/expiry_market.d.mts.map +1 -0
  35. package/dist/contracts/deepbook_predict/expiry_market.mjs +647 -1
  36. package/dist/contracts/deepbook_predict/expiry_market.mjs.map +1 -1
  37. package/dist/contracts/deepbook_predict/market_lifecycle_cap.d.mts +39 -0
  38. package/dist/contracts/deepbook_predict/market_lifecycle_cap.d.mts.map +1 -0
  39. package/dist/contracts/deepbook_predict/market_lifecycle_cap.mjs +51 -0
  40. package/dist/contracts/deepbook_predict/market_lifecycle_cap.mjs.map +1 -0
  41. package/dist/contracts/deepbook_predict/market_manager.d.mts +159 -0
  42. package/dist/contracts/deepbook_predict/market_manager.d.mts.map +1 -0
  43. package/dist/contracts/deepbook_predict/market_manager.mjs +88 -2
  44. package/dist/contracts/deepbook_predict/market_manager.mjs.map +1 -1
  45. package/dist/contracts/deepbook_predict/order_events.d.mts +101 -0
  46. package/dist/contracts/deepbook_predict/order_events.d.mts.map +1 -0
  47. package/dist/contracts/deepbook_predict/order_events.mjs +7 -1
  48. package/dist/contracts/deepbook_predict/order_events.mjs.map +1 -1
  49. package/dist/contracts/deepbook_predict/pause_cap.d.mts +39 -0
  50. package/dist/contracts/deepbook_predict/pause_cap.d.mts.map +1 -0
  51. package/dist/contracts/deepbook_predict/pause_cap.mjs +51 -0
  52. package/dist/contracts/deepbook_predict/pause_cap.mjs.map +1 -0
  53. package/dist/contracts/deepbook_predict/plp.d.mts +801 -0
  54. package/dist/contracts/deepbook_predict/plp.d.mts.map +1 -0
  55. package/dist/contracts/deepbook_predict/plp.mjs +458 -1
  56. package/dist/contracts/deepbook_predict/plp.mjs.map +1 -1
  57. package/dist/contracts/deepbook_predict/pool_valuation_cap.d.mts +39 -0
  58. package/dist/contracts/deepbook_predict/pool_valuation_cap.d.mts.map +1 -0
  59. package/dist/contracts/deepbook_predict/pool_valuation_cap.mjs +52 -0
  60. package/dist/contracts/deepbook_predict/pool_valuation_cap.mjs.map +1 -0
  61. package/dist/contracts/deepbook_predict/predict_account.d.mts +90 -0
  62. package/dist/contracts/deepbook_predict/predict_account.d.mts.map +1 -0
  63. package/dist/contracts/deepbook_predict/predict_account.mjs +24 -1
  64. package/dist/contracts/deepbook_predict/predict_account.mjs.map +1 -1
  65. package/dist/contracts/deepbook_predict/pricing.d.mts +127 -0
  66. package/dist/contracts/deepbook_predict/pricing.d.mts.map +1 -0
  67. package/dist/contracts/deepbook_predict/pricing.mjs +25 -1
  68. package/dist/contracts/deepbook_predict/pricing.mjs.map +1 -1
  69. package/dist/contracts/deepbook_predict/pricing_config.mjs +28 -0
  70. package/dist/contracts/deepbook_predict/pricing_config.mjs.map +1 -0
  71. package/dist/contracts/deepbook_predict/protocol_config.d.mts +665 -0
  72. package/dist/contracts/deepbook_predict/protocol_config.d.mts.map +1 -0
  73. package/dist/contracts/deepbook_predict/protocol_config.mjs +841 -0
  74. package/dist/contracts/deepbook_predict/protocol_config.mjs.map +1 -0
  75. package/dist/contracts/deepbook_predict/range_codec.d.mts +30 -0
  76. package/dist/contracts/deepbook_predict/range_codec.d.mts.map +1 -0
  77. package/dist/contracts/deepbook_predict/range_codec.mjs +6 -1
  78. package/dist/contracts/deepbook_predict/range_codec.mjs.map +1 -1
  79. package/dist/contracts/deepbook_predict/registry.d.mts +382 -0
  80. package/dist/contracts/deepbook_predict/registry.d.mts.map +1 -0
  81. package/dist/contracts/deepbook_predict/registry.mjs +456 -1
  82. package/dist/contracts/deepbook_predict/registry.mjs.map +1 -1
  83. package/dist/contracts/deepbook_predict/vault_events.d.mts +199 -0
  84. package/dist/contracts/deepbook_predict/vault_events.d.mts.map +1 -0
  85. package/dist/contracts/deepbook_predict/vault_events.mjs +19 -1
  86. package/dist/contracts/deepbook_predict/vault_events.mjs.map +1 -1
  87. package/dist/contracts/deepbook_sessions/session_config.d.mts +8 -8
  88. package/dist/contracts/deepbook_sessions/sessions.d.mts +22 -22
  89. package/dist/contracts/deepbook_sessions/sessions.d.mts.map +1 -1
  90. package/dist/predict/client.d.mts +3 -2
  91. package/dist/predict/client.d.mts.map +1 -1
  92. package/dist/predict/client.mjs +3 -2
  93. package/dist/predict/client.mjs.map +1 -1
  94. package/dist/predict/index.d.mts +18 -1
  95. package/dist/predict/index.mjs +18 -1
  96. package/dist/transactions/balanceManager.d.mts +12 -12
  97. package/dist/transactions/deepbook.d.mts +20 -20
  98. package/dist/transactions/deepbookAdmin.d.mts +4 -4
  99. package/dist/transactions/marginAdmin.d.mts +7 -7
  100. package/dist/transactions/marginLiquidations.d.mts +3 -3
  101. package/dist/transactions/marginMaintainer.d.mts +5 -5
  102. package/dist/transactions/marginManager.d.mts +32 -32
  103. package/dist/transactions/marginPool.d.mts +18 -18
  104. package/dist/transactions/marginRegistry.d.mts +16 -16
  105. package/dist/transactions/marginTPSL.d.mts +10 -10
  106. package/dist/transactions/poolProxy.d.mts +8 -8
  107. package/package.json +1 -1
  108. package/src/predict/client.ts +3 -2
  109. package/src/predict/index.ts +26 -2
@@ -1 +1 @@
1
- {"version":3,"file":"expiry_market.mjs","names":["expiry_cash.ExpiryCash","balance.Balance","strike_exposure.StrikeExposure","ewma.EwmaState"],"sources":["../../../src/contracts/deepbook_predict/expiry_market.ts"],"sourcesContent":["/**************************************************************\n * THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *\n **************************************************************/\n\n/**\n * Per-expiry Predict market.\n *\n * An ExpiryMarket is the hot shared object for one expiry. It owns trade\n * execution, strike exposure state, and an embedded expiry-cash custody component,\n * plus local sponsor-funded fee incentives. Live oracle validation is delegated to\n * `pricing::load_live_pricer`; this module owns market flow policy and then passes\n * loaded `Pricer` snapshots into exposure business logic. Pool-wide PLP accounting\n * and profit accounting remain outside this module.\n */\n\nimport {\n\tMoveStruct,\n\tnormalizeMoveArguments,\n\ttype RawTransactionArgument,\n\ttype ConfigValue,\n} from '../utils/index.js';\nimport { U64 } from '../../bcs/integers.js';\nimport { bcs } from '@mysten/sui/bcs';\nimport { type Transaction, type TransactionArgument } from '@mysten/sui/transactions';\nimport * as expiry_cash from './expiry_cash.js';\nimport * as balance from './deps/sui/balance.js';\nimport * as strike_exposure from './strike_exposure.js';\nimport * as ewma from './ewma.js';\nconst $moduleName = '@local-pkg/deepbook_predict::expiry_market';\nexport const ValuationStamp = new MoveStruct({\n\tname: `${$moduleName}::ValuationStamp`,\n\tfields: {\n\t\tflush_seq: U64,\n\t\t/** `cash.balance()` at the snapshot instant. */\n\t\tsnapshot_cash: U64,\n\t\t/** `cash.inventory_impact_reserve()` at the snapshot instant. */\n\t\tsnapshot_impact_reserve: U64,\n\t},\n});\nexport const ExpiryMarket = new MoveStruct({\n\tname: `${$moduleName}::ExpiryMarket`,\n\tfields: {\n\t\tid: bcs.Address,\n\t\t/** Propbook underlying this market was created for. */\n\t\tpropbook_underlying_id: bcs.u32(),\n\t\texpiry: U64,\n\t\t/** USDC custody and payout backing. */\n\t\tcash: expiry_cash.ExpiryCash,\n\t\t/** Sponsor-funded USDC available to subsidize this market's taker fees. */\n\t\tfee_incentive_balance: balance.Balance,\n\t\t/** Exposure lifecycle state for this expiry's strike ticks. */\n\t\tstrike_exposure: strike_exposure.StrikeExposure,\n\t\t/** Smoothed gas-price stats backing the congestion trade penalty. */\n\t\tewma: ewma.EwmaState,\n\t\t/**\n\t\t * When true, new mints on this expiry abort. Other flows stay available. Admin\n\t\t * sets/unsets it (version-gated); a `PauseCap` holder can force it true one-way\n\t\t * through the registry (ungated kill switch).\n\t\t */\n\t\tmint_paused: bcs.bool(),\n\t\t/**\n\t\t * `Some` from the flush's snapshot stage until this market's `value_expiry` (or\n\t\t * lazily discarded once the stamp goes stale — see `ValuationStamp`). Trading is\n\t\t * never gated on it and never touches it: the cash rows are captured eagerly here\n\t\t * at the snapshot instant, and the payout tree captures its own boundary shadows\n\t\t * as trades first touch each node.\n\t\t */\n\t\tvaluation_stamp: bcs.option(ValuationStamp),\n\t},\n});\nexport const MintQuote = new MoveStruct({\n\tname: `${$moduleName}::MintQuote`,\n\tfields: {\n\t\tquantity: U64,\n\t\tentry_probability: U64,\n\t\tpremium: U64,\n\t\ttrading_fee: U64,\n\t\tfee_incentive_subsidy: U64,\n\t\tbuilder_fee: U64,\n\t\tpenalty_fee: U64,\n\t\tinventory_impact_charge: U64,\n\t\tall_in_cost: U64,\n\t},\n});\nexport interface IdArguments {\n\tmarket: RawTransactionArgument<string>;\n}\nexport interface IdOptions {\n\tpackage?: string;\n\targuments: IdArguments | [market: RawTransactionArgument<string>];\n\tconfig?: {\n\t\tpredictPackageId?: string;\n\t};\n}\n/** Return the market 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 = ['market'];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'expiry_market',\n\t\t\tfunction: 'id',\n\t\t\targuments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),\n\t\t});\n}\nexport interface PropbookUnderlyingIdArguments {\n\tmarket: RawTransactionArgument<string>;\n}\nexport interface PropbookUnderlyingIdOptions {\n\tpackage?: string;\n\targuments: PropbookUnderlyingIdArguments | [market: RawTransactionArgument<string>];\n\tconfig?: {\n\t\tpredictPackageId?: string;\n\t};\n}\n/** Return the Propbook underlying for SDK and devInspect market reads. */\nexport function propbookUnderlyingId(options: PropbookUnderlyingIdOptions) {\n\tconst packageAddress =\n\t\toptions.package ?? options.config?.predictPackageId ?? '@local-pkg/deepbook_predict';\n\tconst argumentsTypes = [null] satisfies (string | null)[];\n\tconst parameterNames = ['market'];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'expiry_market',\n\t\t\tfunction: 'propbook_underlying_id',\n\t\t\targuments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),\n\t\t});\n}\nexport interface ExpiryArguments {\n\tmarket: RawTransactionArgument<string>;\n}\nexport interface ExpiryOptions {\n\tpackage?: string;\n\targuments: ExpiryArguments | [market: RawTransactionArgument<string>];\n\tconfig?: {\n\t\tpredictPackageId?: string;\n\t};\n}\n/** Return the expiry timestamp for SDK and devInspect market reads. */\nexport function expiry(options: ExpiryOptions) {\n\tconst packageAddress =\n\t\toptions.package ?? options.config?.predictPackageId ?? '@local-pkg/deepbook_predict';\n\tconst argumentsTypes = [null] satisfies (string | null)[];\n\tconst parameterNames = ['market'];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'expiry_market',\n\t\t\tfunction: 'expiry',\n\t\t\targuments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),\n\t\t});\n}\nexport interface SettlementPriceArguments {\n\tmarket: RawTransactionArgument<string>;\n}\nexport interface SettlementPriceOptions {\n\tpackage?: string;\n\targuments: SettlementPriceArguments | [market: RawTransactionArgument<string>];\n\tconfig?: {\n\t\tpredictPackageId?: string;\n\t};\n}\n/** Return the recorded settlement price. Aborts if the market is not settled. */\nexport function settlementPrice(options: SettlementPriceOptions) {\n\tconst packageAddress =\n\t\toptions.package ?? options.config?.predictPackageId ?? '@local-pkg/deepbook_predict';\n\tconst argumentsTypes = [null] satisfies (string | null)[];\n\tconst parameterNames = ['market'];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'expiry_market',\n\t\t\tfunction: 'settlement_price',\n\t\t\targuments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),\n\t\t});\n}\nexport interface IsSettledArguments {\n\tmarket: RawTransactionArgument<string>;\n}\nexport interface IsSettledOptions {\n\tpackage?: string;\n\targuments: IsSettledArguments | [market: RawTransactionArgument<string>];\n\tconfig?: {\n\t\tpredictPackageId?: string;\n\t};\n}\n/**\n * Return whether terminal settlement has been recorded for this market. Public\n * read for SDK/devInspect settlement-state checks.\n */\nexport function isSettled(options: IsSettledOptions) {\n\tconst packageAddress =\n\t\toptions.package ?? options.config?.predictPackageId ?? '@local-pkg/deepbook_predict';\n\tconst argumentsTypes = [null] satisfies (string | null)[];\n\tconst parameterNames = ['market'];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'expiry_market',\n\t\t\tfunction: 'is_settled',\n\t\t\targuments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),\n\t\t});\n}\nexport interface TrySettlementPriceArguments {\n\tmarket: RawTransactionArgument<string>;\n}\nexport interface TrySettlementPriceOptions {\n\tpackage?: string;\n\targuments: TrySettlementPriceArguments | [market: RawTransactionArgument<string>];\n\tconfig?: {\n\t\tpredictPackageId?: string;\n\t};\n}\n/**\n * Return the recorded settlement price, or `none` while the market is live.\n * Non-aborting companion to `settlement_price` for SDK/devInspect reads.\n */\nexport function trySettlementPrice(options: TrySettlementPriceOptions) {\n\tconst packageAddress =\n\t\toptions.package ?? options.config?.predictPackageId ?? '@local-pkg/deepbook_predict';\n\tconst argumentsTypes = [null] satisfies (string | null)[];\n\tconst parameterNames = ['market'];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'expiry_market',\n\t\t\tfunction: 'try_settlement_price',\n\t\t\targuments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),\n\t\t});\n}\nexport interface CashBalanceArguments {\n\tmarket: RawTransactionArgument<string>;\n}\nexport interface CashBalanceOptions {\n\tpackage?: string;\n\targuments: CashBalanceArguments | [market: RawTransactionArgument<string>];\n\tconfig?: {\n\t\tpredictPackageId?: string;\n\t};\n}\n/** Return expiry USDC custody for SDK and devInspect state reads. */\nexport function cashBalance(options: CashBalanceOptions) {\n\tconst packageAddress =\n\t\toptions.package ?? options.config?.predictPackageId ?? '@local-pkg/deepbook_predict';\n\tconst argumentsTypes = [null] satisfies (string | null)[];\n\tconst parameterNames = ['market'];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'expiry_market',\n\t\t\tfunction: 'cash_balance',\n\t\t\targuments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),\n\t\t});\n}\nexport interface InventoryImpactReserveArguments {\n\tmarket: RawTransactionArgument<string>;\n}\nexport interface InventoryImpactReserveOptions {\n\tpackage?: string;\n\targuments: InventoryImpactReserveArguments | [market: RawTransactionArgument<string>];\n\tconfig?: {\n\t\tpredictPackageId?: string;\n\t};\n}\n/** Return the isolated inventory-impact escrow for SDK and devInspect state reads. */\nexport function inventoryImpactReserve(options: InventoryImpactReserveOptions) {\n\tconst packageAddress =\n\t\toptions.package ?? options.config?.predictPackageId ?? '@local-pkg/deepbook_predict';\n\tconst argumentsTypes = [null] satisfies (string | null)[];\n\tconst parameterNames = ['market'];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'expiry_market',\n\t\t\tfunction: 'inventory_impact_reserve',\n\t\t\targuments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),\n\t\t});\n}\nexport interface FeeIncentiveBalanceArguments {\n\tmarket: RawTransactionArgument<string>;\n}\nexport interface FeeIncentiveBalanceOptions {\n\tpackage?: string;\n\targuments: FeeIncentiveBalanceArguments | [market: RawTransactionArgument<string>];\n\tconfig?: {\n\t\tpredictPackageId?: string;\n\t};\n}\n/** Return local fee incentives for SDK and devInspect state reads. */\nexport function feeIncentiveBalance(options: FeeIncentiveBalanceOptions) {\n\tconst packageAddress =\n\t\toptions.package ?? options.config?.predictPackageId ?? '@local-pkg/deepbook_predict';\n\tconst argumentsTypes = [null] satisfies (string | null)[];\n\tconst parameterNames = ['market'];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'expiry_market',\n\t\t\tfunction: 'fee_incentive_balance',\n\t\t\targuments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),\n\t\t});\n}\nexport interface BackingBufferLambdaArguments {\n\tmarket: RawTransactionArgument<string>;\n}\nexport interface BackingBufferLambdaOptions {\n\tpackage?: string;\n\targuments: BackingBufferLambdaArguments | [market: RawTransactionArgument<string>];\n\tconfig?: {\n\t\tpredictPackageId?: string;\n\t};\n}\n/** Return the snapshotted backing-buffer lambda for SDK and devInspect reads. */\nexport function backingBufferLambda(options: BackingBufferLambdaOptions) {\n\tconst packageAddress =\n\t\toptions.package ?? options.config?.predictPackageId ?? '@local-pkg/deepbook_predict';\n\tconst argumentsTypes = [null] satisfies (string | null)[];\n\tconst parameterNames = ['market'];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'expiry_market',\n\t\t\tfunction: 'backing_buffer_lambda',\n\t\t\targuments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),\n\t\t});\n}\nexport interface ExpiryFeeWindowMsArguments {\n\tmarket: RawTransactionArgument<string>;\n}\nexport interface ExpiryFeeWindowMsOptions {\n\tpackage?: string;\n\targuments: ExpiryFeeWindowMsArguments | [market: RawTransactionArgument<string>];\n\tconfig?: {\n\t\tpredictPackageId?: string;\n\t};\n}\n/** Return the snapshotted fee-ramp window for SDK and devInspect reads. */\nexport function expiryFeeWindowMs(options: ExpiryFeeWindowMsOptions) {\n\tconst packageAddress =\n\t\toptions.package ?? options.config?.predictPackageId ?? '@local-pkg/deepbook_predict';\n\tconst argumentsTypes = [null] satisfies (string | null)[];\n\tconst parameterNames = ['market'];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'expiry_market',\n\t\t\tfunction: 'expiry_fee_window_ms',\n\t\t\targuments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),\n\t\t});\n}\nexport interface ExpiryFeeMaxMultiplierArguments {\n\tmarket: RawTransactionArgument<string>;\n}\nexport interface ExpiryFeeMaxMultiplierOptions {\n\tpackage?: string;\n\targuments: ExpiryFeeMaxMultiplierArguments | [market: RawTransactionArgument<string>];\n\tconfig?: {\n\t\tpredictPackageId?: string;\n\t};\n}\n/** Return the snapshotted fee-ramp multiplier for SDK and devInspect reads. */\nexport function expiryFeeMaxMultiplier(options: ExpiryFeeMaxMultiplierOptions) {\n\tconst packageAddress =\n\t\toptions.package ?? options.config?.predictPackageId ?? '@local-pkg/deepbook_predict';\n\tconst argumentsTypes = [null] satisfies (string | null)[];\n\tconst parameterNames = ['market'];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'expiry_market',\n\t\t\tfunction: 'expiry_fee_max_multiplier',\n\t\t\targuments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),\n\t\t});\n}\nexport interface InventoryImpactMaxRateArguments {\n\tmarket: RawTransactionArgument<string>;\n}\nexport interface InventoryImpactMaxRateOptions {\n\tpackage?: string;\n\targuments: InventoryImpactMaxRateArguments | [market: RawTransactionArgument<string>];\n\tconfig?: {\n\t\tpredictPackageId?: string;\n\t};\n}\n/**\n * Return this market's immutable maximum marginal inventory-impact rate for SDK\n * and devInspect state reads.\n */\nexport function inventoryImpactMaxRate(options: InventoryImpactMaxRateOptions) {\n\tconst packageAddress =\n\t\toptions.package ?? options.config?.predictPackageId ?? '@local-pkg/deepbook_predict';\n\tconst argumentsTypes = [null] satisfies (string | null)[];\n\tconst parameterNames = ['market'];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'expiry_market',\n\t\t\tfunction: 'inventory_impact_max_rate',\n\t\t\targuments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),\n\t\t});\n}\nexport interface InventoryImpactScaleArguments {\n\tmarket: RawTransactionArgument<string>;\n}\nexport interface InventoryImpactScaleOptions {\n\tpackage?: string;\n\targuments: InventoryImpactScaleArguments | [market: RawTransactionArgument<string>];\n\tconfig?: {\n\t\tpredictPackageId?: string;\n\t};\n}\n/**\n * Return the immutable USDC scale of this market's inventory-impact curve for SDK\n * and devInspect state reads.\n */\nexport function inventoryImpactScale(options: InventoryImpactScaleOptions) {\n\tconst packageAddress =\n\t\toptions.package ?? options.config?.predictPackageId ?? '@local-pkg/deepbook_predict';\n\tconst argumentsTypes = [null] satisfies (string | null)[];\n\tconst parameterNames = ['market'];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'expiry_market',\n\t\t\tfunction: 'inventory_impact_scale',\n\t\t\targuments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),\n\t\t});\n}\nexport interface TickSizeArguments {\n\tmarket: RawTransactionArgument<string>;\n}\nexport interface TickSizeOptions {\n\tpackage?: string;\n\targuments: TickSizeArguments | [market: RawTransactionArgument<string>];\n\tconfig?: {\n\t\tpredictPackageId?: string;\n\t};\n}\n/**\n * Return the strike tick size for SDK and devInspect range construction. Raw\n * strikes are `tick * tick_size`.\n */\nexport function tickSize(options: TickSizeOptions) {\n\tconst packageAddress =\n\t\toptions.package ?? options.config?.predictPackageId ?? '@local-pkg/deepbook_predict';\n\tconst argumentsTypes = [null] satisfies (string | null)[];\n\tconst parameterNames = ['market'];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'expiry_market',\n\t\t\tfunction: 'tick_size',\n\t\t\targuments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),\n\t\t});\n}\nexport interface AdmissionTickSizeArguments {\n\tmarket: RawTransactionArgument<string>;\n}\nexport interface AdmissionTickSizeOptions {\n\tpackage?: string;\n\targuments: AdmissionTickSizeArguments | [market: RawTransactionArgument<string>];\n\tconfig?: {\n\t\tpredictPackageId?: string;\n\t};\n}\n/** Return the admission-grid step for SDK and devInspect range construction. */\nexport function admissionTickSize(options: AdmissionTickSizeOptions) {\n\tconst packageAddress =\n\t\toptions.package ?? options.config?.predictPackageId ?? '@local-pkg/deepbook_predict';\n\tconst argumentsTypes = [null] satisfies (string | null)[];\n\tconst parameterNames = ['market'];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'expiry_market',\n\t\t\tfunction: 'admission_tick_size',\n\t\t\targuments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),\n\t\t});\n}\nexport interface ReferenceTickArguments {\n\tmarket: RawTransactionArgument<string>;\n}\nexport interface ReferenceTickOptions {\n\tpackage?: string;\n\targuments: ReferenceTickArguments | [market: RawTransactionArgument<string>];\n\tconfig?: {\n\t\tpredictPackageId?: string;\n\t};\n}\n/** Return the admitted reference tick for SDK and devInspect range construction. */\nexport function referenceTick(options: ReferenceTickOptions) {\n\tconst packageAddress =\n\t\toptions.package ?? options.config?.predictPackageId ?? '@local-pkg/deepbook_predict';\n\tconst argumentsTypes = [null] satisfies (string | null)[];\n\tconst parameterNames = ['market'];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'expiry_market',\n\t\t\tfunction: 'reference_tick',\n\t\t\targuments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),\n\t\t});\n}\nexport interface ReferenceTickSourceTimestampMsArguments {\n\tmarket: RawTransactionArgument<string>;\n}\nexport interface ReferenceTickSourceTimestampMsOptions {\n\tpackage?: string;\n\targuments: ReferenceTickSourceTimestampMsArguments | [market: RawTransactionArgument<string>];\n\tconfig?: {\n\t\tpredictPackageId?: string;\n\t};\n}\n/** Return the reference observation timestamp for SDK and devInspect reads. */\nexport function referenceTickSourceTimestampMs(options: ReferenceTickSourceTimestampMsOptions) {\n\tconst packageAddress =\n\t\toptions.package ?? options.config?.predictPackageId ?? '@local-pkg/deepbook_predict';\n\tconst argumentsTypes = [null] satisfies (string | null)[];\n\tconst parameterNames = ['market'];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'expiry_market',\n\t\t\tfunction: 'reference_tick_source_timestamp_ms',\n\t\t\targuments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),\n\t\t});\n}\nexport interface PayoutLiabilityArguments {\n\tmarket: RawTransactionArgument<string>;\n}\nexport interface PayoutLiabilityOptions {\n\tpackage?: string;\n\targuments: PayoutLiabilityArguments | [market: RawTransactionArgument<string>];\n\tconfig?: {\n\t\tpredictPackageId?: string;\n\t};\n}\n/**\n * Return payout reserve or settled liability for external accounting\n * observability.\n */\nexport function payoutLiability(options: PayoutLiabilityOptions) {\n\tconst packageAddress =\n\t\toptions.package ?? options.config?.predictPackageId ?? '@local-pkg/deepbook_predict';\n\tconst argumentsTypes = [null] satisfies (string | null)[];\n\tconst parameterNames = ['market'];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'expiry_market',\n\t\t\tfunction: 'payout_liability',\n\t\t\targuments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),\n\t\t});\n}\nexport interface RequiredCashArguments {\n\tmarket: RawTransactionArgument<string>;\n}\nexport interface RequiredCashOptions {\n\tpackage?: string;\n\targuments: RequiredCashArguments | [market: RawTransactionArgument<string>];\n\tconfig?: {\n\t\tpredictPackageId?: string;\n\t};\n}\n/** Return required expiry cash for external accounting observability. */\nexport function requiredCash(options: RequiredCashOptions) {\n\tconst packageAddress =\n\t\toptions.package ?? options.config?.predictPackageId ?? '@local-pkg/deepbook_predict';\n\tconst argumentsTypes = [null] satisfies (string | null)[];\n\tconst parameterNames = ['market'];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'expiry_market',\n\t\t\tfunction: 'required_cash',\n\t\t\targuments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),\n\t\t});\n}\nexport interface LoadLivePricerArguments {\n\tmarket: RawTransactionArgument<string>;\n\tconfig?: RawTransactionArgument<string>;\n\tpropbookRegistry?: RawTransactionArgument<string>;\n\tpyth: RawTransactionArgument<string>;\n\tbsValues: RawTransactionArgument<string>;\n\tbsSvi: RawTransactionArgument<string>;\n}\nexport interface LoadLivePricerOptions {\n\tpackage?: string;\n\targuments: LoadLivePricerArguments;\n\tconfig?: {\n\t\tprotocolConfig: ConfigValue;\n\t\toracleRegistry: ConfigValue;\n\t\tpredictPackageId?: string;\n\t};\n}\n/**\n * Load a PTB-local live pricing snapshot for this market.\n *\n * The returned `Pricer` is bound to `market.id()` and can be passed into live\n * mint, redeem, and NAV functions in the same transaction.\n *\n * Aborts `pricing::EOracleWrittenInThisTransaction` when any observation that\n * feeds the returned forward or SVI was written in this transaction (RP-24).\n * Independently submitted refresh-then-trade PTBs are unaffected: the guard\n * compares observation `writer_digest` to `tx_context::digest()`, not sender\n * identity, and does not prohibit reads of older observations.\n */\nexport function loadLivePricer(options: LoadLivePricerOptions) {\n\tconst packageAddress =\n\t\toptions.package ?? options.config?.predictPackageId ?? '@local-pkg/deepbook_predict';\n\tconst argumentsTypes = [null, null, null, null, null, null, '0x2::clock::Clock'] satisfies (\n\t\tstring | null\n\t)[];\n\tconst parameterNames = ['market', 'config', 'propbookRegistry', 'pyth', 'bsValues', 'bsSvi'];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'expiry_market',\n\t\t\tfunction: 'load_live_pricer',\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\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 IsPendingValuationArguments {\n\tmarket: RawTransactionArgument<string>;\n\tconfig?: RawTransactionArgument<string>;\n}\nexport interface IsPendingValuationOptions {\n\tpackage?: string;\n\targuments: IsPendingValuationArguments;\n\tconfig?: {\n\t\tprotocolConfig: ConfigValue;\n\t\tpredictPackageId?: string;\n\t};\n}\n/**\n * Return whether this market is snapshotted into the in-flight flush and still\n * awaiting its `value_expiry`. For SDK, keeper, and devInspect reads. It gates\n * nothing: settlement and trading both run regardless — the frozen mark is\n * settlement-invariant, so a stamped market settles the instant it expires. Do not\n * defer a settlement attempt on this read.\n */\nexport function isPendingValuation(options: IsPendingValuationOptions) {\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 = ['market', 'config'];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'expiry_market',\n\t\t\tfunction: 'is_pending_valuation',\n\t\t\targuments: normalizeMoveArguments(\n\t\t\t\t{\n\t\t\t\t\t...options.arguments,\n\t\t\t\t\tconfig: options.arguments?.config ?? options.config?.protocolConfig,\n\t\t\t\t},\n\t\t\t\targumentsTypes,\n\t\t\t\tparameterNames,\n\t\t\t),\n\t\t});\n}\nexport interface CurrentNavArguments {\n\tmarket: RawTransactionArgument<string>;\n\tpricer: TransactionArgument;\n}\nexport interface CurrentNavOptions {\n\tpackage?: string;\n\targuments:\n\t\tCurrentNavArguments | [market: RawTransactionArgument<string>, pricer: TransactionArgument];\n\tconfig?: {\n\t\tpredictPackageId?: string;\n\t};\n}\n/**\n * Return live marked NAV as free expiry cash minus the exposure book's marked\n * liability, floored at zero. This read requires a market-bound pre-expiry\n * `Pricer`; an expired but unsettled market cannot be valued through this path.\n * Public for PTB composition and devInspect pool valuation.\n */\nexport function currentNav(options: CurrentNavOptions) {\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 = ['market', 'pricer'];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'expiry_market',\n\t\t\tfunction: 'current_nav',\n\t\t\targuments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),\n\t\t});\n}\nexport interface LiveOrderValueArguments {\n\tmarket: RawTransactionArgument<string>;\n\tpricer: TransactionArgument;\n\torderId: RawTransactionArgument<number | bigint>;\n}\nexport interface LiveOrderValueOptions {\n\tpackage?: string;\n\targuments:\n\t\t| LiveOrderValueArguments\n\t\t| [\n\t\t\t\tmarket: RawTransactionArgument<string>,\n\t\t\t\tpricer: TransactionArgument,\n\t\t\t\torderId: RawTransactionArgument<number | bigint>,\n\t\t ];\n\tconfig?: {\n\t\tpredictPackageId?: string;\n\t};\n}\n/**\n * Return one live order's full-close range value before fees. Requires a\n * market-bound `Pricer` and does not prove account ownership of `order_id`. Public\n * for SDK, PTB, and devInspect position valuation.\n */\nexport function liveOrderValue(options: LiveOrderValueOptions) {\n\tconst packageAddress =\n\t\toptions.package ?? options.config?.predictPackageId ?? '@local-pkg/deepbook_predict';\n\tconst argumentsTypes = [null, null, 'u256'] satisfies (string | null)[];\n\tconst parameterNames = ['market', 'pricer', 'orderId'];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'expiry_market',\n\t\t\tfunction: 'live_order_value',\n\t\t\targuments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),\n\t\t});\n}\nexport interface SettledOrderPayoutArguments {\n\tmarket: RawTransactionArgument<string>;\n\torderId: RawTransactionArgument<number | bigint>;\n}\nexport interface SettledOrderPayoutOptions {\n\tpackage?: string;\n\targuments:\n\t\t| SettledOrderPayoutArguments\n\t\t| [market: RawTransactionArgument<string>, orderId: RawTransactionArgument<number | bigint>];\n\tconfig?: {\n\t\tpredictPackageId?: string;\n\t};\n}\n/**\n * Return one settled order's terminal payout. This function does not prove account\n * ownership of `order_id`. Public for SDK, PTB, and devInspect position valuation.\n */\nexport function settledOrderPayout(options: SettledOrderPayoutOptions) {\n\tconst packageAddress =\n\t\toptions.package ?? options.config?.predictPackageId ?? '@local-pkg/deepbook_predict';\n\tconst argumentsTypes = [null, 'u256'] satisfies (string | null)[];\n\tconst parameterNames = ['market', 'orderId'];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'expiry_market',\n\t\t\tfunction: 'settled_order_payout',\n\t\t\targuments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),\n\t\t});\n}\nexport interface MintPausedArguments {\n\tmarket: RawTransactionArgument<string>;\n}\nexport interface MintPausedOptions {\n\tpackage?: string;\n\targuments: MintPausedArguments | [market: RawTransactionArgument<string>];\n\tconfig?: {\n\t\tpredictPackageId?: string;\n\t};\n}\n/** Return the market mint-pause state for SDK and devInspect reads. */\nexport function mintPaused(options: MintPausedOptions) {\n\tconst packageAddress =\n\t\toptions.package ?? options.config?.predictPackageId ?? '@local-pkg/deepbook_predict';\n\tconst argumentsTypes = [null] satisfies (string | null)[];\n\tconst parameterNames = ['market'];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'expiry_market',\n\t\t\tfunction: 'mint_paused',\n\t\t\targuments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),\n\t\t});\n}\nexport interface QuoteMintArguments {\n\tmarket: RawTransactionArgument<string>;\n\tconfig?: RawTransactionArgument<string>;\n\tpricer: TransactionArgument;\n\tlowerTick: RawTransactionArgument<number | bigint>;\n\thigherTick: RawTransactionArgument<number | bigint>;\n\tmaxPremium: RawTransactionArgument<number | bigint>;\n\tminQuantity: RawTransactionArgument<number | bigint>;\n\texactQuantity: RawTransactionArgument<boolean>;\n}\nexport interface QuoteMintOptions {\n\tpackage?: string;\n\targuments: QuoteMintArguments;\n\tconfig?: {\n\t\tprotocolConfig: ConfigValue;\n\t\tpredictPackageId?: string;\n\t};\n}\n/**\n * Quote the all-in cost of a mint request for an anonymous taker (no builder code)\n * without mutating any market state. Exact-quantity mode uses `min_quantity`;\n * budget mode conservatively sizes a lot-rounded fill under `max_premium`. The\n * quote applies live-mint and admission gates but does not preflight account\n * balance, slippage caps, or exposure-index capacity. Its penalty uses the current\n * pre-update EWMA state. Public for SDK and devInspect pre-trade pricing.\n */\nexport function quoteMint(options: QuoteMintOptions) {\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'u64',\n\t\t'u64',\n\t\t'u64',\n\t\t'u64',\n\t\t'bool',\n\t\t'0x2::clock::Clock',\n\t] satisfies (string | null)[];\n\tconst parameterNames = [\n\t\t'market',\n\t\t'config',\n\t\t'pricer',\n\t\t'lowerTick',\n\t\t'higherTick',\n\t\t'maxPremium',\n\t\t'minQuantity',\n\t\t'exactQuantity',\n\t];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'expiry_market',\n\t\t\tfunction: 'quote_mint',\n\t\t\targuments: normalizeMoveArguments(\n\t\t\t\t{\n\t\t\t\t\t...options.arguments,\n\t\t\t\t\tconfig: options.arguments?.config ?? options.config?.protocolConfig,\n\t\t\t\t},\n\t\t\t\targumentsTypes,\n\t\t\t\tparameterNames,\n\t\t\t),\n\t\t});\n}\nexport interface QuoteMintForAccountArguments {\n\tmarket: RawTransactionArgument<string>;\n\twrapper: RawTransactionArgument<string>;\n\tconfig?: RawTransactionArgument<string>;\n\tpricer: TransactionArgument;\n\tlowerTick: RawTransactionArgument<number | bigint>;\n\thigherTick: RawTransactionArgument<number | bigint>;\n\tmaxPremium: RawTransactionArgument<number | bigint>;\n\tminQuantity: RawTransactionArgument<number | bigint>;\n\texactQuantity: RawTransactionArgument<boolean>;\n}\nexport interface QuoteMintForAccountOptions {\n\tpackage?: string;\n\targuments: QuoteMintForAccountArguments;\n\tconfig?: {\n\t\tprotocolConfig: ConfigValue;\n\t\tpredictPackageId?: string;\n\t};\n}\n/**\n * Quote the all-in cost of a mint request for one account, reading its builder\n * code. Budget mode caps premium by total account balance, including unsettled\n * accumulator funds. Public for SDK and devInspect pre-trade pricing.\n */\nexport function quoteMintForAccount(options: QuoteMintForAccountOptions) {\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\t'u64',\n\t\t'u64',\n\t\t'u64',\n\t\t'u64',\n\t\t'bool',\n\t\t'0x2::accumulator::AccumulatorRoot',\n\t\t'0x2::clock::Clock',\n\t] satisfies (string | null)[];\n\tconst parameterNames = [\n\t\t'market',\n\t\t'wrapper',\n\t\t'config',\n\t\t'pricer',\n\t\t'lowerTick',\n\t\t'higherTick',\n\t\t'maxPremium',\n\t\t'minQuantity',\n\t\t'exactQuantity',\n\t];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'expiry_market',\n\t\t\tfunction: 'quote_mint_for_account',\n\t\t\targuments: normalizeMoveArguments(\n\t\t\t\t{\n\t\t\t\t\t...options.arguments,\n\t\t\t\t\tconfig: options.arguments?.config ?? options.config?.protocolConfig,\n\t\t\t\t},\n\t\t\t\targumentsTypes,\n\t\t\t\tparameterNames,\n\t\t\t),\n\t\t});\n}\nexport interface QuantityArguments {\n\tquote: TransactionArgument;\n}\nexport interface QuantityOptions {\n\tpackage?: string;\n\targuments: QuantityArguments | [quote: TransactionArgument];\n\tconfig?: {\n\t\tpredictPackageId?: string;\n\t};\n}\n/** Return the sized quantity for SDK and devInspect quote consumers. */\nexport function quantity(options: QuantityOptions) {\n\tconst packageAddress =\n\t\toptions.package ?? options.config?.predictPackageId ?? '@local-pkg/deepbook_predict';\n\tconst argumentsTypes = [null] satisfies (string | null)[];\n\tconst parameterNames = ['quote'];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'expiry_market',\n\t\t\tfunction: 'quantity',\n\t\t\targuments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),\n\t\t});\n}\nexport interface EntryProbabilityArguments {\n\tquote: TransactionArgument;\n}\nexport interface EntryProbabilityOptions {\n\tpackage?: string;\n\targuments: EntryProbabilityArguments | [quote: TransactionArgument];\n\tconfig?: {\n\t\tpredictPackageId?: string;\n\t};\n}\n/** Return the quoted range probability for SDK and devInspect consumers. */\nexport function entryProbability(options: EntryProbabilityOptions) {\n\tconst packageAddress =\n\t\toptions.package ?? options.config?.predictPackageId ?? '@local-pkg/deepbook_predict';\n\tconst argumentsTypes = [null] satisfies (string | null)[];\n\tconst parameterNames = ['quote'];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'expiry_market',\n\t\t\tfunction: 'entry_probability',\n\t\t\targuments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),\n\t\t});\n}\nexport interface PremiumArguments {\n\tquote: TransactionArgument;\n}\nexport interface PremiumOptions {\n\tpackage?: string;\n\targuments: PremiumArguments | [quote: TransactionArgument];\n\tconfig?: {\n\t\tpredictPackageId?: string;\n\t};\n}\n/** Return the quoted premium for SDK and devInspect consumers. */\nexport function premium(options: PremiumOptions) {\n\tconst packageAddress =\n\t\toptions.package ?? options.config?.predictPackageId ?? '@local-pkg/deepbook_predict';\n\tconst argumentsTypes = [null] satisfies (string | null)[];\n\tconst parameterNames = ['quote'];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'expiry_market',\n\t\t\tfunction: 'premium',\n\t\t\targuments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),\n\t\t});\n}\nexport interface TradingFeeArguments {\n\tquote: TransactionArgument;\n}\nexport interface TradingFeeOptions {\n\tpackage?: string;\n\targuments: TradingFeeArguments | [quote: TransactionArgument];\n\tconfig?: {\n\t\tpredictPackageId?: string;\n\t};\n}\n/** Return the quoted trading fee before subsidy for SDK and devInspect consumers. */\nexport function tradingFee(options: TradingFeeOptions) {\n\tconst packageAddress =\n\t\toptions.package ?? options.config?.predictPackageId ?? '@local-pkg/deepbook_predict';\n\tconst argumentsTypes = [null] satisfies (string | null)[];\n\tconst parameterNames = ['quote'];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'expiry_market',\n\t\t\tfunction: 'trading_fee',\n\t\t\targuments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),\n\t\t});\n}\nexport interface FeeIncentiveSubsidyArguments {\n\tquote: TransactionArgument;\n}\nexport interface FeeIncentiveSubsidyOptions {\n\tpackage?: string;\n\targuments: FeeIncentiveSubsidyArguments | [quote: TransactionArgument];\n\tconfig?: {\n\t\tpredictPackageId?: string;\n\t};\n}\n/**\n * Return the sponsor-funded portion of the quoted fee for SDK and devInspect\n * consumers.\n */\nexport function feeIncentiveSubsidy(options: FeeIncentiveSubsidyOptions) {\n\tconst packageAddress =\n\t\toptions.package ?? options.config?.predictPackageId ?? '@local-pkg/deepbook_predict';\n\tconst argumentsTypes = [null] satisfies (string | null)[];\n\tconst parameterNames = ['quote'];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'expiry_market',\n\t\t\tfunction: 'fee_incentive_subsidy',\n\t\t\targuments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),\n\t\t});\n}\nexport interface BuilderFeeArguments {\n\tquote: TransactionArgument;\n}\nexport interface BuilderFeeOptions {\n\tpackage?: string;\n\targuments: BuilderFeeArguments | [quote: TransactionArgument];\n\tconfig?: {\n\t\tpredictPackageId?: string;\n\t};\n}\n/** Return the quoted builder fee for SDK and devInspect consumers. */\nexport function builderFee(options: BuilderFeeOptions) {\n\tconst packageAddress =\n\t\toptions.package ?? options.config?.predictPackageId ?? '@local-pkg/deepbook_predict';\n\tconst argumentsTypes = [null] satisfies (string | null)[];\n\tconst parameterNames = ['quote'];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'expiry_market',\n\t\t\tfunction: 'builder_fee',\n\t\t\targuments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),\n\t\t});\n}\nexport interface PenaltyFeeArguments {\n\tquote: TransactionArgument;\n}\nexport interface PenaltyFeeOptions {\n\tpackage?: string;\n\targuments: PenaltyFeeArguments | [quote: TransactionArgument];\n\tconfig?: {\n\t\tpredictPackageId?: string;\n\t};\n}\n/** Return the quoted EWMA congestion surcharge for SDK and devInspect consumers. */\nexport function penaltyFee(options: PenaltyFeeOptions) {\n\tconst packageAddress =\n\t\toptions.package ?? options.config?.predictPackageId ?? '@local-pkg/deepbook_predict';\n\tconst argumentsTypes = [null] satisfies (string | null)[];\n\tconst parameterNames = ['quote'];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'expiry_market',\n\t\t\tfunction: 'penalty_fee',\n\t\t\targuments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),\n\t\t});\n}\nexport interface InventoryImpactChargeArguments {\n\tquote: TransactionArgument;\n}\nexport interface InventoryImpactChargeOptions {\n\tpackage?: string;\n\targuments: InventoryImpactChargeArguments | [quote: TransactionArgument];\n\tconfig?: {\n\t\tpredictPackageId?: string;\n\t};\n}\n/**\n * Return the separate inventory-impact charge for SDK and devInspect quote\n * consumers.\n */\nexport function inventoryImpactCharge(options: InventoryImpactChargeOptions) {\n\tconst packageAddress =\n\t\toptions.package ?? options.config?.predictPackageId ?? '@local-pkg/deepbook_predict';\n\tconst argumentsTypes = [null] satisfies (string | null)[];\n\tconst parameterNames = ['quote'];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'expiry_market',\n\t\t\tfunction: 'inventory_impact_charge',\n\t\t\targuments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),\n\t\t});\n}\nexport interface AllInCostArguments {\n\tquote: TransactionArgument;\n}\nexport interface AllInCostOptions {\n\tpackage?: string;\n\targuments: AllInCostArguments | [quote: TransactionArgument];\n\tconfig?: {\n\t\tpredictPackageId?: string;\n\t};\n}\n/** Return the total quoted account withdrawal for SDK and devInspect consumers. */\nexport function allInCost(options: AllInCostOptions) {\n\tconst packageAddress =\n\t\toptions.package ?? options.config?.predictPackageId ?? '@local-pkg/deepbook_predict';\n\tconst argumentsTypes = [null] satisfies (string | null)[];\n\tconst parameterNames = ['quote'];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'expiry_market',\n\t\t\tfunction: 'all_in_cost',\n\t\t\targuments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),\n\t\t});\n}\nexport interface MintExactQuantityArguments {\n\tmarket: RawTransactionArgument<string>;\n\twrapper: RawTransactionArgument<string>;\n\tauth: TransactionArgument;\n\tconfig?: RawTransactionArgument<string>;\n\tpricer: TransactionArgument;\n\tlowerTick: RawTransactionArgument<number | bigint>;\n\thigherTick: RawTransactionArgument<number | bigint>;\n\tquantity: RawTransactionArgument<number | bigint>;\n\tmaxCost: RawTransactionArgument<number | bigint>;\n\tmaxProbability: RawTransactionArgument<number | bigint>;\n}\nexport interface MintExactQuantityOptions {\n\tpackage?: string;\n\targuments: MintExactQuantityArguments;\n\tconfig?: {\n\t\tprotocolConfig: ConfigValue;\n\t\tpredictPackageId?: string;\n\t};\n}\n/**\n * Mint an exact live position quantity against this expiry market.\n *\n * Requires the running package version to be at or above the protocol version\n * watermark, per-market mint pause to be off, trading globally enabled, valid\n * owner or authorized-app account auth, a market-bound live `Pricer`, and enough\n * expiry cash to back the post-mint max payout. Mint fees are paid by routing a\n * withdraw through the loaded account. The position's strike range is the tick\n * pair `(lower_tick, higher_tick]` (`lower_tick = 0` is `-inf`,\n * `higher_tick = pos_inf_tick` is `+inf`); the SDK converts raw strikes to ticks.\n * `max_cost` caps the all-in USDC withdrawal, while `max_probability` caps the\n * quoted per-contract probability before fees. Callers can pass\n * `std::u64::max_value!()` for either uncapped guard. Returns the minted order ID\n * for future order-scoped flows.\n */\nexport function mintExactQuantity(options: MintExactQuantityOptions) {\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'u64',\n\t\t'u64',\n\t\t'u64',\n\t\t'u64',\n\t\t'u64',\n\t\t'0x2::accumulator::AccumulatorRoot',\n\t\t'0x2::clock::Clock',\n\t] satisfies (string | null)[];\n\tconst parameterNames = [\n\t\t'market',\n\t\t'wrapper',\n\t\t'auth',\n\t\t'config',\n\t\t'pricer',\n\t\t'lowerTick',\n\t\t'higherTick',\n\t\t'quantity',\n\t\t'maxCost',\n\t\t'maxProbability',\n\t];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'expiry_market',\n\t\t\tfunction: 'mint_exact_quantity',\n\t\t\targuments: normalizeMoveArguments(\n\t\t\t\t{\n\t\t\t\t\t...options.arguments,\n\t\t\t\t\tconfig: options.arguments?.config ?? options.config?.protocolConfig,\n\t\t\t\t},\n\t\t\t\targumentsTypes,\n\t\t\t\tparameterNames,\n\t\t\t),\n\t\t});\n}\nexport interface MintExactAmountArguments {\n\tmarket: RawTransactionArgument<string>;\n\twrapper: RawTransactionArgument<string>;\n\tauth: TransactionArgument;\n\tconfig?: RawTransactionArgument<string>;\n\tpricer: TransactionArgument;\n\tlowerTick: RawTransactionArgument<number | bigint>;\n\thigherTick: RawTransactionArgument<number | bigint>;\n\tmaxPremium: RawTransactionArgument<number | bigint>;\n\tminQuantity: RawTransactionArgument<number | bigint>;\n\tmaxCost: RawTransactionArgument<number | bigint>;\n}\nexport interface MintExactAmountOptions {\n\tpackage?: string;\n\targuments: MintExactAmountArguments;\n\tconfig?: {\n\t\tprotocolConfig: ConfigValue;\n\t\tpredictPackageId?: string;\n\t};\n}\n/**\n * Mint a conservatively sized lot-rounded position whose premium does not exceed\n * `max_premium`. The result may be one lot below the largest fitting quantity and\n * must meet `min_quantity`.\n *\n * Fees, builder fees, and EWMA congestion penalties are charged on top of\n * `max_premium`, so `max_cost` — not `max_premium` — bounds the all-in USDC\n * withdrawal (`premium + trader-paid fee + builder_fee + EWMA penalty`).\n * `max_cost` is required: unlike `mint_exact_quantity`'s guards there is no value\n * that disables it, because the budget shape exists to bound spend. The sizing\n * budget is first capped to the account's available USDC after settlement; fees\n * still require additional available USDC at payment time. Any unspent premium\n * dust remains in the account because order quantity must be an integer number of\n * `position_lot_size` lots.\n */\nexport function mintExactAmount(options: MintExactAmountOptions) {\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'u64',\n\t\t'u64',\n\t\t'u64',\n\t\t'u64',\n\t\t'u64',\n\t\t'0x2::accumulator::AccumulatorRoot',\n\t\t'0x2::clock::Clock',\n\t] satisfies (string | null)[];\n\tconst parameterNames = [\n\t\t'market',\n\t\t'wrapper',\n\t\t'auth',\n\t\t'config',\n\t\t'pricer',\n\t\t'lowerTick',\n\t\t'higherTick',\n\t\t'maxPremium',\n\t\t'minQuantity',\n\t\t'maxCost',\n\t];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'expiry_market',\n\t\t\tfunction: 'mint_exact_amount',\n\t\t\targuments: normalizeMoveArguments(\n\t\t\t\t{\n\t\t\t\t\t...options.arguments,\n\t\t\t\t\tconfig: options.arguments?.config ?? options.config?.protocolConfig,\n\t\t\t\t},\n\t\t\t\targumentsTypes,\n\t\t\t\tparameterNames,\n\t\t\t),\n\t\t});\n}\nexport interface RedeemLiveArguments {\n\tmarket: RawTransactionArgument<string>;\n\twrapper: RawTransactionArgument<string>;\n\tauth: TransactionArgument;\n\tconfig?: RawTransactionArgument<string>;\n\tpricer: TransactionArgument;\n\torderId: RawTransactionArgument<number | bigint>;\n\tcloseQuantity: RawTransactionArgument<number | bigint>;\n\tminProbability: RawTransactionArgument<number | bigint>;\n\tminProceeds: RawTransactionArgument<number | bigint>;\n}\nexport interface RedeemLiveOptions {\n\tpackage?: string;\n\targuments: RedeemLiveArguments;\n\tconfig?: {\n\t\tprotocolConfig: ConfigValue;\n\t\tpredictPackageId?: string;\n\t};\n}\n/**\n * Redeem a live order you hold account authority over.\n *\n * A live order is priced and closed (partial or full). Settled orders must use\n * `redeem_settled`. Returns a replacement order ID only when a partial close\n * leaves quantity open.\n *\n * Two close-side slippage floors, the mirror of mint's `max_probability` /\n * `max_cost` pair; pass `0` to disable either. `min_probability` floors the quoted\n * per-contract range probability (same units as mint's `max_probability`).\n * `min_proceeds` floors the all-in net USDC credited to the account\n * (`redeem_amount` minus trading fee, builder fee, and EWMA penalty), the mirror\n * of mint's all-in `max_cost`.\n */\nexport function redeemLive(options: RedeemLiveOptions) {\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'u256',\n\t\t'u64',\n\t\t'u64',\n\t\t'u64',\n\t\t'0x2::accumulator::AccumulatorRoot',\n\t\t'0x2::clock::Clock',\n\t] satisfies (string | null)[];\n\tconst parameterNames = [\n\t\t'market',\n\t\t'wrapper',\n\t\t'auth',\n\t\t'config',\n\t\t'pricer',\n\t\t'orderId',\n\t\t'closeQuantity',\n\t\t'minProbability',\n\t\t'minProceeds',\n\t];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'expiry_market',\n\t\t\tfunction: 'redeem_live',\n\t\t\targuments: normalizeMoveArguments(\n\t\t\t\t{\n\t\t\t\t\t...options.arguments,\n\t\t\t\t\tconfig: options.arguments?.config ?? options.config?.protocolConfig,\n\t\t\t\t},\n\t\t\t\targumentsTypes,\n\t\t\t\tparameterNames,\n\t\t\t),\n\t\t});\n}\nexport interface RedeemSettledArguments {\n\tmarket: RawTransactionArgument<string>;\n\twrapper: RawTransactionArgument<string>;\n\tauth: TransactionArgument;\n\tconfig?: RawTransactionArgument<string>;\n\torderId: RawTransactionArgument<number | bigint>;\n}\nexport interface RedeemSettledOptions {\n\tpackage?: string;\n\targuments: RedeemSettledArguments;\n\tconfig?: {\n\t\tprotocolConfig: ConfigValue;\n\t\tpredictPackageId?: string;\n\t};\n}\n/**\n * Redeem a settled order you hold account authority over.\n *\n * The market must be settled already; this flow does not run live pricing.\n * Explicit owner auth remains available when Predict app automation is\n * deauthorized; another authorized app may also supply valid account auth.\n */\nexport function redeemSettled(options: RedeemSettledOptions) {\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\t'u256',\n\t\t'0x2::accumulator::AccumulatorRoot',\n\t\t'0x2::clock::Clock',\n\t] satisfies (string | null)[];\n\tconst parameterNames = ['market', 'wrapper', 'auth', 'config', 'orderId'];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'expiry_market',\n\t\t\tfunction: 'redeem_settled',\n\t\t\targuments: normalizeMoveArguments(\n\t\t\t\t{\n\t\t\t\t\t...options.arguments,\n\t\t\t\t\tconfig: options.arguments?.config ?? options.config?.protocolConfig,\n\t\t\t\t},\n\t\t\t\targumentsTypes,\n\t\t\t\tparameterNames,\n\t\t\t),\n\t\t});\n}\nexport interface RedeemSettledPermissionlessArguments {\n\tmarket: RawTransactionArgument<string>;\n\taccountRegistry: RawTransactionArgument<string>;\n\twrapper: RawTransactionArgument<string>;\n\tconfig?: RawTransactionArgument<string>;\n\torderId: RawTransactionArgument<number | bigint>;\n}\nexport interface RedeemSettledPermissionlessOptions {\n\tpackage?: string;\n\targuments: RedeemSettledPermissionlessArguments;\n\tconfig?: {\n\t\tprotocolConfig: ConfigValue;\n\t\tpredictPackageId?: string;\n\t};\n}\n/**\n * Permissionlessly redeem a settled order without account-owner authority.\n *\n * This keeper path uses Predict app-auth from the account registry, so\n * `deauthorize_app<PredictApp>` disables this automation. Owners can still use\n * `redeem_settled` with owner auth to redeem their own settled positions.\n */\nexport function redeemSettledPermissionless(options: RedeemSettledPermissionlessOptions) {\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\t'u256',\n\t\t'0x2::accumulator::AccumulatorRoot',\n\t\t'0x2::clock::Clock',\n\t] satisfies (string | null)[];\n\tconst parameterNames = ['market', 'accountRegistry', 'wrapper', 'config', 'orderId'];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'expiry_market',\n\t\t\tfunction: 'redeem_settled_permissionless',\n\t\t\targuments: normalizeMoveArguments(\n\t\t\t\t{\n\t\t\t\t\t...options.arguments,\n\t\t\t\t\tconfig: options.arguments?.config ?? options.config?.protocolConfig,\n\t\t\t\t},\n\t\t\t\targumentsTypes,\n\t\t\t\tparameterNames,\n\t\t\t),\n\t\t});\n}\nexport interface SetReferenceTickArguments {\n\tmarket: RawTransactionArgument<string>;\n\tconfig?: RawTransactionArgument<string>;\n\tpropbookRegistry?: RawTransactionArgument<string>;\n\tpyth: RawTransactionArgument<string>;\n}\nexport interface SetReferenceTickOptions {\n\tpackage?: string;\n\targuments: SetReferenceTickArguments;\n\tconfig?: {\n\t\tprotocolConfig: ConfigValue;\n\t\toracleRegistry: ConfigValue;\n\t\tpredictPackageId?: string;\n\t};\n}\n/**\n * Set this expiry's reference fine-grid tick from the exact previous-window\n * Propbook Pyth observation. The source observation must be inserted into the feed\n * at `reference_tick_source_timestamp_ms` before this call, and the normalized\n * spot is floored to the market's `tick_size`. Not gated on the valuation lock:\n * the reference tick shapes mint admission only, and a mint it admits mid-flush is\n * invisible to the captured snapshot like any other.\n */\nexport function setReferenceTick(options: SetReferenceTickOptions) {\n\tconst packageAddress =\n\t\toptions.package ?? options.config?.predictPackageId ?? '@local-pkg/deepbook_predict';\n\tconst argumentsTypes = [null, null, null, null, '0x2::clock::Clock'] satisfies (string | null)[];\n\tconst parameterNames = ['market', 'config', 'propbookRegistry', 'pyth'];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'expiry_market',\n\t\t\tfunction: 'set_reference_tick',\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\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 SetMintPausedArguments {\n\tmarket: RawTransactionArgument<string>;\n\tconfig?: RawTransactionArgument<string>;\n\tAdminCap: RawTransactionArgument<string>;\n\tpaused: RawTransactionArgument<boolean>;\n}\nexport interface SetMintPausedOptions {\n\tpackage?: string;\n\targuments: SetMintPausedArguments;\n\tconfig?: {\n\t\tprotocolConfig: ConfigValue;\n\t\tpredictPackageId?: string;\n\t};\n}\n/**\n * Set whether new mints are paused on this expiry market. Admin-only and\n * version-gated. A `PauseCap` holder can force-engage the pause one-way under a\n * version freeze via `registry::pause_expiry_market_mint_pause_cap`.\n */\nexport function setMintPaused(options: SetMintPausedOptions) {\n\tconst packageAddress =\n\t\toptions.package ?? options.config?.predictPackageId ?? '@local-pkg/deepbook_predict';\n\tconst argumentsTypes = [null, null, null, 'bool'] satisfies (string | null)[];\n\tconst parameterNames = ['market', 'config', 'AdminCap', 'paused'];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'expiry_market',\n\t\t\tfunction: 'set_mint_paused',\n\t\t\targuments: normalizeMoveArguments(\n\t\t\t\t{\n\t\t\t\t\t...options.arguments,\n\t\t\t\t\tconfig: options.arguments?.config ?? options.config?.protocolConfig,\n\t\t\t\t},\n\t\t\t\targumentsTypes,\n\t\t\t\tparameterNames,\n\t\t\t),\n\t\t});\n}\nexport interface TrySettleArguments {\n\tmarket: RawTransactionArgument<string>;\n\tconfig?: RawTransactionArgument<string>;\n\tpropbookRegistry?: RawTransactionArgument<string>;\n\tpyth: RawTransactionArgument<string>;\n\tbsValues: RawTransactionArgument<string>;\n}\nexport interface TrySettleOptions {\n\tpackage?: string;\n\targuments: TrySettleArguments;\n\tconfig?: {\n\t\tprotocolConfig: ConfigValue;\n\t\toracleRegistry: ConfigValue;\n\t\tpredictPackageId?: string;\n\t};\n}\n/**\n * Settle from Propbook's exact positive Pyth spot at expiry, or from the exact\n * Block Scholes minute-boundary spot when Pyth remains unavailable after the\n * compiled grace period. Permissionless and idempotent; missing or unusable\n * observations leave the market unsettled.\n */\nexport function trySettle(options: TrySettleOptions) {\n\tconst packageAddress =\n\t\toptions.package ?? options.config?.predictPackageId ?? '@local-pkg/deepbook_predict';\n\tconst argumentsTypes = [null, null, null, null, null, '0x2::clock::Clock'] satisfies (\n\t\tstring | null\n\t)[];\n\tconst parameterNames = ['market', 'config', 'propbookRegistry', 'pyth', 'bsValues'];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'expiry_market',\n\t\t\tfunction: 'try_settle',\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\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}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;AA4BA,MAAM,cAAc;AACpB,MAAa,iBAAiB,IAAI,WAAW;CAC5C,MAAM,GAAG,YAAY;CACrB,QAAQ;EACP,WAAW;EAEX,eAAe;EAEf,yBAAyB;EACzB;CACD,CAAC;AACF,MAAa,eAAe,IAAI,WAAW;CAC1C,MAAM,GAAG,YAAY;CACrB,QAAQ;EACP,IAAI,IAAI;EAER,wBAAwB,IAAI,KAAK;EACjC,QAAQ;EAER,MAAMA;EAEN,uBAAuBC;EAEvB,iBAAiBC;EAEjB,MAAMC;EAMN,aAAa,IAAI,MAAM;EAQvB,iBAAiB,IAAI,OAAO,eAAe;EAC3C;CACD,CAAC;AACF,MAAa,YAAY,IAAI,WAAW;CACvC,MAAM,GAAG,YAAY;CACrB,QAAQ;EACP,UAAU;EACV,mBAAmB;EACnB,SAAS;EACT,aAAa;EACb,uBAAuB;EACvB,aAAa;EACb,aAAa;EACb,yBAAyB;EACzB,aAAa;EACb;CACD,CAAC;;AA4DF,SAAgB,OAAO,SAAwB;CAC9C,MAAM,iBACL,QAAQ,WAAW,QAAQ,QAAQ,oB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QAAQ,QAAQ;GACrD,EACD,gBACA,eACA;EACD,CAAC"}
1
+ {"version":3,"file":"expiry_market.mjs","names":["expiry_cash.ExpiryCash","balance.Balance","strike_exposure.StrikeExposure","ewma.EwmaState"],"sources":["../../../src/contracts/deepbook_predict/expiry_market.ts"],"sourcesContent":["/**************************************************************\n * THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *\n **************************************************************/\n\n/**\n * Per-expiry Predict market.\n *\n * An ExpiryMarket is the hot shared object for one expiry. It owns trade\n * execution, strike exposure state, and an embedded expiry-cash custody component,\n * plus local sponsor-funded fee incentives. Live oracle validation is delegated to\n * `pricing::load_live_pricer`; this module owns market flow policy and then passes\n * loaded `Pricer` snapshots into exposure business logic. Pool-wide PLP accounting\n * and profit accounting remain outside this module.\n */\n\nimport {\n\tMoveStruct,\n\tnormalizeMoveArguments,\n\ttype RawTransactionArgument,\n\ttype ConfigValue,\n} from '../utils/index.js';\nimport { U64 } from '../../bcs/integers.js';\nimport { bcs } from '@mysten/sui/bcs';\nimport { type Transaction, type TransactionArgument } from '@mysten/sui/transactions';\nimport * as expiry_cash from './expiry_cash.js';\nimport * as balance from './deps/sui/balance.js';\nimport * as strike_exposure from './strike_exposure.js';\nimport * as ewma from './ewma.js';\nconst $moduleName = '@local-pkg/deepbook_predict::expiry_market';\nexport const ValuationStamp = new MoveStruct({\n\tname: `${$moduleName}::ValuationStamp`,\n\tfields: {\n\t\tflush_seq: U64,\n\t\t/** `cash.balance()` at the snapshot instant. */\n\t\tsnapshot_cash: U64,\n\t\t/** `cash.inventory_impact_reserve()` at the snapshot instant. */\n\t\tsnapshot_impact_reserve: U64,\n\t},\n});\nexport const ExpiryMarket = new MoveStruct({\n\tname: `${$moduleName}::ExpiryMarket`,\n\tfields: {\n\t\tid: bcs.Address,\n\t\t/** Propbook underlying this market was created for. */\n\t\tpropbook_underlying_id: bcs.u32(),\n\t\texpiry: U64,\n\t\t/** USDC custody and payout backing. */\n\t\tcash: expiry_cash.ExpiryCash,\n\t\t/** Sponsor-funded USDC available to subsidize this market's taker fees. */\n\t\tfee_incentive_balance: balance.Balance,\n\t\t/** Exposure lifecycle state for this expiry's strike ticks. */\n\t\tstrike_exposure: strike_exposure.StrikeExposure,\n\t\t/** Smoothed gas-price stats backing the congestion trade penalty. */\n\t\tewma: ewma.EwmaState,\n\t\t/**\n\t\t * When true, new mints on this expiry abort. Other flows stay available. Admin\n\t\t * sets/unsets it (version-gated); a `PauseCap` holder can force it true one-way\n\t\t * through the registry (ungated kill switch).\n\t\t */\n\t\tmint_paused: bcs.bool(),\n\t\t/**\n\t\t * `Some` from the flush's snapshot stage until this market's `value_expiry` (or\n\t\t * lazily discarded once the stamp goes stale — see `ValuationStamp`). Trading is\n\t\t * never gated on it and never touches it: the cash rows are captured eagerly here\n\t\t * at the snapshot instant, and the payout tree captures its own boundary shadows\n\t\t * as trades first touch each node.\n\t\t */\n\t\tvaluation_stamp: bcs.option(ValuationStamp),\n\t},\n});\nexport const MintQuote = new MoveStruct({\n\tname: `${$moduleName}::MintQuote`,\n\tfields: {\n\t\tquantity: U64,\n\t\tentry_probability: U64,\n\t\tpremium: U64,\n\t\ttrading_fee: U64,\n\t\tfee_incentive_subsidy: U64,\n\t\tbuilder_fee: U64,\n\t\tpenalty_fee: U64,\n\t\tinventory_impact_charge: U64,\n\t\tall_in_cost: U64,\n\t},\n});\nexport interface IdArguments {\n\tmarket: RawTransactionArgument<string>;\n}\nexport interface IdOptions {\n\tpackage?: string;\n\targuments: IdArguments | [market: RawTransactionArgument<string>];\n\tconfig?: {\n\t\tpredictPackageId?: string;\n\t};\n}\n/** Return the market 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 = ['market'];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'expiry_market',\n\t\t\tfunction: 'id',\n\t\t\targuments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),\n\t\t});\n}\nexport interface PropbookUnderlyingIdArguments {\n\tmarket: RawTransactionArgument<string>;\n}\nexport interface PropbookUnderlyingIdOptions {\n\tpackage?: string;\n\targuments: PropbookUnderlyingIdArguments | [market: RawTransactionArgument<string>];\n\tconfig?: {\n\t\tpredictPackageId?: string;\n\t};\n}\n/** Return the Propbook underlying for SDK and devInspect market reads. */\nexport function propbookUnderlyingId(options: PropbookUnderlyingIdOptions) {\n\tconst packageAddress =\n\t\toptions.package ?? options.config?.predictPackageId ?? '@local-pkg/deepbook_predict';\n\tconst argumentsTypes = [null] satisfies (string | null)[];\n\tconst parameterNames = ['market'];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'expiry_market',\n\t\t\tfunction: 'propbook_underlying_id',\n\t\t\targuments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),\n\t\t});\n}\nexport interface ExpiryArguments {\n\tmarket: RawTransactionArgument<string>;\n}\nexport interface ExpiryOptions {\n\tpackage?: string;\n\targuments: ExpiryArguments | [market: RawTransactionArgument<string>];\n\tconfig?: {\n\t\tpredictPackageId?: string;\n\t};\n}\n/** Return the expiry timestamp for SDK and devInspect market reads. */\nexport function expiry(options: ExpiryOptions) {\n\tconst packageAddress =\n\t\toptions.package ?? options.config?.predictPackageId ?? '@local-pkg/deepbook_predict';\n\tconst argumentsTypes = [null] satisfies (string | null)[];\n\tconst parameterNames = ['market'];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'expiry_market',\n\t\t\tfunction: 'expiry',\n\t\t\targuments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),\n\t\t});\n}\nexport interface SettlementPriceArguments {\n\tmarket: RawTransactionArgument<string>;\n}\nexport interface SettlementPriceOptions {\n\tpackage?: string;\n\targuments: SettlementPriceArguments | [market: RawTransactionArgument<string>];\n\tconfig?: {\n\t\tpredictPackageId?: string;\n\t};\n}\n/** Return the recorded settlement price. Aborts if the market is not settled. */\nexport function settlementPrice(options: SettlementPriceOptions) {\n\tconst packageAddress =\n\t\toptions.package ?? options.config?.predictPackageId ?? '@local-pkg/deepbook_predict';\n\tconst argumentsTypes = [null] satisfies (string | null)[];\n\tconst parameterNames = ['market'];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'expiry_market',\n\t\t\tfunction: 'settlement_price',\n\t\t\targuments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),\n\t\t});\n}\nexport interface IsSettledArguments {\n\tmarket: RawTransactionArgument<string>;\n}\nexport interface IsSettledOptions {\n\tpackage?: string;\n\targuments: IsSettledArguments | [market: RawTransactionArgument<string>];\n\tconfig?: {\n\t\tpredictPackageId?: string;\n\t};\n}\n/**\n * Return whether terminal settlement has been recorded for this market. Public\n * read for SDK/devInspect settlement-state checks.\n */\nexport function isSettled(options: IsSettledOptions) {\n\tconst packageAddress =\n\t\toptions.package ?? options.config?.predictPackageId ?? '@local-pkg/deepbook_predict';\n\tconst argumentsTypes = [null] satisfies (string | null)[];\n\tconst parameterNames = ['market'];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'expiry_market',\n\t\t\tfunction: 'is_settled',\n\t\t\targuments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),\n\t\t});\n}\nexport interface TrySettlementPriceArguments {\n\tmarket: RawTransactionArgument<string>;\n}\nexport interface TrySettlementPriceOptions {\n\tpackage?: string;\n\targuments: TrySettlementPriceArguments | [market: RawTransactionArgument<string>];\n\tconfig?: {\n\t\tpredictPackageId?: string;\n\t};\n}\n/**\n * Return the recorded settlement price, or `none` while the market is live.\n * Non-aborting companion to `settlement_price` for SDK/devInspect reads.\n */\nexport function trySettlementPrice(options: TrySettlementPriceOptions) {\n\tconst packageAddress =\n\t\toptions.package ?? options.config?.predictPackageId ?? '@local-pkg/deepbook_predict';\n\tconst argumentsTypes = [null] satisfies (string | null)[];\n\tconst parameterNames = ['market'];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'expiry_market',\n\t\t\tfunction: 'try_settlement_price',\n\t\t\targuments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),\n\t\t});\n}\nexport interface CashBalanceArguments {\n\tmarket: RawTransactionArgument<string>;\n}\nexport interface CashBalanceOptions {\n\tpackage?: string;\n\targuments: CashBalanceArguments | [market: RawTransactionArgument<string>];\n\tconfig?: {\n\t\tpredictPackageId?: string;\n\t};\n}\n/** Return expiry USDC custody for SDK and devInspect state reads. */\nexport function cashBalance(options: CashBalanceOptions) {\n\tconst packageAddress =\n\t\toptions.package ?? options.config?.predictPackageId ?? '@local-pkg/deepbook_predict';\n\tconst argumentsTypes = [null] satisfies (string | null)[];\n\tconst parameterNames = ['market'];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'expiry_market',\n\t\t\tfunction: 'cash_balance',\n\t\t\targuments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),\n\t\t});\n}\nexport interface InventoryImpactReserveArguments {\n\tmarket: RawTransactionArgument<string>;\n}\nexport interface InventoryImpactReserveOptions {\n\tpackage?: string;\n\targuments: InventoryImpactReserveArguments | [market: RawTransactionArgument<string>];\n\tconfig?: {\n\t\tpredictPackageId?: string;\n\t};\n}\n/** Return the isolated inventory-impact escrow for SDK and devInspect state reads. */\nexport function inventoryImpactReserve(options: InventoryImpactReserveOptions) {\n\tconst packageAddress =\n\t\toptions.package ?? options.config?.predictPackageId ?? '@local-pkg/deepbook_predict';\n\tconst argumentsTypes = [null] satisfies (string | null)[];\n\tconst parameterNames = ['market'];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'expiry_market',\n\t\t\tfunction: 'inventory_impact_reserve',\n\t\t\targuments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),\n\t\t});\n}\nexport interface FeeIncentiveBalanceArguments {\n\tmarket: RawTransactionArgument<string>;\n}\nexport interface FeeIncentiveBalanceOptions {\n\tpackage?: string;\n\targuments: FeeIncentiveBalanceArguments | [market: RawTransactionArgument<string>];\n\tconfig?: {\n\t\tpredictPackageId?: string;\n\t};\n}\n/** Return local fee incentives for SDK and devInspect state reads. */\nexport function feeIncentiveBalance(options: FeeIncentiveBalanceOptions) {\n\tconst packageAddress =\n\t\toptions.package ?? options.config?.predictPackageId ?? '@local-pkg/deepbook_predict';\n\tconst argumentsTypes = [null] satisfies (string | null)[];\n\tconst parameterNames = ['market'];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'expiry_market',\n\t\t\tfunction: 'fee_incentive_balance',\n\t\t\targuments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),\n\t\t});\n}\nexport interface BackingBufferLambdaArguments {\n\tmarket: RawTransactionArgument<string>;\n}\nexport interface BackingBufferLambdaOptions {\n\tpackage?: string;\n\targuments: BackingBufferLambdaArguments | [market: RawTransactionArgument<string>];\n\tconfig?: {\n\t\tpredictPackageId?: string;\n\t};\n}\n/** Return the snapshotted backing-buffer lambda for SDK and devInspect reads. */\nexport function backingBufferLambda(options: BackingBufferLambdaOptions) {\n\tconst packageAddress =\n\t\toptions.package ?? options.config?.predictPackageId ?? '@local-pkg/deepbook_predict';\n\tconst argumentsTypes = [null] satisfies (string | null)[];\n\tconst parameterNames = ['market'];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'expiry_market',\n\t\t\tfunction: 'backing_buffer_lambda',\n\t\t\targuments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),\n\t\t});\n}\nexport interface ExpiryFeeWindowMsArguments {\n\tmarket: RawTransactionArgument<string>;\n}\nexport interface ExpiryFeeWindowMsOptions {\n\tpackage?: string;\n\targuments: ExpiryFeeWindowMsArguments | [market: RawTransactionArgument<string>];\n\tconfig?: {\n\t\tpredictPackageId?: string;\n\t};\n}\n/** Return the snapshotted fee-ramp window for SDK and devInspect reads. */\nexport function expiryFeeWindowMs(options: ExpiryFeeWindowMsOptions) {\n\tconst packageAddress =\n\t\toptions.package ?? options.config?.predictPackageId ?? '@local-pkg/deepbook_predict';\n\tconst argumentsTypes = [null] satisfies (string | null)[];\n\tconst parameterNames = ['market'];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'expiry_market',\n\t\t\tfunction: 'expiry_fee_window_ms',\n\t\t\targuments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),\n\t\t});\n}\nexport interface ExpiryFeeMaxMultiplierArguments {\n\tmarket: RawTransactionArgument<string>;\n}\nexport interface ExpiryFeeMaxMultiplierOptions {\n\tpackage?: string;\n\targuments: ExpiryFeeMaxMultiplierArguments | [market: RawTransactionArgument<string>];\n\tconfig?: {\n\t\tpredictPackageId?: string;\n\t};\n}\n/** Return the snapshotted fee-ramp multiplier for SDK and devInspect reads. */\nexport function expiryFeeMaxMultiplier(options: ExpiryFeeMaxMultiplierOptions) {\n\tconst packageAddress =\n\t\toptions.package ?? options.config?.predictPackageId ?? '@local-pkg/deepbook_predict';\n\tconst argumentsTypes = [null] satisfies (string | null)[];\n\tconst parameterNames = ['market'];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'expiry_market',\n\t\t\tfunction: 'expiry_fee_max_multiplier',\n\t\t\targuments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),\n\t\t});\n}\nexport interface InventoryImpactMaxRateArguments {\n\tmarket: RawTransactionArgument<string>;\n}\nexport interface InventoryImpactMaxRateOptions {\n\tpackage?: string;\n\targuments: InventoryImpactMaxRateArguments | [market: RawTransactionArgument<string>];\n\tconfig?: {\n\t\tpredictPackageId?: string;\n\t};\n}\n/**\n * Return this market's immutable maximum marginal inventory-impact rate for SDK\n * and devInspect state reads.\n */\nexport function inventoryImpactMaxRate(options: InventoryImpactMaxRateOptions) {\n\tconst packageAddress =\n\t\toptions.package ?? options.config?.predictPackageId ?? '@local-pkg/deepbook_predict';\n\tconst argumentsTypes = [null] satisfies (string | null)[];\n\tconst parameterNames = ['market'];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'expiry_market',\n\t\t\tfunction: 'inventory_impact_max_rate',\n\t\t\targuments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),\n\t\t});\n}\nexport interface InventoryImpactScaleArguments {\n\tmarket: RawTransactionArgument<string>;\n}\nexport interface InventoryImpactScaleOptions {\n\tpackage?: string;\n\targuments: InventoryImpactScaleArguments | [market: RawTransactionArgument<string>];\n\tconfig?: {\n\t\tpredictPackageId?: string;\n\t};\n}\n/**\n * Return the immutable USDC scale of this market's inventory-impact curve for SDK\n * and devInspect state reads.\n */\nexport function inventoryImpactScale(options: InventoryImpactScaleOptions) {\n\tconst packageAddress =\n\t\toptions.package ?? options.config?.predictPackageId ?? '@local-pkg/deepbook_predict';\n\tconst argumentsTypes = [null] satisfies (string | null)[];\n\tconst parameterNames = ['market'];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'expiry_market',\n\t\t\tfunction: 'inventory_impact_scale',\n\t\t\targuments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),\n\t\t});\n}\nexport interface TickSizeArguments {\n\tmarket: RawTransactionArgument<string>;\n}\nexport interface TickSizeOptions {\n\tpackage?: string;\n\targuments: TickSizeArguments | [market: RawTransactionArgument<string>];\n\tconfig?: {\n\t\tpredictPackageId?: string;\n\t};\n}\n/**\n * Return the strike tick size for SDK and devInspect range construction. Raw\n * strikes are `tick * tick_size`.\n */\nexport function tickSize(options: TickSizeOptions) {\n\tconst packageAddress =\n\t\toptions.package ?? options.config?.predictPackageId ?? '@local-pkg/deepbook_predict';\n\tconst argumentsTypes = [null] satisfies (string | null)[];\n\tconst parameterNames = ['market'];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'expiry_market',\n\t\t\tfunction: 'tick_size',\n\t\t\targuments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),\n\t\t});\n}\nexport interface AdmissionTickSizeArguments {\n\tmarket: RawTransactionArgument<string>;\n}\nexport interface AdmissionTickSizeOptions {\n\tpackage?: string;\n\targuments: AdmissionTickSizeArguments | [market: RawTransactionArgument<string>];\n\tconfig?: {\n\t\tpredictPackageId?: string;\n\t};\n}\n/** Return the admission-grid step for SDK and devInspect range construction. */\nexport function admissionTickSize(options: AdmissionTickSizeOptions) {\n\tconst packageAddress =\n\t\toptions.package ?? options.config?.predictPackageId ?? '@local-pkg/deepbook_predict';\n\tconst argumentsTypes = [null] satisfies (string | null)[];\n\tconst parameterNames = ['market'];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'expiry_market',\n\t\t\tfunction: 'admission_tick_size',\n\t\t\targuments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),\n\t\t});\n}\nexport interface ReferenceTickArguments {\n\tmarket: RawTransactionArgument<string>;\n}\nexport interface ReferenceTickOptions {\n\tpackage?: string;\n\targuments: ReferenceTickArguments | [market: RawTransactionArgument<string>];\n\tconfig?: {\n\t\tpredictPackageId?: string;\n\t};\n}\n/** Return the admitted reference tick for SDK and devInspect range construction. */\nexport function referenceTick(options: ReferenceTickOptions) {\n\tconst packageAddress =\n\t\toptions.package ?? options.config?.predictPackageId ?? '@local-pkg/deepbook_predict';\n\tconst argumentsTypes = [null] satisfies (string | null)[];\n\tconst parameterNames = ['market'];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'expiry_market',\n\t\t\tfunction: 'reference_tick',\n\t\t\targuments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),\n\t\t});\n}\nexport interface ReferenceTickSourceTimestampMsArguments {\n\tmarket: RawTransactionArgument<string>;\n}\nexport interface ReferenceTickSourceTimestampMsOptions {\n\tpackage?: string;\n\targuments: ReferenceTickSourceTimestampMsArguments | [market: RawTransactionArgument<string>];\n\tconfig?: {\n\t\tpredictPackageId?: string;\n\t};\n}\n/** Return the reference observation timestamp for SDK and devInspect reads. */\nexport function referenceTickSourceTimestampMs(options: ReferenceTickSourceTimestampMsOptions) {\n\tconst packageAddress =\n\t\toptions.package ?? options.config?.predictPackageId ?? '@local-pkg/deepbook_predict';\n\tconst argumentsTypes = [null] satisfies (string | null)[];\n\tconst parameterNames = ['market'];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'expiry_market',\n\t\t\tfunction: 'reference_tick_source_timestamp_ms',\n\t\t\targuments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),\n\t\t});\n}\nexport interface PayoutLiabilityArguments {\n\tmarket: RawTransactionArgument<string>;\n}\nexport interface PayoutLiabilityOptions {\n\tpackage?: string;\n\targuments: PayoutLiabilityArguments | [market: RawTransactionArgument<string>];\n\tconfig?: {\n\t\tpredictPackageId?: string;\n\t};\n}\n/**\n * Return payout reserve or settled liability for external accounting\n * observability.\n */\nexport function payoutLiability(options: PayoutLiabilityOptions) {\n\tconst packageAddress =\n\t\toptions.package ?? options.config?.predictPackageId ?? '@local-pkg/deepbook_predict';\n\tconst argumentsTypes = [null] satisfies (string | null)[];\n\tconst parameterNames = ['market'];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'expiry_market',\n\t\t\tfunction: 'payout_liability',\n\t\t\targuments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),\n\t\t});\n}\nexport interface RequiredCashArguments {\n\tmarket: RawTransactionArgument<string>;\n}\nexport interface RequiredCashOptions {\n\tpackage?: string;\n\targuments: RequiredCashArguments | [market: RawTransactionArgument<string>];\n\tconfig?: {\n\t\tpredictPackageId?: string;\n\t};\n}\n/** Return required expiry cash for external accounting observability. */\nexport function requiredCash(options: RequiredCashOptions) {\n\tconst packageAddress =\n\t\toptions.package ?? options.config?.predictPackageId ?? '@local-pkg/deepbook_predict';\n\tconst argumentsTypes = [null] satisfies (string | null)[];\n\tconst parameterNames = ['market'];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'expiry_market',\n\t\t\tfunction: 'required_cash',\n\t\t\targuments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),\n\t\t});\n}\nexport interface LoadLivePricerArguments {\n\tmarket: RawTransactionArgument<string>;\n\tconfig?: RawTransactionArgument<string>;\n\tpropbookRegistry?: RawTransactionArgument<string>;\n\tpyth: RawTransactionArgument<string>;\n\tbsValues: RawTransactionArgument<string>;\n\tbsSvi: RawTransactionArgument<string>;\n}\nexport interface LoadLivePricerOptions {\n\tpackage?: string;\n\targuments: LoadLivePricerArguments;\n\tconfig?: {\n\t\tprotocolConfig: ConfigValue;\n\t\toracleRegistry: ConfigValue;\n\t\tpredictPackageId?: string;\n\t};\n}\n/**\n * Load a PTB-local live pricing snapshot for this market.\n *\n * The returned `Pricer` is bound to `market.id()` and can be passed into live\n * mint, redeem, and NAV functions in the same transaction.\n *\n * Aborts `pricing::EOracleWrittenInThisTransaction` when any observation that\n * feeds the returned forward or SVI was written in this transaction (RP-24).\n * Independently submitted refresh-then-trade PTBs are unaffected: the guard\n * compares observation `writer_digest` to `tx_context::digest()`, not sender\n * identity, and does not prohibit reads of older observations.\n */\nexport function loadLivePricer(options: LoadLivePricerOptions) {\n\tconst packageAddress =\n\t\toptions.package ?? options.config?.predictPackageId ?? '@local-pkg/deepbook_predict';\n\tconst argumentsTypes = [null, null, null, null, null, null, '0x2::clock::Clock'] satisfies (\n\t\tstring | null\n\t)[];\n\tconst parameterNames = ['market', 'config', 'propbookRegistry', 'pyth', 'bsValues', 'bsSvi'];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'expiry_market',\n\t\t\tfunction: 'load_live_pricer',\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\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 IsPendingValuationArguments {\n\tmarket: RawTransactionArgument<string>;\n\tconfig?: RawTransactionArgument<string>;\n}\nexport interface IsPendingValuationOptions {\n\tpackage?: string;\n\targuments: IsPendingValuationArguments;\n\tconfig?: {\n\t\tprotocolConfig: ConfigValue;\n\t\tpredictPackageId?: string;\n\t};\n}\n/**\n * Return whether this market is snapshotted into the in-flight flush and still\n * awaiting its `value_expiry`. For SDK, keeper, and devInspect reads. It gates\n * nothing: settlement and trading both run regardless — the frozen mark is\n * settlement-invariant, so a stamped market settles the instant it expires. Do not\n * defer a settlement attempt on this read.\n */\nexport function isPendingValuation(options: IsPendingValuationOptions) {\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 = ['market', 'config'];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'expiry_market',\n\t\t\tfunction: 'is_pending_valuation',\n\t\t\targuments: normalizeMoveArguments(\n\t\t\t\t{\n\t\t\t\t\t...options.arguments,\n\t\t\t\t\tconfig: options.arguments?.config ?? options.config?.protocolConfig,\n\t\t\t\t},\n\t\t\t\targumentsTypes,\n\t\t\t\tparameterNames,\n\t\t\t),\n\t\t});\n}\nexport interface CurrentNavArguments {\n\tmarket: RawTransactionArgument<string>;\n\tpricer: TransactionArgument;\n}\nexport interface CurrentNavOptions {\n\tpackage?: string;\n\targuments:\n\t\tCurrentNavArguments | [market: RawTransactionArgument<string>, pricer: TransactionArgument];\n\tconfig?: {\n\t\tpredictPackageId?: string;\n\t};\n}\n/**\n * Return live marked NAV as free expiry cash minus the exposure book's marked\n * liability, floored at zero. This read requires a market-bound pre-expiry\n * `Pricer`; an expired but unsettled market cannot be valued through this path.\n * Public for PTB composition and devInspect pool valuation.\n */\nexport function currentNav(options: CurrentNavOptions) {\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 = ['market', 'pricer'];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'expiry_market',\n\t\t\tfunction: 'current_nav',\n\t\t\targuments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),\n\t\t});\n}\nexport interface LiveOrderValueArguments {\n\tmarket: RawTransactionArgument<string>;\n\tpricer: TransactionArgument;\n\torderId: RawTransactionArgument<number | bigint>;\n}\nexport interface LiveOrderValueOptions {\n\tpackage?: string;\n\targuments:\n\t\t| LiveOrderValueArguments\n\t\t| [\n\t\t\t\tmarket: RawTransactionArgument<string>,\n\t\t\t\tpricer: TransactionArgument,\n\t\t\t\torderId: RawTransactionArgument<number | bigint>,\n\t\t ];\n\tconfig?: {\n\t\tpredictPackageId?: string;\n\t};\n}\n/**\n * Return one live order's full-close range value before fees. Requires a\n * market-bound `Pricer` and does not prove account ownership of `order_id`. Public\n * for SDK, PTB, and devInspect position valuation.\n */\nexport function liveOrderValue(options: LiveOrderValueOptions) {\n\tconst packageAddress =\n\t\toptions.package ?? options.config?.predictPackageId ?? '@local-pkg/deepbook_predict';\n\tconst argumentsTypes = [null, null, 'u256'] satisfies (string | null)[];\n\tconst parameterNames = ['market', 'pricer', 'orderId'];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'expiry_market',\n\t\t\tfunction: 'live_order_value',\n\t\t\targuments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),\n\t\t});\n}\nexport interface SettledOrderPayoutArguments {\n\tmarket: RawTransactionArgument<string>;\n\torderId: RawTransactionArgument<number | bigint>;\n}\nexport interface SettledOrderPayoutOptions {\n\tpackage?: string;\n\targuments:\n\t\t| SettledOrderPayoutArguments\n\t\t| [market: RawTransactionArgument<string>, orderId: RawTransactionArgument<number | bigint>];\n\tconfig?: {\n\t\tpredictPackageId?: string;\n\t};\n}\n/**\n * Return one settled order's terminal payout. This function does not prove account\n * ownership of `order_id`. Public for SDK, PTB, and devInspect position valuation.\n */\nexport function settledOrderPayout(options: SettledOrderPayoutOptions) {\n\tconst packageAddress =\n\t\toptions.package ?? options.config?.predictPackageId ?? '@local-pkg/deepbook_predict';\n\tconst argumentsTypes = [null, 'u256'] satisfies (string | null)[];\n\tconst parameterNames = ['market', 'orderId'];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'expiry_market',\n\t\t\tfunction: 'settled_order_payout',\n\t\t\targuments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),\n\t\t});\n}\nexport interface MintPausedArguments {\n\tmarket: RawTransactionArgument<string>;\n}\nexport interface MintPausedOptions {\n\tpackage?: string;\n\targuments: MintPausedArguments | [market: RawTransactionArgument<string>];\n\tconfig?: {\n\t\tpredictPackageId?: string;\n\t};\n}\n/** Return the market mint-pause state for SDK and devInspect reads. */\nexport function mintPaused(options: MintPausedOptions) {\n\tconst packageAddress =\n\t\toptions.package ?? options.config?.predictPackageId ?? '@local-pkg/deepbook_predict';\n\tconst argumentsTypes = [null] satisfies (string | null)[];\n\tconst parameterNames = ['market'];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'expiry_market',\n\t\t\tfunction: 'mint_paused',\n\t\t\targuments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),\n\t\t});\n}\nexport interface QuoteMintArguments {\n\tmarket: RawTransactionArgument<string>;\n\tconfig?: RawTransactionArgument<string>;\n\tpricer: TransactionArgument;\n\tlowerTick: RawTransactionArgument<number | bigint>;\n\thigherTick: RawTransactionArgument<number | bigint>;\n\tmaxPremium: RawTransactionArgument<number | bigint>;\n\tminQuantity: RawTransactionArgument<number | bigint>;\n\texactQuantity: RawTransactionArgument<boolean>;\n}\nexport interface QuoteMintOptions {\n\tpackage?: string;\n\targuments: QuoteMintArguments;\n\tconfig?: {\n\t\tprotocolConfig: ConfigValue;\n\t\tpredictPackageId?: string;\n\t};\n}\n/**\n * Quote the all-in cost of a mint request for an anonymous taker (no builder code)\n * without mutating any market state. Exact-quantity mode uses `min_quantity`;\n * budget mode conservatively sizes a lot-rounded fill under `max_premium`. The\n * quote applies live-mint and admission gates but does not preflight account\n * balance, slippage caps, or exposure-index capacity. Its penalty uses the current\n * pre-update EWMA state. Public for SDK and devInspect pre-trade pricing.\n */\nexport function quoteMint(options: QuoteMintOptions) {\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'u64',\n\t\t'u64',\n\t\t'u64',\n\t\t'u64',\n\t\t'bool',\n\t\t'0x2::clock::Clock',\n\t] satisfies (string | null)[];\n\tconst parameterNames = [\n\t\t'market',\n\t\t'config',\n\t\t'pricer',\n\t\t'lowerTick',\n\t\t'higherTick',\n\t\t'maxPremium',\n\t\t'minQuantity',\n\t\t'exactQuantity',\n\t];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'expiry_market',\n\t\t\tfunction: 'quote_mint',\n\t\t\targuments: normalizeMoveArguments(\n\t\t\t\t{\n\t\t\t\t\t...options.arguments,\n\t\t\t\t\tconfig: options.arguments?.config ?? options.config?.protocolConfig,\n\t\t\t\t},\n\t\t\t\targumentsTypes,\n\t\t\t\tparameterNames,\n\t\t\t),\n\t\t});\n}\nexport interface QuoteMintForAccountArguments {\n\tmarket: RawTransactionArgument<string>;\n\twrapper: RawTransactionArgument<string>;\n\tconfig?: RawTransactionArgument<string>;\n\tpricer: TransactionArgument;\n\tlowerTick: RawTransactionArgument<number | bigint>;\n\thigherTick: RawTransactionArgument<number | bigint>;\n\tmaxPremium: RawTransactionArgument<number | bigint>;\n\tminQuantity: RawTransactionArgument<number | bigint>;\n\texactQuantity: RawTransactionArgument<boolean>;\n}\nexport interface QuoteMintForAccountOptions {\n\tpackage?: string;\n\targuments: QuoteMintForAccountArguments;\n\tconfig?: {\n\t\tprotocolConfig: ConfigValue;\n\t\tpredictPackageId?: string;\n\t};\n}\n/**\n * Quote the all-in cost of a mint request for one account, reading its builder\n * code. Budget mode caps premium by total account balance, including unsettled\n * accumulator funds. Public for SDK and devInspect pre-trade pricing.\n */\nexport function quoteMintForAccount(options: QuoteMintForAccountOptions) {\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\t'u64',\n\t\t'u64',\n\t\t'u64',\n\t\t'u64',\n\t\t'bool',\n\t\t'0x2::accumulator::AccumulatorRoot',\n\t\t'0x2::clock::Clock',\n\t] satisfies (string | null)[];\n\tconst parameterNames = [\n\t\t'market',\n\t\t'wrapper',\n\t\t'config',\n\t\t'pricer',\n\t\t'lowerTick',\n\t\t'higherTick',\n\t\t'maxPremium',\n\t\t'minQuantity',\n\t\t'exactQuantity',\n\t];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'expiry_market',\n\t\t\tfunction: 'quote_mint_for_account',\n\t\t\targuments: normalizeMoveArguments(\n\t\t\t\t{\n\t\t\t\t\t...options.arguments,\n\t\t\t\t\tconfig: options.arguments?.config ?? options.config?.protocolConfig,\n\t\t\t\t},\n\t\t\t\targumentsTypes,\n\t\t\t\tparameterNames,\n\t\t\t),\n\t\t});\n}\nexport interface QuantityArguments {\n\tquote: TransactionArgument;\n}\nexport interface QuantityOptions {\n\tpackage?: string;\n\targuments: QuantityArguments | [quote: TransactionArgument];\n\tconfig?: {\n\t\tpredictPackageId?: string;\n\t};\n}\n/** Return the sized quantity for SDK and devInspect quote consumers. */\nexport function quantity(options: QuantityOptions) {\n\tconst packageAddress =\n\t\toptions.package ?? options.config?.predictPackageId ?? '@local-pkg/deepbook_predict';\n\tconst argumentsTypes = [null] satisfies (string | null)[];\n\tconst parameterNames = ['quote'];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'expiry_market',\n\t\t\tfunction: 'quantity',\n\t\t\targuments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),\n\t\t});\n}\nexport interface EntryProbabilityArguments {\n\tquote: TransactionArgument;\n}\nexport interface EntryProbabilityOptions {\n\tpackage?: string;\n\targuments: EntryProbabilityArguments | [quote: TransactionArgument];\n\tconfig?: {\n\t\tpredictPackageId?: string;\n\t};\n}\n/** Return the quoted range probability for SDK and devInspect consumers. */\nexport function entryProbability(options: EntryProbabilityOptions) {\n\tconst packageAddress =\n\t\toptions.package ?? options.config?.predictPackageId ?? '@local-pkg/deepbook_predict';\n\tconst argumentsTypes = [null] satisfies (string | null)[];\n\tconst parameterNames = ['quote'];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'expiry_market',\n\t\t\tfunction: 'entry_probability',\n\t\t\targuments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),\n\t\t});\n}\nexport interface PremiumArguments {\n\tquote: TransactionArgument;\n}\nexport interface PremiumOptions {\n\tpackage?: string;\n\targuments: PremiumArguments | [quote: TransactionArgument];\n\tconfig?: {\n\t\tpredictPackageId?: string;\n\t};\n}\n/** Return the quoted premium for SDK and devInspect consumers. */\nexport function premium(options: PremiumOptions) {\n\tconst packageAddress =\n\t\toptions.package ?? options.config?.predictPackageId ?? '@local-pkg/deepbook_predict';\n\tconst argumentsTypes = [null] satisfies (string | null)[];\n\tconst parameterNames = ['quote'];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'expiry_market',\n\t\t\tfunction: 'premium',\n\t\t\targuments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),\n\t\t});\n}\nexport interface TradingFeeArguments {\n\tquote: TransactionArgument;\n}\nexport interface TradingFeeOptions {\n\tpackage?: string;\n\targuments: TradingFeeArguments | [quote: TransactionArgument];\n\tconfig?: {\n\t\tpredictPackageId?: string;\n\t};\n}\n/** Return the quoted trading fee before subsidy for SDK and devInspect consumers. */\nexport function tradingFee(options: TradingFeeOptions) {\n\tconst packageAddress =\n\t\toptions.package ?? options.config?.predictPackageId ?? '@local-pkg/deepbook_predict';\n\tconst argumentsTypes = [null] satisfies (string | null)[];\n\tconst parameterNames = ['quote'];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'expiry_market',\n\t\t\tfunction: 'trading_fee',\n\t\t\targuments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),\n\t\t});\n}\nexport interface FeeIncentiveSubsidyArguments {\n\tquote: TransactionArgument;\n}\nexport interface FeeIncentiveSubsidyOptions {\n\tpackage?: string;\n\targuments: FeeIncentiveSubsidyArguments | [quote: TransactionArgument];\n\tconfig?: {\n\t\tpredictPackageId?: string;\n\t};\n}\n/**\n * Return the sponsor-funded portion of the quoted fee for SDK and devInspect\n * consumers.\n */\nexport function feeIncentiveSubsidy(options: FeeIncentiveSubsidyOptions) {\n\tconst packageAddress =\n\t\toptions.package ?? options.config?.predictPackageId ?? '@local-pkg/deepbook_predict';\n\tconst argumentsTypes = [null] satisfies (string | null)[];\n\tconst parameterNames = ['quote'];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'expiry_market',\n\t\t\tfunction: 'fee_incentive_subsidy',\n\t\t\targuments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),\n\t\t});\n}\nexport interface BuilderFeeArguments {\n\tquote: TransactionArgument;\n}\nexport interface BuilderFeeOptions {\n\tpackage?: string;\n\targuments: BuilderFeeArguments | [quote: TransactionArgument];\n\tconfig?: {\n\t\tpredictPackageId?: string;\n\t};\n}\n/** Return the quoted builder fee for SDK and devInspect consumers. */\nexport function builderFee(options: BuilderFeeOptions) {\n\tconst packageAddress =\n\t\toptions.package ?? options.config?.predictPackageId ?? '@local-pkg/deepbook_predict';\n\tconst argumentsTypes = [null] satisfies (string | null)[];\n\tconst parameterNames = ['quote'];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'expiry_market',\n\t\t\tfunction: 'builder_fee',\n\t\t\targuments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),\n\t\t});\n}\nexport interface PenaltyFeeArguments {\n\tquote: TransactionArgument;\n}\nexport interface PenaltyFeeOptions {\n\tpackage?: string;\n\targuments: PenaltyFeeArguments | [quote: TransactionArgument];\n\tconfig?: {\n\t\tpredictPackageId?: string;\n\t};\n}\n/** Return the quoted EWMA congestion surcharge for SDK and devInspect consumers. */\nexport function penaltyFee(options: PenaltyFeeOptions) {\n\tconst packageAddress =\n\t\toptions.package ?? options.config?.predictPackageId ?? '@local-pkg/deepbook_predict';\n\tconst argumentsTypes = [null] satisfies (string | null)[];\n\tconst parameterNames = ['quote'];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'expiry_market',\n\t\t\tfunction: 'penalty_fee',\n\t\t\targuments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),\n\t\t});\n}\nexport interface InventoryImpactChargeArguments {\n\tquote: TransactionArgument;\n}\nexport interface InventoryImpactChargeOptions {\n\tpackage?: string;\n\targuments: InventoryImpactChargeArguments | [quote: TransactionArgument];\n\tconfig?: {\n\t\tpredictPackageId?: string;\n\t};\n}\n/**\n * Return the separate inventory-impact charge for SDK and devInspect quote\n * consumers.\n */\nexport function inventoryImpactCharge(options: InventoryImpactChargeOptions) {\n\tconst packageAddress =\n\t\toptions.package ?? options.config?.predictPackageId ?? '@local-pkg/deepbook_predict';\n\tconst argumentsTypes = [null] satisfies (string | null)[];\n\tconst parameterNames = ['quote'];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'expiry_market',\n\t\t\tfunction: 'inventory_impact_charge',\n\t\t\targuments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),\n\t\t});\n}\nexport interface AllInCostArguments {\n\tquote: TransactionArgument;\n}\nexport interface AllInCostOptions {\n\tpackage?: string;\n\targuments: AllInCostArguments | [quote: TransactionArgument];\n\tconfig?: {\n\t\tpredictPackageId?: string;\n\t};\n}\n/** Return the total quoted account withdrawal for SDK and devInspect consumers. */\nexport function allInCost(options: AllInCostOptions) {\n\tconst packageAddress =\n\t\toptions.package ?? options.config?.predictPackageId ?? '@local-pkg/deepbook_predict';\n\tconst argumentsTypes = [null] satisfies (string | null)[];\n\tconst parameterNames = ['quote'];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'expiry_market',\n\t\t\tfunction: 'all_in_cost',\n\t\t\targuments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),\n\t\t});\n}\nexport interface MintExactQuantityArguments {\n\tmarket: RawTransactionArgument<string>;\n\twrapper: RawTransactionArgument<string>;\n\tauth: TransactionArgument;\n\tconfig?: RawTransactionArgument<string>;\n\tpricer: TransactionArgument;\n\tlowerTick: RawTransactionArgument<number | bigint>;\n\thigherTick: RawTransactionArgument<number | bigint>;\n\tquantity: RawTransactionArgument<number | bigint>;\n\tmaxCost: RawTransactionArgument<number | bigint>;\n\tmaxProbability: RawTransactionArgument<number | bigint>;\n}\nexport interface MintExactQuantityOptions {\n\tpackage?: string;\n\targuments: MintExactQuantityArguments;\n\tconfig?: {\n\t\tprotocolConfig: ConfigValue;\n\t\tpredictPackageId?: string;\n\t};\n}\n/**\n * Mint an exact live position quantity against this expiry market.\n *\n * Requires the running package version to be at or above the protocol version\n * watermark, per-market mint pause to be off, trading globally enabled, valid\n * owner or authorized-app account auth, a market-bound live `Pricer`, and enough\n * expiry cash to back the post-mint max payout. Mint fees are paid by routing a\n * withdraw through the loaded account. The position's strike range is the tick\n * pair `(lower_tick, higher_tick]` (`lower_tick = 0` is `-inf`,\n * `higher_tick = pos_inf_tick` is `+inf`); the SDK converts raw strikes to ticks.\n * `max_cost` caps the all-in USDC withdrawal, while `max_probability` caps the\n * quoted per-contract probability before fees. Callers can pass\n * `std::u64::max_value!()` for either uncapped guard. Returns the minted order ID\n * for future order-scoped flows.\n */\nexport function mintExactQuantity(options: MintExactQuantityOptions) {\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'u64',\n\t\t'u64',\n\t\t'u64',\n\t\t'u64',\n\t\t'u64',\n\t\t'0x2::accumulator::AccumulatorRoot',\n\t\t'0x2::clock::Clock',\n\t] satisfies (string | null)[];\n\tconst parameterNames = [\n\t\t'market',\n\t\t'wrapper',\n\t\t'auth',\n\t\t'config',\n\t\t'pricer',\n\t\t'lowerTick',\n\t\t'higherTick',\n\t\t'quantity',\n\t\t'maxCost',\n\t\t'maxProbability',\n\t];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'expiry_market',\n\t\t\tfunction: 'mint_exact_quantity',\n\t\t\targuments: normalizeMoveArguments(\n\t\t\t\t{\n\t\t\t\t\t...options.arguments,\n\t\t\t\t\tconfig: options.arguments?.config ?? options.config?.protocolConfig,\n\t\t\t\t},\n\t\t\t\targumentsTypes,\n\t\t\t\tparameterNames,\n\t\t\t),\n\t\t});\n}\nexport interface MintExactAmountArguments {\n\tmarket: RawTransactionArgument<string>;\n\twrapper: RawTransactionArgument<string>;\n\tauth: TransactionArgument;\n\tconfig?: RawTransactionArgument<string>;\n\tpricer: TransactionArgument;\n\tlowerTick: RawTransactionArgument<number | bigint>;\n\thigherTick: RawTransactionArgument<number | bigint>;\n\tmaxPremium: RawTransactionArgument<number | bigint>;\n\tminQuantity: RawTransactionArgument<number | bigint>;\n\tmaxCost: RawTransactionArgument<number | bigint>;\n}\nexport interface MintExactAmountOptions {\n\tpackage?: string;\n\targuments: MintExactAmountArguments;\n\tconfig?: {\n\t\tprotocolConfig: ConfigValue;\n\t\tpredictPackageId?: string;\n\t};\n}\n/**\n * Mint a conservatively sized lot-rounded position whose premium does not exceed\n * `max_premium`. The result may be one lot below the largest fitting quantity and\n * must meet `min_quantity`.\n *\n * Fees, builder fees, and EWMA congestion penalties are charged on top of\n * `max_premium`, so `max_cost` — not `max_premium` — bounds the all-in USDC\n * withdrawal (`premium + trader-paid fee + builder_fee + EWMA penalty`).\n * `max_cost` is required: unlike `mint_exact_quantity`'s guards there is no value\n * that disables it, because the budget shape exists to bound spend. The sizing\n * budget is first capped to the account's available USDC after settlement; fees\n * still require additional available USDC at payment time. Any unspent premium\n * dust remains in the account because order quantity must be an integer number of\n * `position_lot_size` lots.\n */\nexport function mintExactAmount(options: MintExactAmountOptions) {\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'u64',\n\t\t'u64',\n\t\t'u64',\n\t\t'u64',\n\t\t'u64',\n\t\t'0x2::accumulator::AccumulatorRoot',\n\t\t'0x2::clock::Clock',\n\t] satisfies (string | null)[];\n\tconst parameterNames = [\n\t\t'market',\n\t\t'wrapper',\n\t\t'auth',\n\t\t'config',\n\t\t'pricer',\n\t\t'lowerTick',\n\t\t'higherTick',\n\t\t'maxPremium',\n\t\t'minQuantity',\n\t\t'maxCost',\n\t];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'expiry_market',\n\t\t\tfunction: 'mint_exact_amount',\n\t\t\targuments: normalizeMoveArguments(\n\t\t\t\t{\n\t\t\t\t\t...options.arguments,\n\t\t\t\t\tconfig: options.arguments?.config ?? options.config?.protocolConfig,\n\t\t\t\t},\n\t\t\t\targumentsTypes,\n\t\t\t\tparameterNames,\n\t\t\t),\n\t\t});\n}\nexport interface RedeemLiveArguments {\n\tmarket: RawTransactionArgument<string>;\n\twrapper: RawTransactionArgument<string>;\n\tauth: TransactionArgument;\n\tconfig?: RawTransactionArgument<string>;\n\tpricer: TransactionArgument;\n\torderId: RawTransactionArgument<number | bigint>;\n\tcloseQuantity: RawTransactionArgument<number | bigint>;\n\tminProbability: RawTransactionArgument<number | bigint>;\n\tminProceeds: RawTransactionArgument<number | bigint>;\n}\nexport interface RedeemLiveOptions {\n\tpackage?: string;\n\targuments: RedeemLiveArguments;\n\tconfig?: {\n\t\tprotocolConfig: ConfigValue;\n\t\tpredictPackageId?: string;\n\t};\n}\n/**\n * Redeem a live order you hold account authority over.\n *\n * A live order is priced and closed (partial or full). Settled orders must use\n * `redeem_settled`. Returns a replacement order ID only when a partial close\n * leaves quantity open.\n *\n * Two close-side slippage floors, the mirror of mint's `max_probability` /\n * `max_cost` pair; pass `0` to disable either. `min_probability` floors the quoted\n * per-contract range probability (same units as mint's `max_probability`).\n * `min_proceeds` floors the all-in net USDC credited to the account\n * (`redeem_amount` minus trading fee, builder fee, and EWMA penalty), the mirror\n * of mint's all-in `max_cost`.\n */\nexport function redeemLive(options: RedeemLiveOptions) {\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'u256',\n\t\t'u64',\n\t\t'u64',\n\t\t'u64',\n\t\t'0x2::accumulator::AccumulatorRoot',\n\t\t'0x2::clock::Clock',\n\t] satisfies (string | null)[];\n\tconst parameterNames = [\n\t\t'market',\n\t\t'wrapper',\n\t\t'auth',\n\t\t'config',\n\t\t'pricer',\n\t\t'orderId',\n\t\t'closeQuantity',\n\t\t'minProbability',\n\t\t'minProceeds',\n\t];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'expiry_market',\n\t\t\tfunction: 'redeem_live',\n\t\t\targuments: normalizeMoveArguments(\n\t\t\t\t{\n\t\t\t\t\t...options.arguments,\n\t\t\t\t\tconfig: options.arguments?.config ?? options.config?.protocolConfig,\n\t\t\t\t},\n\t\t\t\targumentsTypes,\n\t\t\t\tparameterNames,\n\t\t\t),\n\t\t});\n}\nexport interface RedeemSettledArguments {\n\tmarket: RawTransactionArgument<string>;\n\twrapper: RawTransactionArgument<string>;\n\tauth: TransactionArgument;\n\tconfig?: RawTransactionArgument<string>;\n\torderId: RawTransactionArgument<number | bigint>;\n}\nexport interface RedeemSettledOptions {\n\tpackage?: string;\n\targuments: RedeemSettledArguments;\n\tconfig?: {\n\t\tprotocolConfig: ConfigValue;\n\t\tpredictPackageId?: string;\n\t};\n}\n/**\n * Redeem a settled order you hold account authority over.\n *\n * The market must be settled already; this flow does not run live pricing.\n * Explicit owner auth remains available when Predict app automation is\n * deauthorized; another authorized app may also supply valid account auth.\n */\nexport function redeemSettled(options: RedeemSettledOptions) {\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\t'u256',\n\t\t'0x2::accumulator::AccumulatorRoot',\n\t\t'0x2::clock::Clock',\n\t] satisfies (string | null)[];\n\tconst parameterNames = ['market', 'wrapper', 'auth', 'config', 'orderId'];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'expiry_market',\n\t\t\tfunction: 'redeem_settled',\n\t\t\targuments: normalizeMoveArguments(\n\t\t\t\t{\n\t\t\t\t\t...options.arguments,\n\t\t\t\t\tconfig: options.arguments?.config ?? options.config?.protocolConfig,\n\t\t\t\t},\n\t\t\t\targumentsTypes,\n\t\t\t\tparameterNames,\n\t\t\t),\n\t\t});\n}\nexport interface RedeemSettledPermissionlessArguments {\n\tmarket: RawTransactionArgument<string>;\n\taccountRegistry: RawTransactionArgument<string>;\n\twrapper: RawTransactionArgument<string>;\n\tconfig?: RawTransactionArgument<string>;\n\torderId: RawTransactionArgument<number | bigint>;\n}\nexport interface RedeemSettledPermissionlessOptions {\n\tpackage?: string;\n\targuments: RedeemSettledPermissionlessArguments;\n\tconfig?: {\n\t\tprotocolConfig: ConfigValue;\n\t\tpredictPackageId?: string;\n\t};\n}\n/**\n * Permissionlessly redeem a settled order without account-owner authority.\n *\n * This keeper path uses Predict app-auth from the account registry, so\n * `deauthorize_app<PredictApp>` disables this automation. Owners can still use\n * `redeem_settled` with owner auth to redeem their own settled positions.\n */\nexport function redeemSettledPermissionless(options: RedeemSettledPermissionlessOptions) {\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\t'u256',\n\t\t'0x2::accumulator::AccumulatorRoot',\n\t\t'0x2::clock::Clock',\n\t] satisfies (string | null)[];\n\tconst parameterNames = ['market', 'accountRegistry', 'wrapper', 'config', 'orderId'];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'expiry_market',\n\t\t\tfunction: 'redeem_settled_permissionless',\n\t\t\targuments: normalizeMoveArguments(\n\t\t\t\t{\n\t\t\t\t\t...options.arguments,\n\t\t\t\t\tconfig: options.arguments?.config ?? options.config?.protocolConfig,\n\t\t\t\t},\n\t\t\t\targumentsTypes,\n\t\t\t\tparameterNames,\n\t\t\t),\n\t\t});\n}\nexport interface SetReferenceTickArguments {\n\tmarket: RawTransactionArgument<string>;\n\tconfig?: RawTransactionArgument<string>;\n\tpropbookRegistry?: RawTransactionArgument<string>;\n\tpyth: RawTransactionArgument<string>;\n}\nexport interface SetReferenceTickOptions {\n\tpackage?: string;\n\targuments: SetReferenceTickArguments;\n\tconfig?: {\n\t\tprotocolConfig: ConfigValue;\n\t\toracleRegistry: ConfigValue;\n\t\tpredictPackageId?: string;\n\t};\n}\n/**\n * Set this expiry's reference fine-grid tick from the exact previous-window\n * Propbook Pyth observation. The source observation must be inserted into the feed\n * at `reference_tick_source_timestamp_ms` before this call, and the normalized\n * spot is floored to the market's `tick_size`. Not gated on the valuation lock:\n * the reference tick shapes mint admission only, and a mint it admits mid-flush is\n * invisible to the captured snapshot like any other.\n */\nexport function setReferenceTick(options: SetReferenceTickOptions) {\n\tconst packageAddress =\n\t\toptions.package ?? options.config?.predictPackageId ?? '@local-pkg/deepbook_predict';\n\tconst argumentsTypes = [null, null, null, null, '0x2::clock::Clock'] satisfies (string | null)[];\n\tconst parameterNames = ['market', 'config', 'propbookRegistry', 'pyth'];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'expiry_market',\n\t\t\tfunction: 'set_reference_tick',\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\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 SetMintPausedArguments {\n\tmarket: RawTransactionArgument<string>;\n\tconfig?: RawTransactionArgument<string>;\n\tAdminCap: RawTransactionArgument<string>;\n\tpaused: RawTransactionArgument<boolean>;\n}\nexport interface SetMintPausedOptions {\n\tpackage?: string;\n\targuments: SetMintPausedArguments;\n\tconfig?: {\n\t\tprotocolConfig: ConfigValue;\n\t\tpredictPackageId?: string;\n\t};\n}\n/**\n * Set whether new mints are paused on this expiry market. Admin-only and\n * version-gated. A `PauseCap` holder can force-engage the pause one-way under a\n * version freeze via `registry::pause_expiry_market_mint_pause_cap`.\n */\nexport function setMintPaused(options: SetMintPausedOptions) {\n\tconst packageAddress =\n\t\toptions.package ?? options.config?.predictPackageId ?? '@local-pkg/deepbook_predict';\n\tconst argumentsTypes = [null, null, null, 'bool'] satisfies (string | null)[];\n\tconst parameterNames = ['market', 'config', 'AdminCap', 'paused'];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'expiry_market',\n\t\t\tfunction: 'set_mint_paused',\n\t\t\targuments: normalizeMoveArguments(\n\t\t\t\t{\n\t\t\t\t\t...options.arguments,\n\t\t\t\t\tconfig: options.arguments?.config ?? options.config?.protocolConfig,\n\t\t\t\t},\n\t\t\t\targumentsTypes,\n\t\t\t\tparameterNames,\n\t\t\t),\n\t\t});\n}\nexport interface TrySettleArguments {\n\tmarket: RawTransactionArgument<string>;\n\tconfig?: RawTransactionArgument<string>;\n\tpropbookRegistry?: RawTransactionArgument<string>;\n\tpyth: RawTransactionArgument<string>;\n\tbsValues: RawTransactionArgument<string>;\n}\nexport interface TrySettleOptions {\n\tpackage?: string;\n\targuments: TrySettleArguments;\n\tconfig?: {\n\t\tprotocolConfig: ConfigValue;\n\t\toracleRegistry: ConfigValue;\n\t\tpredictPackageId?: string;\n\t};\n}\n/**\n * Settle from Propbook's exact positive Pyth spot at expiry, or from the exact\n * Block Scholes minute-boundary spot when Pyth remains unavailable after the\n * compiled grace period. Permissionless and idempotent; missing or unusable\n * observations leave the market unsettled.\n */\nexport function trySettle(options: TrySettleOptions) {\n\tconst packageAddress =\n\t\toptions.package ?? options.config?.predictPackageId ?? '@local-pkg/deepbook_predict';\n\tconst argumentsTypes = [null, null, null, null, null, '0x2::clock::Clock'] satisfies (\n\t\tstring | null\n\t)[];\n\tconst parameterNames = ['market', 'config', 'propbookRegistry', 'pyth', 'bsValues'];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'expiry_market',\n\t\t\tfunction: 'try_settle',\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\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}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA4BA,MAAM,cAAc;AACpB,MAAa,iBAAiB,IAAI,WAAW;CAC5C,MAAM,GAAG,YAAY;CACrB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AoB;CACpE,MAAM,iBAAiB;EAAC;EAAU;EAAU;EAAoB;EAAO;AACvE,SAAQ,OACP,GAAG,SAAS;EACX,SAAS;EACT,QAAQ;EACR,UAAU;EACV,WAAW,uBACV;GACC,GAAG,QAAQ;GACX,QAAQ,QAAQ,WAAW,UAAU,QAAQ,QAAQ;GACrD,kBAAkB,QAAQ,WAAW,oBAAoB,QAAQ,QAAQ;GACzE,EACD,gBACA,eACA;EACD,CAAC;;;;;;;AAqBJ,SAAgB,cAAc,SAA+B;CAC5D,MAAM,iBACL,QAAQ,WAAW,QAAQ,QAAQ,oBAAoB;CACxD,MAAM,iBAAiB;EAAC;EAAM;EAAM;EAAM;EAAO;CACjD,MAAM,iBAAiB;EAAC;EAAU;EAAU;EAAY;EAAS;AACjE,SAAQ,OACP,GAAG,SAAS;EACX,SAAS;EACT,QAAQ;EACR,UAAU;EACV,WAAW,uBACV;GACC,GAAG,QAAQ;GACX,QAAQ,QAAQ,WAAW,UAAU,QAAQ,QAAQ;GACrD,EACD,gBACA,eACA;EACD,CAAC;;;;;;;;AAwBJ,SAAgB,UAAU,SAA2B;CACpD,MAAM,iBACL,QAAQ,WAAW,QAAQ,QAAQ,oBAAoB;CACxD,MAAM,iBAAiB;EAAC;EAAM;EAAM;EAAM;EAAM;EAAM;EAAoB;CAG1E,MAAM,iBAAiB;EAAC;EAAU;EAAU;EAAoB;EAAQ;EAAW;AACnF,SAAQ,OACP,GAAG,SAAS;EACX,SAAS;EACT,QAAQ;EACR,UAAU;EACV,WAAW,uBACV;GACC,GAAG,QAAQ;GACX,QAAQ,QAAQ,WAAW,UAAU,QAAQ,QAAQ;GACrD,kBAAkB,QAAQ,WAAW,oBAAoB,QAAQ,QAAQ;GACzE,EACD,gBACA,eACA;EACD,CAAC"}
@@ -0,0 +1,39 @@
1
+ import { MoveStruct, RawTransactionArgument } from "../utils/index.mjs";
2
+ import * as _mysten_sui_bcs88 from "@mysten/sui/bcs";
3
+ import * as _mysten_sui_transactions206 from "@mysten/sui/transactions";
4
+ import { Transaction } from "@mysten/sui/transactions";
5
+
6
+ //#region src/contracts/deepbook_predict/market_lifecycle_cap.d.ts
7
+ declare namespace market_lifecycle_cap_d_exports {
8
+ export { DestroyArguments, DestroyOptions, IdArguments, IdOptions, MarketLifecycleCap, destroy, id };
9
+ }
10
+ declare const MarketLifecycleCap: MoveStruct<{
11
+ id: _mysten_sui_bcs88.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
12
+ }, "@local-pkg/deepbook_predict::market_lifecycle_cap::MarketLifecycleCap">;
13
+ interface IdArguments {
14
+ cap: RawTransactionArgument<string>;
15
+ }
16
+ interface IdOptions {
17
+ package?: string;
18
+ arguments: IdArguments | [cap: RawTransactionArgument<string>];
19
+ config?: {
20
+ predictPackageId?: string;
21
+ };
22
+ }
23
+ /** Returns the capability identity used by the registry allowlist. */
24
+ declare function id(options: IdOptions): (tx: Transaction) => _mysten_sui_transactions206.TransactionResult;
25
+ interface DestroyArguments {
26
+ cap: RawTransactionArgument<string>;
27
+ }
28
+ interface DestroyOptions {
29
+ package?: string;
30
+ arguments: DestroyArguments | [cap: RawTransactionArgument<string>];
31
+ config?: {
32
+ predictPackageId?: string;
33
+ };
34
+ }
35
+ /** Destroy a `MarketLifecycleCap` the holder no longer needs. */
36
+ declare function destroy(options: DestroyOptions): (tx: Transaction) => _mysten_sui_transactions206.TransactionResult;
37
+ //#endregion
38
+ export { market_lifecycle_cap_d_exports };
39
+ //# sourceMappingURL=market_lifecycle_cap.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"market_lifecycle_cap.d.mts","names":[],"sources":["../../../src/contracts/deepbook_predict/market_lifecycle_cap.ts"],"mappings":";;;;;;;;;cAca,kBAAA,EAAkB,UAAA;;;UAMd,WAAA;EAChB,GAAA,EAAK,sBAAA;AAAA;AAAA,UAEW,SAAA;EAChB,OAAA;EACA,SAAA,EAAW,WAAA,IAAe,GAAA,EAAK,sBAAA;EAC/B,MAAA;IACC,gBAAA;EAAA;AAAA;;iBAIc,EAAA,CAAG,OAAA,EAAS,SAAA,IAKnB,EAAA,EAAI,WAAA,KAAW,2BAAA,CAAA,iBAAA;AAAA,UAQP,gBAAA;EAChB,GAAA,EAAK,sBAAA;AAAA;AAAA,UAEW,cAAA;EAChB,OAAA;EACA,SAAA,EAAW,gBAAA,IAAoB,GAAA,EAAK,sBAAA;EACpC,MAAA;IACC,gBAAA;EAAA;AAAA;;iBAIc,OAAA,CAAQ,OAAA,EAAS,cAAA,IAKxB,EAAA,EAAI,WAAA,KAAW,2BAAA,CAAA,iBAAA"}
@@ -0,0 +1,51 @@
1
+ import { __exportAll } from "../../_virtual/rolldown_runtime.mjs";
2
+ import { MoveStruct, normalizeMoveArguments } from "../utils/index.mjs";
3
+ import { bcs } from "@mysten/sui/bcs";
4
+
5
+ //#region src/contracts/deepbook_predict/market_lifecycle_cap.ts
6
+ /**************************************************************
7
+ * THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *
8
+ **************************************************************/
9
+ /**
10
+ * Defines revocable authority for market creation without granting pool-valuation,
11
+ * oracle-write, or root-admin power. `Registry` owns the allowlist and the
12
+ * creation entrypoint this capability gates.
13
+ */
14
+ var market_lifecycle_cap_exports = /* @__PURE__ */ __exportAll({
15
+ MarketLifecycleCap: () => MarketLifecycleCap,
16
+ destroy: () => destroy,
17
+ id: () => id
18
+ });
19
+ const $moduleName = "@local-pkg/deepbook_predict::market_lifecycle_cap";
20
+ const MarketLifecycleCap = new MoveStruct({
21
+ name: `${$moduleName}::MarketLifecycleCap`,
22
+ fields: { id: bcs.Address }
23
+ });
24
+ /** Returns the capability identity used by the registry allowlist. */
25
+ function id(options) {
26
+ const packageAddress = options.package ?? options.config?.predictPackageId ?? "@local-pkg/deepbook_predict";
27
+ const argumentsTypes = [null];
28
+ const parameterNames = ["cap"];
29
+ return (tx) => tx.moveCall({
30
+ package: packageAddress,
31
+ module: "market_lifecycle_cap",
32
+ function: "id",
33
+ arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames)
34
+ });
35
+ }
36
+ /** Destroy a `MarketLifecycleCap` the holder no longer needs. */
37
+ function destroy(options) {
38
+ const packageAddress = options.package ?? options.config?.predictPackageId ?? "@local-pkg/deepbook_predict";
39
+ const argumentsTypes = [null];
40
+ const parameterNames = ["cap"];
41
+ return (tx) => tx.moveCall({
42
+ package: packageAddress,
43
+ module: "market_lifecycle_cap",
44
+ function: "destroy",
45
+ arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames)
46
+ });
47
+ }
48
+
49
+ //#endregion
50
+ export { market_lifecycle_cap_exports };
51
+ //# sourceMappingURL=market_lifecycle_cap.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"market_lifecycle_cap.mjs","names":[],"sources":["../../../src/contracts/deepbook_predict/market_lifecycle_cap.ts"],"sourcesContent":["/**************************************************************\n * THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *\n **************************************************************/\n\n/**\n * Defines revocable authority for market creation without granting pool-valuation,\n * oracle-write, or root-admin power. `Registry` owns the allowlist and the\n * creation entrypoint this capability gates.\n */\n\nimport { MoveStruct, normalizeMoveArguments, type RawTransactionArgument } from '../utils/index.js';\nimport { bcs } from '@mysten/sui/bcs';\nimport { type Transaction } from '@mysten/sui/transactions';\nconst $moduleName = '@local-pkg/deepbook_predict::market_lifecycle_cap';\nexport const MarketLifecycleCap = new MoveStruct({\n\tname: `${$moduleName}::MarketLifecycleCap`,\n\tfields: {\n\t\tid: bcs.Address,\n\t},\n});\nexport interface IdArguments {\n\tcap: RawTransactionArgument<string>;\n}\nexport interface IdOptions {\n\tpackage?: string;\n\targuments: IdArguments | [cap: RawTransactionArgument<string>];\n\tconfig?: {\n\t\tpredictPackageId?: string;\n\t};\n}\n/** Returns the capability identity used by the registry allowlist. */\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 = ['cap'];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'market_lifecycle_cap',\n\t\t\tfunction: 'id',\n\t\t\targuments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),\n\t\t});\n}\nexport interface DestroyArguments {\n\tcap: RawTransactionArgument<string>;\n}\nexport interface DestroyOptions {\n\tpackage?: string;\n\targuments: DestroyArguments | [cap: RawTransactionArgument<string>];\n\tconfig?: {\n\t\tpredictPackageId?: string;\n\t};\n}\n/** Destroy a `MarketLifecycleCap` the holder no longer needs. */\nexport function destroy(options: DestroyOptions) {\n\tconst packageAddress =\n\t\toptions.package ?? options.config?.predictPackageId ?? '@local-pkg/deepbook_predict';\n\tconst argumentsTypes = [null] satisfies (string | null)[];\n\tconst parameterNames = ['cap'];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'market_lifecycle_cap',\n\t\t\tfunction: 'destroy',\n\t\t\targuments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),\n\t\t});\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;AAaA,MAAM,cAAc;AACpB,MAAa,qBAAqB,IAAI,WAAW;CAChD,MAAM,GAAG,YAAY;CACrB,QAAQ,EACP,IAAI,IAAI,SACR;CACD,CAAC;;AAYF,SAAgB,GAAG,SAAoB;CACtC,MAAM,iBACL,QAAQ,WAAW,QAAQ,QAAQ,oBAAoB;CACxD,MAAM,iBAAiB,CAAC,KAAK;CAC7B,MAAM,iBAAiB,CAAC,MAAM;AAC9B,SAAQ,OACP,GAAG,SAAS;EACX,SAAS;EACT,QAAQ;EACR,UAAU;EACV,WAAW,uBAAuB,QAAQ,WAAW,gBAAgB,eAAe;EACpF,CAAC;;;AAaJ,SAAgB,QAAQ,SAAyB;CAChD,MAAM,iBACL,QAAQ,WAAW,QAAQ,QAAQ,oBAAoB;CACxD,MAAM,iBAAiB,CAAC,KAAK;CAC7B,MAAM,iBAAiB,CAAC,MAAM;AAC9B,SAAQ,OACP,GAAG,SAAS;EACX,SAAS;EACT,QAAQ;EACR,UAAU;EACV,WAAW,uBAAuB,QAAQ,WAAW,gBAAgB,eAAe;EACpF,CAAC"}
@@ -0,0 +1,159 @@
1
+ import { MoveStruct } from "../utils/index.mjs";
2
+ import * as _mysten_sui_bcs89 from "@mysten/sui/bcs";
3
+ import * as _mysten_sui_transactions208 from "@mysten/sui/transactions";
4
+ import { Transaction, TransactionArgument } from "@mysten/sui/transactions";
5
+
6
+ //#region src/contracts/deepbook_predict/market_manager.d.ts
7
+ declare namespace market_manager_d_exports {
8
+ export { CadenceAdmissionTickSizeArguments, CadenceAdmissionTickSizeOptions, CadenceConfig, CadenceEnabledArguments, CadenceEnabledOptions, CadenceInitialExpiryCashArguments, CadenceInitialExpiryCashOptions, CadenceMaxExpiryAllocationArguments, CadenceMaxExpiryAllocationOptions, CadenceTickSizeArguments, CadenceTickSizeOptions, CadenceWindowSizeArguments, CadenceWindowSizeOptions, DeployableMarket, MarketKey, MarketManager, UnderlyingMarketConfig, cadenceAdmissionTickSize, cadenceEnabled, cadenceInitialExpiryCash, cadenceMaxExpiryAllocation, cadenceTickSize, cadenceWindowSize };
9
+ }
10
+ declare const MarketKey: MoveStruct<{
11
+ propbook_underlying_id: _mysten_sui_bcs89.BcsType<number, number, "u32">;
12
+ expiry: _mysten_sui_bcs89.BcsType<bigint, string | number | bigint, "u64">;
13
+ }, "@local-pkg/deepbook_predict::market_manager::MarketKey">;
14
+ declare const MarketManager: MoveStruct<{
15
+ /** Propbook underlying ID -> deployment watermarks. */underlying_configs: MoveStruct<{
16
+ id: _mysten_sui_bcs89.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
17
+ size: _mysten_sui_bcs89.BcsType<bigint, string | number | bigint, "u64">;
18
+ }, "0x2::table::Table<phantom K, phantom V>">; /** Created markets keyed by `(propbook_underlying_id, expiry)`. */
19
+ market_ids: MoveStruct<{
20
+ id: _mysten_sui_bcs89.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
21
+ size: _mysten_sui_bcs89.BcsType<bigint, string | number | bigint, "u64">;
22
+ }, "0x2::table::Table<phantom K, phantom V>">;
23
+ }, "@local-pkg/deepbook_predict::market_manager::MarketManager">;
24
+ declare const CadenceConfig: MoveStruct<{
25
+ /** Raw-price-per-tick factor snapshotted into each created market. */tick_size: _mysten_sui_bcs89.BcsType<bigint, string | number | bigint, "u64">; /** Coarser raw-price step that new finite mint boundaries must align to. */
26
+ admission_tick_size: _mysten_sui_bcs89.BcsType<bigint, string | number | bigint, "u64">;
27
+ /**
28
+ * USDC pool allocation cap snapshotted into pool accounting for each created
29
+ * expiry.
30
+ */
31
+ max_expiry_allocation: _mysten_sui_bcs89.BcsType<bigint, string | number | bigint, "u64">;
32
+ /**
33
+ * Minimum USDC cash target snapshotted into pool accounting for each created
34
+ * expiry.
35
+ */
36
+ initial_expiry_cash: _mysten_sui_bcs89.BcsType<bigint, string | number | bigint, "u64">;
37
+ /**
38
+ * Number of cadence periods in the rolling future deployment horizon. Zero
39
+ * disables this cadence.
40
+ */
41
+ window_size: _mysten_sui_bcs89.BcsType<bigint, string | number | bigint, "u64">;
42
+ }, "@local-pkg/deepbook_predict::market_manager::CadenceConfig">;
43
+ declare const DeployableMarket: MoveStruct<{
44
+ expiry: _mysten_sui_bcs89.BcsType<bigint, string | number | bigint, "u64">;
45
+ cadence: MoveStruct<{
46
+ /** Raw-price-per-tick factor snapshotted into each created market. */tick_size: _mysten_sui_bcs89.BcsType<bigint, string | number | bigint, "u64">; /** Coarser raw-price step that new finite mint boundaries must align to. */
47
+ admission_tick_size: _mysten_sui_bcs89.BcsType<bigint, string | number | bigint, "u64">;
48
+ /**
49
+ * USDC pool allocation cap snapshotted into pool accounting for each created
50
+ * expiry.
51
+ */
52
+ max_expiry_allocation: _mysten_sui_bcs89.BcsType<bigint, string | number | bigint, "u64">;
53
+ /**
54
+ * Minimum USDC cash target snapshotted into pool accounting for each created
55
+ * expiry.
56
+ */
57
+ initial_expiry_cash: _mysten_sui_bcs89.BcsType<bigint, string | number | bigint, "u64">;
58
+ /**
59
+ * Number of cadence periods in the rolling future deployment horizon. Zero
60
+ * disables this cadence.
61
+ */
62
+ window_size: _mysten_sui_bcs89.BcsType<bigint, string | number | bigint, "u64">;
63
+ }, "@local-pkg/deepbook_predict::market_manager::CadenceConfig">;
64
+ }, "@local-pkg/deepbook_predict::market_manager::DeployableMarket">;
65
+ declare const UnderlyingMarketConfig: MoveStruct<{
66
+ /** Deployment config indexed by cadence ID. */cadences: _mysten_sui_bcs89.BcsType<{
67
+ tick_size: bigint;
68
+ admission_tick_size: bigint;
69
+ max_expiry_allocation: bigint;
70
+ initial_expiry_cash: bigint;
71
+ window_size: bigint;
72
+ }[], Iterable<{
73
+ tick_size: string | number | bigint;
74
+ admission_tick_size: string | number | bigint;
75
+ max_expiry_allocation: string | number | bigint;
76
+ initial_expiry_cash: string | number | bigint;
77
+ window_size: string | number | bigint;
78
+ }> & {
79
+ length: number;
80
+ }, string>; /** Highest deployed expiry timestamp indexed by cadence ID. */
81
+ last_deployed_expiries: _mysten_sui_bcs89.BcsType<bigint[], Iterable<string | number | bigint> & {
82
+ length: number;
83
+ }, string>;
84
+ }, "@local-pkg/deepbook_predict::market_manager::UnderlyingMarketConfig">;
85
+ interface CadenceTickSizeArguments {
86
+ config: TransactionArgument;
87
+ }
88
+ interface CadenceTickSizeOptions {
89
+ package?: string;
90
+ arguments: CadenceTickSizeArguments | [config: TransactionArgument];
91
+ config?: {
92
+ predictPackageId?: string;
93
+ };
94
+ }
95
+ /** Return the raw-price-per-tick factor for SDK and devInspect cadence reads. */
96
+ declare function cadenceTickSize(options: CadenceTickSizeOptions): (tx: Transaction) => _mysten_sui_transactions208.TransactionResult;
97
+ interface CadenceAdmissionTickSizeArguments {
98
+ config: TransactionArgument;
99
+ }
100
+ interface CadenceAdmissionTickSizeOptions {
101
+ package?: string;
102
+ arguments: CadenceAdmissionTickSizeArguments | [config: TransactionArgument];
103
+ config?: {
104
+ predictPackageId?: string;
105
+ };
106
+ }
107
+ /** Return the admission-grid step for SDK and devInspect cadence reads. */
108
+ declare function cadenceAdmissionTickSize(options: CadenceAdmissionTickSizeOptions): (tx: Transaction) => _mysten_sui_transactions208.TransactionResult;
109
+ interface CadenceMaxExpiryAllocationArguments {
110
+ config: TransactionArgument;
111
+ }
112
+ interface CadenceMaxExpiryAllocationOptions {
113
+ package?: string;
114
+ arguments: CadenceMaxExpiryAllocationArguments | [config: TransactionArgument];
115
+ config?: {
116
+ predictPackageId?: string;
117
+ };
118
+ }
119
+ /** Return the expiry allocation cap for SDK and devInspect cadence reads. */
120
+ declare function cadenceMaxExpiryAllocation(options: CadenceMaxExpiryAllocationOptions): (tx: Transaction) => _mysten_sui_transactions208.TransactionResult;
121
+ interface CadenceInitialExpiryCashArguments {
122
+ config: TransactionArgument;
123
+ }
124
+ interface CadenceInitialExpiryCashOptions {
125
+ package?: string;
126
+ arguments: CadenceInitialExpiryCashArguments | [config: TransactionArgument];
127
+ config?: {
128
+ predictPackageId?: string;
129
+ };
130
+ }
131
+ /** Return the initial expiry cash target for SDK and devInspect cadence reads. */
132
+ declare function cadenceInitialExpiryCash(options: CadenceInitialExpiryCashOptions): (tx: Transaction) => _mysten_sui_transactions208.TransactionResult;
133
+ interface CadenceWindowSizeArguments {
134
+ config: TransactionArgument;
135
+ }
136
+ interface CadenceWindowSizeOptions {
137
+ package?: string;
138
+ arguments: CadenceWindowSizeArguments | [config: TransactionArgument];
139
+ config?: {
140
+ predictPackageId?: string;
141
+ };
142
+ }
143
+ /** Return the rolling deployment horizon for SDK and devInspect cadence reads. */
144
+ declare function cadenceWindowSize(options: CadenceWindowSizeOptions): (tx: Transaction) => _mysten_sui_transactions208.TransactionResult;
145
+ interface CadenceEnabledArguments {
146
+ config: TransactionArgument;
147
+ }
148
+ interface CadenceEnabledOptions {
149
+ package?: string;
150
+ arguments: CadenceEnabledArguments | [config: TransactionArgument];
151
+ config?: {
152
+ predictPackageId?: string;
153
+ };
154
+ }
155
+ /** Return whether this cadence is enabled for SDK and devInspect discovery. */
156
+ declare function cadenceEnabled(options: CadenceEnabledOptions): (tx: Transaction) => _mysten_sui_transactions208.TransactionResult;
157
+ //#endregion
158
+ export { market_manager_d_exports };
159
+ //# sourceMappingURL=market_manager.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"market_manager.d.mts","names":[],"sources":["../../../src/contracts/deepbook_predict/market_manager.ts"],"mappings":";;;;;;;;;cAkBa,SAAA,EAAS,UAAA;0BAMpB,iBAAA,CAAA,OAAA;;;cACW,aAAA,EAAa,UAAA;;;;;;;;;;cASb,aAAA,EAAa,UAAA;mFAuBxB,iBAAA,CAAA,OAAA;;EAjCA;;;;;EANoB;;;;;;;;;;;cAwCT,gBAAA,EAAgB,UAAA;UAM3B,iBAAA,CAAA,OAAA;;;;;;;;;IAvCwB;;;;;;;;;;;;cAwCb,sBAAA,EAAsB,UAAA;;;;;;;;;;;;;;;cA/BT;;;;;UAwCT,wBAAA;EAChB,MAAA,EAAQ,mBAAA;AAAA;AAAA,UAEQ,sBAAA;EAChB,OAAA;EACA,SAAA,EAAW,wBAAA,IAA4B,MAAA,EAAQ,mBAAA;EAC/C,MAAA;IACC,gBAAA;EAAA;AAAA;;iBAIc,eAAA,CAAgB,OAAA,EAAS,sBAAA,IAKhC,EAAA,EAAI,WAAA,KAAW,2BAAA,CAAA,iBAAA;AAAA,UAQP,iCAAA;EAChB,MAAA,EAAQ,mBAAA;AAAA;AAAA,UAEQ,+BAAA;EAChB,OAAA;EACA,SAAA,EAAW,iCAAA,IAAqC,MAAA,EAAQ,mBAAA;EACxD,MAAA;IACC,gBAAA;EAAA;AAAA;;iBAIc,wBAAA,CAAyB,OAAA,EAAS,+BAAA,IAKzC,EAAA,EAAI,WAAA,KAAW,2BAAA,CAAA,iBAAA;AAAA,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