-
Notifications
You must be signed in to change notification settings - Fork 4
/
hardhat.config.ts
84 lines (83 loc) · 1.84 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
import "@nomiclabs/hardhat-waffle"
import "@openzeppelin/hardhat-upgrades"
import "@openzeppelin/hardhat-defender"
import "@nomiclabs/hardhat-ethers"
import "@typechain/hardhat"
import "hardhat-gas-reporter"
import "hardhat-contract-sizer"
import "hardhat-abi-exporter"
import "./tasks/tendermintLibraries"
import "./tasks/tendermintClient"
import "./tasks/clientManager"
import "./tasks/packet"
import "./tasks/routing"
import "./tasks/erc1155Bank"
import "./tasks/nftTransfer"
import "./tasks/mtTransfer"
import "./tasks/accessManager"
import "./tasks/uptickGateway"
module.exports = {
defaultNetwork: 'hardhat',
defender: {
apiKey: "",
apiSecret: "",
},
networks: {
hardhat: {
allowUnlimitedContractSize: true,
},
// rinkeby: {
// url: 'https://rinkeby.infura.io/v3/',
// gasPrice: 1500000000,
// chainId: 4,
// gas: 4100000,
// accounts: [''],
// },
// bsctestnet: {
// url: 'https://data-seed-prebsc-1-s1.binance.org:8545',
// gasPrice: 20000000000,
// chainId: 97,
// accounts: [''],
// },
// bsc: {
// url: 'https://bsc-dataseed.binance.org',
// gasPrice: 5500000000,
// chainId: 56,
// accounts: [''],
// },
},
solidity: {
version: '0.6.8',
settings: {
optimizer: {
enabled: true,
runs: 1000,
},
}
},
gasReporter: {
enabled: true,
showMethodSig: true,
maxMethodDiff: 10,
currency: 'USD',
gasPrice: 127,
coinmarketcap: '5a0938c9-7912-438b-9baa-fcd71007b3d0'
},
contractSizer: {
alphaSort: true,
runOnCompile: true,
disambiguatePaths: false,
},
paths: {
sources: "./contracts",
tests: "./test",
cache: "./cache",
artifacts: "./artifacts"
},
abiExporter: {
path: './abi',
runOnCompile: true,
clear: true,
spacing: 2
}
}