Skip to content

Commit 9ac1b28

Browse files
Update CCIP-CCT to use Hardhat 3 (#120)
* Updates for ccip-1.6.2 and contracts-1.5.0 * update ccip-cct to use hardhat 3 * Remove <as any> * Update estimate-gas & token-transfer-using-arbitrary-messaging * nits * bump @chainlink/local 0.2.7-beta to 0.2.7-beta.0 * nits
1 parent d4589c8 commit 9ac1b28

File tree

75 files changed

+14221
-20508
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

75 files changed

+14221
-20508
lines changed

ccip/ccip-cla-rate-limits/foundry.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ remappings = [
99
'@chainlink/contracts-ccip=node_modules/@chainlink/contracts-ccip',
1010
'@chainlink/local=node_modules/@chainlink/local',
1111
'@openzeppelin/contracts=node_modules/@openzeppelin/contracts',
12+
'@openzeppelin/[email protected]=node_modules/@openzeppelin/contracts-5.0.2'
1213
]
1314

1415
# See more config options https://github.com/foundry-rs/foundry/blob/master/crates/config/README.md#all-options

ccip/ccip-cla-rate-limits/package-lock.json

Lines changed: 375 additions & 147 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ccip/ccip-cla-rate-limits/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
"name": "ccip-cla-rate-limits",
33
"version": "0.0.0",
44
"devDependencies": {
5-
"@chainlink/contracts": "1.4.0",
6-
"@chainlink/contracts-ccip": "1.6.1",
7-
"@chainlink/local": "^0.2.5-beta.0",
8-
"@openzeppelin/contracts": "^5.0.2"
5+
"@chainlink/contracts": "1.5.0",
6+
"@chainlink/contracts-ccip": "1.6.2",
7+
"@chainlink/local": "0.2.7-beta.0",
8+
"@openzeppelin/contracts": "5.4.0"
99
}
1010
}

ccip/ccip-cla-rate-limits/src/utils/Withdraw.sol

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,8 @@
22
pragma solidity 0.8.24;
33

44
import {OwnerIsCreator} from "@chainlink/contracts/src/v0.8/shared/access/OwnerIsCreator.sol";
5-
import {IERC20} from
6-
"@chainlink/contracts/src/v0.8/vendor/openzeppelin-solidity/v4.8.3/contracts/token/ERC20/IERC20.sol";
7-
import {SafeERC20} from
8-
"@chainlink/contracts/src/v0.8/vendor/openzeppelin-solidity/v4.8.3/contracts/token/ERC20/utils/SafeERC20.sol";
5+
import {IERC20} from "@openzeppelin/contracts/token/ERC20/IERC20.sol";
6+
import {SafeERC20} from "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
97

108
/**
119
* THIS IS AN EXAMPLE CONTRACT THAT USES HARDCODED VALUES FOR CLARITY.

ccip/cct/foundry/foundry.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ optimizer_runs = 200
99
remappings = [
1010
'@chainlink/contracts-ccip/=node_modules/@chainlink/contracts-ccip/',
1111
'@chainlink/contracts/=node_modules/@chainlink/contracts/',
12+
'@openzeppelin/contracts/=node_modules/@openzeppelin/contracts/',
13+
'@openzeppelin/[email protected]/=node_modules/@openzeppelin/contracts-4.8.3/',
14+
'@openzeppelin/[email protected]/=node_modules/@openzeppelin/contracts-5.0.2/'
1215
]
1316

1417
fs_permissions = [{ access = "read-write", path = "./" }]

0 commit comments

Comments
 (0)