text: require("@nomiclabs/hardhat-waffle");
  const fs = require('fs');
  // const privateKey = fs.readFileSync(".secret").toString().trim() || "01234567890123456789";
  // const infuraId = fs.readFileSync(".infuraid").toString().trim() || "";
  
  module.exports = {
    defaultNetwork: "hardhat",
    networks: {
      hardhat: {
        chainId: 1337
      },
      /*
      mumbai: {
        // Infura
        // url: `https://polygon-mumbai.infura.io/v3/${infuraId}`
        url: "https://rpc-mumbai.matic.today",
        accounts: [privateKey]
      },
      matic: {
        // Infura
        // url: `https://polygon-mainnet.infura.io/v3/${infuraId}`,
        url: "https://rpc-mainnet.maticvigil.com",
        accounts: [privateKey]
      }
      */
    },
    solidity: {
      version: "0.8.1",
      settings: {
        optimizer: {
          enabled: true,
          runs: 200
        }
      }
    }
  };
  
  