-
Notifications
You must be signed in to change notification settings - Fork 0
/
hardhat.config.js
39 lines (38 loc) · 918 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
require("@nomiclabs/hardhat-waffle");
require("dotenv").config();
const fs = require("fs");
const privateKey =
fs.readFileSync(".secret").toString().trim() || "516549826546826516842985";
module.exports = {
defaultNetwork: "hardhat",
networks: {
hardhat: {
chainId: 1337,
},
mumbai: {
url: `https://polygon-mumbai.infura.io/v3/${process.env.PROJECT_ID}`,
// url: "https://rpc-mumbai.matic.today",
accounts: [privateKey],
},
ropsten: {
url: "https://ropsten.infura.io/v3/c41b490b41d94038be111f8ba4221a08",
accounts: [privateKey],
},
/*
matic: {
// url: `https://polygon-mainnet.infura.io/v3/${infuraId}`,
url: "https://rpc-mainnet.maticvigil.com",
accounts: [privateKey]
}
*/
},
solidity: {
version: "0.8.4",
settings: {
optimizer: {
enabled: true,
runs: 200,
},
},
},
};