This repository has been archived by the owner on Apr 7, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
/
truffle.js.sample
70 lines (67 loc) · 1.59 KB
/
truffle.js.sample
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
// require('babel-register')({
// ignore: /node_modules\/(?!openzeppelin-solidity\/test\/helpers)/
// });
// require('babel-polyfill');
var HDWalletProvider = require("truffle-hdwallet-provider");
// Either use this key or get yours at https://infura.io/signup. It's free.
var infura_apikey = "INFURA_APIKEY";
// use your deployer account's mnemonic
var mnemonic = "BLAH * 16";
module.exports = {
// See <http://truffleframework.com/docs/advanced/configuration>
// to customize your Truffle configuration!
networks: {
development: { // ganache by default
host: "localhost",
port: 7545,
gas: 6500000,
gasPrice: 20000000000,
from: "xxxx", // default from account setting
network_id: "5777"
},
kovan: {
provider: () => new HDWalletProvider(mnemonic, "https://kovan.infura.io/" + infura_apikey),
network_id: 42,
gas: 4500000
},
rinkeby: {
provider: () => new HDWalletProvider(mnemonic, "https://rinkeby.infura.io/" + infura_apikey),
network_id: 4,
gas: 4500000
},
live: {
}
},
solc: {
optimizer: {
enabled: true,
runs: 200
}
},
mocha: {
useColors: true
}
};
/*
module.exports = {
// See <http://truffleframework.com/docs/advanced/configuration>
// to customize your Truffle configuration!
networks: {
privateNode: {
host: '127.0.0.1',
port: 8501,
network_id: '*'
},
ganache: {
host: "127.0.0.1",
port: 7545,
network_id: "*"
},
ganache_cli: {
host: "127.0.0.1",
port: 8545,
network_id: "*"
}
}
};
*/