Replies: 1 comment
-
|
Hey, thanks for the discussion! We are already thinking of it, and since hardhat is one of the core components of SE-2, we would like a core contributor to take it up. Also
We already encrypt deployer's private key and don't store it in plaintext checkout #1008 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
RFC: Add Hardhat 3 Support to Scaffold-ETH
Summary
This RFC proposes adding Hardhat 3 support to scaffold-eth-2, modernizing the development stack with improved security, better developer experience, and future-proof architecture.
Background
Scaffold-ETH currently uses Hardhat 2.x, which is stable but lacks modern features. Hardhat 3 (currently in beta) offers significant improvements that would benefit the scaffold-eth ecosystem.
Motivation
Current Pain Points
.envfiles with plaintext secrets in repositoriesHardhat 3 Benefits
.envfilesImplementation Strategy
Option A: Gradual Migration (Recommended)
Option B: Complete Migration
Technical Implementation
Core Changes Required
Dependencies Update
{ "hardhat": "^3.0.7", "@nomicfoundation/hardhat-ignition": "^3.0.3", "@nomicfoundation/hardhat-verify": "^3.0.3", "@nomicfoundation/hardhat-keystore": "^3.0.1", "@nomicfoundation/hardhat-toolbox-mocha-ethers": "^3.0.0" }ESM Configuration
{ "type": "module" }Updated Hardhat Config
configVariable()for secretsImpact Analysis
Breaking Changes
.envto keystoreMigration Complexity
Risk Assessment
Example Config
Keystore Usage Example
Benefits
.envfiles with plaintext secretsOpen Questions
Reference Implementation
I've successfully migrated a scaffold-eth project to Hardhat 3 in my RPS Arena project. Key implementation details:
Community Feedback Requested
Next Steps
I'm committed to contributing this feature and helping with the migration process.
Beta Was this translation helpful? Give feedback.
All reactions