text: require("@nomiclabs/hardhat-waffle");
  require("@nomiclabs/hardhat-etherscan");
  require("@nomiclabs/hardhat-ethers");
  require("solidity-coverage");
  require("hardhat-deploy");
  require("hardhat-gas-reporter");
  require("hardhat-contract-sizer");
  const {removeConsoleLog} = require("hardhat-preprocessor");
  require("dotenv").config();
  
  module.exports = {
    defaultNetwork: "hardhat",
    solidity: {
      compilers: [
        {
          version: "0.6.7",
          settings: {
            optimizer: {
              enabled: true,
              runs: 200,
            },
          },
        },
        {
          version: "0.6.12",
          settings: {
            optimizer: {
              enabled: true,
              runs: 200,
            },
          },
        },
      ],
    },
    networks: {
      hardhat: {
        forking: {
          url: `https://mainnet.infura.io/v3/${process.env.INFURA_KEY}`,
        },
        accounts: {
          mnemonic: process.env.MNEMONIC,
        },
        hardfork: "london",
        gasPrice: "auto",
      },
      mainnet: {
        url: `https://mainnet.infura.io/v3/${process.env.INFURA_KEY}`,
        accounts: {
          mnemonic: process.env.MNEMONIC,
        },
      },
      matic: {
        url: "https://keen-bell:chaste-gulf-chunk-aloe-deuce-copied@nd-654-291-805.p2pify.com/",
        accounts: {
          mnemonic: process.env.MNEMONIC,
        },
      },
    },
    contractSizer: {
      alphaSort: true,
      runOnCompile: false,
    },
    etherscan: {
      apiKey: process.env.ETHERSCAN_APIKEY,
    },
    paths: {
      sources: "./src",
      tests: "./src/tests/strategies",
      cache: "./cache",
      artifacts: "./artifacts",
    },
    namedAccounts: {
      deployer: {
        default: 0,
      },
    },
    gasReporter: {
      enabled: true,
      coinmarketcap: process.env.COINMARKETCAP,
      currency: "USD",
      gasPrice: 32,
    },
    preprocess: {
      eachLine: removeConsoleLog((hre) => hre.network.name !== "hardhat" && hre.network.name !== "localhost"),
    },
    mocha: {
      timeout: 20000000,
    },
    vyper: {
      version: "0.2.7",
    },
  };
  