Repository navigation
chore(deps): update dependency hardhat-gas-reporter to v2 - #197
Open
renovate[bot] wants to merge 1 commit into
Open
renovate[bot] wants to merge 1 commit into
renovate[bot] wants to merge 1 commit into
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #197 +/- ##
==========================================
- Coverage 99.65% 99.65% -0.01%
==========================================
Files 23 23
Lines 1175 1164 -11
==========================================
- Hits 1171 1160 -11
Misses 4 4 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
renovate
Bot
force-pushed
the
renovate/hardhat-gas-reporter-2.x
branch
from
August 10, 2025 12:48
821da8e to
15eb556
Compare
renovate
Bot
force-pushed
the
renovate/hardhat-gas-reporter-2.x
branch
from
August 19, 2025 19:13
15eb556 to
b6a1429
Compare
renovate
Bot
force-pushed
the
renovate/hardhat-gas-reporter-2.x
branch
from
August 31, 2025 10:31
b6a1429 to
e1cffbb
Compare
renovate
Bot
force-pushed
the
renovate/hardhat-gas-reporter-2.x
branch
from
September 25, 2025 13:48
e1cffbb to
196ae1b
Compare
renovate
Bot
force-pushed
the
renovate/hardhat-gas-reporter-2.x
branch
from
October 22, 2025 01:34
196ae1b to
c87d6c6
Compare
renovate
Bot
force-pushed
the
renovate/hardhat-gas-reporter-2.x
branch
from
November 10, 2025 16:56
c87d6c6 to
88ad997
Compare
renovate
Bot
force-pushed
the
renovate/hardhat-gas-reporter-2.x
branch
from
November 18, 2025 14:58
88ad997 to
1b056fa
Compare
renovate
Bot
force-pushed
the
renovate/hardhat-gas-reporter-2.x
branch
from
December 3, 2025 19:58
1b056fa to
3c7d9cd
Compare
renovate
Bot
force-pushed
the
renovate/hardhat-gas-reporter-2.x
branch
from
December 31, 2025 16:02
3c7d9cd to
84d9f72
Compare
renovate
Bot
force-pushed
the
renovate/hardhat-gas-reporter-2.x
branch
from
January 8, 2026 19:07
84d9f72 to
9ec03d4
Compare
renovate
Bot
force-pushed
the
renovate/hardhat-gas-reporter-2.x
branch
from
January 19, 2026 19:15
9ec03d4 to
8f54211
Compare
renovate
Bot
force-pushed
the
renovate/hardhat-gas-reporter-2.x
branch
from
February 2, 2026 14:56
8f54211 to
e0f636d
Compare
renovate
Bot
force-pushed
the
renovate/hardhat-gas-reporter-2.x
branch
from
February 12, 2026 10:57
e0f636d to
a4e62bc
Compare
renovate
Bot
force-pushed
the
renovate/hardhat-gas-reporter-2.x
branch
from
February 19, 2026 11:15
a4e62bc to
8b119a3
Compare
renovate
Bot
force-pushed
the
renovate/hardhat-gas-reporter-2.x
branch
from
March 5, 2026 18:00
8b119a3 to
2a9f0b3
Compare
renovate
Bot
force-pushed
the
renovate/hardhat-gas-reporter-2.x
branch
from
March 13, 2026 14:11
2a9f0b3 to
43c8031
Compare
renovate
Bot
force-pushed
the
renovate/hardhat-gas-reporter-2.x
branch
2 times, most recently
from
April 8, 2026 20:13
2b76462 to
bcfda5a
Compare
renovate
Bot
force-pushed
the
renovate/hardhat-gas-reporter-2.x
branch
from
April 29, 2026 14:54
bcfda5a to
04ec9cb
Compare
renovate
Bot
force-pushed
the
renovate/hardhat-gas-reporter-2.x
branch
2 times, most recently
from
May 18, 2026 10:59
7c23591 to
e3ebd28
Compare
renovate
Bot
force-pushed
the
renovate/hardhat-gas-reporter-2.x
branch
2 times, most recently
from
June 1, 2026 21:52
bfb5ac8 to
4453187
Compare
renovate
Bot
force-pushed
the
renovate/hardhat-gas-reporter-2.x
branch
from
June 11, 2026 18:58
4453187 to
d7aff5d
Compare
renovate
Bot
force-pushed
the
renovate/hardhat-gas-reporter-2.x
branch
2 times, most recently
from
July 16, 2026 17:51
376be34 to
637b097
Compare
renovate
Bot
force-pushed
the
renovate/hardhat-gas-reporter-2.x
branch
2 times, most recently
from
July 24, 2026 18:34
9a02912 to
53b15d7
Compare
renovate
Bot
force-pushed
the
renovate/hardhat-gas-reporter-2.x
branch
from
July 30, 2026 16:03
53b15d7 to
3802dd6
Compare
renovate
Bot
force-pushed
the
renovate/hardhat-gas-reporter-2.x
branch
2 times, most recently
from
August 14, 2026 19:58
5c128ee to
c80617b
Compare
renovate
Bot
force-pushed
the
renovate/hardhat-gas-reporter-2.x
branch
from
August 26, 2026 15:11
c80617b to
555ea7d
Compare
renovate
Bot
force-pushed
the
renovate/hardhat-gas-reporter-2.x
branch
from
September 2, 2026 22:52
555ea7d to
d1eec30
Compare
renovate
Bot
force-pushed
the
renovate/hardhat-gas-reporter-2.x
branch
from
September 15, 2026 18:02
d1eec30 to
db3f5ac
Compare
renovate
Bot
force-pushed
the
renovate/hardhat-gas-reporter-2.x
branch
2 times, most recently
from
October 1, 2026 03:38
4854653 to
c07c51b
Compare
renovate
Bot
force-pushed
the
renovate/hardhat-gas-reporter-2.x
branch
2 times, most recently
from
October 13, 2026 14:07
6e7af1a to
4369562
Compare
renovate
Bot
force-pushed
the
renovate/hardhat-gas-reporter-2.x
branch
3 times, most recently
from
October 26, 2026 18:11
fd71680 to
9a38bdc
Compare
renovate
Bot
force-pushed
the
renovate/hardhat-gas-reporter-2.x
branch
2 times, most recently
from
November 11, 2026 13:41
842aafd to
538f755
Compare
renovate
Bot
force-pushed
the
renovate/hardhat-gas-reporter-2.x
branch
from
November 16, 2026 22:26
538f755 to
6bda11e
Compare
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
^1.0.9→^2.0.0Release Notes
cgewecke/hardhat-gas-reporter (hardhat-gas-reporter)
v2.3.0: Etherscan API V2Compare Source
This release migrates the plugin to Etherscan's new V2 API. (V1 will stop working in June 2025). A benefit of this change is that you'll only need a single API key to access any of the L1 and L2 networks Etherscan supports. As a result, the plugin's
L1EtherscanandL2Etherscanoptions are being deprecated in favor of a newetherscanoption.Your existing
L1Etherscankey will continue to work.To simplify your reporter config as you make this upgrade, make the change below:
const config: HardhatUserConfig = { gasReporter: { + etherscan: "ABC...", // Same value as your old `L1Etherscan` key - L1Etherscan: "ABC...", - L2Etherscan: "DEF..." } }(You'll continue to see price data even if you don't change your config. The plugin defaults to using your
L1Etherscankey if it doesn't see the newer option set.)What's Changed
Full Changelog: cgewecke/hardhat-gas-reporter@v2.2.3...v2.3.0
v2.2.3: Small L2 Bug FixesCompare Source
This release fixes two small bugs affecting L2 gas reporting:
gasPriceon the Hardhat Network config could result in test suites which emulate Arbitrum hanging (thanks to @mattador1 for reporting and helping debug this)viempackage (which should resolve npm installation warnings for one of its transitive dependencies)What's Changed
Full Changelog: cgewecke/hardhat-gas-reporter@v2.2.2...v2.2.3
v2.2.2: Support solc 0.8.28 featuresCompare Source
What's Changed
New Contributors
Full Changelog: cgewecke/hardhat-gas-reporter@v2.2.1...v2.2.2
v2.2.1: Fix L1 Etherscan api key logicCompare Source
Bug Fixes
Recently, Etherscan began requiring an api key to fetch live
gasPriceandbaseFeedata for Ethereum mainnet. This release fixes a bug in the way theL1Etherscanapi key option was set which caused those data calls to fail.L1Etherscanoption logic by @cgewecke in #240Full Changelog: cgewecke/hardhat-gas-reporter@v2.2.0...v2.2.1
v2.2.0: Gas Golfing SupportCompare Source
New
This release adds a
trackGasDeltasoption.When enabled, the reporter displays changes in gas usage between test runs - super useful for optimization work.
Many thanks to @0xVolosnikov for writing this feature.
Bugfixes
PRs
New Contributors
Full Changelog: cgewecke/hardhat-gas-reporter@v2.1.1...v2.2.0
v2.1.1: Allow sub-gweiblobBaseFeeCompare Source
What's Changed
blobBaseFeedrops below 1 gwei by @cgewecke in #228Full Changelog: cgewecke/hardhat-gas-reporter@v2.1.0...v2.1.1
v2.1.0: Arbitrum & Base L2 Network SupportCompare Source
What's New
blobBaseFeeis now fetched directly from the OP stack GasOracle contracts (should be accurate)blobBaseFeeprices for L2 emulation you'll need to set theL2Etherscanapi key option.What's changed
Full Changelog: cgewecke/hardhat-gas-reporter@v2.0.2...v2.1.0
v2.0.2: Fix crash with --parallel flagCompare Source
What's Changed
Full Changelog: cgewecke/hardhat-gas-reporter@v2.0.1...v2.0.2
v2.0.1: Optimism Ecotone (EIP-4844)Compare Source
What's Changed
Full Changelog: cgewecke/hardhat-gas-reporter@v2.0.0...v2.0.1
v2.0.0: : Optimism L2 & View/Pure Method GasCompare Source
What's New
Configuration for chains with Etherscan support has been simplified to a single key. Just set the
L1option to one of the supported networks and the reporter will take care of the rest. (You'll still need a coinmarketcap api key)Gas reporting for L2 networks is coming online, starting with Optimism.
Gas metrics for⚠️ There are performance hits when the view and pure options are enabled)
viewandpuremethods are now available as an option. You can also exclude intrinsic gas costs for state-changing methods. (There are multiple report formats, including markdown.
The reporter now supports sub-gwei gas prices. Sub-penny cost display is possible by configuring the
currencyDisplayPrecisionoptionDedicated support for the OpenZeppelin Upgrades plugin has been added. (Their proxy pattern often resulted in missing gas data because the reporter didn't know what contract was being called - that's all handled under the hood now.)
Dedicated support for the hardhat-viem plugin has been added (this was broken and should be fixed by this release)
There are many new output, display and low-level options - check out the Config Examples section of the docs
There's additional support for custom proxy contract resolution. If you're routing your calls through contract middleware you can configure the reporter to understand how that works and get the data you expect.
Additionally:
Breaking
gas-reporter:mergetask has been renamedhhgas:mergeonlyCalledMethodsoption has been renamedshowUncalledMethodsand must be set totrue(if you want that).Funding
Work on V2 was funded in part by OpenZeppelin via DRIPS, a public goods protocol that helps direct funding to packages in your dependency tree. If you're using DRIPS and want to add hardhat-gas-reporter to the packages you support its page is here.
Full Changelog: cgewecke/hardhat-gas-reporter@v1.10.0...v2.0.0
Configuration
📅 Schedule: (UTC)
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.