forked from ampleforth/ampleforth-contracts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
hardhat.config.ts
52 lines (49 loc) · 1.12 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
import { HardhatUserConfig } from 'hardhat/config'
import '@nomiclabs/hardhat-ethers'
import '@nomiclabs/hardhat-waffle'
import '@openzeppelin/hardhat-upgrades'
import "@nomiclabs/hardhat-etherscan";
import 'solidity-coverage'
import 'hardhat-gas-reporter'
require('./scripts/deploy')
export default {
etherscan: {
apiKey: process.env.ETHERSCAN_API_KEY
},
networks: {
rinkeby: {
url: `https://rinkeby.infura.io/v3/${process.env.INFURA_SECRET}`
},
kovan: {
url: `https://kovan.infura.io/v3/${process.env.INFURA_SECRET}`
},
mainnet: {
url: `https://mainnet.infura.io/v3/${process.env.INFURA_SECRET}`
}
},
solidity: {
compilers: [
{
version: '0.7.6',
settings: {
optimizer: {
enabled: true,
runs: 200,
},
},
},
{
version: '0.4.24',
},
],
},
mocha: {
timeout: 100000,
},
gasReporter: {
currency: 'USD',
enabled: process.env.REPORT_GAS ? true : false,
excludeContracts: ['mocks/'],
coinmarketcap: process.env.COINMARKETCAP_API_KEY,
},
} as HardhatUserConfig