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