{"version":3,"file":"expiry_market.mjs","names":["expiry_cash.ExpiryCash","balance.Balance","strike_exposure.StrikeExposure","ewma.EwmaState","pricing.VolSnapshot","vec_map.VecMap"],"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 * It also owns the order-flow primitives an order-flow companion package drives.\n * `admit_mint` and `admit_sell` admit one queued order, pin a mint's boundary\n * nodes, record the order's cash need in the market's `OrderFlowLedger`, and issue\n * or advance its `OrderReceipt`. `commit` stores the bounded Pyth price the order\n * fills at, `try_fill` fills or refunds it, `release` takes it out without\n * filling, and `try_pay_settled` pays a queue-held position after settlement. A\n * queued fill never enters the account: its position stays in the receipt.\n * Admission, commit, and fill need an allowlisted companion witness; release and\n * the settled payout need only the receipt. The queue itself, its escrow, its\n * policy, and its events live in the companion.\n *\n * A trade that pays a builder names its code and fee per contract\n * (`builder_code::BuilderFee`). `admit_mint_with_builder` and\n * `admit_sell_with_builder` cap the fee at `protocol_config::builder_fee_cap` and\n * record the code and the capped fee in the receipt, and the fill charges what the\n * receipt records. The plain admissions name no builder and charge none.\n *\n * Mainnet USDC is a regulated coin: Sui aborts a transaction that sends it to an\n * address on its deny list, or to anyone while it is globally paused. So the fill,\n * the fee routing, and the settled payout read `sui::deny_list` first and never\n * send to such an address. A fill for a denied receive address is refused, a\n * denied builder or referrer's fee stays in market cash, and a denied winner's\n * payout is skipped for a later `try_pay_settled`.\n */\n\nimport {\n\tMoveStruct,\n\tMoveTuple,\n\tnormalizeMoveArguments,\n\ttype RawTransactionArgument,\n\ttype ConfigValue,\n} from '../utils/index.js';\nimport { U64, U256 } from '../../bcs/integers.js';\nimport { bcs, type BcsType } 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';\nimport * as pricing from './pricing.js';\nimport * as vec_map from './deps/sui/vec_map.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 const RedeemQuote = new MoveStruct({\n\tname: `${$moduleName}::RedeemQuote`,\n\tfields: {\n\t\tclose_quantity: U64,\n\t\tprobability: U64,\n\t\tproceeds: U64,\n\t\ttrading_fee: U64,\n\t\tbuilder_fee: U64,\n\t\tinventory_impact_rebate: U64,\n\t},\n});\nexport const OrderParties = new MoveStruct({\n\tname: `${$moduleName}::OrderParties`,\n\tfields: {\n\t\taccount_id: bcs.Address,\n\t\towner: bcs.Address,\n\t\t/** Sell proceeds and the settled payout go only here. */\n\t\treceive_address: bcs.Address,\n\t\treferrer_account_id: bcs.option(bcs.Address),\n\t\treferrer_receive_address: bcs.option(bcs.Address),\n\t\tbuilder_code_id: bcs.option(bcs.Address),\n\t},\n});\nexport const OrderReceipt = new MoveStruct({\n\tname: `${$moduleName}::OrderReceipt`,\n\tfields: {\n\t\texpiry_market_id: bcs.Address,\n\t\tstage: bcs.u8(),\n\t\t/** A `constants` mint kind, or `order_kind_sell` once a sell is admitted. */\n\t\tkind: bcs.u8(),\n\t\t/** The account's snapshot at the last admission. */\n\t\tparties: OrderParties,\n\t\tlower_tick: U64,\n\t\thigher_tick: U64,\n\t\t/** The exact mint quantity, or the sell's close quantity. */\n\t\tquantity: U64,\n\t\t/**\n\t\t * A mint's premium cap. A sell never uses it, so a sell admitted with a builder\n\t\t * keeps its capped builder fee per contract here.\n\t\t */\n\t\tmax_premium: U64,\n\t\tmin_quantity: U64,\n\t\tmax_probability: U64,\n\t\tmin_probability: U64,\n\t\t/**\n\t\t * A sell's proceeds floor. A mint never uses it, so a mint admitted with a builder\n\t\t * keeps its capped builder fee per contract here.\n\t\t */\n\t\tmin_proceeds: U64,\n\t\t/** Earliest Pyth generation time the order may price at. */\n\t\ttau_ms: U64,\n\t\t/** At or past it the order is refunded, never filled. */\n\t\tdeadline_ms: U64,\n\t\t/** The Lazer channel τ was planned on; the committed price must come from it. */\n\t\tchannel: bcs.u8(),\n\t\tvol: pricing.VolSnapshot,\n\t\tbudget: U64,\n\t\torder_fee: U64,\n\t\t/**\n\t\t * Worst-case market cash the fill can consume. Counted in the ledger's\n\t\t * `waiting_cash_need` while the order is admitted.\n\t\t */\n\t\tcash_need: U64,\n\t\t/**\n\t\t * The t₀ quote's pre-subsidy trading fee, capped at `budget`. Bounds the subsidy\n\t\t * `commit` reserves.\n\t\t */\n\t\tsubsidy_bound: U64,\n\t\tsubsidy_rate: U64,\n\t\tsubsidy_reserved: U64,\n\t\t/** The committed Pyth price, 1e9-normalized; `0` until `commit`. */\n\t\tspot: U64,\n\t\t/** The committed update's envelope, in ms. The fill prices at it. */\n\t\ttick_ms: U64,\n\t\t/** The committed feed's own update time, in µs. */\n\t\tgeneration_us: U64,\n\t\t/** The open position's order ID; `0` until the mint fills. */\n\t\torder_id: U256,\n\t\t/** Stable economic-position handle, constant across partial closes. */\n\t\troot_id: U256,\n\t\topened_at_ms: U64,\n\t\t/**\n\t\t * The open position's size, the quantity `order_id` names. The request's\n\t\t * `quantity` is the mint or close quantity, so a sell admission never overwrites\n\t\t * the size it closes.\n\t\t */\n\t\theld_quantity: U64,\n\t},\n});\nexport const OrderFlowLedgerKey = new MoveTuple({\n\tname: `${$moduleName}::OrderFlowLedgerKey`,\n\tfields: [bcs.bool()],\n});\nexport const OrderFlowLedger = new MoveStruct({\n\tname: `${$moduleName}::OrderFlowLedger`,\n\tfields: {\n\t\t/**\n\t\t * Admitted mints per payout-tree tick (tick -> count). A pinned node is never\n\t\t * pruned, so a fill never creates one.\n\t\t */\n\t\tpins: vec_map.VecMap(U64, U64),\n\t\t/**\n\t\t * Sum of the admitted orders' cash needs. `rebalance_expiry_cash` funds a live\n\t\t * market to at least required cash plus this.\n\t\t */\n\t\twaiting_cash_need: 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 a prospective mint at a market-bound `Pricer`, priced like a queued fill\n * at the clock, for SDK and devInspect previews. `exact_quantity` quotes\n * `min_quantity` exactly; otherwise the largest quantity whose premium fits\n * `max_premium`, at least `min_quantity`. No builder fee. The fee subsidy is the\n * configured rate capped by the market's incentive balance, and `penalty_fee` is\n * always 0. Gated only on the pricer binding (`EWrongPricer`) and `now < expiry`\n * (`EInvalidOrderTiming`). Aborts `EOrderFailsLimits` when the mint would be\n * refused at the clock.\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_mint` for the wrapper's account: `max_premium` is capped at the account's\n * balance. No builder fee, matching the enqueue calls that name no builder:\n * `quote_mint_with_builder_fee` at a zero fee.\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 QuoteMintWithBuilderFeeArguments {\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\tbuilderFeePerContract: RawTransactionArgument<number | bigint>;\n}\nexport interface QuoteMintWithBuilderFeeOptions {\n\tpackage?: string;\n\targuments: QuoteMintWithBuilderFeeArguments;\n\tconfig?: {\n\t\tprotocolConfig: ConfigValue;\n\t\tpredictPackageId?: string;\n\t};\n}\n/**\n * `quote_mint_for_account` for an order that names a builder: charges\n * `builder_fee_per_contract`, in FLOAT_SCALING of the $1 payout, capped at\n * `protocol_config::builder_fee_cap` as admission caps it. Prices and gates like\n * `quote_mint`. For SDK and devInspect previews of the `_with_builder` enqueue\n * calls.\n */\nexport function quoteMintWithBuilderFee(options: QuoteMintWithBuilderFeeOptions) {\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'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'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\t'builderFeePerContract',\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_with_builder_fee',\n\t\t\targuments: normalizeMoveArguments(\n\t\t\t\t{\n\t\t\t\t\t...options.arguments,\n\t\t\t\t\tconfig: options.arguments?.config ?? options.config?.protocolConfig,\n\t\t\t\t},\n\t\t\t\targumentsTypes,\n\t\t\t\tparameterNames,\n\t\t\t),\n\t\t});\n}\nexport interface QuoteMintExactCostForAccountArguments {\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\tmaxCost: RawTransactionArgument<number | bigint>;\n\tminQuantity: RawTransactionArgument<number | bigint>;\n}\nexport interface QuoteMintExactCostForAccountOptions {\n\tpackage?: string;\n\targuments: QuoteMintExactCostForAccountArguments;\n\tconfig?: {\n\t\tprotocolConfig: ConfigValue;\n\t\tpredictPackageId?: string;\n\t};\n}\n/**\n * Quote the largest mint whose all-in cost fits `min(max_cost, account  balance)`,\n * at least `min_quantity`, for the wrapper's account, priced like a queued\n * exact-cost fill at the clock. No builder fee, matching the enqueue calls that\n * name no builder: `quote_mint_exact_cost_with_builder_fee` at a zero fee.\n * Otherwise prices and gates like `quote_mint`.\n */\nexport function quoteMintExactCostForAccount(options: QuoteMintExactCostForAccountOptions) {\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'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'maxCost',\n\t\t'minQuantity',\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_exact_cost_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 QuoteMintExactCostWithBuilderFeeArguments {\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\tmaxCost: RawTransactionArgument<number | bigint>;\n\tminQuantity: RawTransactionArgument<number | bigint>;\n\tbuilderFeePerContract: RawTransactionArgument<number | bigint>;\n}\nexport interface QuoteMintExactCostWithBuilderFeeOptions {\n\tpackage?: string;\n\targuments: QuoteMintExactCostWithBuilderFeeArguments;\n\tconfig?: {\n\t\tprotocolConfig: ConfigValue;\n\t\tpredictPackageId?: string;\n\t};\n}\n/**\n * `quote_mint_exact_cost_for_account` for an order that names a builder: the\n * budget search fits `builder_fee_per_contract`, in FLOAT_SCALING of the $1 payout\n * and capped at `protocol_config::builder_fee_cap`, inside the budget. For SDK and\n * devInspect previews of `enqueue_exact_cost_with_builder`.\n */\nexport function quoteMintExactCostWithBuilderFee(options: QuoteMintExactCostWithBuilderFeeOptions) {\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'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'config',\n\t\t'pricer',\n\t\t'lowerTick',\n\t\t'higherTick',\n\t\t'maxCost',\n\t\t'minQuantity',\n\t\t'builderFeePerContract',\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_exact_cost_with_builder_fee',\n\t\t\targuments: normalizeMoveArguments(\n\t\t\t\t{\n\t\t\t\t\t...options.arguments,\n\t\t\t\t\tconfig: options.arguments?.config ?? options.config?.protocolConfig,\n\t\t\t\t},\n\t\t\t\targumentsTypes,\n\t\t\t\tparameterNames,\n\t\t\t),\n\t\t});\n}\nexport interface OrderFlowStateArguments {\n\tmarket: RawTransactionArgument<string>;\n}\nexport interface OrderFlowStateOptions {\n\tpackage?: string;\n\targuments: OrderFlowStateArguments | [market: RawTransactionArgument<string>];\n\tconfig?: {\n\t\tpredictPackageId?: string;\n\t};\n}\n/**\n * Return `(waiting_cash_need, payout_tree_node_count, min_entry_probability)`: the\n * summed cash need of the market's admitted orders, above required cash, that\n * `rebalance_expiry_cash` keeps a live market funded with; the payout tree's node\n * count, pinned zero nodes included, which sizes the keeper's fill batches; and\n * the snapshotted minimum entry probability the SDK computes a queued mint's cash\n * need from. For SDK, keeper, and devInspect reads.\n */\nexport function orderFlowState(options: OrderFlowStateOptions) {\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: 'order_flow_state',\n\t\t\targuments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),\n\t\t});\n}\nexport interface ReceiptInfoArguments {\n\treceipt: TransactionArgument;\n}\nexport interface ReceiptInfoOptions {\n\tpackage?: string;\n\targuments: ReceiptInfoArguments | [receipt: TransactionArgument];\n\tconfig?: {\n\t\tpredictPackageId?: string;\n\t};\n}\n/**\n * Return a receipt's\n * `(expiry_market_id, stage, account_id, order_id,  pyth_source_id, cash_need, subsidy_bound, vol)`.\n * For the order-flow companion's queue events and Lazer decoding, and devInspect\n * reads of queue records.\n */\nexport function receiptInfo(options: ReceiptInfoOptions) {\n\tconst packageAddress =\n\t\toptions.package ?? options.config?.predictPackageId ?? '@local-pkg/deepbook_predict';\n\tconst argumentsTypes = [null] satisfies (string | null)[];\n\tconst parameterNames = ['receipt'];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'expiry_market',\n\t\t\tfunction: 'receipt_info',\n\t\t\targuments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),\n\t\t});\n}\nexport interface BuilderFeePerContractArguments {\n\treceipt: TransactionArgument;\n}\nexport interface BuilderFeePerContractOptions {\n\tpackage?: string;\n\targuments: BuilderFeePerContractArguments | [receipt: TransactionArgument];\n\tconfig?: {\n\t\tpredictPackageId?: string;\n\t};\n}\n/**\n * Return the capped builder fee per contract an admitted order pays at its fill,\n * which the fill charges to the code the receipt records: `0` for an order that\n * names no builder and for an open receipt. For the order-flow companion's reads\n * and SDK previews of a waiting order.\n */\nexport function builderFeePerContract(options: BuilderFeePerContractOptions) {\n\tconst packageAddress =\n\t\toptions.package ?? options.config?.predictPackageId ?? '@local-pkg/deepbook_predict';\n\tconst argumentsTypes = [null] satisfies (string | null)[];\n\tconst parameterNames = ['receipt'];\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_per_contract',\n\t\t\targuments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),\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 RedeemCloseQuantityArguments {\n\tquote: TransactionArgument;\n}\nexport interface RedeemCloseQuantityOptions {\n\tpackage?: string;\n\targuments: RedeemCloseQuantityArguments | [quote: TransactionArgument];\n\tconfig?: {\n\t\tpredictPackageId?: string;\n\t};\n}\nexport function redeemCloseQuantity(options: RedeemCloseQuantityOptions) {\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: 'redeem_close_quantity',\n\t\t\targuments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),\n\t\t});\n}\nexport interface RedeemProbabilityArguments {\n\tquote: TransactionArgument;\n}\nexport interface RedeemProbabilityOptions {\n\tpackage?: string;\n\targuments: RedeemProbabilityArguments | [quote: TransactionArgument];\n\tconfig?: {\n\t\tpredictPackageId?: string;\n\t};\n}\nexport function redeemProbability(options: RedeemProbabilityOptions) {\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: 'redeem_probability',\n\t\t\targuments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),\n\t\t});\n}\nexport interface RedeemProceedsArguments {\n\tquote: TransactionArgument;\n}\nexport interface RedeemProceedsOptions {\n\tpackage?: string;\n\targuments: RedeemProceedsArguments | [quote: TransactionArgument];\n\tconfig?: {\n\t\tpredictPackageId?: string;\n\t};\n}\nexport function redeemProceeds(options: RedeemProceedsOptions) {\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: 'redeem_proceeds',\n\t\t\targuments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),\n\t\t});\n}\nexport interface RedeemTradingFeeArguments {\n\tquote: TransactionArgument;\n}\nexport interface RedeemTradingFeeOptions {\n\tpackage?: string;\n\targuments: RedeemTradingFeeArguments | [quote: TransactionArgument];\n\tconfig?: {\n\t\tpredictPackageId?: string;\n\t};\n}\nexport function redeemTradingFee(options: RedeemTradingFeeOptions) {\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: 'redeem_trading_fee',\n\t\t\targuments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),\n\t\t});\n}\nexport interface RedeemBuilderFeeArguments {\n\tquote: TransactionArgument;\n}\nexport interface RedeemBuilderFeeOptions {\n\tpackage?: string;\n\targuments: RedeemBuilderFeeArguments | [quote: TransactionArgument];\n\tconfig?: {\n\t\tpredictPackageId?: string;\n\t};\n}\nexport function redeemBuilderFee(options: RedeemBuilderFeeOptions) {\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: 'redeem_builder_fee',\n\t\t\targuments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),\n\t\t});\n}\nexport interface RedeemInventoryImpactRebateArguments {\n\tquote: TransactionArgument;\n}\nexport interface RedeemInventoryImpactRebateOptions {\n\tpackage?: string;\n\targuments: RedeemInventoryImpactRebateArguments | [quote: TransactionArgument];\n\tconfig?: {\n\t\tpredictPackageId?: string;\n\t};\n}\nexport function redeemInventoryImpactRebate(options: RedeemInventoryImpactRebateOptions) {\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: 'redeem_inventory_impact_rebate',\n\t\t\targuments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),\n\t\t});\n}\nexport interface QuoteCloseArguments {\n\tmarket: RawTransactionArgument<string>;\n\tpricer: TransactionArgument;\n\treceipt: TransactionArgument;\n\tcloseQuantity: RawTransactionArgument<number | bigint>;\n\tBuilderCodeId: RawTransactionArgument<string | null>;\n}\nexport interface QuoteCloseOptions {\n\tpackage?: string;\n\targuments:\n\t\t| QuoteCloseArguments\n\t\t| [\n\t\t\t\tmarket: RawTransactionArgument<string>,\n\t\t\t\tpricer: TransactionArgument,\n\t\t\t\treceipt: TransactionArgument,\n\t\t\t\tcloseQuantity: RawTransactionArgument<number | bigint>,\n\t\t\t\tBuilderCodeId: RawTransactionArgument<string | null>,\n\t\t  ];\n\tconfig?: {\n\t\tpredictPackageId?: string;\n\t};\n}\n/**\n * Quote an early sell of `close_quantity` of an open receipt's position at a\n * market-bound `Pricer` and the clock: the close a sell fill prices, without the\n * trader's floors. `proceeds` is before the order fee. No builder fee, matching\n * the sell enqueue that names no builder, whatever `_builder_code_id` names;\n * `quote_close_with_builder_fee` quotes one that does. Changes nothing. Aborts on\n * the pricer binding (`EWrongPricer`), another market's receipt (`EWrongMarket`),\n * a receipt that is not open (`EWrongStage`), `now >= expiry`\n * (`EInvalidOrderTiming`), or a close that cannot be priced (`EOrderFailsLimits`).\n * Public for the order-flow companion's sell preview and SDK reads.\n */\nexport function quoteClose(options: QuoteCloseOptions) {\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'0x1::option::Option<0x2::object::ID>',\n\t\t'0x2::clock::Clock',\n\t] satisfies (string | null)[];\n\tconst parameterNames = ['market', 'pricer', 'receipt', 'closeQuantity', 'BuilderCodeId'];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'expiry_market',\n\t\t\tfunction: 'quote_close',\n\t\t\targuments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),\n\t\t});\n}\nexport interface QuoteCloseWithBuilderFeeArguments {\n\tmarket: RawTransactionArgument<string>;\n\tconfig?: RawTransactionArgument<string>;\n\tpricer: TransactionArgument;\n\treceipt: TransactionArgument;\n\tcloseQuantity: RawTransactionArgument<number | bigint>;\n\tbuilderFeePerContract: RawTransactionArgument<number | bigint>;\n}\nexport interface QuoteCloseWithBuilderFeeOptions {\n\tpackage?: string;\n\targuments: QuoteCloseWithBuilderFeeArguments;\n\tconfig?: {\n\t\tprotocolConfig: ConfigValue;\n\t\tpredictPackageId?: string;\n\t};\n}\n/**\n * `quote_close` for a sell that names a builder: charges\n * `builder_fee_per_contract`, in FLOAT_SCALING of the $1 payout, capped at\n * `protocol_config::builder_fee_cap` and then at the redeem value left after the\n * trading fee, as the fill charges it. Public for the order-flow companion's sell\n * preview and SDK reads.\n */\nexport function quoteCloseWithBuilderFee(options: QuoteCloseWithBuilderFeeOptions) {\n\tconst packageAddress =\n\t\toptions.package ?? options.config?.predictPackageId ?? '@local-pkg/deepbook_predict';\n\tconst argumentsTypes = [null, null, null, null, 'u64', 'u64', '0x2::clock::Clock'] satisfies (\n\t\tstring | null\n\t)[];\n\tconst parameterNames = [\n\t\t'market',\n\t\t'config',\n\t\t'pricer',\n\t\t'receipt',\n\t\t'closeQuantity',\n\t\t'builderFeePerContract',\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_close_with_builder_fee',\n\t\t\targuments: normalizeMoveArguments(\n\t\t\t\t{\n\t\t\t\t\t...options.arguments,\n\t\t\t\t\tconfig: options.arguments?.config ?? options.config?.protocolConfig,\n\t\t\t\t},\n\t\t\t\targumentsTypes,\n\t\t\t\tparameterNames,\n\t\t\t),\n\t\t});\n}\nexport interface 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 * Retired by delayed execution: always aborts `EDelayedExecutionRequired`. Mints\n * are queued through the order-flow companion.\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 * Retired by delayed execution: always aborts `EDelayedExecutionRequired`. Mints\n * are queued through the order-flow companion.\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 MintExactCostArguments {\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\tMaxCost: RawTransactionArgument<number | bigint>;\n\tMinQuantity: RawTransactionArgument<number | bigint>;\n}\nexport interface MintExactCostOptions {\n\tpackage?: string;\n\targuments: MintExactCostArguments;\n\tconfig?: {\n\t\tprotocolConfig: ConfigValue;\n\t\tpredictPackageId?: string;\n\t};\n}\n/**\n * Retired by delayed execution: always aborts `EDelayedExecutionRequired`. Mints\n * are queued through the order-flow companion.\n */\nexport function mintExactCost(options: MintExactCostOptions) {\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'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'MaxCost',\n\t\t'MinQuantity',\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_cost',\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 * Retired by delayed execution: always aborts `EDelayedExecutionRequired`. Early\n * sells of queue-held positions go through the order-flow companion.\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 * Retired by delayed execution: always aborts `EDelayedExecutionRequired`. A\n * queued fill never enters the account; the order-flow companion pays its Open\n * record at settlement. Positions the immediate mints left in accounts must be\n * redeemed through an older package before the watermark bump.\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 * Retired with `redeem_settled`: always aborts `EDelayedExecutionRequired`. The\n * settled-redeem keeper allowlist on `ProtocolConfig` no longer gates any call.\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 *\n * Settlement reads nothing from the order-flow queue. Every admission's deadline\n * is at least `constants::deadline_expiry_margin_ms!()` before expiry, so at\n * expiry a waiting order can only be released, and the settled liability already\n * covers every queue-held position, which lives in the payout tree. The companion\n * drains and pays its queue afterwards.\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}\nexport interface AdmitMintArguments<W extends BcsType<any>> {\n\tW: RawTransactionArgument<W>;\n\tmarket: RawTransactionArgument<string>;\n\tconfig?: RawTransactionArgument<string>;\n\taccount: TransactionArgument;\n\tpropbookRegistry?: RawTransactionArgument<string>;\n\tpyth: RawTransactionArgument<string>;\n\tbsValues: RawTransactionArgument<string>;\n\tbsSvi: RawTransactionArgument<string>;\n\tkind: RawTransactionArgument<number>;\n\tlowerTick: RawTransactionArgument<number | bigint>;\n\thigherTick: RawTransactionArgument<number | bigint>;\n\tquantity: RawTransactionArgument<number | bigint>;\n\tmaxPremium: RawTransactionArgument<number | bigint>;\n\tminQuantity: RawTransactionArgument<number | bigint>;\n\tmaxProbability: RawTransactionArgument<number | bigint>;\n\tbudget: RawTransactionArgument<number | bigint>;\n\torderFee: RawTransactionArgument<number | bigint>;\n\tsviMaxAgeMs: RawTransactionArgument<number | bigint>;\n\tchannel: RawTransactionArgument<number>;\n\ttauMs: RawTransactionArgument<number | bigint>;\n\tdeadlineMs: RawTransactionArgument<number | bigint>;\n}\nexport interface AdmitMintOptions<W extends BcsType<any>> {\n\tpackage?: string;\n\targuments: AdmitMintArguments<W>;\n\tconfig?: {\n\t\tprotocolConfig: ConfigValue;\n\t\toracleRegistry: ConfigValue;\n\t\tpredictPackageId?: string;\n\t};\n\ttypeArguments: [string];\n}\n/**\n * Admit one queued mint for the order-flow companion and return its receipt.\n *\n * `kind` is a `constants` mint kind. The companion has already taken\n * `budget +  order_fee` from the account and escrows it. `budget` caps the fill's\n * all-in cost; the companion sets it to `min(max_cost, balance - order_fee)`, and\n * to at most `quantity` for an exact-quantity mint. The order prices at a Pyth\n * price on Lazer channel `channel`, generated at or after `tau_ms`, and must fill\n * before `deadline_ms`.\n *\n * Aborts unless `W` is allowlisted, the version and cutover gates pass, trading\n * and this market's mints are unpaused, and the snapshot stage is closed. The\n * timing must fit (`EInvalidOrderTiming`): `channel` a supported fixed-rate\n * channel (`lazer_price::channel_fixed_rate_*`), `tau_ms` on its grid, at most one\n * of its ticks before now, and before `deadline_ms`, τ before the no-trade window,\n * and the deadline at least `constants::deadline_expiry_margin_ms!()` before\n * expiry. Then `svi_max_age_ms` must be within `constants::max_svi_max_age_ms!()`\n * and `kind` a mint kind (`EInvalidOrderTerms`), the volatility snapshot must\n * load, `budget` must be positive (`EMintCostCapRequired`), the order must pass\n * its own limits at the clock without subsidy (`EOrderFailsLimits`), and its cash\n * need must fit the market's spare cash (`EInsufficientMarketCash`). Admission\n * then pins both boundary nodes, creating them under the node cap, and adds the\n * cash need to the ledger.\n */\nexport function admitMint<W extends BcsType<any>>(options: AdmitMintOptions<W>) {\n\tconst packageAddress =\n\t\toptions.package ?? options.config?.predictPackageId ?? '@local-pkg/deepbook_predict';\n\tconst argumentsTypes = [\n\t\t`${options.typeArguments[0]}`,\n\t\tnull,\n\t\tnull,\n\t\tnull,\n\t\tnull,\n\t\tnull,\n\t\tnull,\n\t\tnull,\n\t\t'u8',\n\t\t'u64',\n\t\t'u64',\n\t\t'u64',\n\t\t'u64',\n\t\t'u64',\n\t\t'u64',\n\t\t'u64',\n\t\t'u64',\n\t\t'u64',\n\t\t'u8',\n\t\t'u64',\n\t\t'u64',\n\t\t'0x2::clock::Clock',\n\t] satisfies (string | null)[];\n\tconst parameterNames = [\n\t\t'W',\n\t\t'market',\n\t\t'config',\n\t\t'account',\n\t\t'propbookRegistry',\n\t\t'pyth',\n\t\t'bsValues',\n\t\t'bsSvi',\n\t\t'kind',\n\t\t'lowerTick',\n\t\t'higherTick',\n\t\t'quantity',\n\t\t'maxPremium',\n\t\t'minQuantity',\n\t\t'maxProbability',\n\t\t'budget',\n\t\t'orderFee',\n\t\t'sviMaxAgeMs',\n\t\t'channel',\n\t\t'tauMs',\n\t\t'deadlineMs',\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: 'admit_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\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\ttypeArguments: options.typeArguments,\n\t\t});\n}\nexport interface AdmitMintWithBuilderArguments<W extends BcsType<any>> {\n\tW: RawTransactionArgument<W>;\n\tmarket: RawTransactionArgument<string>;\n\tconfig?: RawTransactionArgument<string>;\n\taccount: TransactionArgument;\n\tpropbookRegistry?: RawTransactionArgument<string>;\n\tpyth: RawTransactionArgument<string>;\n\tbsValues: RawTransactionArgument<string>;\n\tbsSvi: RawTransactionArgument<string>;\n\tbuilder: TransactionArgument;\n\tkind: RawTransactionArgument<number>;\n\tlowerTick: RawTransactionArgument<number | bigint>;\n\thigherTick: RawTransactionArgument<number | bigint>;\n\tquantity: RawTransactionArgument<number | bigint>;\n\tmaxPremium: RawTransactionArgument<number | bigint>;\n\tminQuantity: RawTransactionArgument<number | bigint>;\n\tmaxProbability: RawTransactionArgument<number | bigint>;\n\tbudget: RawTransactionArgument<number | bigint>;\n\torderFee: RawTransactionArgument<number | bigint>;\n\tsviMaxAgeMs: RawTransactionArgument<number | bigint>;\n\tchannel: RawTransactionArgument<number>;\n\ttauMs: RawTransactionArgument<number | bigint>;\n\tdeadlineMs: RawTransactionArgument<number | bigint>;\n}\nexport interface AdmitMintWithBuilderOptions<W extends BcsType<any>> {\n\tpackage?: string;\n\targuments: AdmitMintWithBuilderArguments<W>;\n\tconfig?: {\n\t\tprotocolConfig: ConfigValue;\n\t\toracleRegistry: ConfigValue;\n\t\tpredictPackageId?: string;\n\t};\n\ttypeArguments: [string];\n}\n/**\n * `admit_mint` for an order that may name a builder. `builder` is the code the\n * trade pays and its fee per contract, or none, which admits exactly as\n * `admit_mint` does. Admission caps the fee at `protocol_config::builder_fee_cap`,\n * records the code and the capped fee in the receipt, and prices the order's own\n * limits at the clock with that fee. The fill charges the recorded fee, so a later\n * cap change does not reach the order. Aborts as `admit_mint` does, and, for an\n * order that names a builder, `EBuilderFeeCutoverNotReached` until the version\n * watermark retires every version whose fill charges the legacy fee instead\n * (`constants::builder_fee_version!()`).\n */\nexport function admitMintWithBuilder<W extends BcsType<any>>(\n\toptions: AdmitMintWithBuilderOptions<W>,\n) {\n\tconst packageAddress =\n\t\toptions.package ?? options.config?.predictPackageId ?? '@local-pkg/deepbook_predict';\n\tconst argumentsTypes = [\n\t\t`${options.typeArguments[0]}`,\n\t\tnull,\n\t\tnull,\n\t\tnull,\n\t\tnull,\n\t\tnull,\n\t\tnull,\n\t\tnull,\n\t\tnull,\n\t\t'u8',\n\t\t'u64',\n\t\t'u64',\n\t\t'u64',\n\t\t'u64',\n\t\t'u64',\n\t\t'u64',\n\t\t'u64',\n\t\t'u64',\n\t\t'u64',\n\t\t'u8',\n\t\t'u64',\n\t\t'u64',\n\t\t'0x2::clock::Clock',\n\t] satisfies (string | null)[];\n\tconst parameterNames = [\n\t\t'W',\n\t\t'market',\n\t\t'config',\n\t\t'account',\n\t\t'propbookRegistry',\n\t\t'pyth',\n\t\t'bsValues',\n\t\t'bsSvi',\n\t\t'builder',\n\t\t'kind',\n\t\t'lowerTick',\n\t\t'higherTick',\n\t\t'quantity',\n\t\t'maxPremium',\n\t\t'minQuantity',\n\t\t'maxProbability',\n\t\t'budget',\n\t\t'orderFee',\n\t\t'sviMaxAgeMs',\n\t\t'channel',\n\t\t'tauMs',\n\t\t'deadlineMs',\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: 'admit_mint_with_builder',\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\ttypeArguments: options.typeArguments,\n\t\t});\n}\nexport interface AdmitSellArguments<W extends BcsType<any>> {\n\tW: RawTransactionArgument<W>;\n\tmarket: RawTransactionArgument<string>;\n\tconfig?: RawTransactionArgument<string>;\n\taccount: TransactionArgument;\n\treceipt: TransactionArgument;\n\tpropbookRegistry?: RawTransactionArgument<string>;\n\tpyth: RawTransactionArgument<string>;\n\tbsValues: RawTransactionArgument<string>;\n\tbsSvi: RawTransactionArgument<string>;\n\tcloseQuantity: RawTransactionArgument<number | bigint>;\n\tminProbability: RawTransactionArgument<number | bigint>;\n\tminProceeds: RawTransactionArgument<number | bigint>;\n\torderFee: RawTransactionArgument<number | bigint>;\n\tsviMaxAgeMs: RawTransactionArgument<number | bigint>;\n\tchannel: RawTransactionArgument<number>;\n\ttauMs: RawTransactionArgument<number | bigint>;\n\tdeadlineMs: RawTransactionArgument<number | bigint>;\n}\nexport interface AdmitSellOptions<W extends BcsType<any>> {\n\tpackage?: string;\n\targuments: AdmitSellArguments<W>;\n\tconfig?: {\n\t\tprotocolConfig: ConfigValue;\n\t\toracleRegistry: ConfigValue;\n\t\tpredictPackageId?: string;\n\t};\n\ttypeArguments: [string];\n}\n/**\n * Admit an early sell of `close_quantity` of an open receipt's position: the\n * receipt moves to the sell stage in place, with the sell's request, the account's\n * current owner and no builder code, a fresh volatility snapshot, τ, the deadline,\n * and no price. The companion escrows `order_fee` and owns the minimum-sell\n * checks.\n *\n * Open during the trading pause and a market mint pause. Aborts unless `W` is\n * allowlisted, the version, cutover, and snapshot-stage gates and `admit_mint`'s\n * timing and SVI-age checks pass, the receipt is this market's (`EWrongMarket`),\n * open (`EWrongStage`), and `account`'s (`ENotRecordOwner`), the volatility\n * snapshot loads, and the close passes its own floors at the clock\n * (`EOrderFailsLimits`). Then adds the sell's cash need,\n * `ceil(close_quantity * (1 - backing_buffer_lambda)) + 1`, to the ledger: a close\n * lowers payout liability by at least `lambda * close_quantity` and pays at most\n * `close_quantity`. There is no spare-cash check. The keeper funds the market\n * before τ, and the fill refunds a sell the market cannot cover.\n */\nexport function admitSell<W extends BcsType<any>>(options: AdmitSellOptions<W>) {\n\tconst packageAddress =\n\t\toptions.package ?? options.config?.predictPackageId ?? '@local-pkg/deepbook_predict';\n\tconst argumentsTypes = [\n\t\t`${options.typeArguments[0]}`,\n\t\tnull,\n\t\tnull,\n\t\tnull,\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'u8',\n\t\t'u64',\n\t\t'u64',\n\t\t'0x2::clock::Clock',\n\t] satisfies (string | null)[];\n\tconst parameterNames = [\n\t\t'W',\n\t\t'market',\n\t\t'config',\n\t\t'account',\n\t\t'receipt',\n\t\t'propbookRegistry',\n\t\t'pyth',\n\t\t'bsValues',\n\t\t'bsSvi',\n\t\t'closeQuantity',\n\t\t'minProbability',\n\t\t'minProceeds',\n\t\t'orderFee',\n\t\t'sviMaxAgeMs',\n\t\t'channel',\n\t\t'tauMs',\n\t\t'deadlineMs',\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: 'admit_sell',\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\ttypeArguments: options.typeArguments,\n\t\t});\n}\nexport interface AdmitSellWithBuilderArguments<W extends BcsType<any>> {\n\tW: RawTransactionArgument<W>;\n\tmarket: RawTransactionArgument<string>;\n\tconfig?: RawTransactionArgument<string>;\n\taccount: TransactionArgument;\n\treceipt: TransactionArgument;\n\tpropbookRegistry?: RawTransactionArgument<string>;\n\tpyth: RawTransactionArgument<string>;\n\tbsValues: RawTransactionArgument<string>;\n\tbsSvi: RawTransactionArgument<string>;\n\tbuilder: TransactionArgument;\n\tcloseQuantity: RawTransactionArgument<number | bigint>;\n\tminProbability: RawTransactionArgument<number | bigint>;\n\tminProceeds: RawTransactionArgument<number | bigint>;\n\torderFee: RawTransactionArgument<number | bigint>;\n\tsviMaxAgeMs: RawTransactionArgument<number | bigint>;\n\tchannel: RawTransactionArgument<number>;\n\ttauMs: RawTransactionArgument<number | bigint>;\n\tdeadlineMs: RawTransactionArgument<number | bigint>;\n}\nexport interface AdmitSellWithBuilderOptions<W extends BcsType<any>> {\n\tpackage?: string;\n\targuments: AdmitSellWithBuilderArguments<W>;\n\tconfig?: {\n\t\tprotocolConfig: ConfigValue;\n\t\toracleRegistry: ConfigValue;\n\t\tpredictPackageId?: string;\n\t};\n\ttypeArguments: [string];\n}\n/**\n * `admit_sell` for a sell that may name a builder. `builder` is the code the sell\n * pays and its fee per contract, or none, which admits exactly as `admit_sell`\n * does. Admission caps the fee at `protocol_config::builder_fee_cap`, records the\n * code in the receipt in place of the mint's along with the capped fee, and prices\n * the close's floors at the clock with that fee. The fill charges the recorded\n * fee. Aborts as `admit_sell` does, and, for a sell that names a builder,\n * `EBuilderFeeCutoverNotReached` until the version watermark reaches\n * `constants::builder_fee_version!()`.\n */\nexport function admitSellWithBuilder<W extends BcsType<any>>(\n\toptions: AdmitSellWithBuilderOptions<W>,\n) {\n\tconst packageAddress =\n\t\toptions.package ?? options.config?.predictPackageId ?? '@local-pkg/deepbook_predict';\n\tconst argumentsTypes = [\n\t\t`${options.typeArguments[0]}`,\n\t\tnull,\n\t\tnull,\n\t\tnull,\n\t\tnull,\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'u8',\n\t\t'u64',\n\t\t'u64',\n\t\t'0x2::clock::Clock',\n\t] satisfies (string | null)[];\n\tconst parameterNames = [\n\t\t'W',\n\t\t'market',\n\t\t'config',\n\t\t'account',\n\t\t'receipt',\n\t\t'propbookRegistry',\n\t\t'pyth',\n\t\t'bsValues',\n\t\t'bsSvi',\n\t\t'builder',\n\t\t'closeQuantity',\n\t\t'minProbability',\n\t\t'minProceeds',\n\t\t'orderFee',\n\t\t'sviMaxAgeMs',\n\t\t'channel',\n\t\t'tauMs',\n\t\t'deadlineMs',\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: 'admit_sell_with_builder',\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\ttypeArguments: options.typeArguments,\n\t\t});\n}\nexport interface CommitArguments<W extends BcsType<any>> {\n\tW: RawTransactionArgument<W>;\n\tmarket: RawTransactionArgument<string>;\n\tconfig?: RawTransactionArgument<string>;\n\treceipt: TransactionArgument;\n\tprice: TransactionArgument;\n}\nexport interface CommitOptions<W extends BcsType<any>> {\n\tpackage?: string;\n\targuments: CommitArguments<W>;\n\tconfig?: {\n\t\tprotocolConfig: ConfigValue;\n\t\tpredictPackageId?: string;\n\t};\n\ttypeArguments: [string];\n}\n/**\n * Commit the Pyth price an admitted order fills at: a `LazerPrice`, which only the\n * `deepbook_predict_math` library builds, from a Pyth-verified Lazer update.\n * Stores the spot, the envelope time (the tick the fill prices at), and the feed's\n * generation time. For a mint it also reserves the fee subsidy,\n * `min(subsidy_bound * fee_incentive_subsidy_rate, incentives left)`, records the\n * rate and amount, and returns the reservation for the companion to escrow with\n * the order. A sell returns a zero balance.\n *\n * The price must be the receipt's: its Pyth feed and channel, an envelope at\n * exactly τ or one tick of that channel later (the backup tick), a generation time\n * between τ and the envelope, an envelope at or before now, and a pricing-safe\n * spot (`EWrongPrice`). Aborts unless `W` is allowlisted, the version gate passes,\n * the receipt is this market's (`EWrongMarket`), admitted with no price yet\n * (`EWrongStage`), and before its deadline (`EInvalidOrderTiming`).\n */\nexport function commit<W extends BcsType<any>>(options: CommitOptions<W>) {\n\tconst packageAddress =\n\t\toptions.package ?? options.config?.predictPackageId ?? '@local-pkg/deepbook_predict';\n\tconst argumentsTypes = [\n\t\t`${options.typeArguments[0]}`,\n\t\tnull,\n\t\tnull,\n\t\tnull,\n\t\tnull,\n\t\t'0x2::clock::Clock',\n\t] satisfies (string | null)[];\n\tconst parameterNames = ['W', 'market', 'config', 'receipt', 'price'];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'expiry_market',\n\t\t\tfunction: 'commit',\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\ttypeArguments: options.typeArguments,\n\t\t});\n}\nexport interface TryFillArguments<W extends BcsType<any>> {\n\tW: RawTransactionArgument<W>;\n\tmarket: RawTransactionArgument<string>;\n\tconfig?: RawTransactionArgument<string>;\n\treceipt: TransactionArgument;\n\tescrow: TransactionArgument;\n}\nexport interface TryFillOptions<W extends BcsType<any>> {\n\tpackage?: string;\n\targuments: TryFillArguments<W>;\n\tconfig?: {\n\t\tprotocolConfig: ConfigValue;\n\t\tpredictPackageId?: string;\n\t};\n\ttypeArguments: [string];\n}\n/**\n * Fill or refund one committed order at its committed price and consume or return\n * its receipt. `escrow` is the order's escrowed budget, order fee, and reserved\n * subsidy. Returns\n * `(reason, receipt to keep, escrow left over,  quantity, amount, trading_fee, builder_fee, referral_fee, subsidy_used,  inventory_impact)`.\n * The amounts are zero on a refund. For a mint `amount` is the all-in cost and\n * `inventory_impact` the charge; for a sell `amount` is the proceeds and\n * `inventory_impact` the rebate.\n *\n * Aborts only on a companion bookkeeping error: `W` not allowlisted, the version,\n * freeze, or snapshot-stage gate, another market's receipt (`EWrongMarket`), a\n * receipt not admitted or without a price (`EWrongStage`), or `escrow` below\n * `budget + order_fee + subsidy_reserved` (`EEscrowMismatch`). Every market\n * condition returns a refund reason instead, `0` for a fill: 5 at or past the\n * deadline, which also covers expiry and settlement; 9 when USDC sent to the\n * receipt's receive address would abort the transaction (`denied`: the address is\n * on USDC's deny list for the current epoch, or USDC is globally paused), so\n * nothing is sent there; 2 when no `Pricer` exists at the tick; then the fill's\n * own 1 (the order's limits), 2 (admission), 4 (a pinned node is missing, a\n * backstop), and 8 (the market's cash after the fill would not cover its required\n * cash).\n *\n * A mint fill pays the premium, the trading fee net of the referral share, the\n * used subsidy, the order fee, and the inventory-impact charge into market cash,\n * sends the builder and referral fees, returns unused subsidy to the incentive\n * balance, emits `OrderMinted` with no congestion penalty, and returns the receipt\n * open. A sell fill pays the proceeds (redeem value plus inventory-impact rebate,\n * less the trading and builder fees) to the receipt's receive address, keeps the\n * trading and order fees in market cash, emits `LiveOrderRedeemed`, and returns\n * the receipt open with the replacement position of a partial close, or consumes\n * it on a full close. A builder or referral fee whose recipient is denied stays in\n * market cash instead, and the events still report it as charged. A refund keeps\n * the order fee in market cash for reasons 1 and 2, returns the reserved subsidy\n * to the incentive balance, prunes a mint's emptied unpinned nodes, returns the\n * rest of the escrow, and returns a sell's receipt open or consumes a mint's.\n * Every outcome takes the order out of the ledger.\n */\nexport function tryFill<W extends BcsType<any>>(options: TryFillOptions<W>) {\n\tconst packageAddress =\n\t\toptions.package ?? options.config?.predictPackageId ?? '@local-pkg/deepbook_predict';\n\tconst argumentsTypes = [\n\t\t`${options.typeArguments[0]}`,\n\t\tnull,\n\t\tnull,\n\t\tnull,\n\t\tnull,\n\t\t'0x2::deny_list::DenyList',\n\t\t'0x2::clock::Clock',\n\t] satisfies (string | null)[];\n\tconst parameterNames = ['W', 'market', 'config', 'receipt', 'escrow'];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'expiry_market',\n\t\t\tfunction: 'try_fill',\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\ttypeArguments: options.typeArguments,\n\t\t});\n}\nexport interface ReleaseArguments {\n\tmarket: RawTransactionArgument<string>;\n\tconfig?: RawTransactionArgument<string>;\n\treceipt: TransactionArgument;\n\tescrow: TransactionArgument;\n\treason: RawTransactionArgument<number>;\n\tprune: RawTransactionArgument<boolean>;\n}\nexport interface ReleaseOptions {\n\tpackage?: string;\n\targuments: ReleaseArguments;\n\tconfig?: {\n\t\tprotocolConfig: ConfigValue;\n\t\tpredictPackageId?: string;\n\t};\n}\n/**\n * Take an admitted order out without filling it: the companion's deadline, admin,\n * and settlement-drain refunds release their receipt here. `escrow` is the order's\n * escrowed budget, order fee, and reserved subsidy, and `reason` the refund's\n * `constants::fill_reason_*` code. The order fee follows `try_fill`'s refund rule:\n * reasons 1 and 2 keep it in market cash, and every other reason leaves it in the\n * escrow returned. Returns the reservation to the incentive balance, subtracts the\n * exact cash need from the ledger, and unpins a mint's boundary ticks, pruning\n * emptied, unpinned, unretained nodes only when `prune` and the market is\n * unsettled. Returns a sell's receipt open, still holding its position, or `none`\n * for a mint's, which it consumes, and the rest of the escrow.\n *\n * Needs no allowlisting and checks only the version floor, so the drain works\n * while the protocol is frozen and after the witness is removed. Keeping an order\n * fee moves market cash, so like a fill it aborts inside the keeper's snapshot\n * stage (`ESnapshotInProgress`). Aborts on another market's receipt\n * (`EWrongMarket`), a receipt not admitted (`EWrongStage`), or `escrow` below\n * `budget + order_fee + subsidy_reserved` (`EEscrowMismatch`).\n */\nexport function release(options: ReleaseOptions) {\n\tconst packageAddress =\n\t\toptions.package ?? options.config?.predictPackageId ?? '@local-pkg/deepbook_predict';\n\tconst argumentsTypes = [null, null, null, null, 'u8', 'bool'] satisfies (string | null)[];\n\tconst parameterNames = ['market', 'config', 'receipt', 'escrow', 'reason', 'prune'];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'expiry_market',\n\t\t\tfunction: 'release',\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 TryPaySettledArguments {\n\tmarket: RawTransactionArgument<string>;\n\tconfig?: RawTransactionArgument<string>;\n\treceipt: TransactionArgument;\n}\nexport interface TryPaySettledOptions {\n\tpackage?: string;\n\targuments: TryPaySettledArguments;\n\tconfig?: {\n\t\tprotocolConfig: ConfigValue;\n\t\tpredictPackageId?: string;\n\t};\n}\n/**\n * Pay an open receipt's settled payout, zero for a loser, to its receive address\n * and consume the receipt. Returns the payout and `none`. When the payout is above\n * market cash or above the settled liability left, or a nonzero payout's receive\n * address is denied (`try_fill`'s reason 9: on USDC's deny list for the current\n * epoch, or USDC globally paused), changes nothing and returns that payout with\n * the receipt, so the companion's payout walk moves on and a later call pays it\n * once the cause clears. Needs no allowlisting and checks only the version floor.\n * Aborts on another market's receipt (`EWrongMarket`), a receipt that is not open\n * (`EWrongStage`), or an unsettled market (`EMarketNotSettled`).\n */\nexport function tryPaySettled(options: TryPaySettledOptions) {\n\tconst packageAddress =\n\t\toptions.package ?? options.config?.predictPackageId ?? '@local-pkg/deepbook_predict';\n\tconst argumentsTypes = [null, null, null, '0x2::deny_list::DenyList'] satisfies (string | null)[];\n\tconst parameterNames = ['market', 'config', 'receipt'];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'expiry_market',\n\t\t\tfunction: 'try_pay_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}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAuDA,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;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