{"version":3,"file":"plp.mjs","names":["vec_map.VecMap","pricing.FrozenPricer","balance.Balance","lp_book.LpBook","pool_accounting.Ledger"],"sources":["../../../src/contracts/deepbook_predict/plp.ts"],"sourcesContent":["/**************************************************************\n * THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *\n **************************************************************/\n\n/**\n * PLP token and pool vault.\n *\n * PoolVault owns the PLP treasury cap, idle USDC, the protocol reserve,\n * sponsor-funded fee incentives, per-expiry cash accounting, and the queued LP\n * supply/withdraw requests. It coordinates the full-pool NAV valuation — an atomic\n * oracle snapshot followed by resumable per-market valuation transactions, with\n * trading live throughout (see `PoolValuation`) — and the unified per-market cash\n * flow (initial funding, live rebalance/sweep, and settled-market sweep with\n * terminal profit materialization). LPs queue supply/withdraw requests routed\n * through a loaded Account; each flush (`finish_flush`) drains the requests that\n * predate its snapshot at the frozen pool NAV, minting/burning PLP and delivering\n * fills to each account via the balance accumulator.\n */\n\nimport {\n\tMoveStruct,\n\tnormalizeMoveArguments,\n\ttype RawTransactionArgument,\n\ttype ConfigValue,\n} from '../utils/index.js';\nimport { bcs } from '@mysten/sui/bcs';\nimport { U64 } from '../../bcs/integers.js';\nimport { type Transaction, type TransactionArgument } from '@mysten/sui/transactions';\nimport * as vec_map from './deps/sui/vec_map.js';\nimport * as pricing from './pricing.js';\nimport * as balance from './deps/sui/balance.js';\nimport * as lp_book from './lp_book.js';\nimport * as pool_accounting from './pool_accounting.js';\nconst $moduleName = '@local-pkg/deepbook_predict::plp';\nexport const PLP = new MoveStruct({\n\tname: `${$moduleName}::PLP`,\n\tfields: {\n\t\tdummy_field: bcs.bool(),\n\t},\n});\nexport const PoolValuationProof = new MoveStruct({\n\tname: `${$moduleName}::PoolValuationProof`,\n\tfields: {\n\t\tdummy_field: bcs.bool(),\n\t},\n});\nexport const SnapshotStage = new MoveStruct({\n\tname: `${$moduleName}::SnapshotStage`,\n\tfields: {\n\t\tdummy_field: bcs.bool(),\n\t},\n});\nexport const PoolValuation = new MoveStruct({\n\tname: `${$moduleName}::PoolValuation`,\n\tfields: {\n\t\t/** Active expiry markets snapshotted at start; every one must be valued. */\n\t\texpected_expiry_markets: bcs.vector(bcs.Address),\n\t\t/** Markets valued so far this flush; folded against `expected` at finish. */\n\t\tvalued_expiry_markets: bcs.vector(bcs.Address),\n\t\t/** Running Σ of each valued market's snapshot NAV (settled markets contribute 0). */\n\t\ttotal_nav: U64,\n\t\t/**\n\t\t * Oracle state frozen during the snapshot stage, one entry per expected market.\n\t\t * Keyed by market id so a `Pricer` can never be applied to the wrong market.\n\t\t * `none` marks a market that was already settled at snapshot time and therefore\n\t\t * contributes 0. This map is what makes the valuation stage deterministic: it\n\t\t * decides both the mark AND the sweep-vs-value branch, so no later transaction's\n\t\t * clock or oracle state can change a market's contribution.\n\t\t */\n\t\tfrozen_pricers: vec_map.VecMap(bcs.Address, bcs.option(pricing.FrozenPricer)),\n\t\t/**\n\t\t * Set by `seal_valuation_snapshot`; no market may be valued before it. Nothing may\n\t\t * be snapshotted after it because sealing consumes the `SnapshotStage`.\n\t\t */\n\t\tsealed: bcs.bool(),\n\t\t/** Clock time the flush was started, for the stuck-flush deadline. */\n\t\tstarted_at_ms: U64,\n\t\t/**\n\t\t * Drain budgets committed at start (the cap owner's choice), bounding how many\n\t\t * requests each queue processes at finish. `finish_flush` takes no budget, so the\n\t\t * flush operator who completes it drains at exactly these.\n\t\t */\n\t\tsupply_budget: bcs.option(U64),\n\t\twithdraw_budget: bcs.option(U64),\n\t\t/**\n\t\t * Each LP queue's `next_index` at the snapshot instant: the drain fills only\n\t\t * requests indexed strictly below these, so nobody can watch the frozen mark form\n\t\t * and then submit against a price they already know is stale.\n\t\t */\n\t\tsupply_request_cutoff: U64,\n\t\twithdraw_request_cutoff: U64,\n\t\t/**\n\t\t * Vault-side figures captured by `seal_valuation_snapshot`. With every market's\n\t\t * cash frozen in its stamp and these frozen here, the mark is a pure function of\n\t\t * the snapshot instant: no in-window cash move — maintenance, settled sweep,\n\t\t * market funding, reserve realization — can reach it. Settled members are swept\n\t\t * during the snapshot stage, so their recoverable cash sits inside\n\t\t * `frozen_idle_balance`.\n\t\t */\n\t\tfrozen_idle_balance: U64,\n\t\tfrozen_profit_basis_credits: U64,\n\t\tfrozen_profit_basis_debits: U64,\n\t\tfrozen_pending_protocol_profit: U64,\n\t},\n});\nexport const PoolVault = new MoveStruct({\n\tname: `${$moduleName}::PoolVault`,\n\tfields: {\n\t\tid: bcs.Address,\n\t\t/**\n\t\t * Protocol-owned USDC excluded from PLP redemption. No package entrypoint\n\t\t * withdraws this balance.\n\t\t */\n\t\tprotocol_reserve_balance: balance.Balance,\n\t\t/**\n\t\t * Sponsor-funded USDC reserved for taker fee sponsorship, excluded from PLP NAV.\n\t\t * Admin may reclaim it through `withdraw_fee_incentives`.\n\t\t */\n\t\tfee_incentive_reserve: balance.Balance,\n\t\t/** PLP share issuance plus queued supply/withdraw escrow. */\n\t\tlp: lp_book.LpBook,\n\t\t/** Idle USDC custody, registered expiries, and per-expiry cash-flow rows. */\n\t\texpiry_accounting: pool_accounting.Ledger,\n\t\t/**\n\t\t * In-flight full-pool valuation, held across transactions. `Some` exactly while\n\t\t * the `ProtocolConfig` valuation flag is engaged.\n\t\t */\n\t\tvaluation: bcs.option(PoolValuation),\n\t},\n});\nexport interface IdArguments {\n\tvault?: RawTransactionArgument<string>;\n}\nexport interface IdOptions {\n\tpackage?: string;\n\targuments?: IdArguments;\n\tconfig?: {\n\t\tpoolVault: ConfigValue;\n\t\tpredictPackageId?: string;\n\t};\n}\n/** Return the pool vault 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 = ['vault'];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'plp',\n\t\t\tfunction: 'id',\n\t\t\targuments: normalizeMoveArguments(\n\t\t\t\t{\n\t\t\t\t\t...options.arguments,\n\t\t\t\t\tvault: options.arguments?.vault ?? options.config?.poolVault,\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 IdleBalanceArguments {\n\tvault?: RawTransactionArgument<string>;\n}\nexport interface IdleBalanceOptions {\n\tpackage?: string;\n\targuments?: IdleBalanceArguments;\n\tconfig?: {\n\t\tpoolVault: ConfigValue;\n\t\tpredictPackageId?: string;\n\t};\n}\n/** Return idle USDC for SDK and devInspect state reads. */\nexport function idleBalance(options: IdleBalanceOptions) {\n\tconst packageAddress =\n\t\toptions.package ?? options.config?.predictPackageId ?? '@local-pkg/deepbook_predict';\n\tconst argumentsTypes = [null] satisfies (string | null)[];\n\tconst parameterNames = ['vault'];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'plp',\n\t\t\tfunction: 'idle_balance',\n\t\t\targuments: normalizeMoveArguments(\n\t\t\t\t{\n\t\t\t\t\t...options.arguments,\n\t\t\t\t\tvault: options.arguments?.vault ?? options.config?.poolVault,\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 ProtocolReserveBalanceArguments {\n\tvault?: RawTransactionArgument<string>;\n}\nexport interface ProtocolReserveBalanceOptions {\n\tpackage?: string;\n\targuments?: ProtocolReserveBalanceArguments;\n\tconfig?: {\n\t\tpoolVault: ConfigValue;\n\t\tpredictPackageId?: string;\n\t};\n}\n/** Return protocol-owned USDC for SDK and devInspect state reads. */\nexport function protocolReserveBalance(options: ProtocolReserveBalanceOptions) {\n\tconst packageAddress =\n\t\toptions.package ?? options.config?.predictPackageId ?? '@local-pkg/deepbook_predict';\n\tconst argumentsTypes = [null] satisfies (string | null)[];\n\tconst parameterNames = ['vault'];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'plp',\n\t\t\tfunction: 'protocol_reserve_balance',\n\t\t\targuments: normalizeMoveArguments(\n\t\t\t\t{\n\t\t\t\t\t...options.arguments,\n\t\t\t\t\tvault: options.arguments?.vault ?? options.config?.poolVault,\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 FeeIncentiveReserveArguments {\n\tvault?: RawTransactionArgument<string>;\n}\nexport interface FeeIncentiveReserveOptions {\n\tpackage?: string;\n\targuments?: FeeIncentiveReserveArguments;\n\tconfig?: {\n\t\tpoolVault: ConfigValue;\n\t\tpredictPackageId?: string;\n\t};\n}\n/** Return sponsor-funded fee reserves for SDK and devInspect state reads. */\nexport function feeIncentiveReserve(options: FeeIncentiveReserveOptions) {\n\tconst packageAddress =\n\t\toptions.package ?? options.config?.predictPackageId ?? '@local-pkg/deepbook_predict';\n\tconst argumentsTypes = [null] satisfies (string | null)[];\n\tconst parameterNames = ['vault'];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'plp',\n\t\t\tfunction: 'fee_incentive_reserve',\n\t\t\targuments: normalizeMoveArguments(\n\t\t\t\t{\n\t\t\t\t\t...options.arguments,\n\t\t\t\t\tvault: options.arguments?.vault ?? options.config?.poolVault,\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 PlpTotalSupplyArguments {\n\tvault?: RawTransactionArgument<string>;\n}\nexport interface PlpTotalSupplyOptions {\n\tpackage?: string;\n\targuments?: PlpTotalSupplyArguments;\n\tconfig?: {\n\t\tpoolVault: ConfigValue;\n\t\tpredictPackageId?: string;\n\t};\n}\n/** Return total PLP supply for SDK and devInspect state reads. */\nexport function plpTotalSupply(options: PlpTotalSupplyOptions) {\n\tconst packageAddress =\n\t\toptions.package ?? options.config?.predictPackageId ?? '@local-pkg/deepbook_predict';\n\tconst argumentsTypes = [null] satisfies (string | null)[];\n\tconst parameterNames = ['vault'];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'plp',\n\t\t\tfunction: 'plp_total_supply',\n\t\t\targuments: normalizeMoveArguments(\n\t\t\t\t{\n\t\t\t\t\t...options.arguments,\n\t\t\t\t\tvault: options.arguments?.vault ?? options.config?.poolVault,\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 SupplyRequestsPendingArguments {\n\tvault?: RawTransactionArgument<string>;\n}\nexport interface SupplyRequestsPendingOptions {\n\tpackage?: string;\n\targuments?: SupplyRequestsPendingArguments;\n\tconfig?: {\n\t\tpoolVault: ConfigValue;\n\t\tpredictPackageId?: string;\n\t};\n}\n/** Return pending LP supply count for SDK and devInspect queue reads. */\nexport function supplyRequestsPending(options: SupplyRequestsPendingOptions) {\n\tconst packageAddress =\n\t\toptions.package ?? options.config?.predictPackageId ?? '@local-pkg/deepbook_predict';\n\tconst argumentsTypes = [null] satisfies (string | null)[];\n\tconst parameterNames = ['vault'];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'plp',\n\t\t\tfunction: 'supply_requests_pending',\n\t\t\targuments: normalizeMoveArguments(\n\t\t\t\t{\n\t\t\t\t\t...options.arguments,\n\t\t\t\t\tvault: options.arguments?.vault ?? options.config?.poolVault,\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 WithdrawRequestsPendingArguments {\n\tvault?: RawTransactionArgument<string>;\n}\nexport interface WithdrawRequestsPendingOptions {\n\tpackage?: string;\n\targuments?: WithdrawRequestsPendingArguments;\n\tconfig?: {\n\t\tpoolVault: ConfigValue;\n\t\tpredictPackageId?: string;\n\t};\n}\n/** Return pending LP withdrawal count for SDK and devInspect queue reads. */\nexport function withdrawRequestsPending(options: WithdrawRequestsPendingOptions) {\n\tconst packageAddress =\n\t\toptions.package ?? options.config?.predictPackageId ?? '@local-pkg/deepbook_predict';\n\tconst argumentsTypes = [null] satisfies (string | null)[];\n\tconst parameterNames = ['vault'];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'plp',\n\t\t\tfunction: 'withdraw_requests_pending',\n\t\t\targuments: normalizeMoveArguments(\n\t\t\t\t{\n\t\t\t\t\t...options.arguments,\n\t\t\t\t\tvault: options.arguments?.vault ?? options.config?.poolVault,\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 ActiveExpiryMarketsArguments {\n\tvault?: RawTransactionArgument<string>;\n}\nexport interface ActiveExpiryMarketsOptions {\n\tpackage?: string;\n\targuments?: ActiveExpiryMarketsArguments;\n\tconfig?: {\n\t\tpoolVault: ConfigValue;\n\t\tpredictPackageId?: string;\n\t};\n}\n/** Return active expiry IDs for external PTB construction and pool inspection. */\nexport function activeExpiryMarkets(options: ActiveExpiryMarketsOptions) {\n\tconst packageAddress =\n\t\toptions.package ?? options.config?.predictPackageId ?? '@local-pkg/deepbook_predict';\n\tconst argumentsTypes = [null] satisfies (string | null)[];\n\tconst parameterNames = ['vault'];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'plp',\n\t\t\tfunction: 'active_expiry_markets',\n\t\t\targuments: normalizeMoveArguments(\n\t\t\t\t{\n\t\t\t\t\t...options.arguments,\n\t\t\t\t\tvault: options.arguments?.vault ?? options.config?.poolVault,\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 ActiveLiveExpiryCountArguments {\n\tvault?: RawTransactionArgument<string>;\n}\nexport interface ActiveLiveExpiryCountOptions {\n\tpackage?: string;\n\targuments?: ActiveLiveExpiryCountArguments;\n\tconfig?: {\n\t\tpoolVault: ConfigValue;\n\t\tpredictPackageId?: string;\n\t};\n}\n/** Return the pre-expiry active count for SDK and devInspect capacity reads. */\nexport function activeLiveExpiryCount(options: ActiveLiveExpiryCountOptions) {\n\tconst packageAddress =\n\t\toptions.package ?? options.config?.predictPackageId ?? '@local-pkg/deepbook_predict';\n\tconst argumentsTypes = [null, '0x2::clock::Clock'] satisfies (string | null)[];\n\tconst parameterNames = ['vault'];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'plp',\n\t\t\tfunction: 'active_live_expiry_count',\n\t\t\targuments: normalizeMoveArguments(\n\t\t\t\t{\n\t\t\t\t\t...options.arguments,\n\t\t\t\t\tvault: options.arguments?.vault ?? options.config?.poolVault,\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 ProfitBasisDebitsArguments {\n\tvault?: RawTransactionArgument<string>;\n}\nexport interface ProfitBasisDebitsOptions {\n\tpackage?: string;\n\targuments?: ProfitBasisDebitsArguments;\n\tconfig?: {\n\t\tpoolVault: ConfigValue;\n\t\tpredictPackageId?: string;\n\t};\n}\n/** Return the profit-basis debits for external accounting observability. */\nexport function profitBasisDebits(options: ProfitBasisDebitsOptions) {\n\tconst packageAddress =\n\t\toptions.package ?? options.config?.predictPackageId ?? '@local-pkg/deepbook_predict';\n\tconst argumentsTypes = [null] satisfies (string | null)[];\n\tconst parameterNames = ['vault'];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'plp',\n\t\t\tfunction: 'profit_basis_debits',\n\t\t\targuments: normalizeMoveArguments(\n\t\t\t\t{\n\t\t\t\t\t...options.arguments,\n\t\t\t\t\tvault: options.arguments?.vault ?? options.config?.poolVault,\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 ProfitBasisCreditsArguments {\n\tvault?: RawTransactionArgument<string>;\n}\nexport interface ProfitBasisCreditsOptions {\n\tpackage?: string;\n\targuments?: ProfitBasisCreditsArguments;\n\tconfig?: {\n\t\tpoolVault: ConfigValue;\n\t\tpredictPackageId?: string;\n\t};\n}\n/** Return the profit-basis credits for external accounting observability. */\nexport function profitBasisCredits(options: ProfitBasisCreditsOptions) {\n\tconst packageAddress =\n\t\toptions.package ?? options.config?.predictPackageId ?? '@local-pkg/deepbook_predict';\n\tconst argumentsTypes = [null] satisfies (string | null)[];\n\tconst parameterNames = ['vault'];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'plp',\n\t\t\tfunction: 'profit_basis_credits',\n\t\t\targuments: normalizeMoveArguments(\n\t\t\t\t{\n\t\t\t\t\t...options.arguments,\n\t\t\t\t\tvault: options.arguments?.vault ?? options.config?.poolVault,\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 PendingProtocolProfitArguments {\n\tvault?: RawTransactionArgument<string>;\n}\nexport interface PendingProtocolProfitOptions {\n\tpackage?: string;\n\targuments?: PendingProtocolProfitArguments;\n\tconfig?: {\n\t\tpoolVault: ConfigValue;\n\t\tpredictPackageId?: string;\n\t};\n}\n/** Return deferred protocol profit for external accounting observability. */\nexport function pendingProtocolProfit(options: PendingProtocolProfitOptions) {\n\tconst packageAddress =\n\t\toptions.package ?? options.config?.predictPackageId ?? '@local-pkg/deepbook_predict';\n\tconst argumentsTypes = [null] satisfies (string | null)[];\n\tconst parameterNames = ['vault'];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'plp',\n\t\t\tfunction: 'pending_protocol_profit',\n\t\t\targuments: normalizeMoveArguments(\n\t\t\t\t{\n\t\t\t\t\t...options.arguments,\n\t\t\t\t\tvault: options.arguments?.vault ?? options.config?.poolVault,\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 StartPoolValuationArguments {\n\tconfig?: RawTransactionArgument<string>;\n\tvault?: RawTransactionArgument<string>;\n\tvaluationProof: TransactionArgument;\n\tsupplyBudget: RawTransactionArgument<number | bigint | null>;\n\twithdrawBudget: RawTransactionArgument<number | bigint | null>;\n}\nexport interface StartPoolValuationOptions {\n\tpackage?: string;\n\targuments: StartPoolValuationArguments;\n\tconfig?: {\n\t\tprotocolConfig: ConfigValue;\n\t\tpoolVault: ConfigValue;\n\t\tpredictPackageId?: string;\n\t};\n}\n/**\n * Begin a full-pool valuation using a registry-issued pool-valuation proof. The\n * proof grants control over when current oracle state is frozen for queued LP\n * fills. Starting engages the cross-transaction valuation flag, snapshots the\n * active expiry set and each LP queue's eligibility cutoff, and opens the atomic\n * snapshot stage: freeze every active market's pricer under the returned\n * `SnapshotStage`, then seal it in the same transaction.\n */\nexport function startPoolValuation(options: StartPoolValuationOptions) {\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'0x1::option::Option<u64>',\n\t\t'0x1::option::Option<u64>',\n\t\t'0x2::clock::Clock',\n\t] satisfies (string | null)[];\n\tconst parameterNames = ['config', 'vault', 'valuationProof', 'supplyBudget', 'withdrawBudget'];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'plp',\n\t\t\tfunction: 'start_pool_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\tvault: options.arguments?.vault ?? options.config?.poolVault,\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 SnapshotExpiryPricerArguments {\n\tvault?: RawTransactionArgument<string>;\n\tStage: TransactionArgument;\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 SnapshotExpiryPricerOptions {\n\tpackage?: string;\n\targuments: SnapshotExpiryPricerArguments;\n\tconfig?: {\n\t\tpoolVault: ConfigValue;\n\t\tprotocolConfig: ConfigValue;\n\t\toracleRegistry: ConfigValue;\n\t\tpredictPackageId?: string;\n\t};\n}\n/**\n * Freeze one snapshotted market's oracle state for this flush and stamp the\n * market, capturing its cash rows and activating its payout-tree snapshot at this\n * instant.\n *\n * Holding `SnapshotStage` is what admits this call, and that potato cannot leave\n * the transaction `start_pool_valuation` minted it in — so every `Pricer` here is\n * loaded at one instant, which is what lets the valuation stage span transactions\n * without mixing marks (audit L10). This stage reads oracles only — it never walks\n * a payout tree — so all markets fit one PTB regardless of book size.\n *\n * The oracle feeding this stage must have been written in an EARLIER transaction:\n * `pricing::resolve_live` refuses a read stamped with the current transaction\n * digest (RP-24), so a keeper cannot refresh and snapshot in one PTB.\n *\n * A market already settled at snapshot time is recorded with no pricer, gets no\n * stamp (settled flows never touch live NAV), and contributes 0. An\n * expired-but-unsettled market aborts: it has no well-defined mark, and because\n * this stage is atomic the abort reverts the whole snapshot transaction, so the\n * flag is never left engaged. Settle it first, then start the flush; settlement is\n * never blocked by a flush, so that ordering is always available.\n */\nexport function snapshotExpiryPricer(options: SnapshotExpiryPricerOptions) {\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\tnull,\n\t\tnull,\n\t\tnull,\n\t\t'0x2::clock::Clock',\n\t] satisfies (string | null)[];\n\tconst parameterNames = [\n\t\t'vault',\n\t\t'Stage',\n\t\t'market',\n\t\t'config',\n\t\t'propbookRegistry',\n\t\t'pyth',\n\t\t'bsValues',\n\t\t'bsSvi',\n\t];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'plp',\n\t\t\tfunction: 'snapshot_expiry_pricer',\n\t\t\targuments: normalizeMoveArguments(\n\t\t\t\t{\n\t\t\t\t\t...options.arguments,\n\t\t\t\t\tvault: options.arguments?.vault ?? options.config?.poolVault,\n\t\t\t\t\tconfig: options.arguments?.config ?? options.config?.protocolConfig,\n\t\t\t\t\tpropbookRegistry: options.arguments?.propbookRegistry ?? options.config?.oracleRegistry,\n\t\t\t\t},\n\t\t\t\targumentsTypes,\n\t\t\t\tparameterNames,\n\t\t\t),\n\t\t});\n}\nexport interface SealValuationSnapshotArguments {\n\tvault?: RawTransactionArgument<string>;\n\tstage: TransactionArgument;\n\tconfig?: RawTransactionArgument<string>;\n}\nexport interface SealValuationSnapshotOptions {\n\tpackage?: string;\n\targuments: SealValuationSnapshotArguments;\n\tconfig?: {\n\t\tpoolVault: ConfigValue;\n\t\tprotocolConfig: ConfigValue;\n\t\tpredictPackageId?: string;\n\t};\n}\n/**\n * Close the snapshot stage once every expected market has a frozen pricer, and\n * freeze the vault-side figures — idle, the profit basis, the pending protocol cut\n * — completing the snapshot.\n *\n * Consuming `SnapshotStage` is the simultaneity proof: the potato dies here, so no\n * later transaction can add oracle state to this flush, and every market is marked\n * at the instant the snapshot transaction executed. The vault capture is\n * consistent with the per-market stamps because `rebalance_expiry_cash` refuses to\n * run while the stage is open (`ESnapshotStageOpen`), so no idle↔market move can\n * land between a stamp and this capture. Valuation may then resume across as many\n * transactions as it needs.\n */\nexport function sealValuationSnapshot(options: SealValuationSnapshotOptions) {\n\tconst packageAddress =\n\t\toptions.package ?? options.config?.predictPackageId ?? '@local-pkg/deepbook_predict';\n\tconst argumentsTypes = [null, null, null] satisfies (string | null)[];\n\tconst parameterNames = ['vault', 'stage', 'config'];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'plp',\n\t\t\tfunction: 'seal_valuation_snapshot',\n\t\t\targuments: normalizeMoveArguments(\n\t\t\t\t{\n\t\t\t\t\t...options.arguments,\n\t\t\t\t\tvault: options.arguments?.vault ?? options.config?.poolVault,\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 ValueExpiryArguments {\n\tvault?: RawTransactionArgument<string>;\n\tmarket: RawTransactionArgument<string>;\n\tconfig?: RawTransactionArgument<string>;\n}\nexport interface ValueExpiryOptions {\n\tpackage?: string;\n\targuments: ValueExpiryArguments;\n\tconfig?: {\n\t\tpoolVault: ConfigValue;\n\t\tprotocolConfig: ConfigValue;\n\t\tpredictPackageId?: string;\n\t};\n}\n/**\n * Fold one snapshotted market's SNAPSHOT-INSTANT NAV into the running total. A\n * market frozen as settled is swept and contributes 0; one frozen with a pricer is\n * valued via `expiry_market::snapshot_nav` over its captured cash and tree\n * shadows, then has its stamp cleared (releasing the tree snapshot), so later\n * trades and the next flush start clean.\n *\n * The resumable stage: any transaction after the seal, one market per transaction\n * (`constants::max_payout_tree_nodes`), reading no oracle and no clock.\n * MEASUREMENT-ONLY for every member — settled members were swept during the\n * snapshot stage and every frozen figure was captured there, so this call moves no\n * cash and `rebalance_expiry_cash` runs at any time. A market that expired\n * mid-window is valued at its frozen pre-expiry mark; its settlement does not wait\n * for this call, because settlement is never blocked by a flush.\n */\nexport function valueExpiry(options: ValueExpiryOptions) {\n\tconst packageAddress =\n\t\toptions.package ?? options.config?.predictPackageId ?? '@local-pkg/deepbook_predict';\n\tconst argumentsTypes = [null, null, null] satisfies (string | null)[];\n\tconst parameterNames = ['vault', 'market', 'config'];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'plp',\n\t\t\tfunction: 'value_expiry',\n\t\t\targuments: normalizeMoveArguments(\n\t\t\t\t{\n\t\t\t\t\t...options.arguments,\n\t\t\t\t\tvault: options.arguments?.vault ?? options.config?.poolVault,\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 FinishFlushArguments {\n\tvault?: RawTransactionArgument<string>;\n\tconfig?: RawTransactionArgument<string>;\n}\nexport interface FinishFlushOptions {\n\tpackage?: string;\n\targuments?: FinishFlushArguments;\n\tconfig?: {\n\t\tpoolVault: ConfigValue;\n\t\tprotocolConfig: ConfigValue;\n\t\tpredictPackageId?: string;\n\t};\n}\n/**\n * Finish a full-pool valuation and run the LP flush: prove every snapshotted\n * market was valued exactly once, price the pool NAV, then drain the\n * supply/withdraw queues at that frozen mark (mint PLP for supplies, burn PLP and\n * pay USDC for withdrawals), release the valuation flag, retire the in-flight\n * valuation, and return the LP-attributable pool-wide USDC NAV (frozen idle + Σ\n * active NAV, net of the pending-protocol-profit exclusion priced from the frozen\n * profit basis — every term as of the snapshot instant). Each drain fills only\n * requests submitted before the flush's snapshot instant (the recorded queue\n * cutoffs); younger requests wait for the next mark.\n *\n * `supply_budget` and `withdraw_budget` bound how many requests each queue may\n * process this flush (`None` = unbounded). Fills — whole or partial — and\n * protocol-refunded heads — non-executable, or quoting below the request's own\n * minimum output — all count as processed. At `ProtocolConfig`'s shipped attempt\n * count of one, a head that misses its limit is refunded by the flush that reaches\n * it; above one it stays queued and stops that queue for the flush. The budgets\n * are independent, so a supply backlog does not consume withdrawal capacity.\n *\n * Capacity bounds each pass on top of the budgets and refunds nothing: supplies\n * fill only up to `ProtocolConfig`'s LP pool-value cap, withdrawals only up to\n * idle. A head larger than the room left fills to the room, spends flush budget,\n * and keeps its remainder queued at a rescaled limit; a head with no usable room\n * carries untouched and spends none. Either way the pass stops, so an unbounded\n * budget does not mean every queued request is processed (RP-23).\n *\n * Because queueing is permissionless and a refunded request returns its escrow in\n * the same transaction, an operator should bound both budgets in production rather\n * than rely on queue length staying small — see RP-12.\n *\n * Only an allowlisted flush operator may call it\n * (`protocol_config::ENotFlushOperator`). Fills move idle cash, so restricting who\n * completes a flush keeps idle predictable for the keeper that funds markets for\n * queued orders.\n */\nexport function finishFlush(options: FinishFlushOptions) {\n\tconst packageAddress =\n\t\toptions.package ?? options.config?.predictPackageId ?? '@local-pkg/deepbook_predict';\n\tconst argumentsTypes = [null, null, '0x2::clock::Clock'] satisfies (string | null)[];\n\tconst parameterNames = ['vault', 'config'];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'plp',\n\t\t\tfunction: 'finish_flush',\n\t\t\targuments: normalizeMoveArguments(\n\t\t\t\t{\n\t\t\t\t\t...options.arguments,\n\t\t\t\t\tvault: options.arguments?.vault ?? options.config?.poolVault,\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 RebalanceExpiryCashArguments {\n\tvault?: RawTransactionArgument<string>;\n\tmarket: RawTransactionArgument<string>;\n\tconfig?: RawTransactionArgument<string>;\n}\nexport interface RebalanceExpiryCashOptions {\n\tpackage?: string;\n\targuments: RebalanceExpiryCashArguments;\n\tconfig?: {\n\t\tpoolVault: ConfigValue;\n\t\tprotocolConfig: ConfigValue;\n\t\tpredictPackageId?: string;\n\t};\n}\n/**\n * Move cash between pool idle liquidity and one expiry market.\n *\n * Permissionless and standalone: anyone may call it at any cadence. Handles all\n * three per-market cases — initial funding of a freshly registered (unfunded)\n * market, ongoing live rebalance/surplus-sweep toward target, and the\n * settled-market sweep (deactivate, return all free cash, materialize profit). The\n * live target covers the market's queued orders' cash need (the waiting cash need\n * in `expiry_market::order_flow_state`), so the keeper calls this after each\n * enqueue to fund those orders' fills, and a sweep never takes that cash back.\n * Call `expiry_market::try_settle` first in the same PTB when settlement may be\n * due. An expired unsettled market is a no-op until that transition succeeds. Mint\n * asserts backing but never pulls pool cash, so this is what makes a market\n * mintable. The market must already be registered to this vault\n * (`registry::create_and_share_expiry_market`). Runs at any time, including while\n * a flush is in flight — every figure the mark reads was frozen at the snapshot\n * instant, so no move here can reach it. The one refusal is the still-open\n * snapshot stage (start → seal, a single transaction): a cross-move landing\n * between a market's stamp and the seal's vault capture would skew the frozen\n * figures, so it is structurally rejected rather than corrected for.\n */\nexport function rebalanceExpiryCash(options: RebalanceExpiryCashOptions) {\n\tconst packageAddress =\n\t\toptions.package ?? options.config?.predictPackageId ?? '@local-pkg/deepbook_predict';\n\tconst argumentsTypes = [null, null, null, '0x2::clock::Clock'] satisfies (string | null)[];\n\tconst parameterNames = ['vault', 'market', 'config'];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'plp',\n\t\t\tfunction: 'rebalance_expiry_cash',\n\t\t\targuments: normalizeMoveArguments(\n\t\t\t\t{\n\t\t\t\t\t...options.arguments,\n\t\t\t\t\tvault: options.arguments?.vault ?? options.config?.poolVault,\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 SponsorFeeIncentivesArguments {\n\tvault?: RawTransactionArgument<string>;\n\tconfig?: RawTransactionArgument<string>;\n\tpayment: RawTransactionArgument<string>;\n}\nexport interface SponsorFeeIncentivesOptions {\n\tpackage?: string;\n\targuments: SponsorFeeIncentivesArguments;\n\tconfig?: {\n\t\tpoolVault: ConfigValue;\n\t\tprotocolConfig: ConfigValue;\n\t\tpredictPackageId?: string;\n\t};\n}\n/**\n * Sponsor taker fee incentives with USDC. Anyone may contribute; the payment joins\n * a pool-level reserve that is excluded from PLP NAV and later allocated to expiry\n * markets by the normal rebalance flow. A contribution is not earmarked to its\n * sponsor: admin can withdraw any of the reserve through\n * `withdraw_fee_incentives`.\n */\nexport function sponsorFeeIncentives(options: SponsorFeeIncentivesOptions) {\n\tconst packageAddress =\n\t\toptions.package ?? options.config?.predictPackageId ?? '@local-pkg/deepbook_predict';\n\tconst argumentsTypes = [null, null, null] satisfies (string | null)[];\n\tconst parameterNames = ['vault', 'config', 'payment'];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'plp',\n\t\t\tfunction: 'sponsor_fee_incentives',\n\t\t\targuments: normalizeMoveArguments(\n\t\t\t\t{\n\t\t\t\t\t...options.arguments,\n\t\t\t\t\tvault: options.arguments?.vault ?? options.config?.poolVault,\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 WithdrawFeeIncentivesArguments {\n\tvault?: RawTransactionArgument<string>;\n\tAdminCap: RawTransactionArgument<string>;\n\tconfig?: RawTransactionArgument<string>;\n\tamount: RawTransactionArgument<number | bigint>;\n}\nexport interface WithdrawFeeIncentivesOptions {\n\tpackage?: string;\n\targuments: WithdrawFeeIncentivesArguments;\n\tconfig?: {\n\t\tpoolVault: ConfigValue;\n\t\tprotocolConfig: ConfigValue;\n\t\tpredictPackageId?: string;\n\t};\n}\n/**\n * Withdraw `amount` USDC of sponsor-funded fee incentives from the pool-level\n * reserve, for sponsorship the protocol no longer wants to spend. Admin-only.\n *\n * Reaches the reserve only. Incentives already allocated to a live market stay in\n * that market's `fee_incentive_balance` and return to the reserve when its\n * settled-market sweep runs, after which they can be withdrawn here; setting\n * `protocol_config::set_fee_incentive_subsidy_rate` to zero stops them being spent\n * in the meantime. The per-expiry lifetime allocation counters are not credited\n * back: they bound what a market may ever receive, and a withdrawal does not\n * change what a market already received.\n *\n * Not gated on the valuation flag, in either stage of a flush: the reserve is\n * excluded from PLP NAV and no flush figure, frozen or live, reads it, so a\n * withdrawal cannot reach the mark.\n */\nexport function withdrawFeeIncentives(options: WithdrawFeeIncentivesOptions) {\n\tconst packageAddress =\n\t\toptions.package ?? options.config?.predictPackageId ?? '@local-pkg/deepbook_predict';\n\tconst argumentsTypes = [null, null, null, 'u64'] satisfies (string | null)[];\n\tconst parameterNames = ['vault', 'AdminCap', 'config', 'amount'];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'plp',\n\t\t\tfunction: 'withdraw_fee_incentives',\n\t\t\targuments: normalizeMoveArguments(\n\t\t\t\t{\n\t\t\t\t\t...options.arguments,\n\t\t\t\t\tvault: options.arguments?.vault ?? options.config?.poolVault,\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 AddUsdcToPlpArguments {\n\tvault?: RawTransactionArgument<string>;\n\tconfig?: RawTransactionArgument<string>;\n\tpayment: RawTransactionArgument<string>;\n}\nexport interface AddUsdcToPlpOptions {\n\tpackage?: string;\n\targuments: AddUsdcToPlpArguments;\n\tconfig?: {\n\t\tpoolVault: ConfigValue;\n\t\tprotocolConfig: ConfigValue;\n\t\tpredictPackageId?: string;\n\t};\n}\n/**\n * Add USDC straight to pool idle liquidity without minting any PLP. Anyone may\n * call it; the payment is an outright gift to the existing share base, so the\n * caller receives nothing back and no share of it is recoverable.\n *\n * This is the incentive/top-up path: because no shares are issued, the whole\n * `payment` lands inside the value the next flush's mark divides by an unchanged\n * `total_supply`, which raises NAV per PLP for every current holder. It\n * deliberately does not touch the profit basis — the basis tracks cash sent to and\n * returned from expiries, so an outside contribution is neither a debit nor a\n * credit, and the protocol reserve therefore takes no cut of it (`pool_value`\n * leaves `exclusion` unchanged while `gross_pool_value` grows). Sending the same\n * USDC through `request_supply` instead mints shares against it, so only the\n * supply fee would reach existing holders — zero as shipped.\n *\n * Three gates, each closing a state this entrypoint would otherwise manufacture:\n *\n * - **Bootstrapped pool.** At `total_supply == 0` there is no share base to\n *   credit; the USDC would only inflate the genesis lock's non-withdrawable stake.\n * - **Contribution price ceiling.** Pool cash after the contribution — idle plus\n *   the net cash deployed into active expiries — may price at most\n *   `contribution_price_ceiling_factor` USDC per PLP, a tenth of the band a flush\n *   mark needs to be fillable. Above the band every supply and withdraw head is\n *   refunded (RP-2) and `total_supply` grows only through a supply fill, so\n *   nothing brings the price back down — a terminal state that an unbounded\n *   contribution against a small share base would otherwise reach for the price of\n *   the contribution. The ceiling sits well inside the band because later fills\n *   only push the price up (rounding and retained fees stay in the pool), so a\n *   pool left exactly at the band would leave it on the next uneven or fee-charged\n *   fill. The test is one-sided because a contribution can only move the price up.\n *   It reads pool cash rather than pool NAV — NAV needs a flush — and counts\n *   deployed cash because the mark does: `rebalance_expiry_cash` is\n *   permissionless, so an idle-only test could be emptied into a market and passed\n *   again. Cash is exactly the protocol-controlled share: the guard forbids this\n *   entrypoint from _manufacturing_ the degenerate ratio and leaves market-driven\n *   NAV moves (trader premiums and P&L) to RP-1/RP-2, which own them.\n * - **No flush in flight.** The seal freezes idle mid-flush, so an ungated\n *   contribution would land on one side or the other of that capture depending\n *   only on when the contributor's transaction executed — either paying that\n *   flush's queued withdrawals or not. `sponsor_fee_incentives` takes the same\n *   gate. `rebalance_expiry_cash` may run mid-window because it only moves cash\n *   between two figures the seal already froze; new value is different.\n */\nexport function addUsdcToPlp(options: AddUsdcToPlpOptions) {\n\tconst packageAddress =\n\t\toptions.package ?? options.config?.predictPackageId ?? '@local-pkg/deepbook_predict';\n\tconst argumentsTypes = [null, null, null] satisfies (string | null)[];\n\tconst parameterNames = ['vault', 'config', 'payment'];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'plp',\n\t\t\tfunction: 'add_usdc_to_plp',\n\t\t\targuments: normalizeMoveArguments(\n\t\t\t\t{\n\t\t\t\t\t...options.arguments,\n\t\t\t\t\tvault: options.arguments?.vault ?? options.config?.poolVault,\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 LockCapitalArguments {\n\tvault?: RawTransactionArgument<string>;\n\tconfig?: RawTransactionArgument<string>;\n\tAdminCap: RawTransactionArgument<string>;\n\tpayment: RawTransactionArgument<string>;\n}\nexport interface LockCapitalOptions {\n\tpackage?: string;\n\targuments: LockCapitalArguments;\n\tconfig?: {\n\t\tpoolVault: ConfigValue;\n\t\tprotocolConfig: ConfigValue;\n\t\tpredictPackageId?: string;\n\t};\n}\n/**\n * Bootstrap the pool exactly once: permanently lock `payment` USDC of minimum\n * liquidity. Mints matching PLP (1:1) into the book's locked balance — never\n * withdrawable, so the caller receives no shares — and joins the USDC into idle.\n * This keeps `total_supply > 0` while the vault exists and gives rounding dust a\n * non-withdrawable PLP holder. Requires root authority and zero existing supply.\n * Supply, withdrawal, and flush flows remain disabled until the locked liquidity\n * has been created.\n */\nexport function lockCapital(options: LockCapitalOptions) {\n\tconst packageAddress =\n\t\toptions.package ?? options.config?.predictPackageId ?? '@local-pkg/deepbook_predict';\n\tconst argumentsTypes = [null, null, null, null] satisfies (string | null)[];\n\tconst parameterNames = ['vault', 'config', 'AdminCap', 'payment'];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'plp',\n\t\t\tfunction: 'lock_capital',\n\t\t\targuments: normalizeMoveArguments(\n\t\t\t\t{\n\t\t\t\t\t...options.arguments,\n\t\t\t\t\tvault: options.arguments?.vault ?? options.config?.poolVault,\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 RequestSupplyArguments {\n\tvault?: RawTransactionArgument<string>;\n\twrapper: RawTransactionArgument<string>;\n\tauth: TransactionArgument;\n\tconfig?: RawTransactionArgument<string>;\n\tamount: RawTransactionArgument<number | bigint>;\n\tminPlpOut: RawTransactionArgument<number | bigint>;\n}\nexport interface RequestSupplyOptions {\n\tpackage?: string;\n\targuments: RequestSupplyArguments;\n\tconfig?: {\n\t\tpoolVault: ConfigValue;\n\t\tprotocolConfig: ConfigValue;\n\t\tpredictPackageId?: string;\n\t};\n}\n/**\n * Queue a supply request: pull `amount` USDC from account custody into queue\n * escrow, recording the account's receive address as the fill recipient. The pull\n * auto-settles any flush-delivered USDC first. The flush charges the protocol's\n * supply fee — zero by default — on the USDC it takes in and prices shares on the\n * remainder, so `min_plp_out` is measured after that fee. The account receives\n * minted PLP only at a mark that mints at least `min_plp_out` for the whole\n * `amount` — a **price floor**, not a promise of that many shares: if the pool cap\n * leaves room for only part of the deposit, the fill is proportionally smaller at\n * the same price and the remainder stays queued with its limit rescaled. At the\n * shipped attempt count of one, a flush whose mark quotes less cancels and refunds\n * the request there and then; a higher configured count lets it rest and retry\n * that many flushes first. Returns the queue index, the handle used to cancel\n * before the flush.\n */\nexport function requestSupply(options: RequestSupplyOptions) {\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'0x2::accumulator::AccumulatorRoot',\n\t\t'0x2::clock::Clock',\n\t] satisfies (string | null)[];\n\tconst parameterNames = ['vault', 'wrapper', 'auth', 'config', 'amount', 'minPlpOut'];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'plp',\n\t\t\tfunction: 'request_supply',\n\t\t\targuments: normalizeMoveArguments(\n\t\t\t\t{\n\t\t\t\t\t...options.arguments,\n\t\t\t\t\tvault: options.arguments?.vault ?? options.config?.poolVault,\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 RequestWithdrawArguments {\n\tvault?: RawTransactionArgument<string>;\n\twrapper: RawTransactionArgument<string>;\n\tauth: TransactionArgument;\n\tconfig?: RawTransactionArgument<string>;\n\tamount: RawTransactionArgument<number | bigint>;\n\tminUsdcOut: RawTransactionArgument<number | bigint>;\n}\nexport interface RequestWithdrawOptions {\n\tpackage?: string;\n\targuments: RequestWithdrawArguments;\n\tconfig?: {\n\t\tpoolVault: ConfigValue;\n\t\tprotocolConfig: ConfigValue;\n\t\tpredictPackageId?: string;\n\t};\n}\n/**\n * Queue a withdraw request: pull `amount` PLP shares from account custody into\n * queue escrow, recording the account's receive address as the fill recipient. The\n * pull auto-settles any flush-delivered PLP first. The flush withholds the\n * protocol's withdraw fee from the marked payout, so `min_usdc_out` is measured\n * after the fee. The account is paid only at a mark that quotes at least\n * `min_usdc_out` for the whole `amount` — a **price floor**, not a promise of that\n * much USDC: if idle liquidity covers only part of the payout, only the shares\n * idle affords are burned, the fill is proportionally smaller at the same price,\n * and the remainder stays queued with its limit rescaled. At the shipped attempt\n * count of one, a flush whose mark quotes less cancels and refunds the request\n * there and then; a higher configured count lets it rest and retry that many\n * flushes first. Returns the queue index used to cancel before the flush.\n */\nexport function requestWithdraw(options: RequestWithdrawOptions) {\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'0x2::accumulator::AccumulatorRoot',\n\t\t'0x2::clock::Clock',\n\t] satisfies (string | null)[];\n\tconst parameterNames = ['vault', 'wrapper', 'auth', 'config', 'amount', 'minUsdcOut'];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'plp',\n\t\t\tfunction: 'request_withdraw',\n\t\t\targuments: normalizeMoveArguments(\n\t\t\t\t{\n\t\t\t\t\t...options.arguments,\n\t\t\t\t\tvault: options.arguments?.vault ?? options.config?.poolVault,\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 CancelSupplyRequestArguments {\n\tvault?: RawTransactionArgument<string>;\n\twrapper: RawTransactionArgument<string>;\n\tauth: TransactionArgument;\n\tconfig?: RawTransactionArgument<string>;\n\tindex: RawTransactionArgument<number | bigint>;\n}\nexport interface CancelSupplyRequestOptions {\n\tpackage?: string;\n\targuments: CancelSupplyRequestArguments;\n\tconfig?: {\n\t\tpoolVault: ConfigValue;\n\t\tprotocolConfig: ConfigValue;\n\t\tpredictPackageId?: string;\n\t};\n}\n/**\n * Cancel a still-pending supply request, refunding its escrowed USDC straight into\n * the requesting account. `account` must be the request's recorded recipient.\n */\nexport function cancelSupplyRequest(options: CancelSupplyRequestOptions) {\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'0x2::accumulator::AccumulatorRoot',\n\t\t'0x2::clock::Clock',\n\t] satisfies (string | null)[];\n\tconst parameterNames = ['vault', 'wrapper', 'auth', 'config', 'index'];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'plp',\n\t\t\tfunction: 'cancel_supply_request',\n\t\t\targuments: normalizeMoveArguments(\n\t\t\t\t{\n\t\t\t\t\t...options.arguments,\n\t\t\t\t\tvault: options.arguments?.vault ?? options.config?.poolVault,\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 CancelWithdrawRequestArguments {\n\tvault?: RawTransactionArgument<string>;\n\twrapper: RawTransactionArgument<string>;\n\tauth: TransactionArgument;\n\tconfig?: RawTransactionArgument<string>;\n\tindex: RawTransactionArgument<number | bigint>;\n}\nexport interface CancelWithdrawRequestOptions {\n\tpackage?: string;\n\targuments: CancelWithdrawRequestArguments;\n\tconfig?: {\n\t\tpoolVault: ConfigValue;\n\t\tprotocolConfig: ConfigValue;\n\t\tpredictPackageId?: string;\n\t};\n}\n/**\n * Cancel a still-pending withdraw request, refunding its escrowed PLP straight\n * into the requesting account. `account` must be the request's recorded recipient.\n */\nexport function cancelWithdrawRequest(options: CancelWithdrawRequestOptions) {\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'0x2::accumulator::AccumulatorRoot',\n\t\t'0x2::clock::Clock',\n\t] satisfies (string | null)[];\n\tconst parameterNames = ['vault', 'wrapper', 'auth', 'config', 'index'];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'plp',\n\t\t\tfunction: 'cancel_withdraw_request',\n\t\t\targuments: normalizeMoveArguments(\n\t\t\t\t{\n\t\t\t\t\t...options.arguments,\n\t\t\t\t\tvault: options.arguments?.vault ?? options.config?.poolVault,\n\t\t\t\t\tconfig: options.arguments?.config ?? options.config?.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