JSPM

  • Created
  • Published
  • Downloads 3565
  • Score
    100M100P100Q135794F
  • License MIT

Hardhat plugin to support typechain

Package Exports

  • @nomicfoundation/hardhat-typechain
  • @nomicfoundation/hardhat-typechain/package.json
  • @nomicfoundation/hardhat-typechain/types

Readme

Hardhat Typechain plugin

This plugin integrates TypeChain into Hardhat, automatically generating TypeScript bindings for your smart contracts.

Installation

To install this plugin, run the following command:

npm install --save-dev @nomicfoundation/hardhat-typechain@next

and add the following statements to your hardhat.config.ts file:

// ...
import typechainPlugin from "@nomicfoundation/hardhat-typechain";

// ...

export default {
  // ...
  plugins: [
    // ...
    typechainPlugin,
  ],

  // ...
};

Configuration

You can configure it in the hardhat.config.ts file under the typechain property.

Usage

No extra steps are required to use this plugin. It will be run automatically by Hardhat when building your contracts.