-
Notifications
You must be signed in to change notification settings - Fork 0
/
hardhat.config.ts
57 lines (56 loc) · 1.3 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
import "@nomiclabs/hardhat-waffle"
import "@openzeppelin/hardhat-upgrades"
import "@typechain/hardhat"
import "hardhat-gas-reporter"
import "hardhat-contract-sizer"
import "hardhat-abi-exporter"
import "./tasks/token"
module.exports = {
defaultNetwork: 'hardhat',
defender: {
apiKey: "[apiKey]",
apiSecret: "[apiSecret]",
},
networks: {
hardhat: {
allowUnlimitedContractSize: true,
},
localhost: {
url: 'http://localhost:8545',
gasPrice: 5000000000,
chainId: 9000,
gas: 4100000,
accounts: ['7C89C3BD4A1056EF3EFF01D8AC74E8290586F73DAA1EFF8B122B74D1599B983B'],
},
},
solidity: {
version: '0.8.0',
settings: {
optimizer: {
enabled: true,
runs: 1000,
},
}
},
gasReporter: {
enabled: true,
showMethodSig: true,
maxMethodDiff: 10,
},
contractSizer: {
alphaSort: true,
runOnCompile: true,
disambiguatePaths: false,
},
paths: {
sources: "./contracts",
tests: "./test",
cache: "./cache",
artifacts: "./artifacts"
},
abiExporter: {
path: './abi',
clear: true,
spacing: 4,
}
}