hardhat

📁 hairyf/blockchain-master 📅 1 day ago
0
总安装量
1
周安装量
安装命令
npx skills add https://github.com/hairyf/blockchain-master --skill hardhat

Agent 安装分布

mcpjam 1
claude-code 1
replit 1
junie 1
windsurf 1
zencoder 1

Skill 文档

Skill based on Hardhat (NomicFoundation/hardhat), generated 2026-02-09. Official docs: https://hardhat.org/docs

Hardhat is an Ethereum development environment: task runner (compile, test, run, node), built-in Hardhat Network, Hardhat Ignition for declarative deployment, and plugins (toolbox ethers/viem, Chai matchers, verify, etc.).

Core References

Topic Description Reference
Getting started Init, tasks, compile/test/deploy flow core-getting-started
Configuration hardhat.config, networks, solidity, paths, mocha core-config
HRE Hardhat Runtime Environment, network, artifacts, config core-hre
Compiler config Solidity version, optimizer, viaIR, settings core-compiler-config
Build profiles default vs production, –build-profile, solidity.profiles core-build-profiles
Config variables configVariable, keystore, secrets, env core-config-variables
Tasks and plugins HRE, tasks, plugins, creating tasks core-tasks-plugins

Features

Topic Description Reference
Hardhat Network In-process vs node, JSON-RPC, forking, network helpers features-network
Hardhat Ignition Declarative deployment, buildModule, Future, deploy features-ignition
Deployment overview Ignition vs scripts, network and keystore setup features-deployment-overview
Deployment scripts viem/ethers deploy in scripts, hardhat run, –build-profile features-deployment-scripts
Multichain Chain types (l1, op), –chain-type, network.connect chainType features-multichain
Testing loadFixture, Chai matchers, network helpers features-testing
Testing (Viem + node:test) hre.network.connect, viem assertions, network helpers features-testing-viem
Solidity tests .t.sol, setUp, fuzz, forge-std, cheatcodes features-testing-solidity
Code coverage –coverage, LCOV, HTML report features-testing-coverage
Gas statistics –gas-stats, per-function and deployment gas features-testing-gas-stats
Toolbox and verify Ethers vs Viem toolbox, contract verification features-toolbox-verify

Advanced

Topic Description Reference
Cheatcodes vm.prank, time, and other Solidity test cheatcodes advanced-cheatcodes

External Links