2026-02-18 01:07:08 +01:00
2026-02-18 01:07:08 +01:00
2026-02-16 23:37:30 +01:00
2026-02-16 23:37:30 +01:00
2026-02-16 23:37:30 +01:00
2026-02-16 23:37:30 +01:00
2026-02-16 23:37:30 +01:00
2026-02-16 23:37:30 +01:00
2026-02-18 01:07:08 +01:00
2026-02-16 23:37:30 +01:00

Hardhat 3 Project

This is a Hardhat 3 project, which uses the native Node.js test runner (node:test) and the viem library for Ethereum interactions.

Project Overview

This example project includes:

  • A simple Hardhat configuration file.
  • An example contract called Counter.
  • TypeScript integration tests.

Install

To install dependencies, run:

npm install

Building

To build, run:

npx hardhat build

Running Tests

To run all the tests in the project, execute the following command:

npx hardhat test

You can also selectively run the node:test tests:

npx hardhat test nodejs

Make a deployment to Next Testnet

This project includes an example Ignition module to deploy a contract to our testnet.

To run the deployment to Next Testnet, set your mnemonics in an .env file (MNEMONICS=...) and run:

npx hardhat ignition deploy --network next ignition/modules/Counter.ts
Description
No description provided
Readme 52 KiB
Languages
TypeScript 100%