hardhat
Version:
Hardhat is an extensible developer tool that helps smart contract developers increase productivity by reliably bringing together the tools they want.
24 lines • 1.13 kB
TypeScript
import type { RawInlineOverride } from "./types.js";
import type { TestFunctionConfigOverride } from "@nomicfoundation/edr";
/**
* Returns true if the build info bytes contain either of the inline config
* prefixes.
*/
export declare function buildInfoContainsInlineConfig(buildInfoBytes: Uint8Array): boolean;
/**
* Finds the function selector for a given function name in the methodIdentifiers
* map. Matches the first entry whose signature starts with `functionName(`.
* Returns the selector prefixed with "0x".
*/
export declare function resolveFunctionSelector(methodIdentifiers: Record<string, string>, functionName: string): string | undefined;
/**
* Converts a validated set of raw overrides into a TestFunctionConfigOverride
* object.
*/
export declare function buildConfigOverride(overrides: RawInlineOverride[]): TestFunctionConfigOverride;
/**
* Constructs a fully qualified function name, in the format
* "source.sol:ContractName#functionName".
*/
export declare function getFunctionFqn(inputSourceName: string, contractName: string, functionName: string): string;
//# sourceMappingURL=helpers.d.ts.map