-
Notifications
You must be signed in to change notification settings - Fork 0
/
truffle.js
64 lines (62 loc) · 2.4 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
56
57
58
59
60
61
62
63
64
/*
* NB: since truffle-hdwallet-provider 0.0.5 you must wrap HDWallet providers in a
* function when declaring them. Failure to do so will cause commands to hang. ex:
* ```
* mainnet: {
* provider: function() {
* return new HDWalletProvider(mnemonic, 'https://mainnet.infura.io/<infura-key>')
* },
* network_id: '1',
* gas: 4500000,
* gasPrice: 10000000000,
* },
*/
var HDWalletProvider = require("truffle-hdwallet-provider");
var mnemonic = "make toilet coffee child enough artwork write sauce polar sport problem junior";
module.exports = {
networks: {
development: {
host: "127.0.0.1",
port: 8545,
network_id: "*",
gas: 6712388,
gasPrice: 10000000000,
},
live: {
// host: "178.25.19.88", // Random IP for example purposes (do not use)
// port: 80,
// network_id: 1, // Ethereum public network
// optional config values:
// gasPrice
// from - default address to use for any transaction Truffle makes during migrations
// provider - web3 provider instance Truffle should use to talk to the Ethereum network.
// - function that returns a web3 provider instance (see below.)
// - if specified, host and port are ignored.
},
ropsten: {
provider: function() {
return new HDWalletProvider(mnemonic, "https://ropsten.infura.io/");
},
network_id: '3',
},
// rinkeby: {
// host: "localhost", // Connect to geth on the specified
// port: 8545,
// from: "0x0085f8e72391Ce4BB5ce47541C846d059399fA6c", // default address to use for any transaction Truffle makes during migrations
// network_id: 4,
// gas: 4612388 // Gas limit used for deploys
// }
rinkeby: {
// host: "localhost", // Connect to geth on the specified
// port: 8545,
// from: "0x7b0a8f5a633d66c4f6ba85272cfcb599e480b2f1", // default address to use for any transaction Truffle makes during migrations
provider: function() {
return new HDWalletProvider(mnemonic, "https://rinkeby.infura.io");
},
network_id: 4,
gas: 4612388 // Gas limit used for deploys
},
}
// See <http://truffleframework.com/docs/advanced/configuration>
// to customize your Truffle configuration!
};