Package Exports
- @nomicfoundation/hardhat-typechain
- @nomicfoundation/hardhat-typechain/package.json
- @nomicfoundation/hardhat-typechain/types
Readme
hardhat-typechain
This plugin integrates TypeChain into Hardhat, automatically generating TypeScript bindings for your smart contracts.
Installation
This plugin is part of the Ethers+Mocha Hardhat Toolbox. If you are using that toolbox, there's nothing else you need to do.
To install this plugin, run the following command:
npm install --save-dev @nomicfoundation/hardhat-typechainIn your hardhat.config.ts file, import the plugin and add it to the plugins array:
import hardhatTypechain from "@nomicfoundation/hardhat-typechain";
export default {
plugins: [hardhatTypechain],
};Usage
No extra steps are required to use this plugin. It will be run automatically by Hardhat when building your contracts.