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.1 kB
TypeScript
import type { GasAnalyticsManager } from "./types.js";
import type { HookContext } from "../../../types/hooks.js";
import type { HardhatRuntimeEnvironment } from "../../../types/hre.js";
export declare function getGasAnalyticsManager(hookContextOrHre: HookContext | HardhatRuntimeEnvironment): GasAnalyticsManager;
export declare function setGasAnalyticsManager(hre: HardhatRuntimeEnvironment, gasAnalyticsManager: GasAnalyticsManager): void;
/**
* The following helpers are kept for backward compatibility with older versions
* of test runner plugins (hardhat-mocha, hardhat-node-test-runner) that import
* from "hardhat/internal/gas-analytics".
*/
export declare function markTestRunStart(id: string): Promise<void>;
export declare function markTestWorkerDone(id: string): Promise<void>;
export declare function markTestRunDone(id: string): Promise<void>;
export declare function formatSectionHeader(sectionName: string, { changedLength, addedLength, removedLength, }: {
changedLength: number;
addedLength: number;
removedLength: number;
}): string;
//# sourceMappingURL=helpers.d.ts.map