Skip to content

Commit be05e4b

Browse files
committed
pinned foundry/hardhat versions
Signed-off-by: Faisal Usmani <faisal.of.usmani@gmail.com>
1 parent d95273a commit be05e4b

File tree

5 files changed

+6
-51
lines changed

5 files changed

+6
-51
lines changed

contracts/SpokePool.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// SPDX-License-Identifier: BUSL-1.1
2-
pragma solidity 0.8.25;
2+
pragma solidity ^0.8.18;
33

44
import "./MerkleLib.sol";
55
import "./erc7683/ERC7683.sol";

foundry.toml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ remappings = [
1616
"@matterlabs/=node_modules/@matterlabs/",
1717
"@openzeppelin/=node_modules/@openzeppelin/",
1818
"@scroll-tech/=node_modules/@scroll-tech/",
19-
"@uma/=contracts/external/uma/",
2019
"@uniswap/=node_modules/@uniswap/",
2120
"arb-bridge-eth/=node_modules/arb-bridge-eth/",
2221
"arb-bridge-peripherals/=node_modules/arb-bridge-peripherals/",
@@ -28,9 +27,11 @@ remappings = [
2827
]
2928
via_ir = true
3029
optimizer_runs = 800
31-
auto_detect_solc = true
30+
solc_version = "0.8.25"
3231
revert_strings = "strip"
3332
fs_permissions = [{ access = "read", path = "./"}]
33+
34+
solc = "0.8.25"
3435
evm_version = "prague"
3536

3637
[profile.zksync.zksync]

hardhat.config.ts

Lines changed: 2 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ import "hardhat-gas-reporter";
1414
import "solidity-coverage";
1515
import "hardhat-deploy";
1616
import "@openzeppelin/hardhat-upgrades";
17-
import "hardhat-preprocessor";
1817

1918
const getMnemonic = () => {
2019
// Publicly-disclosed mnemonic. This is required for hre deployments in test.
@@ -34,17 +33,6 @@ const getDefaultHardhatConfig = (chainId: number, isTestnet: boolean = false): a
3433
};
3534
};
3635

37-
// Hardhat already resolves node_modules paths, so we only need to remap specific contracts where we need to apply a custom remapping rule.
38-
const customRemappings: [string, string][] = [["@uma", "contracts/external/uma/"]];
39-
40-
function applyRemappings(line: string): string {
41-
// split/join works on plain-string patterns and supports old Node versions
42-
for (const [find, rep] of customRemappings) {
43-
if (line.includes(find)) line = line.split(find).join(rep);
44-
}
45-
return line;
46-
}
47-
4836
// Custom tasks to add to HRE.
4937
const tasks = [
5038
"enableL1TokenAcrossEcosystem",
@@ -101,27 +89,10 @@ const LARGEST_CONTRACT_COMPILER_SETTINGS = {
10189

10290
const config: HardhatUserConfig = {
10391
solidity: {
104-
compilers: [
105-
DEFAULT_CONTRACT_COMPILER_SETTINGS,
106-
{
107-
...DEFAULT_CONTRACT_COMPILER_SETTINGS,
108-
version: "0.8.16",
109-
},
110-
],
92+
compilers: [DEFAULT_CONTRACT_COMPILER_SETTINGS],
11193
overrides: {
11294
"contracts/HubPool.sol": LARGE_CONTRACT_COMPILER_SETTINGS,
113-
"contracts/Linea_SpokePool.sol": {
114-
...LARGE_CONTRACT_COMPILER_SETTINGS,
115-
// NOTE: Linea only supports 0.8.19.
116-
// See https://docs.linea.build/build-on-linea/ethereum-differences#evm-opcodes
117-
// version: "0.8.19",
118-
},
119-
// "contracts/SpokePoolVerifier.sol": {
120-
// ...DEFAULT_CONTRACT_COMPILER_SETTINGS,
121-
// // NOTE: Linea only supports 0.8.19.
122-
// // See https://docs.linea.build/build-on-linea/ethereum-differences#evm-opcodes
123-
// version: "0.8.19",
124-
// },
95+
"contracts/Linea_SpokePool.sol": LARGE_CONTRACT_COMPILER_SETTINGS,
12596
"contracts/Universal_SpokePool.sol": LARGE_CONTRACT_COMPILER_SETTINGS,
12697
"contracts/Arbitrum_SpokePool.sol": LARGE_CONTRACT_COMPILER_SETTINGS,
12798
"contracts/Scroll_SpokePool.sol": LARGE_CONTRACT_COMPILER_SETTINGS,
@@ -133,10 +104,6 @@ const config: HardhatUserConfig = {
133104
"contracts/Cher_SpokePool.sol": LARGE_CONTRACT_COMPILER_SETTINGS,
134105
"contracts/Blast_SpokePool.sol": LARGEST_CONTRACT_COMPILER_SETTINGS,
135106
"contracts/Tatara_SpokePool.sol": LARGE_CONTRACT_COMPILER_SETTINGS,
136-
"contracts/external/uma/**/*.sol": {
137-
...DEFAULT_CONTRACT_COMPILER_SETTINGS,
138-
version: "0.8.16",
139-
},
140107
},
141108
},
142109
zksolc: {
@@ -397,11 +364,6 @@ const config: HardhatUserConfig = {
397364
paths: {
398365
tests: "./test/evm/hardhat",
399366
},
400-
// preprocess: {
401-
// eachLine: () => ({
402-
// transform: (line: string) => applyRemappings(line),
403-
// }),
404-
// },
405367
};
406368

407369
export default config;

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,6 @@
7777
"@uma/contracts-node": "^0.4.17",
7878
"axios": "^1.7.4",
7979
"bs58": "^6.0.0",
80-
"hardhat-preprocessor": "^0.1.5",
8180
"prettier-plugin-rust": "^0.1.9",
8281
"yargs": "^17.7.2",
8382
"zksync-web3": "^0.14.3"

yarn.lock

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10358,13 +10358,6 @@ hardhat-gas-reporter@^1.0.4, hardhat-gas-reporter@^1.0.8:
1035810358
eth-gas-reporter "^0.2.24"
1035910359
sha1 "^1.1.1"
1036010360

10361-
hardhat-preprocessor@^0.1.5:
10362-
version "0.1.5"
10363-
resolved "https://registry.yarnpkg.com/hardhat-preprocessor/-/hardhat-preprocessor-0.1.5.tgz#75b22641fd6a680739c995d03bd5f7868eb72144"
10364-
integrity sha512-j8m44mmPxpxAAd0G8fPHRHOas/INZdzptSur0TNJvMEGcFdLDhbHHxBcqZVQ/bmiW42q4gC60AP4CXn9EF018g==
10365-
dependencies:
10366-
murmur-128 "^0.2.1"
10367-
1036810361
hardhat-typechain@^0.3.5:
1036910362
version "0.3.5"
1037010363
resolved "https://registry.yarnpkg.com/hardhat-typechain/-/hardhat-typechain-0.3.5.tgz#8e50616a9da348b33bd001168c8fda9c66b7b4af"

0 commit comments

Comments
 (0)