/ truffle.js
truffle.js
 1  const HDWalletProvider = require('truffle-hdwallet-provider');
 2  
 3  const mnemonic = process.env.TEST_MNEMONIC || 'status mnemonic status mnemonic status mnemonic status mnemonic status mnemonic status mnemonic';
 4  const providerRopsten = new HDWalletProvider(mnemonic, 'https://ropsten.infura.io/', 0);
 5  const providerKovan = new HDWalletProvider(mnemonic, 'https://kovan.infura.io', 0);
 6  
 7  module.exports = {
 8      networks: {
 9          development: {
10              network_id: 15,
11              host: "localhost",
12              port: 8545,
13              gas: 4000000,
14              gasPrice: 20e9,
15          },
16          development_migrate: {
17              network_id: 15,
18              host: "localhost",
19              port: 8545,
20              gas: 4000000,
21              gasPrice: 20e9,
22              from: "0xf93df8c288b9020e76583a6997362e89e0599e99",
23          },
24          mainnet: {
25              network_id: 1,
26              host: "localhost",
27              port: 8545,
28              gas: 4000000,
29              gasPrice: 20e9,
30              from: "0xf93df8c288b9020e76583a6997362e89e0599e99",
31          },
32          ropsten: {
33              network_id: 3,
34              provider: providerRopsten,
35              gas: 4000000,
36              gasPrice: 20e9,
37          },
38          kovan: {
39              network_id: 42,
40              provider: providerKovan,
41              gas: 4000000,
42              gasPrice: 20e9,
43          },
44      }
45  };