Skip to content

Conversation

Nalon
Copy link
Collaborator

@Nalon Nalon commented Oct 11, 2025

Summary

This PR updates several dependencies and project configurations to align with the latest versions of Chainlink packages and improve local development stability.

Dependency Updates

Project Configuration

  • Added a preprocessor and remappings due to unvendoring in 1.5.0
  • Updated import paths to accommodate unvendored OpenZeppelin contracts
  • Introduced remappings-helper declaration file and relocated it for better organization
  • Resolved HardhatError: HH701 by: Updating test to use fully qualified name for MockCCIPRouter (due to duplicate artifacts in chainlink/contracts-ccip and chainlink/local)

Changes

  • Tests
    test/no-fork/Example1.spec.ts
    test/no-fork/Example2.spec.ts
  • Import Paths
    contracts/BasicTokenSender.sol
    contracts/ProgrammableTokenTransfers.sol
    contracts/utils/Dependencies.sol
    contracts/utils/Withdraw.sol
  • Remappings
    hardhat.config.ts
    helpers/remappings/remappings-helper.d.ts
    helpers/remappings/remappings-helper.js
    remappings.txt
  • Depenencies
    package.json
    package-lock.json

All other changes are a result of dependency upgrades.

Nalon added 4 commits October 10, 2025 17:34
- Bumped to [email protected]
- Bumped to [email protected]
- Bumped to local@[email protected]
- Added preprocessor
- Added remappings
- Updated import paths to account for unvendored OZ contracts
- Updated no-fork tests to use fully qualified name for MockCCIPRouter due to multiple artifacts originating from both chainlink/contracts-ccip and chianlink/local
- not ordering of imports in hardhat.config.ts
- Added declaration file for remappings-helper
- Relocated remappings-helper
- Updated import path
- Moved hardhat-preprocessor to dev dependency
- Moved OpenZeppelin to dev dependency
Copy link
Contributor

@zeuslawyer zeuslawyer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM - note comments and questions.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

make TS file?

Also if there is a canonical reference for this pattern (maybe in the official docs or the preprocess NPM package) maybe we can add that to the multi line comment on top?

"@chainlink/local": "0.2.7-beta.0",
"@nomicfoundation/hardhat-toolbox": "^5.0.0",
"hardhat": "^2.22.7"
"hardhat": "^2.22.7",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do we need to update README to say that this repo uses remappings for HH2 (similar to this README: https://github.com/smartcontractkit/hardhat-starter-kit)?

Are we doing HH3 branch here too?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Redundant file given that hardhat version used in this PR is 2.22.7

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.

3 participants