{"version":3,"file":"pricing_config.mjs","names":[],"sources":["../../../src/contracts/deepbook_predict/pricing_config.ts"],"sourcesContent":["/**************************************************************\n * THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *\n **************************************************************/\n\n/**\n * Stored oracle source-selection and freshness config for Predict quotes.\n *\n * ProtocolConfig owns this mutable policy. Pricing reads it when resolving live\n * probabilities for mint and redeem flows.\n */\n\nimport { MoveStruct } from '../utils/index.js';\nimport { bcs } from '@mysten/sui/bcs';\nimport { U64 } from '../../bcs/integers.js';\nconst $moduleName = '@local-pkg/deepbook_predict::pricing_config';\nexport const PricingConfig = new MoveStruct({\n\tname: `${$moduleName}::PricingConfig`,\n\tfields: {\n\t\t/**\n\t\t * Selects which live-forward formula pricing uses. True carries the Block Scholes\n\t\t * basis on a fresh Pyth spot (`pyth_spot * bs_forward / bs_spot`); false uses the\n\t\t * Block Scholes forward directly and no Pyth spot, fresh or not, moves a quote.\n\t\t */\n\t\tuse_pyth_spot_for_forward: bcs.bool(),\n\t\t/**\n\t\t * Fixed wall-clock maximum age for Pyth spot; it does not vary with time to\n\t\t * expiry. Past it, while `use_pyth_spot_for_forward` is set, a live load falls\n\t\t * back to the Block Scholes forward, which valuation prices on and every live\n\t\t * trade (mint, mint quote, live redeem) refuses.\n\t\t */\n\t\tpyth_spot_freshness_ms: U64,\n\t\t/**\n\t\t * Fixed wall-clock maximum age for Block Scholes spot and forward; it does not\n\t\t * vary with time to expiry.\n\t\t */\n\t\tblock_scholes_price_freshness_ms: U64,\n\t\t/**\n\t\t * Fixed wall-clock maximum age for Block Scholes SVI parameters; it does not vary\n\t\t * with time to expiry.\n\t\t */\n\t\tblock_scholes_svi_freshness_ms: U64,\n\t},\n});\n"],"mappings":";;;;;;;;;;;;;;AAcA,MAAM,cAAc;AACpB,MAAa,gBAAgB,IAAI,WAAW;CAC3C,MAAM,GAAG,YAAY;CACrB,QAAQ;EAMP,2BAA2B,IAAI,MAAM;EAOrC,wBAAwB;EAKxB,kCAAkC;EAKlC,gCAAgC;EAChC;CACD,CAAC"}