← ClaudeAtlas

hardhat-frameworklisted

Expert usage of Hardhat for smart contract development, testing, and deployment. Includes TypeChain generation, plugin ecosystem, network forking, and deployment management.
a5c-ai/babysitter · ★ 1,913 · AI & Automation · score 90
Install: claude install-skill a5c-ai/babysitter
# Hardhat Framework Skill Expert-level usage of Hardhat, the most popular Ethereum development environment. ## Capabilities - **Configuration**: Set up hardhat.config.js for multi-network - **Testing**: Write tests with ethers.js/viem - **Plugins**: Use plugins (upgrades, gas-reporter, coverage) - **Local Network**: Run Hardhat Network for development - **Deployment**: Execute scripts and manage deployments - **Forking**: Fork mainnet for testing - **TypeChain**: Generate TypeScript typings ## Installation ```bash # Create project mkdir my-project && cd my-project npm init -y # Install Hardhat npm install --save-dev hardhat # Initialize project npx hardhat init # Install common dependencies npm install --save-dev @nomicfoundation/hardhat-toolbox ``` ## Configuration ### hardhat.config.js ```javascript require("@nomicfoundation/hardhat-toolbox"); require("@openzeppelin/hardhat-upgrades"); require("hardhat-gas-reporter"); require("solidity-coverage"); /** @type import('hardhat/config').HardhatUserConfig */ module.exports = { solidity: { version: "0.8.20", settings: { optimizer: { enabled: true, runs: 200, }, viaIR: false, }, }, networks: { hardhat: { forking: { url: process.env.MAINNET_RPC_URL, blockNumber: 18000000, }, }, sepolia: { url: process.env.SEPOLIA_RPC_URL, accounts: [process.env.PRIVATE_KEY], }, mainnet: { url: process.env.MAINNET_RPC_URL