-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhardhat.config.js
39 lines (36 loc) · 1.01 KB
/
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
require("@nomiclabs/hardhat-waffle");
require("@nomiclabs/hardhat-etherscan");
require('dotenv').config();
module.exports = {
defaultNetwork: "hardhat",
networks: {
hardhat: {
chainId: 1337
},
polygonMumbai: {
url: `https://polygon-mumbai.g.alchemy.com/v2/${process.env.NEXT_PUBLIC_ALCHEMY_ID}`,
accounts: [process.env.NEXT_PUBLIC_privateKey],
chainId: 80001
},
goerli: {
url: `https://eth-goerli.g.alchemy.com/v2/${process.env.NEXT_PUBLIC_ALCHEMY_ID_GOERLI}`,
accounts: [process.env.NEXT_PUBLIC_privateKey],
chainId: 5
},
},
etherscan: {
apiKey: {
polygonMumbai: process.env.NEXT_PUBLIC_POLYGONSCAN_API_KEY,
goerli: process.env.NEXT_PUBLIC_GOERLI_API_KEY,
}
},
solidity: {
version: "0.8.9",
settings: {
optimizer: {
enabled: true,
runs: 200
}
}
}
};