{"version":3,"file":"ewma.mjs","names":[],"sources":["../../../src/contracts/deepbook_predict/ewma.ts"],"sourcesContent":["/**************************************************************\n * THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *\n **************************************************************/\n\n/**\n * Per-market exponentially weighted gas-price statistics used to surcharge trades\n * placed during abnormal network congestion.\n *\n * This module owns only the evolving `(mean, variance)` estimate and the gas-price\n * observation and penalty math. The tunable knobs (`alpha`, `z_score_threshold`,\n * `penalty_rate`, `enabled`) live in `EwmaConfig`; `ExpiryMarket` owns the stored\n * state and decides when to fold observations in.\n */\n\nimport { MoveStruct } from '../utils/index.js';\nimport { U64 } from '../../bcs/integers.js';\nconst $moduleName = '@local-pkg/deepbook_predict::ewma';\nexport const EwmaState = new MoveStruct({\n\tname: `${$moduleName}::EwmaState`,\n\tfields: {\n\t\tmean: U64,\n\t\tvariance: U64,\n\t\t/** On-chain time of the last fold; guards against more than one update per ms. */\n\t\tlast_updated_timestamp_ms: U64,\n\t},\n});\n"],"mappings":";;;;;;;;;;;;;;;;AAgBA,MAAM,cAAc;AACpB,MAAa,YAAY,IAAI,WAAW;CACvC,MAAM,GAAG,YAAY;CACrB,QAAQ;EACP,MAAM;EACN,UAAU;EAEV,2BAA2B;EAC3B;CACD,CAAC"}