-
Notifications
You must be signed in to change notification settings - Fork 0
/
hardhat.config.js
60 lines (58 loc) · 1.37 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
55
56
57
58
59
60
require("@nomiclabs/hardhat-waffle")
require("@nomiclabs/hardhat-etherscan")
require("hardhat-deploy")
require("solidity-coverage")
require("hardhat-gas-reporter")
require("hardhat-contract-sizer")
require("dotenv").config()
module.exports = {
solidity: "0.8.4",
networks: {
hardhat: {
chainId: 1337,
gas: 2100000,
gasPrice: 8000000000,
},
localhost: {
url: "http://localhost:8545",
chainId: 1337,
},
mumbai: {
url: process.env.NEXT_PUBLIC_POLYGON_MUMBAI,
accounts: [process.env.PRIVATE_KEY],
chainId: 80001,
},
polygon: {
url: process.env.NEXT_PUBLIC_POLYGON_MAIN,
accounts: [process.env.PRIVATE_KEY],
chainId: 137,
},
},
namedAccounts: {
deployer: {
default: 0,
},
buyer: {
default: 1,
},
},
etherscan: {
// yarn hardhat verify --network <NETWORK> <CONTRACT_ADDRESS> <CONSTRUCTOR_PARAMETERS>
apiKey: {
polygonMumbai: process.env.POLYSCAN_API_KEY,
polygon: process.env.POLYSCAN_API_KEY,
rinkeby: process.env.ETHERSCAN_API_KEY,
kovan: process.env.ETHERSCAN_API_KEY,
},
},
gasReporter: {
enabled: true,
currency: "USD",
outputFile: "contracts/gas-report.txt",
noColors: true,
// coinmarketcap: process.env.COINMARKET_API_KEY,
},
mocha: {
timeout: 100000, // 100 seconds max for running tests
},
}