-
Notifications
You must be signed in to change notification settings - Fork 5
/
truffle.js
72 lines (68 loc) · 2.04 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
65
66
67
68
69
70
71
72
const ethUtil = require("ethereumjs-util");
const env = process.env;
// don't load .env file in prod
if (env.NODE_ENV !== 'production') {
require('dotenv').load();
}
module.exports = {
// See <http://truffleframework.com/docs/advanced/configuration>
// to customize your Truffle configuration!
networks: {
development: {
host: "127.0.0.1",
port: 8545,
network_id: "*", // Match any network id,
gas: 6721975
},
ganache: {
host: '127.0.0.1',
port:8545,
network_id: 5777,
gas: 6721975
},
kovan: {
host: 'localhost',
port: 8545,
network_id: 42,
gas: 4700000,
gasPrice: 20000000000
},
rinkeby: {
provider: function() {
let WalletProvider = require("truffle-wallet-provider");
let wallet = require('ethereumjs-wallet').fromPrivateKey(Buffer.from(env.ETH_KEY, 'hex'));
return new WalletProvider(wallet, "https://rinkeby.infura.io/" + env.INFURA_TOKEN)
},
network_id: 4
},
rinkeby_localhost: {
host: "localhost", // Connect to geth on the specified
port: 8545,
network_id: 4,
gas: 4612388,
gasPrice: 20000000000,
from: "0xf17f52151EbEF6C7334FAD080c5704D77216b732"
},
geth_dev: {
host: "localhost", // Connect to geth on the specified
port: 8545,
network_id: 7555,
gas: 4700000,
gasPrice: 20000000000
},
bankexTestNetwork: {
host: '52.166.13.111',
port: 8535,
network_id: 488412,
gasPrice: 180000000000,
from: "0xf17f52151EbEF6C7334FAD080c5704D77216b732"
},
solc: {
optimizer: {
enabled: true,
runs: 200
}
},
migrations_directory: './migrations'
}
};