-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhardhat.config.js
More file actions
39 lines (36 loc) · 813 Bytes
/
Copy pathhardhat.config.js
File metadata and controls
39 lines (36 loc) · 813 Bytes
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");
const dotenv = require("dotenv");
dotenv.config();
const mnemonic = process.env.MNEMONIC.trim();
const infuraKey = process.env.INFURA_KEY;
const etherscanKey = process.env.ETHERSCAN_KEY;
module.exports = {
networks: {
localhost: {
url: "http://localhost:7545",
},
rinkeby: {
url: `https://rinkeby.infura.io/v3/${infuraKey}`,
accounts: {
mnemonic,
},
},
mainnet: {
url: `https://mainnet.infura.io/v3/${infuraKey}`,
accounts: {
mnemonic,
},
},
polygon: {
url: `https://polygon-mainnet.infura.io/v3/${infuraKey}`,
accounts: {
mnemonic,
},
},
},
etherscan: {
apiKey: etherscanKey,
},
solidity: "0.8.4",
};