solidity-hardhat-development

Installation
SKILL.md

Hardhat 3 Development Guide

When to Apply

  • Starting new Hardhat 3 projects.
  • Migrating from v2 to v3.
  • Testing Solidity contracts with Foundry-compatible tests.
  • Deploying with Hardhat Ignition.
  • Building multichain applications.

Project Setup

Run npx hardhat --init to start. Hardhat 3 requires ESM, so set "type": "module" in your package.json. You need Node.js v22.10 or newer. Use defineConfig from hardhat/config for your configuration file.

Configuration

The defineConfig pattern organizes your setup with solidity, networks, and plugins keys. Networks use type: "edr-simulated" for local testing or type: "http" for remote connections. Specify chainType as "l1", "op", or "generic". Use configVariable("KEY") for secrets to keep them out of your code. Build profiles allow different settings for production, like enabling the optimizer. Plugins must be explicitly listed in the plugins array.

Related skills

More from whackur/solidity-agent-toolkit

Installs
37
First Seen
Feb 15, 2026