/** * On-chain Pyth Price Reader * * Reads price data directly from Pyth's on-chain price feed accounts. * This is used to ensure the price we calculate outcomes from matches * the price that will be verified on-chain in mark_extreme. * * @see https://github.com/pyth-network/pyth-crosschain/blob/main/target_chains/solana/pyth_solana_receiver_sdk/src/price_update.rs */ import { Connection, PublicKey } from "@solana/web3.js"; import { PythPrice } from "./types.js"; /** * Read and parse a Pyth PriceUpdateV2 account * * @param connection - Solana connection * @param priceAccount - Price feed account pubkey * @returns Parsed price data or null if account doesn't exist */ export declare function readPythPriceAccount(connection: Connection, priceAccount?: PublicKey): Promise; /** * Check if the on-chain price supports a given outcome * * @param priceInCents - Price in cents * @param strikes - Strike prices in cents [s0, s1, s2] * @param isHighPool - true for High pool, false for Low pool * @param outcome - The outcome to check (1, 2, or 3) * @returns true if the current price supports this outcome */ export declare function priceSupportsOutcome(priceInCents: number, strikes: [number, number, number], isHighPool: boolean, outcome: number): boolean; //# sourceMappingURL=onchain.d.ts.map