/** * Price Oracle Executor - NOLA (No LIT Action) * * Standalone executor that wraps PriceOracleModule for Node.js execution. * Reuses the same pattern as tests/helpers/setup-lit-env.ts. * * Purpose: FREE price queries without paying for LIT Action execution. * Use case: Display current BTC price, calculate mint previews, show collateral ratios. * * Architecture: * - Same price-oracle.module.ts code (zero changes) * - Inject Node.js fetch instead of Lit.Actions.* * - Returns identical price data with 8 decimals * * The previously-exposed `executePriceOracleConsensus` variant was removed in * the H-2 audit fix — the lenient consensus algorithm is gone, so there is now * only one strict path. */ import { PriceSourceConfig } from "../../../src/interfaces/chunks/price-oracle.i"; /** * Parameters for price oracle execution */ export interface PriceOracleExecutorParams { priceProviders?: Array<{ name: string; apiKey?: string; apiSecret?: string; }>; customSources?: PriceSourceConfig[]; mode?: "dev" | "prod"; } /** * Execute price oracle in Node.js (NOLA - No LIT Action). * * Strict 3-of-3: caller must supply exactly 3 distinct providers from the * locked set (cryptocompare, coinmarketcap, coingecko). Any single provider * failure aborts the call; the 3 prices must lie within 1% of each other. * * @param params - Optional configuration * @returns BTC price in USD with 8 decimals (bigint) */ export declare function executePriceOracle(params?: PriceOracleExecutorParams): Promise; //# sourceMappingURL=price-oracle-executor.d.ts.map