-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathhardhat.config.js
More file actions
136 lines (124 loc) · 2.94 KB
/
hardhat.config.js
File metadata and controls
136 lines (124 loc) · 2.94 KB
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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
require('@nomiclabs/hardhat-ethers');
require('@nomiclabs/hardhat-waffle');
require('@nomiclabs/hardhat-ganache');
require('@openzeppelin/hardhat-upgrades');
require('hardhat-gas-reporter');
require('solidity-coverage');
require('@nomiclabs/hardhat-etherscan');
require('./tasks/deploy/ampleforth');
require('./tasks/deploy/chain_bridge');
require('./tasks/deploy/matic');
require('./tasks/deploy/rebase_reporter');
require('./tasks/ops/rebase');
require('./tasks/ops/xc_transfer');
require('./tasks/info/config');
require('./tasks/info/ampl');
require('./tasks/info/chain_bridge');
require('./tasks/info/cb_ampl_tx');
require('./tasks/upgrade');
module.exports = {
solidity: {
compilers: [
{
version: '0.4.24'
},
{
version: '0.5.12'
},
{
version: '0.6.4'
},
{
version: '0.6.8'
},
{
version: '0.7.6'
},
{
version: '0.7.3',
settings: {
optimizer: {
enabled: true,
runs: 200
}
}
},
{
version: '0.8.11',
settings: {
optimizer: {
enabled: true,
runs: 200
}
}
}
]
},
mocha: {
timeout: 1000000
},
gasReporter: {
currency: 'USD',
enabled: !!process.env.REPORT_GAS,
excludeContracts: ['_mocks', '_external', 'uFragments'],
coinmarketcap: process.env.COINMARKETCAP_API_KEY
},
etherscan: {
apiKey: process.env.ETHERSCAN_API_KEY
},
bscscan: {
apiKey: process.env.BSCSCAN_API_KEY
},
networks: {
hardhat: {
allowUnlimitedContractSize: true
},
localGethBaseChain: {
url: 'http://localhost:7545'
},
localGethSatChain1: {
url: 'http://localhost:7550'
},
localGethSatChain2: {
url: 'http://localhost:7555'
},
// meter-passport
dev1RopstenBaseChain: {
url: 'https://eth-ropsten.alchemyapi.io/v2/' + process.env.ALCHEMY_SECRET
},
dev1BscTestnetSatChain: {
url: 'https://data-seed-prebsc-1-s1.binance.org:8545'
},
dev1MeterTestnetSatChain: {
url: 'https://rpctest.meter.io'
},
// matic
dev2GoerliBaseChain: {
url: 'https://eth-goerli.alchemyapi.io/v2/' + process.env.ALCHEMY_SECRET,
gasMultiplier: 1.5
},
dev2MumbaiSatChain: {
url: 'https://polygon-mumbai.infura.io/v3/' + process.env.INFURA_SECRET
},
dev2MeterTestnetSatChain: {
url: 'https://rpctest.meter.io',
gasMultiplier: 1.1
},
// prod
prodEthereumBaseChain: {
url: 'https://mainnet.infura.io/v3/' + process.env.INFURA_SECRET
},
prodBscSatChain: {
url: 'https://bsc-dataseed.binance.org'
},
prodAvaxSatChain: {
url: 'https://api.avax.network/ext/bc/C/rpc'
},
prodMeterSatChain: {
url: 'https://rpc.meter.io'
},
prodMaticSatChain: {
url: 'https://polygon-mainnet.infura.io/v3/' + process.env.INFURA_SECRET
}
}
};