{"version":3,"file":"strike_exposure.mjs","names":["strike_exposure_config.StrikeExposureConfig","strike_payout_tree.StrikePayoutTree","pricing.RangePrice","order.Order"],"sources":["../../../src/contracts/deepbook_predict/strike_exposure.ts"],"sourcesContent":["/**************************************************************\n * THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *\n **************************************************************/\n\n/**\n * Expiry-local exposure book for one expiry market.\n *\n * This module interprets `Order` terms against the expiry's `tick_size`,\n * recovering raw strikes from order ticks only at the pricing/settlement boundary.\n * It owns the payout-liability view of the active contracts used for cash backing.\n * Order accounting is static and needs no clock: a winning order pays its full\n * quantity. Expiry-market cash custody, account positions, and payout movement\n * stay outside this module.\n */\n\nimport { MoveStruct } from '../utils/index.js';\nimport { bcs } from '@mysten/sui/bcs';\nimport { U64 } from '../../bcs/integers.js';\nimport * as strike_exposure_config from './strike_exposure_config.js';\nimport * as strike_payout_tree from './strike_payout_tree.js';\nimport * as pricing from './pricing.js';\nimport * as order from './order.js';\nconst $moduleName = '@local-pkg/deepbook_predict::strike_exposure';\nexport const StrikeExposure = new MoveStruct({\n\tname: `${$moduleName}::StrikeExposure`,\n\tfields: {\n\t\t/** Expiry market that owns this exposure book. */\n\t\texpiry_market_id: bcs.Address,\n\t\t/** Raw-price-per-tick conversion factor; `raw_strike = tick * tick_size`. */\n\t\ttick_size: U64,\n\t\t/** Coarser raw-price step that new finite mint boundaries must align to. */\n\t\tadmission_tick_size: U64,\n\t\t/** Exact Propbook Pyth source timestamp used to derive the reference tick. */\n\t\treference_tick_source_timestamp_ms: U64,\n\t\t/** Reference fine-grid tick that may bypass the coarser admission grid once set. */\n\t\treference_tick: bcs.option(U64),\n\t\t/** Snapshotted exposure and fee policy for this expiry. */\n\t\tconfig: strike_exposure_config.StrikeExposureConfig,\n\t\t/**\n\t\t * Immutable USDC scale for the inventory-impact curve. This is the expiry's\n\t\t * snapshotted maximum pool allocation: a risk-capacity parameter, not live pool\n\t\t * equity, so LP flows cannot reprice an existing book.\n\t\t */\n\t\tinventory_impact_scale: U64,\n\t\tnext_order_sequence: U64,\n\t\t/** Terminal settlement price once the exposure has entered its settled phase. */\n\t\tsettlement_price: bcs.option(U64),\n\t\t/** Remaining payout liability in the settled phase. */\n\t\tsettled_payout_liability: U64,\n\t\t/** Sparse payout tree for live cash backing and settled liability. */\n\t\tpayout: strike_payout_tree.StrikePayoutTree,\n\t},\n});\nexport const MintRange = new MoveStruct({\n\tname: `${$moduleName}::MintRange`,\n\tfields: {\n\t\texpiry_market_id: bcs.Address,\n\t\tlower_tick: U64,\n\t\thigher_tick: U64,\n\t\tprice: pricing.RangePrice,\n\t\t/** Pre-mint point-max and total live payout. */\n\t\tmax_payout: U64,\n\t\ttotal_payout: U64,\n\t\t/** Pre-mint payout peak inside `(lower_tick, higher_tick]`. */\n\t\trange_max_payout: U64,\n\t},\n});\nexport const MintTerms = new MoveStruct({\n\tname: `${$moduleName}::MintTerms`,\n\tfields: {\n\t\texpiry_market_id: bcs.Address,\n\t\tlower_tick: U64,\n\t\thigher_tick: U64,\n\t\tquantity: U64,\n\t\tprice: pricing.RangePrice,\n\t\tpremium: U64,\n\t\t/** Separate inventory-impact charge, sampled against the pre-mint book. */\n\t\tinventory_impact_charge: U64,\n\t},\n});\nexport const LiveCloseTerms = new MoveStruct({\n\tname: `${$moduleName}::LiveCloseTerms`,\n\tfields: {\n\t\texpiry_market_id: bcs.Address,\n\t\torder: order.Order,\n\t\tclose_quantity: U64,\n\t\tredeem_amount: U64,\n\t\tprice: pricing.RangePrice,\n\t\t/** Separate inventory-impact rebate, sampled against the pre-close book. */\n\t\tinventory_impact_rebate: U64,\n\t},\n});\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAsBA,MAAM,cAAc;AACpB,MAAa,iBAAiB,IAAI,WAAW;CAC5C,MAAM,GAAG,YAAY;CACrB,QAAQ;EAEP,kBAAkB,IAAI;EAEtB,WAAW;EAEX,qBAAqB;EAErB,oCAAoC;EAEpC,gBAAgB,IAAI,OAAO,IAAI;EAE/B,QAAQA;EAMR,wBAAwB;EACxB,qBAAqB;EAErB,kBAAkB,IAAI,OAAO,IAAI;EAEjC,0BAA0B;EAE1B,QAAQC;EACR;CACD,CAAC;AACF,MAAa,YAAY,IAAI,WAAW;CACvC,MAAM,GAAG,YAAY;CACrB,QAAQ;EACP,kBAAkB,IAAI;EACtB,YAAY;EACZ,aAAa;EACb,OAAOC;EAEP,YAAY;EACZ,cAAc;EAEd,kBAAkB;EAClB;CACD,CAAC;AACF,MAAa,YAAY,IAAI,WAAW;CACvC,MAAM,GAAG,YAAY;CACrB,QAAQ;EACP,kBAAkB,IAAI;EACtB,YAAY;EACZ,aAAa;EACb,UAAU;EACV,OAAOA;EACP,SAAS;EAET,yBAAyB;EACzB;CACD,CAAC;AACF,MAAa,iBAAiB,IAAI,WAAW;CAC5C,MAAM,GAAG,YAAY;CACrB,QAAQ;EACP,kBAAkB,IAAI;EACtB,OAAOC;EACP,gBAAgB;EAChB,eAAe;EACf,OAAOD;EAEP,yBAAyB;EACzB;CACD,CAAC"}