-
Notifications
You must be signed in to change notification settings - Fork 12
/
hardhat.config.ts
51 lines (49 loc) · 1.43 KB
/
hardhat.config.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
// import "@nomiclabs/hardhat-waffle";
import "@nomiclabs/hardhat-ethers";
import "@openzeppelin/hardhat-upgrades";
import "@typechain/hardhat";
import "solidity-coverage";
import "@nomicfoundation/hardhat-chai-matchers";
console.log("[*] Environment");
console.log(` - ETHERSCAN_API_KEY: ${process.env.ETHERSCAN_API_KEY}`);
console.log(` - NODE_URL: ${process.env.NODE_URL}`);
export default {
networks: {
hardhat: {
accounts: {
count: 13
}
},
goerli: {
url: process.env.NODE_URL || ""
},
"optimism-goerli": {
url: process.env.NODE_URL || "https://goerli.optimism.io"
},
optimism: {
url: process.env.NODE_URL || "https://optimism-mainnet.infura.io"
},
mainnet: {
url: process.env.NODE_URL || "https://mainnet.infura.io/v3/"
}
},
solidity: {
compilers: [
{
version: "0.8.16",
settings: {
optimizer: {
enabled: true,
runs: 200
},
evmVersion: "istanbul"
}
}
]
},
paths: {cache: "hh-cache", tests: "./test/integration"},
mocha: {timeout: 400000000000, require: ["./test/integration/helper.ts"]},
etherscan: {
apiKey: process.env.ETHERSCAN_API_KEY
}
};