Plugins

Plugins are the backbone of Hardhat, and they're built using the same config DSL that you use in your Hardhat configuration. Read the Building plugins guide to learn how to create your own, and send a pull request to get it listed here.

Extend Hardhat's functionality with the plugins below.

Injects ethers.js into the Hardhat Runtime Environment

Ethers.js
Testing
Tasks
Scripts

Code coverage for Solidity

Testing
Coverage
Hardhat plugin

Adds a Waffle-compatible provider to the Hardhat Runtime Environment and automatically initializes the Waffle Chai matchers

Waffle
Testing

Hardhat plugin for Deployments

Deployment
Testing

Gas usage per unit test. Average gas usage per method. A mocha reporter.

Testing
Gas
Hardhat plugin

Automatically verify contracts on Etherscan

Etherscan
Verification

Generate TypeChain type definitions for smart contracts.

Testing
Tasks

A hardhat-deploy plugin for Ethers.js v5

Ethers.js
hardhat-deploy

Injects Web3 1.x into the Hardhat Runtime Environment

Web3.js
Testing
Tasks
Scripts

Calculate compiled contract sizes

Compiling
Bytecode

Integration with TruffleContract from Truffle 5

Truffle
Testing

Easily integrate your Hardhat project with Tenderly. Tenderly is an Ethereum monitoring, debugging and analytics platform.

Debuggin
Monitoring
Alerting
Tasks
Scripts

Hardhat plugin for deploying and managing upgradeable contracts.

Security
Upgrades
OpenZeppelin

Easily run solhint to lint your Solidity code

Solhint
Linter

Automatically export Solidity contract ABIs on compilation

Compiling
ABI

Automatically run Hardhat actions on file changes.

Tasks
Testing

Automatically prepend local Solidity source files with an SPDX License Identifier

License

An hardhat plugin to pre-process contract source code before compilation

Solidity
Preprocessor

Remove Hardhat console.log imports and calls from Solidity source files

Logging
Console
Deployment

Hardhat plugin for managing Ganache

Ganache
Testing network

smock is a utility package that can generate mock Solidity contracts written entirely in JavaScript.

Testing
Mocking
Buidler plugin

Generate a static documentation site from NatSpec comments

Documentation
NatSpec

Automatically run the solpp preprocessor before each compilation

Solpp
Preprocessor

See emitted events during your hardhat tests in the console

Events
Logs
Trace
Console
Testing

Integrates Hardhat and ethers.js with Optimism's L2 network.

Optimism
ethers.js
OVM

Automatically compiles your Solidity contracts with the OVM compiler.

Optimism
Solidity
Compiler
OVM

Compile Solidity sources directly from NPM dependencies

Compiling
Dependencies

Buidler plugin for Aragon App development

Aragon
Apps
Buidler plugin

Provide tasks to integrate Circom and SnarkJS

Circom
Snarkjs
Preprocessor
Compiling
Tasks
Scripts

Integrate your Hardhat project and Hardhat network with Ethernal. Ethernal is a block explorer for private chains.

explorer
debugging
development-tool

Allow loading network configs for Hardhat projects in home file

Networks
Config

A Hardhat plugin that generates a React hook component from your smart contracts. Hot reloaded into your React app. Deployed or not deployed. And everything typed and initialized.

Ethers
React
Deploy
Typechain
Frontend
Web3modal

Automatically fetch contract ABI from Etherscan

Etherscan
ABI

Adds support to compile Vyper smart contracts

Vyper
Compiler

Automatically deploy the ERC-1820 registry contract to Hardhat EVM chains.

Testing

Injects Web3 0.20.x into the Hardhat Runtime Environment

Web3.js
Legacy
Testing
Tasks
Scripts

A Buidler plugin to generate a descriptor of your Solidity source code

Compiling
Documentation
Buidler plugin

Integration with TruffleContract from Truffle 4

Truffle
Testing
Last Updated: 5/13/2020, 5:40:53 PM