hardhat-abi-exporter
Version:
Export Ethereum smart contract ABIs on compilation
10 lines (9 loc) • 472 B
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
const task_names_1 = require("hardhat/builtin-tasks/task-names");
const config_1 = require("hardhat/config");
(0, config_1.task)(task_names_1.TASK_CLEAN).setAction(async (args, hre, runSuper) => {
await runSuper();
const configs = hre.config.abiExporter.filter((c) => c.clear);
await Promise.all(configs.map(async (config) => hre.run('clear-abi-group', { path: config.path })));
});
;