-
Notifications
You must be signed in to change notification settings - Fork 1
/
hardhat.config.js
38 lines (37 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
require("@nomiclabs/hardhat-waffle")
const fs = require("fs")
const privateKey =
fs.readFileSync(".secret").toString().trim() || "01234567890123456789"
const infuraId = fs.readFileSync(".infuraid").toString().trim() || ""
module.exports = {
defaultNetwork: "mumbai",
networks: {
hardhat: {
chainId: 1337,
},
mumbai: {
// Infura
// url: `https://polygon-mumbai.infura.io/v3/${infuraId}`
// url: "https://rpc-mumbai.matic.today",
// url: "https://rpc-mumbai.maticvigil.com",
url: "https://matic-mumbai.chainstacklabs.com",
// url: "https://rpc-mumbai.maticvigil.com/v1/35346f853fb4496728602ff72a70eb9a8785064e",
accounts: [privateKey],
},
matic: {
// Infura
// 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,
},
},
},
}