text: require('dotenv').config({ silent: true });
  
  const INFURA_API_KEY = process.env.INFURA_API_KEY;
  const MNEMONIC = process.env.MNEMONIC;
  const HDWalletProvider = require('truffle-hdwallet-provider');
  
  const NETWORK_IDS = {
    // mainnet: 1,
    ropsten: 2,
    rinkeby: 4,
    kovan: 42
  };
  
  module.exports = {
    networks: {
      development: {
        host: "localhost",
        port: 8545,
        network_id: "*",
      },
    }
  };
  
  for (let networkName in NETWORK_IDS) {
    module.exports.networks[ networkName ] = {
      provider: new HDWalletProvider(MNEMONIC, 'https://' + networkName + '.infura.io/' + INFURA_API_KEY),
      network_id: NETWORK_IDS[ networkName ],
      gas: 4698712
    };
  }
  