-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathtruffle.js
62 lines (60 loc) · 1.72 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
require('babel-register');
require('babel-polyfill');
const HDWalletProvider = require('truffle-hdwallet-provider');
const Settings = require('./settings');
module.exports = {
networks: {
development: {
host: 'localhost',
port: 8560,
network_id: '*', // Match any network id
gas: 6450000,
},
development_hd: {
provider: new HDWalletProvider(Settings.mnemonic, 'http://localhost:8560', 0, 50),
network_id: '*', // Match any network id
gas: 6450000,
},
ropsten: {
host: 'localhost',
port: 8550,
network_id: 3, // official id of the ropsten network
gas: 6450000,
gasPrice: 100000000000, // 100 Gwei
},
ropsten_hd: {
provider: new HDWalletProvider(Settings.mnemonic, 'http://localhost:8550', 0, 50),
network_id: 3, // official id of the ropsten network
gas: 6450000,
gasPrice: 100000000000, // 100 Gwei
},
main: {
host: 'localhost',
port: 8545,
network_id: 1, // official id of the main network
gas: 6450000,
gasPrice: 100000000000, // 100 Gwei
},
main_hd: {
provider: new HDWalletProvider(Settings.mnemonic, 'http://localhost:8545', 0, 50),
network_id: 1, // official id of the main network
gas: 6450000,
gasPrice: 100000000000, // 100 Gwei
},
coverage: {
host: 'localhost',
network_id: '*',
port: 8570,
gas: 0xfffffffffff,
gasPrice: 0x01,
},
},
// uncomment if you want to deploy contracts to the ropsten
//
// solc: {
// optimizer: {
// enabled: true,
// runs: 200,
// },
// },
};