hardhat
Version:
Hardhat is an extensible developer tool that helps smart contract developers increase productivity by reliably bringing together the tools they want.
14 lines • 776 B
TypeScript
import type { JsonRpcRequest, JsonRpcResponse } from "../../../../../../types/providers.js";
import type { RequestHandler } from "../../types.js";
import type { PrefixedHexString } from "@nomicfoundation/hardhat-utils/hex";
/**
* This class ensures that a fixed gas is applied to transaction requests.
* For `eth_sendTransaction` requests, it sets the gas field with the value provided via the class constructor, if it hasn't been specified already.
*/
export declare class FixedGasHandler implements RequestHandler {
#private;
constructor(gas: PrefixedHexString);
isSupportedMethod(jsonRpcRequest: JsonRpcRequest): boolean;
handle(jsonRpcRequest: JsonRpcRequest): Promise<JsonRpcRequest | JsonRpcResponse>;
}
//# sourceMappingURL=fixed-gas-handler.d.ts.map