text: const HDWalletProvider = require('truffle-hdwallet-provider')
  
  require('dotenv').config()
  
  const mnemonic = process.env.MNEMONIC
  const token = process.env.INFURA_TOKEN
  
  module.exports = {
    networks: {
      development: {
        host: "localhost",
        port: 8545,
        network_id: "*" // Match any network id
      },
      rinkeby: {
        provider: () => {
          return new HDWalletProvider(mnemonic, 'https://rinkeby.infura.io/v3/' + token)
        },
        network_id: '4',
        gasPrice: 25000000000, // 25 Gwei
      },
      goerli: {
        provider: () => {
          return new HDWalletProvider(mnemonic, 'https://goerli.infura.io/v3/' + token)
        },
        network_id: '5',
        gasPrice: 25000000000, // 25 Gwei
      },
      kovan: {
        provider: () => {
          return new HDWalletProvider(mnemonic, 'https://kovan.infura.io/v3/' + token)
        },
        network_id: '42',
        gasPrice: 25000000000, // 25 Gwei
      },
      mainnet: {
        provider: () => {
          return new HDWalletProvider(mnemonic, 'https://mainnet.infura.io/v3/' + token)
        },
        network_id: '1',
        gasPrice: 25000000000, // 25 Gwei
      }
    },
    solc: {
      optimizer: {
        enabled: false
      },
      settings: {
        evmVersion: "petersburg"
      }
    },
  };
  