-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathhardhat.config.js
51 lines (49 loc) · 1.27 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
require("@nomiclabs/hardhat-waffle")
require("hardhat-gas-reporter")
require("@nomiclabs/hardhat-etherscan")
require("dotenv").config()
require("solidity-coverage")
require("hardhat-deploy")
const POLYGON_MUMBAI_RPC_URL = process.env.POLYGON_MUMBAI_RPC_URL
const POLYGON_PRIVATE_KEY = process.env.POLYGON_PRIVATE_KEY
const POLYGONSCAN_API_KEY = process.env.POLYGONSCAN_API_KEY
module.exports = {
defaultNetwork: "hardhat",
networks: {
hardhat: {
chainId: 31337,
},
polygon: {
url: POLYGON_MUMBAI_RPC_URL,
accounts: [POLYGON_PRIVATE_KEY],
chainId: 80001,
blockConfirmations: 6,
},
},
solidity: {
compilers: [
{
version: "0.8.17",
},
],
},
etherscan: {
apiKey: POLYGONSCAN_API_KEY,
},
gasReporter: {
enabled: false,
currency: "USD",
outputFile: "gas-report.txt",
noColors: true,
// coinmarketcap: COINMARKETCAP_API_KEY,
},
namedAccounts: {
deployer: {
default: 0, // here this will by default take the first account as deployer
1: 0,
},
},
mocha: {
timeout: 200000, // 200 seconds max for running tests
},
}