{"repo":"cgewecke/hardhat-gas-reporter","free":true,"listed":false,"github":"https://github.com/cgewecke/hardhat-gas-reporter","clone":"git clone https://github.com/cgewecke/hardhat-gas-reporter.git","description":"Gas Usage Analytics for Hardhat","language":"TypeScript","stars":431,"topics":["solidity","unit-tests","ethereum","hardhat-plugin","gas"],"license":"MIT","category":"blockchain-web3","readme_excerpt":"hardhat-gas-reporter Gas Usage Analytics for Hardhat - Get gas metrics for method calls and deployments on L1 and L2 by running your test suite. - Get national currency costs of deploying and using your contract system. - Output data in multiple formats including text, markdown, reStructuredText and JSON. Example report + See [markdown format example][10] Installation Add the following to your hardhat.config.ts: Configuration Configuration is optional. Usage This plugin overrides the built-in test task. Gas reports are generated by default with: :bulb: Turning the plugin on/off The enabled option lets you toggle gas reporting on and off using shell environment variables. Tests run faster when the gas reporter is off because fewer calls are made to the client to read data. :mag: Caveats about Accuracy : + Gas readings for pure and view methods are only a lower bound of their real world cost. Actual gas usage will depend on the way the methods are called and the storage/memory state of the EVM at the moment of invocation. For more information on this see the excellent summary at [wolfio/evm/gas][1] + L1 gas readings for Arbitrum & OPStack chains are approximations - some variance is expected. + Optimism estimates should be within 1% of observed usage on [optimistic-etherscan][100]. + Arbitrum estimates should be within 10% of observed usage on [arbiscan][111] + The Hardhat client implements the Ethereum Foundation EVM. To get accurate measurements for other EVM-based chains you","default_branch":null,"files":null,"tree":[],"storefront":"/r/cgewecke","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/cgewecke/hardhat-gas-reporter/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}