-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhardhat.config.js
50 lines (49 loc) · 959 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
49
50
require("@nomicfoundation/hardhat-toolbox");
require("hardhat-deploy");
require('@openzeppelin/hardhat-upgrades');
require("solidity-coverage");
/** @type import('hardhat/config').HardhatUserConfig */
module.exports = {
solidity: {
version: "0.8.20",
settings: {
optimizer: {
enabled: true,
runs: 200
}
}
},
defaultNetwork: "hardhat",
namedAccounts: {
deployer: {
default: 0,
},
},
networks: {
hardhat: {
chainId: 1337,
},
localhost: {
url: "http://127.0.0.1:8545",
chainId: 1337,
},
coverage: {
url: 'http://127.0.0.1:8555',
gas: 0x1fffffffffffff,
gasPrice: 0x1,
baseFee: 1,
initialBaseFee: 1,
}
},
paths: {
sources: "./contracts",
tests: "./test",
cache: "./cache",
artifacts: "./artifacts",
coverage: "./coverage",
coverageJson: "./coverage.json"
},
mocha: {
timeout: 20000
}
};