-
Notifications
You must be signed in to change notification settings - Fork 0
/
hardhat.config.js
48 lines (45 loc) · 961 Bytes
/
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
// require("@nomiclabs/hardhat-waffle");
// require("solidity-coverage");
// // require("@openzeppelin/contracts");
// /**
// * @type import('hardhat/config').HardhatUserConfig
// */
// module.exports = {
// solidity: "0.8.7",
// };
require("@nomiclabs/hardhat-ethers");
require("@nomiclabs/hardhat-etherscan");
require("dotenv").config();
const {POLYGON_MUMBAI_RPC_PROVIDER, POLYGON_MAINNET_PROVIDER, PRIVATE_KEY, POLYGON_API_KEY} = process.env;
module.exports = {
defaultNetwork: "matic",
networks: {
hardhat: {
},
matic: {
url: POLYGON_MUMBAI_RPC_PROVIDER,
accounts: [PRIVATE_KEY]
}
},
etherscan: {
apiKey: POLYGON_API_KEY,
},
solidity: {
version: "0.8.7",
settings: {
optimizer: {
enabled: true,
runs: 200
}
}
},
paths: {
sources: "./contracts",
tests: "./test",
cache: "./cache",
artifacts: "./artifacts"
},
mocha: {
timeout: 20000
}
}