-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathtruffle.js
55 lines (51 loc) · 1.32 KB
/
truffle.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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
const HDWalletProvider = require('truffle-hdwallet-provider');
const secrets = require('./config/secrets.json')
const mochaGasSettings = {
reporter: 'eth-gas-reporter',
reporterOptions : {
currency: 'USD',
gasPrice: 21
}
};
const mocha = process.env.GAS_REPORTER ? mochaGasSettings : {};
module.exports = {
networks: {
development: {
host: 'localhost',
port: 7545,
network_id: '5777'
},
ropsten: {
provider: function() {
return new HDWalletProvider(secrets.mnemonic, `https://ropsten.infura.io/${secrets.infura_token}`)
},
network_id: 3,
gasPrice: 9,
gas: 4000000,
from: '0x8bbe02653aac65ed51bed07dc3f23136d6de7b2c'
},
rinkeby: {
provider: function() {
return new HDWalletProvider(secrets.mnemonic, `https://rinkeby.infura.io/${secrets.infura_token}`)
},
network_id: 4
},
mainnet: {
provider: function() {
return new HDWalletProvider(secrets.mnemonic, `https://mainnet.infura.io/${secrets.infura_token}`)
},
network_id: 1,
gasPrice: 4000000000,
gas: 4000000,
from: '0x8bbe02653aac65ed51bed07dc3f23136d6de7b2c'
},
coverage: {
host: 'localhost',
network_id: '*',
port: 8555,
gas: 0xffffffffff,
gasPrice: 0x01
},
},
mocha
};