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

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

Waffle
Testing

Code coverage for Solidity

Testing
Coverage
Hardhat plugin

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

Testing
Gas
Hardhat plugin

Hardhat plugin for Deployments

Deployment
Testing

Automatically verify contracts on Etherscan

Etherscan
Verification

Zero-config TypeChain support for Hardhat.

Testing
Tasks

A hardhat-deploy plugin for Ethers.js v5

Ethers.js
hardhat-deploy

Automatically run Hardhat actions on file changes.

Tasks
Testing

Calculate compiled contract sizes

Compiling
Bytecode

Hardhat plugin for deploying and managing upgradeable contracts.

Security
Upgrades
OpenZeppelin

Injects Web3 1.x into the Hardhat Runtime Environment

Web3.js
Testing
Tasks
Scripts

Integration with TruffleContract from Truffle 5

Truffle
Testing

Automatically export Solidity contract ABIs on compilation

Compiling
ABI

Easily run solhint to lint your Solidity code

Solhint
Linter

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

Debuggin
Monitoring
Alerting
Tasks
Scripts

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

Logging
Console
Deployment

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

Solidity
Preprocessor

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

Testing
Mocking
Buidler plugin

See emitted events during your hardhat tests in the console

Events
Logs
Trace
Console
Testing

Automatically prepend local Solidity source files with an SPDX License Identifier

License

Hardhat plugin for managing Ganache

Ganache
Testing network

Automatically run the solpp preprocessor before each compilation

Solpp
Preprocessor

Generate a static documentation site from NatSpec comments

Documentation
NatSpec

Compile Solidity sources directly from NPM dependencies

Compiling
Dependencies

Automatically compiles your Solidity contracts with the OVM compiler.

Optimism
Solidity
Compiler
OVM

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

Optimism
ethers.js
OVM

Exporting solidity contract storage layout

solidity
storage-layout

Buidler plugin for Aragon App development

Aragon
Apps
Buidler plugin

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

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

explorer
debugging
development-tool

Adds support to compile Vyper smart contracts

Vyper
Compiler

Allow loading network configs for Hardhat projects in home file

Networks
Config

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

Testing

Provide tasks to integrate Circom and SnarkJS

Circom
Snarkjs
Preprocessor
Compiling
Tasks
Scripts

Prepare the contract artifacts and the TypeChain bindings for registry deployment.

Deployment
Tasks
TypeChain

Automatically fetch contract ABI from Etherscan

Etherscan
ABI

Integration with TruffleContract from Truffle 4

Truffle
Testing

Allows changing the current network in Hardhat.

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

Helper plugin to manipulate blocks timestamp and trigger mining. It can be used from the command line and in the tests.

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