-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhardhat.config.js
More file actions
47 lines (47 loc) · 1.04 KB
/
Copy pathhardhat.config.js
File metadata and controls
47 lines (47 loc) · 1.04 KB
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
47
require("@nomiclabs/hardhat-waffle");
const fs = require('fs');
// const infuraId = fs.readFileSync(".infuraid").toString().trim() || "";
const MUMBAI_PRIVATE_KEY = "";
module.exports = {
defaultNetwork: "hardhat",
networks: {
hardhat: {
chainId: 1337
},
/*
mumbai: {
// Infura
url: `https://polygon-mumbai.g.alchemy.com/v2`,
// url: "https://rpc-mumbai.matic.today",
accounts: [``]
},
*/
georli: {
url: "", //Infura url with projectId
accounts: [`PRIVATE_KEY`]
},
/*
matic: {
// Infura
// url: `https://polygon-mainnet.infura.io/v3/${infuraId}`,
url: "https://rpc-mainnet.maticvigil.com",
accounts: [process.env.privateKey]
}
*/
ganache: {
// Infura
// url: `https://polygon-mainnet.infura.io/v3/${infuraId}`,
url: "HTTP://LOCAL HOST ADDRESS",
accounts: ['PRIVATE-KEY']
}
},
solidity: {
version: "0.8.4",
settings: {
optimizer: {
enabled: true,
runs: 200
}
}
}
};