text: require("dotenv").config();
  require("@nomiclabs/hardhat-waffle");
  require("@nomiclabs/hardhat-etherscan");
  
  // This is a sample Hardhat task. To learn how to create your own go to
  // https://hardhat.org/guides/create-task.html
  task("accounts", "Prints the list of accounts", async (taskArgs, hre) => {
    const accounts = await hre.ethers.getSigners();
  
    for (const account of accounts) {
      console.log(account.address);
    }
  });
  
  // You need to export an object to set up your config
  // Go to https://hardhat.org/config/ to learn more
  
  /**
   * @type import('hardhat/config').HardhatUserConfig
   */
  module.exports = { 
    solidity: {
      version: "0.8.9",
      settings: {
        optimizer: {
          enabled: true,
          runs: 200
        }
      }
    },
    networks: {    
      localhost: {
        url: "http://127.0.0.1:8545"
      },
      hardhat: {
      },
      testnet: {
        url: "https://data-seed-prebsc-1-s1.binance.org:8545",
        chainId: 97,
        gasPrice: 20000000000,
        accounts:
          process.env.PRIVATE_KEY !== undefined ? [process.env.PRIVATE_KEY] : [],
      },
      mainnet: {
        url: "https://bsc-dataseed.binance.org/",
        chainId: 56,
        gasPrice: 20000000000,
        accounts:
          process.env.PRIVATE_KEY !== undefined ? [process.env.PRIVATE_KEY] : [],
      },
      fantom_testnet: {
        url: 'https://rpc.testnet.fantom.network/',
        // gas: 5000000000,
        gasPrice: 200000000000,
        chainId: 4002,
        accounts:
          process.env.PRIVATE_KEY !== undefined ? [process.env.PRIVATE_KEY] : [],
      },
      fantom: {
        url: 'https://rpcapi.fantom.network/',
        // gas: 50000000,
        gasPrice: 200000000000,
        chainId: 250,
        accounts:
          process.env.PRIVATE_KEY !== undefined ? [process.env.PRIVATE_KEY] : [],
      },
    },
    etherscan: {
      // Your API key for Etherscan
      // Obtain one at https://bscscan.com/
      // apiKey: process.env.bscscanApiKey
      apiKey: process.env.fantomApiKey
      //apiKey:process.env.snowtraceApiKey
      //*** */ code verify cmd
      //npx hardhat verify --network testnet 0x2c774CB62bdf1F7010A8D23cE655E59F71Bc20df
    },
  };
  