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 (19 loc) • 545 B
text/typescript
import type { HardhatPlugin } from "../../../types/plugins.js";
import { globalFlag } from "../../core/config.js";
import "./type-extensions.js";
const hardhatPlugin: HardhatPlugin = {
id: "builtin:gas-analytics",
tasks: [],
globalOptions: [
globalFlag({
name: "gasStats",
description:
"Collects and displays gas usage statistics for all function calls during tests",
}),
],
hookHandlers: {
hre: () => import("./hook-handlers/hre.js"),
},
npmPackage: "hardhat",
};
export default hardhatPlugin;