Skip to content

Commit

Permalink
Add hardfork history to hardhat config files
Browse files Browse the repository at this point in the history
  • Loading branch information
ckoopmann committed Oct 17, 2024
1 parent 4326442 commit 058f8f1
Show file tree
Hide file tree
Showing 4 changed files with 50 additions and 29 deletions.
23 changes: 15 additions & 8 deletions hardhat.arbitrum.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,20 @@ require('dotenv').config()

/** @type import('hardhat/config').HardhatUserConfig */
module.exports = {
solidity: '0.8.17',
networks: {
hardhat: {
chainId: 42161,
forking: {
url: process.env.ARBITRUM_ALCHEMY_API,
},
solidity: '0.8.17',
networks: {
hardhat: {
chainId: 42161,
forking: {
url: process.env.ARBITRUM_ALCHEMY_API,
},
chains: {
42161: {
hardforkHistory: {
cancun: 0,
},
},
},
},
},
},
}
23 changes: 15 additions & 8 deletions hardhat.base.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,20 @@ require('dotenv').config()

/** @type import('hardhat/config').HardhatUserConfig */
module.exports = {
solidity: '0.8.17',
networks: {
hardhat: {
chainId: 8453,
forking: {
url: process.env.BASE_ALCHEMY_API,
},
solidity: '0.8.17',
networks: {
hardhat: {
chainId: 8453,
forking: {
url: process.env.BASE_ALCHEMY_API,
},
},
chains: {
8453: {
hardforkHistory: {
cancun: 0,
},
},
},
},
},
}
31 changes: 19 additions & 12 deletions hardhat.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,25 @@ require('dotenv').config()

/** @type import('hardhat/config').HardhatUserConfig */
module.exports = {
solidity: {
version: '0.8.17',
settings: {
evmVersion: 'cancun',
solidity: {
version: '0.8.17',
settings: {
evmVersion: 'cancun',
},
},
},
networks: {
hardhat: {
chainId: 1,
forking: {
url: process.env.MAINNET_ALCHEMY_API,
},
networks: {
hardhat: {
chainId: 1,
forking: {
url: process.env.MAINNET_ALCHEMY_API,
},
},
chains: {
1: {
hardforkHistory: {
cancun: 0,
},
},
},
},
},
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
"cz-conventional-changelog": "^3.3.0",
"dotenv": "^16.0.1",
"eslint": "^8.17.0",
"hardhat": "^2.17.1",
"hardhat": "^2.22.13",
"jest": "^28.1.1",
"prettier": "^2.6.2",
"semantic-release": "^24.0.0",
Expand Down

0 comments on commit 058f8f1

Please sign in to comment.