UNPKG

hardhat

Version:

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

31 lines (26 loc) 910 B
import type { HardhatPlugin } from "../../../types/plugins.js"; import { ArgumentType } from "../../../types/arguments.js"; import { globalOption } from "../../core/config.js"; import "./type-extensions/config.js"; import "./type-extensions/global-options.js"; import "./type-extensions/hooks.js"; import "./type-extensions/hre.js"; const hardhatPlugin: HardhatPlugin = { id: "builtin:network-manager", hookHandlers: { config: () => import("./hook-handlers/config.js"), hre: () => import("./hook-handlers/hre.js"), network: () => import("./hook-handlers/network.js"), }, globalOptions: [ globalOption({ name: "network", description: "The network to connect to", type: ArgumentType.STRING_WITHOUT_DEFAULT, defaultValue: undefined, }), ], npmPackage: "hardhat", dependencies: () => [import("../artifacts/index.js")], }; export default hardhatPlugin;