forked from api3dao/airnode-protocol-v1
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhardhat.config.js
36 lines (34 loc) · 856 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
require('@nomiclabs/hardhat-waffle');
require('@nomiclabs/hardhat-etherscan');
require('solidity-coverage');
require('hardhat-gas-reporter');
require('hardhat-deploy');
const fs = require('fs');
let credentials = require('./credentials.example.json');
if (fs.existsSync('./credentials.json')) {
credentials = require('./credentials.json');
}
module.exports = {
etherscan: credentials.etherscan,
gasReporter: {
enabled: process.env.REPORT_GAS ? true : false,
outputFile: 'gas_report',
noColors: true,
},
mocha: {
timeout: process.env.EXTENDED_TEST ? 3600000 : 20000,
},
networks: credentials.networks,
paths: {
tests: process.env.EXTENDED_TEST ? './extended-test' : './test',
},
solidity: {
version: '0.8.9',
settings: {
optimizer: {
enabled: true,
runs: 1000,
},
},
},
};