forked from livepeer/merkle-mine
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtruffle.js
51 lines (48 loc) · 1.11 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
require('babel-register')
require('babel-polyfill')
require('dotenv').config();
var HDWalletProvider = require('truffle-hdwallet-provider')
module.exports = {
solc: {
optimizer: {
enabled: true,
runs: 500
}
},
// See <http://truffleframework.com/docs/advanced/configuration>
// to customize your Truffle configuration!
networks: {
development: {
host: 'localhost',
port: 8545,
network_id: '*' // match any network
},
mainnet: {
provider: function() {
return new HDWalletProvider(
process.env.MAINNET_MNEMONIC,
'https://mainnet.infura.io',
process.env.MAINNET_ACCOUNT_INDEX || 0
)
},
network_id: '*'
},
rinkeby: {
provider: function() {
return new HDWalletProvider(
process.env.RINKEBY_MNEMONIC,
'https://rinkeby.infura.io',
process.env.RINKEBY_ACCOUNT_INDEX || 0
)
},
gasPrice: 10000000000, // 10 gwei
gas: 7000000,
network_id: 4
},
ganache: {
host: 'localhost',
port: 7545,
network_id: 5777
}
}
}