hardhat-deploy-migration

Migrate hardhat-deploy projects from v1 to v2 with a documented process.

1.3k|322|Updated Mar 19, 2020
One-click install
npx skills add https://github.com/wighawag/hardhat-deploy --skill hardhat-deploy-migration
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: hardhat-deploy-migration
Source: https://github.com/wighawag/hardhat-deploy/tree/main/skills/hardhat-deploy-migration
Command: npx skills add https://github.com/wighawag/hardhat-deploy --skill hardhat-deploy-migration

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

The migration guide helps developers move from hardhat-deploy v1 to v2, providing a clear, repeatable path to upgrade dependencies, restructure configurations, convert deploy scripts, and update tests to align with the new v2 architecture.

Core Features & Use Cases

  • Step-by-step migration plan: Covers prerequisites, dependency updates, and configuration changes.
  • Code transformation rules: Detailed rules for converting v1 patterns to v2 equivalents (deploy scripts, test fixtures, environment setup).
  • Real-world example references: Points to template repositories and v2 patterns to illustrate practical adoption.

Quick Start

Follow the guide's steps to audit your project, adjust your hardhat.config.ts, add rocketh/config.ts and rocketh/deploy.ts, migrate deploy scripts and tests, and run the migration checklist to verify success.

Frequently Asked Questions about hardhat-deploy-migration

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I migrate hardhat-deploy from v1 to v2?

To migrate hardhat-deploy from v1 to v2, you must update dependencies, restructure configurations, convert deploy scripts, and update tests. The migration guide provides a step-by-step plan with concrete transformation rules and worked examples to ensure a successful upgrade.

What configuration changes are required for hardhat-deploy v2?

Configuration changes for hardhat-deploy v2 require adjusting your hardhat.config.ts and adding rocketh/config.ts alongside rocketh/deploy.ts. These restructuring steps align your project with the new v2 architecture.

When do I need to convert deploy scripts for hardhat-deploy v2?

You need to convert deploy scripts for hardhat-deploy v2 when upgrading your deployment tooling to the new architecture. The migration guide provides detailed code transformation rules for converting v1 patterns to v2 equivalents.

How do I update Ethereum test fixtures for hardhat-deploy v2?

To update Ethereum test fixtures for hardhat-deploy v2, apply the detailed code transformation rules provided in the migration guide. The process includes updating test fixtures and environment setup to align with v2 patterns.

What is the best way to troubleshoot hardhat-deploy migration issues across environments?

The best way to troubleshoot hardhat-deploy migration issues is to follow the guide's migration checklist to verify success across environments. The guide covers troubleshooting steps and points to real-world template repositories for practical reference.