generated from 0xSachinK/zk-starter
-
Notifications
You must be signed in to change notification settings - Fork 8
/
hardhat.config.js
46 lines (43 loc) · 992 Bytes
/
hardhat.config.js
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
require("dotenv").config();
const { INFURA_PROJECT_ID, PRIVATE_KEY, ETHERSCAN_GOERLI_API_KEY } = process.env;
require("@nomiclabs/hardhat-ethers");
require("@nomiclabs/hardhat-etherscan");
module.exports = {
networks: {
hardhat: {
forking: {
url: `https://mainnet.infura.io/v3/${INFURA_PROJECT_ID}`,
},
gas: 120000000,
blockGasLimit: 120000000
},
goerli: {
url: `https://goerli.infura.io/v3/${INFURA_PROJECT_ID}`,
accounts: [`0x${PRIVATE_KEY}`]
},
localhost: {
url: "http://127.0.0.1:8545",
timeout: 2000000,
gas: 120000000,
blockGasLimit: 120000000
},
},
// Etherscan verification doesn't work, was able to do it manually
etherscan: {
apiKey: {
goerli: ETHERSCAN_GOERLI_API_KEY,
}
},
paths: {
artifacts: "./artifacts",
},
solidity: {
version: "0.8.12",
settings: {
optimizer: {
enabled: true,
runs: 200
}
}
}
};