hardhat-v2-fork-testing

Community

Fork mainnet state locally without private keys.

Authorphpmac
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Forking a live chain into a local Hardhat v2 environment to test interactions with deployed contracts without exposing private keys, enabling realistic test scenarios.

Core Features & Use Cases

  • Fork mainnet/testnet state locally to reproduce real-world conditions.
  • Impersonate arbitrary addresses without private keys for testing.
  • Validate upgrades and complex interactions against current network state.
  • Note: Hardhat v3 syntax differences may require adjustments when migrating tests.

Quick Start

Enable a forked Hardhat network by setting FORK_URL and FORK_ENABLED, then run your tests on the hardhat network.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: hardhat-v2-fork-testing
Download link: https://github.com/phpmac/skills/archive/main.zip#hardhat-v2-fork-testing

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.