-
Notifications
You must be signed in to change notification settings - Fork 4
/
truffle.js
46 lines (44 loc) · 959 Bytes
/
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
const HDWalletProvider = require('truffle-hdwallet-provider')
const mnemonic = process.env.MNEMONIC
module.exports = {
networks: {
ganache: {
host: '127.0.0.1',
port: 7545,
network_id: '*' // Match any network id,
},
development: {
host: '127.0.0.1',
port: 8545,
network_id: '*', // Match any network id,
gas: 6000000
},
ropsten: {
provider: function () {
return new HDWalletProvider(mnemonic, 'https://ropsten.infura.io/')
},
network_id: '3',
gas: 6700000,
gasPrice: 2000000000 // 2 Gwei
},
rinkeby: {
provider: function () {
return new HDWalletProvider(mnemonic, 'https://rinkeby.infura.io/')
},
network_id: '4',
gas: 6700000,
gasPrice: 2000000000 // 2 Gwei
}
},
compilers: {
solc: {
version: '0.4.24'
}
},
solc: {
optimizer: {
enabled: true,
runs: 200
}
}
}