UNPKG

hardhat

Version:

Hardhat is an extensible developer tool that helps smart contract developers increase productivity by reliably bringing together the tools they want.

19 lines 1.03 kB
import type { EthereumProvider, JsonRpcRequest, JsonRpcResponse } from "../../../../../../types/providers.js"; import type { RequestHandler } from "../../types.js"; import { MultipliedGasEstimation } from "./multiplied-gas-estimation.js"; export declare const DEFAULT_GAS_MULTIPLIER = 1; /** * This class modifies transaction requests by automatically estimating the gas required, * applying a multiplier to the estimated gas. * * It extends the `MultipliedGasEstimation` class * to handle the gas estimation logic. If no gas value is provided in the transaction, * the gas is automatically estimated before being added to the request. */ export declare class AutomaticGasHandler extends MultipliedGasEstimation implements RequestHandler { #private; constructor(provider: EthereumProvider, gasMultiplier?: number); isSupportedMethod(jsonRpcRequest: JsonRpcRequest): boolean; handle(jsonRpcRequest: JsonRpcRequest): Promise<JsonRpcRequest | JsonRpcResponse>; } //# sourceMappingURL=automatic-gas-handler.d.ts.map