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

Integration with TruffleContract from Truffle 4

Truffle
Testing

Integration with TruffleContract from Truffle 5

Truffle
Testing

Injects Web3 1.x into the Hardhat Runtime Environment

Web3.js
Testing
Tasks
Scripts

Injects Web3 0.20.x into the Hardhat Runtime Environment

Web3.js
Legacy
Testing
Tasks
Scripts

Automatically verify contracts on Etherscan

Etherscan
Verification

Hardhat plugin for managing Ganache

Ganache
Testing network

Automatically run the solpp preprocessor before each compilation

Solpp
Preprocessor

Easily run solhint to lint your Solidity code

Solhint
Linter

Adds support to compile Vyper smart contracts

Vyper
Compiler

Hardhat plugin for Deployments

Deployment
Testing

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

Solidity
Preprocessor

A hardhat-deploy plugin for Ethers.js v5

Ethers.js
hardhat-deploy

Hardhat plugin for deploying and managing upgradeable contracts.

Security
Upgrades
OpenZeppelin

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

Debuggin
Monitoring
Alerting
Tasks
Scripts

Generate TypeChain type definitions for smart contracts.

Testing
Tasks

Automatically prepend local Solidity source files with an SPDX License Identifier

License

Automatically export Solidity contract ABIs on compilation

Compiling
ABI

Calculate compiled contract sizes

Compiling
Bytecode

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

Logging
Console
Deployment

Compile Solidity sources directly from NPM dependencies

Compiling
Dependencies

Generate a static documentation site from NatSpec comments

Documentation
NatSpec

Automatically run Hardhat actions on file changes.

Tasks
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

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

Testing

Buidler plugin for Aragon App development

Aragon
Apps
Buidler plugin

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

Compiling
Documentation
Buidler plugin

Allow loading network configs for Hardhat projects in home file

Networks
Config

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

Testing
Mocking
Buidler plugin

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

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

See emitted events during your hardhat tests in the console

Events
Logs
Trace
Console
Testing
Last Updated: 4/8/2021, 9:36:23 PM