hardhat-abi-exporter
Version:
Export Ethereum smart contract ABIs on compilation
13 lines (12 loc) • 375 B
JavaScript
import { exportAbiGroup } from '../logic.js';
const action = async (args, hre) => {
if (!args.noCompile) {
hre.globalOptions.noExportAbi = true;
await hre.tasks.getTask('compile').run();
}
const entries = hre.config.abiExporter;
await Promise.all(entries.map((entry) => {
exportAbiGroup(hre, entry);
}));
};
export default action;