Generate solidity interfaces updated for version 0.8.4, with License support
Hardhat plugin.
npm install hardhat-if-gen
Import the plugin in your hardhat.config.js
:
require("hardhat-if-gen");
Or if you are using TypeScript, in your hardhat.config.ts
:
import "hardhat-if-gen";
This plugin adds generate-interface task to Hardhat:
yarn hardhat generate-interface <contract name>