-
Notifications
You must be signed in to change notification settings - Fork 0
/
hardhat.config.js
46 lines (41 loc) · 1.18 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
require("@nomicfoundation/hardhat-toolbox");
require("hardhat-gas-reporter");
// task("accounts", "Prints the list of accounts", async (taskArgs, hre) => {
// const accounts = await hre.ethers.getSigners();
// for (const account of accounts) {
// console.log(account.address);
// }
// });// https://hardhat.org/guides/create-task.html
// npx hardhat run scripts / deploy.js--network localhost
/** @type import('hardhat/config').HardhatUserConfig */
module.exports = {
defaultNetwork: "hardhat",
solidity: "0.8.6",
settings: {
optimizer: {
enabled: true,
runs: 200
}
},
networks: {
hardhat: {
chainId: 1337
// chain id 1337 switch between different networks
// 1337 for local host evem based local netowrk
},
goerli: {
url: `https://goerli.infura.io/v3/${process.env.INFURA_API_KEY}`,
chainId: 5,
},
// etherscan: {
// apiKey: {
// goerli: process.env.ETHERSCAN_API_KEY,
// },
// },
},
gasReporter: {
enabled: true, currency: "INR", outputFile: 'gas-report.txt', noColors: true, showTimeSpent: true,
coinmarketcap: "eb06a943-2bc6-43b7-8e53-5ebd04c84048",
token: "matic"
},
};