import { Connection, Keypair } from "@solana/web3.js"; import { PoolType } from "../types.js"; import { PitProgram } from "../program.js"; /** * TransactionBuilder - Builds and sends transactions with retry logic * * Responsibilities: * - Builds mark_extreme transactions * - Builds settle_market transactions * - Implements exponential backoff retry (3 attempts: 1s, 2s, 4s) * - Handles transaction signing and confirmation */ export declare class TransactionBuilder { private connection; private signer; private program; private verbose; constructor(connection: Connection, signer: Keypair, program: PitProgram, verbose?: boolean); /** * Build and send mark_extreme transaction * * @param weekNumber - Market week number * @param poolType - High or Low pool * @param newOutcome - New outcome value * @returns Transaction signature */ markExtreme(weekNumber: number, poolType: PoolType, newOutcome: number): Promise; /** * Build and send settle_market transaction * * @param weekNumber - Market week number * @returns Transaction signature */ settleMarket(weekNumber: number): Promise; /** * Send transaction with exponential backoff retry * * Retry strategy: * - Attempt 1: Immediate * - Attempt 2: After 1s delay * - Attempt 3: After 2s delay * - Attempt 4: After 4s delay (total 3 retries) * * @param tx - Transaction to send * @param blockhash - Recent blockhash info * @param maxRetries - Maximum number of retry attempts (default: 3) * @returns Transaction signature */ private sendWithRetry; private log; } //# sourceMappingURL=TransactionBuilder.d.ts.map