@@ -14,7 +14,6 @@ import "hardhat-gas-reporter";
1414import "solidity-coverage" ;
1515import "hardhat-deploy" ;
1616import "@openzeppelin/hardhat-upgrades" ;
17- import "hardhat-preprocessor" ;
1817
1918const 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.
4937const tasks = [
5038 "enableL1TokenAcrossEcosystem" ,
@@ -101,27 +89,10 @@ const LARGEST_CONTRACT_COMPILER_SETTINGS = {
10189
10290const 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
407369export default config ;
0 commit comments