hardhat
Version:
Hardhat is an extensible developer tool that helps smart contract developers increase productivity by reliably bringing together the tools they want.
12 lines (8 loc) • 332 B
text/typescript
import type { HardhatPlugin } from "../../../types/plugins.js";
const loadedPlugins = new Map<string, HardhatPlugin>();
export function registerLoadedPlugin(plugin: HardhatPlugin): void {
loadedPlugins.set(plugin.id, plugin);
}
export function getLoadedPlugins(): ReadonlyMap<string, HardhatPlugin> {
return loadedPlugins;
}