import { config as dotenvConfig } from "dotenv" ; import "@typechain/hardhat" ; import "@nomiclabs/hardhat-ethers" ; import "@nomiclabs/hardhat-waffle" ; import "@nomiclabs/hardhat-etherscan" ; import "solidity-coverage" ; import "hardhat-gas-reporter" ; import { HardhatUserConfig } from "hardhat/types/config" ; dotenvConfig ( ) ; const gasPrice = parseInt ( process . env . GAS_PRICE || "1000000000" ) ; const config = { solidity : { compilers : [ { version : "0.8.10" , settings : { optimizer : { enabled : true , runs : 200 , } , } , } , ] , } , networks : { hardhat : { initialBaseFeePerGas : 0 , } , rinkeby : { url : process . env . RINKEBY_URL || "" , accounts : process . env . PRIVATE_KEY !== undefined ? [ process . env . PRIVATE_KEY ] : [ ] , gasPrice , } , mainnet : { url : process . env . MAINNET_URL || "" , accounts : process . env . PRIVATE_KEY !== undefined ? [ process . env . PRIVATE_KEY ] : [ ] , gasPrice , } , } , gasReporter : { enabled : process . env . REPORT_GAS !== undefined , currency : "USD" , gasPrice : 120 , coinmarketcap : process . env . COINMARKETCAP_API_KEY , } , etherscan : { apiKey : process . env . ETHERSCAN_API_KEY , } , } ; export default config ;