forked from coinocracy/solidity-fundamentals-test
-
Notifications
You must be signed in to change notification settings - Fork 0
/
hardhat.config.ts
58 lines (54 loc) · 1.35 KB
/
hardhat.config.ts
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
/**
* @type import('hardhat/config').HardhatUserConfig
*/
import "@nomiclabs/hardhat-ethers";
import "@nomiclabs/hardhat-etherscan";
import "@nomiclabs/hardhat-solhint";
import "@nomiclabs/hardhat-web3";
import "@typechain/hardhat";
import "dotenv/config";
import "hardhat-deploy";
import "hardhat-docgen";
import "solidity-coverage";
import "./tasks/accounts";
import "./tasks/balance";
import "./tasks/block-number";
module.exports = {
defaultNetwork: "hardhat",
networks: {
hardhat: {
// // If you want to do some forking, uncomment this
// forking: {
// url: "https://cloudflare-eth.com/"
// }
},
localhost: {},
ganache: {
url: "http://localhost:8545"
},
},
namedAccounts: {
deployer: {
default: 0, // here this will by default take the first account as deployer
1: 0, // similarly on mainnet it will take the first account as deployer.
},
feeCollector: {
default: 1,
},
},
solidity: {
compilers: [
{
version: "0.8.4",
},
],
},
mocha: {
timeout: 100000,
},
docgen: {
path: './docs',
clear: true,
runOnCompile: true,
}
};