hardhat-interface-generator icon indicating copy to clipboard operation
hardhat-interface-generator copied to clipboard

hardhat-interface-generator

Generate solidity interfaces

Hardhat plugin.

Installation

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";

Tasks

This plugin adds the gen-interface task to Hardhat:

Usage

yarn hardhat gen-interface <contract name>