import * as dotenv from "dotenv" ; import { HardhatUserConfig , task } from "hardhat/config" ; import "@nomiclabs/hardhat-etherscan" ; import "@nomiclabs/hardhat-waffle" ; import "@typechain/hardhat" ; import "hardhat-abi-exporter" ; import "hardhat-gas-reporter" ; import "solidity-coverage" ; dotenv . config ( ) ; 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 ) ; } } ) ; const config = { solidity : "0.8.9" , networks : { ropsten : { url : process . env . ROPSTEN_URL || "" , accounts : process . env . PRIVATE_KEY !== undefined ? [ process . env . PRIVATE_KEY ] : [ ] , } , } , gasReporter : { enabled : process . env . REPORT_GAS !== undefined , currency : "USD" , } , etherscan : { apiKey : process . env . ETHERSCAN_API_KEY , } , abiExporter : { path : "./web/abi" , clear : true , only : [ ":DevCoin$" ] , spacing : 2 , pretty : true , } , } ; export default config ;