Skip to content

Commit 6364c62

Browse files
committed
feat: upgrade Hardhat and compiler configuration
Update Hardhat configuration and dependencies: - Upgrade primary compiler from 0.8.18 to 0.8.28 - Update EVM version from 'london' to 'cancun' - Update hardhat network hardfork to 'cancun' - Remove redundant global compiler settings - Clean up dependency compiler paths Update development dependencies: - Upgrade @typechain/ethers-v5 from ^10.1.0 to ^11.1.2 - Upgrade hardhat from ^2.22.19 to ^v2.26.3 - Add TypeChain override for consistent version resolution - Remove unused blob dependency - Keep publishConfig for proper scoped package publishing Signed-off-by: Miguel_LZPF <[email protected]>
1 parent e549c4e commit 6364c62

File tree

2 files changed

+6
-15
lines changed

2 files changed

+6
-15
lines changed

packages/ats/contracts/hardhat.config.ts

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -219,13 +219,13 @@ const config: HardhatUserConfig = {
219219
solidity: {
220220
compilers: [
221221
{
222-
version: '0.8.18',
222+
version: '0.8.28',
223223
settings: {
224224
optimizer: {
225225
enabled: true,
226226
runs: 100,
227227
},
228-
evmVersion: 'london',
228+
evmVersion: 'cancun',
229229
},
230230
},
231231
{
@@ -239,13 +239,6 @@ const config: HardhatUserConfig = {
239239
},
240240
},
241241
],
242-
settings: {
243-
optimizer: {
244-
enabled: true,
245-
runs: 1,
246-
},
247-
evmVersion: 'london',
248-
},
249242
},
250243
paths: {
251244
sources: './contracts',
@@ -258,7 +251,7 @@ const config: HardhatUserConfig = {
258251
hardhat: {
259252
chainId: 1337,
260253
blockGasLimit: 30_000_000,
261-
hardfork: 'london',
254+
hardfork: 'cancun',
262255
},
263256
local: {
264257
url: Configuration.endpoints.local.jsonRpc,
@@ -315,8 +308,6 @@ const config: HardhatUserConfig = {
315308
'@tokenysolutions/t-rex/contracts/compliance/legacy/DefaultCompliance.sol',
316309
'@onchain-id/solidity/contracts/Identity.sol',
317310
'@onchain-id/solidity/contracts/ClaimIssuer.sol',
318-
'@onchain-id/solidity/contracts/factory/IdFactory.sol',
319-
'@onchain-id/solidity/contracts/proxy/ImplementationAuthority.sol',
320311
],
321312
},
322313
dodoc: {

packages/ats/contracts/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,15 +71,14 @@
7171
"@terminal3/ecdsa_vc": "^0.1.19",
7272
"@thomaschaplin/isin-generator": "^1.0.3",
7373
"@tokenysolutions/t-rex": "^4.1.6",
74-
"@typechain/ethers-v5": "^10.1.0",
74+
"@typechain/ethers-v5": "^11.1.2",
7575
"@typechain/hardhat": "^6.1.2",
7676
"@types/jest": "^29.5.14",
77-
"blob": "^0.1.0",
7877
"chai": "^4.4.0",
7978
"dotenv": "^16.0.3",
8079
"ethers": "^5.8.0",
8180
"glob": "^11.0.3",
82-
"hardhat": "^2.22.19",
81+
"hardhat": "^v2.26.3",
8382
"hardhat-abi-exporter": "^2.11.0",
8483
"hardhat-contract-sizer": "^2.10.0",
8584
"hardhat-dependency-compiler": "^1.2.1",
@@ -91,6 +90,7 @@
9190
"typescript": "^5.8.2"
9291
},
9392
"overrides": {
93+
"@typechain/ethers-v5": "^11.1.2",
9494
"ws": "^8.15.0"
9595
},
9696
"publishConfig": {

0 commit comments

Comments
 (0)