-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathtruffle.js
44 lines (40 loc) · 995 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
var HDWalletProvider = require("truffle-hdwallet-provider");
var mnemonic ="casual tent october favorite swarm eagle genius media note fly creek conduct";
// See <http://truffleframework.com/docs/advanced/configuration>
// for more about customizing your Truffle configuration!
module.exports = {
networks: {
development: {
host: '127.0.0.1',
port: 8545,
network_id: '*' // Match any network id
},
ropsten: {
provider: function() {
return new HDWalletProvider(mnemonic, "https://ropsten.infura.io/qNjs8vdB2KGt3QSe53cG")
},
network_id: 3,
// from:"0x656b1BAeD7C7f8B561dCE054E91239b699b4a0EF",
gas: 6612388,
gasPrice: 20000000000
},
ganache:
{
host: "127.0.0.1",
port: 7545,
network_id: "*" // matching any id
},
rpc:
{
host: 'localhost',
post:8080
},
solc:
{
optimizer: {
enabled: true,
runs: 200
}
}
}
}