-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhardhat.config.ts
49 lines (48 loc) · 1.01 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
import "@nomiclabs/hardhat-waffle";
require("@nomiclabs/hardhat-truffle5");
require("solidity-coverage");
require("@nomiclabs/hardhat-etherscan");
require("hardhat-gas-reporter");
require("dotenv").config();
module.exports = {
networks: {
rinkeby: {
url: `https://rinkeby.infura.io/v3/${process.env.INFURA_KEY}`,
accounts: [process.env.PRIVATE_KEY],
},
xdai: {
url: "https://xdai.poanetwork.dev",
accounts: [process.env.PRIVATE_KEY],
},
hardhat: {},
},
mocha: {
timeout: "600s",
},
paths: {
artifacts: "build/artifacts",
cache: "build/cache",
deploy: "src/deploy",
sources: "contracts",
},
solidity: {
compilers: [
{
version: "0.6.12",
settings: {
optimizer: {
enabled: true,
runs: 200,
},
},
},
],
},
gasReporter: {
currency: "USD",
enabled: process.env.GAS_REPORT_ENABLED === "true",
},
etherscan: {
apiKey: process.env.ETHERSCAN_API_KEY,
},
};