-
Notifications
You must be signed in to change notification settings - Fork 0
/
hardhat.config.js
54 lines (49 loc) · 1.21 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
require("@nomicfoundation/hardhat-toolbox");
require('dotenv').config()
require("@nomiclabs/hardhat-etherscan");
module.exports = {
defaultNetwork: "hardhat",
solidity: {
version: "0.8.6",
settings: {
optimizer: {
enabled: true,
runs: 1000,
}
}
},
networks: {
hardhat: {
chainId: 1337
},
mumbai: {
url: `https://rpc-mumbai.maticvigil.com`,
accounts: [process.env.WALLET_PRIVATE_KEY],
chainId: 80001,
},
// goerli: {
// url: `https://goerli.infura.io/v3/${process.env.INFURA_API_KEY}`,
// chainId: 5,
// },
// mumbai: {
// // https://docs.unstoppabledomains.com/manage-domains/guides/add-polygon-to-metamask/
// url: `https://polygon-mumbai.infura.io/v3/${process.env.INFURA_API_KEY}`,
// accounts: [process.env.WALLET_PRIVATE_KEY],
// chainId: 80001,
// },
// etherscan: {
// apiKey: {
// goerli: process.env.ETHERSCAN_API_KEY,
// },
// },
},
gasReporter: {
enabled: true,
currency: "INR",
// coinmarketcap: process.env.COINMARKETCAP_API_KEY,
token: "avax",
outputFile: 'gas-report.txt',
noColors: true,
showTimeSpent: true,
},
}