-
Notifications
You must be signed in to change notification settings - Fork 229
/
Copy pathhardhat.config.js
39 lines (36 loc) · 1.09 KB
/
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
37
38
39
require('hardhat-gas-reporter');
require('solidity-coverage');
let common = require('./hardhat-common.config.js');
// Config from environment
const mnemonicPhrase = process.env.MNEMONIC || 'test test test test test test test test test test test junk';
const mnemonicPassword = process.env.MNEMONIC_PASSWORD;
const providerUrl = process.env.PROVIDER_URL || 'http://localhost:8545';
module.exports = Object.assign(common, {
networks: {
hardhat: {
accounts: {
count: 50,
accountsBalance: '10000000000000000000000000',
},
},
localhost: {
host: '127.0.0.1',
port: 8545,
network_id: '*',
},
custom: {
url: `${providerUrl}`,
accounts: {
mnemonic: mnemonicPhrase,
path: 'm/44\'/60\'/0\'/0',
initialIndex: 0,
count: 1,
passphrase: mnemonicPassword,
},
network_id: '*',
},
},
gasReporter: {
enabled: !!process.env.REPORT_GAS,
},
});