-
Notifications
You must be signed in to change notification settings - Fork 0
/
hardhat.config.js
80 lines (72 loc) · 1.87 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
// Loading env configs for deploying and public contract source
require("dotenv").config();
// Using hardhat-ethers plugin for deploying
// See here: https://hardhat.org/plugins/nomiclabs-hardhat-ethers.html
// https://hardhat.org/guides/deploying.html
require("@nomiclabs/hardhat-ethers");
// Testing plugins with Waffle
// See here: https://hardhat.org/guides/waffle-testing.html
require("@nomiclabs/hardhat-waffle");
// This plugin runs solhint on the project's sources and prints the report
// See here: https://hardhat.org/plugins/nomiclabs-hardhat-solhint.html
require("@nomiclabs/hardhat-solhint");
// Verify and public source code on etherscan
require("@nomiclabs/hardhat-etherscan");
// Coverage testing
require("solidity-coverage");
// Call internal function
require("hardhat-exposed");
const config = {
defaultNetwork: "hardhat",
networks: {
hardhat: {
accounts: { count: 300 },
// blockGasLimit: 100000000429720
},
localhost: {
chainId: 31337,
},
rinkeby: {
url: `https://rinkeby.infura.io/v3/${process.env.INFURA_API_KEY}`,
accounts: [
process.env.DEPLOY_ACCOUNT1,
process.env.DEPLOY_ACCOUNT2,
process.env.DEPLOY_ACCOUNT3,
],
},
},
etherscan: {
apiKey: `${process.env.VERIFY_SCAN_KEY}`,
},
solidity: {
compilers: [
{
version: "0.8.0",
settings: {
optimizer: {
enabled: true,
runs: 200,
},
},
},
],
},
paths: {
sources: "./contracts",
tests: "./test",
cache: "./cache",
artifacts: "./artifacts",
deploy: "deploy",
deployments: "deployments",
},
mocha: {
timeout: 200000,
useColors: true,
reporter: "mocha-multi-reporters",
reporterOptions: {
configFile: "./mocha-report.json",
},
},
exposed: { prefix: "eps" },
};
module.exports = config;