-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtruffle.js
36 lines (35 loc) · 856 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
var HDWalletProvider = require("truffle-hdwallet-provider")
var fs = require('fs')
var secret = fs.readFileSync(__dirname + "/.secret", 'utf8')
module.exports = {
networks: {
test: {
host: "localhost",
port: 8545,
gas: 6500000,
network_id: "*" // Match any network id
},
rinkeby: {
gas: 6500000,
network_id: 4, // Rinkeby Ethereum network
provider: function () {
var config = JSON.parse(secret).rinkeby
return new HDWalletProvider(config.mnemonic, config.uri)
}
},
main: {
gas: 6500000,
network_id: 1, // Official Ethereum network
provider: function () {
var config = JSON.parse(secret).main
return new HDWalletProvider(config.mnemonic, config.uri)
}
}
},
solc: {
optimizer: {
enabled: true,
runs: 200
}
}
}