tornado-oracles/lib/feeOracleV5.d.ts

12 lines
619 B
TypeScript

import { TornadoFeeOracle } from './feeOracle';
import { ITornadoFeeOracle, TransactionData, TxType, LegacyGasPriceKey, GasPriceParams } from './types';
/**
* Oracle for new V5 version - estimates transaction fees with smart gas limit & bumping
*/
export declare class TornadoFeeOracleV5 extends TornadoFeeOracle implements ITornadoFeeOracle {
private fallbackFeeOracle;
constructor(chainId: number, rpcUrl: string);
getGasLimit(tx?: TransactionData, type?: TxType, bumpPercent?: number): Promise<number>;
getGasPriceParams(speed?: LegacyGasPriceKey, bumpPercent?: number): Promise<GasPriceParams>;
}