Skip to content

Conversation

dev-dist
Copy link

@dev-dist dev-dist commented Oct 8, 2025

AI summary of changes made for hh3 upgrade:

  • Dependencies (package.json)

    • Hardhat: upgraded to 3.0.7 (from 2.x)
    • Ethers: upgraded to 6.13.0 (Hardhat 3 requires ethers v6)
    • Toolbox: changed to @nomicfoundation/[email protected] (Hardhat 3–compatible variant for ethers)
    • Chainlink Contracts: updated to 1.5.0 (the reason for this migration)
  • Module System

    • ESM: added "type": "module" in package.json
    • Converted all JavaScript from CommonJS (require/module.exports) to ES modules (import/export)
  • Configuration (hardhat.config.js)

    • Uses import statements instead of require
    • Uses export default instead of module.exports
    • Network config includes type: "http" (required by Hardhat 3)
  • Solidity

    • Pragma updated to ^0.8.20 in both contracts
    • Added remappings.txt for OpenZeppelin contract version mapping
  • Task Files

    • Converted to ESM with ethers v6 APIs (formatEther, waitForDeployment(), updated AbiCoder)
    • Currently commented out in config due to ESM task loading timing issues
  • Node.js Requirement

    • Requires Node.js 22+ (documented in README)

@dev-dist dev-dist requested a review from a team as a code owner October 8, 2025 19:23
@dev-dist
Copy link
Author

Flipping this to draft state as i reconsider my approach to migration

@dev-dist dev-dist marked this pull request as draft October 15, 2025 05:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant