@nomicfoundation/hardhat-typechain
TypeScript icon, indicating that this package has built-in type declarations

3.0.0-next.0 • Public • Published

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.

Package Sidebar

Install

npm i @nomicfoundation/hardhat-typechain

Weekly Downloads

717

Version

3.0.0-next.0

License

MIT

Unpacked Size

36.3 kB

Total Files

48

Last publish

Collaborators

  • galargh
  • alcuadrado
  • fvictorio
  • nomic-foundation-publisher
  • kanej
  • schaable
  • zoeytm