cgewecke / hardhat-gas-reporter

Gas Usage Analytics for Hardhat
MIT License
404 stars 55 forks source link

Add chain data auto-configuration #200

Closed cgewecke closed 4 months ago

cgewecke commented 4 months ago

170

Adds option auto-configure etherscan data fetching by specifying an L1 or L2, e.g

gasReporter: {
  L1: "polygon"
}

will autogenerate the necessary urls and request price data from Coinmarketcap for the correct native token.

Same for L2