dapp-token-ico
dapp-token-ico copied to clipboard
chore(deps): update dependency hardhat-gas-reporter to v2
This PR contains the following updates:
Package | Change | Age | Adoption | Passing | Confidence |
---|---|---|---|---|---|
hardhat-gas-reporter | 1.0.9 -> 2.1.1 |
Release Notes
cgewecke/hardhat-gas-reporter (hardhat-gas-reporter)
v2.1.1
: Allow sub-gwei blobBaseFee
What's Changed
- Fix bug in pricing for OP stack chains when the reported L1
blobBaseFee
drops below 1 gwei by @cgewecke in https://github.com/cgewecke/hardhat-gas-reporter/pull/228
Full Changelog: https://github.com/cgewecke/hardhat-gas-reporter/compare/v2.1.0...v2.1.1
v2.1.0
: Arbitrum & Base L2 Network Support
What's New
- Arbitrum and Base have been added to the list of L2 networks the gas reporter can emulate
gasReporter: { L2: "arbitrum" | "base" | "optimism", L2Etherscan: "ABC....", coinmarketcap: "abc...", }
-
blobBaseFee
is now fetched directly from the OP stack GasOracle contracts (should be accurate) - :warning: To get live
blobBaseFee
prices for L2 emulation you'll need to set theL2Etherscan
api key option. - the JSON output object now includes a separate intrinsic gas measurement for each transaction. This could be convenient if you want to do more complex post-processing with the gas data.
What's changed
- Bump undici from 5.28.2 to 5.28.3 by @dependabot in https://github.com/cgewecke/hardhat-gas-reporter/pull/175
- Fetch live blobBaseFee from OP Stack GasPriceOracle by @cgewecke in https://github.com/cgewecke/hardhat-gas-reporter/pull/222
- Add Base network support by @cgewecke in https://github.com/cgewecke/hardhat-gas-reporter/pull/223
- Collect intrinsicGas for JSON output by @cgewecke in https://github.com/cgewecke/hardhat-gas-reporter/pull/224
- Add Arbitrum support by @cgewecke in https://github.com/cgewecke/hardhat-gas-reporter/pull/225
- Update README image for 2.1.0 by @cgewecke in https://github.com/cgewecke/hardhat-gas-reporter/pull/226
Full Changelog: https://github.com/cgewecke/hardhat-gas-reporter/compare/v2.0.2...v2.1.0
v2.0.2
: Fix crash with --parallel flag
What's Changed
- Fix crash when --parallel flag is used by @cgewecke in https://github.com/cgewecke/hardhat-gas-reporter/pull/219
Full Changelog: https://github.com/cgewecke/hardhat-gas-reporter/compare/v2.0.1...v2.0.2
v2.0.1
: Optimism Ecotone (EIP-4844)
What's Changed
- Finalize Optimism Ecotone support and set as default hardfork by @cgewecke in https://github.com/cgewecke/hardhat-gas-reporter/pull/213
Full Changelog: https://github.com/cgewecke/hardhat-gas-reporter/compare/v2.0.0...v2.0.1
v2.0.0
: : Optimism L2 & View/Pure Method Gas
What's New
-
Configuration for chains with Etherscan support has been simplified to a single key. Just set the
L1
option to one of the supported networks and the reporter will take care of the rest. (You'll still need a coinmarketcap api key)gasReporter: { L1: "gnosis", coinmarketcap: "abc...", }
-
Gas reporting for L2 networks is coming online, starting with Optimism.
gasReporter: { L2: "optimism", coinmarketcap: "abc...", }
-
Gas metrics for
view
andpure
methods are now available as an option. You can also exclude intrinsic gas costs for state-changing methods. (⚠️ There are performance hits when the view and pure options are enabled)gasReporter: { // Debits intrinsic gas for state-changing method calls in order to model contracts // that will never be called by an EOA includeIntrinsicGas: false, // This option executes an additional `eth_estimateGas` for every `eth_call` // detected by the reporter. If you have 1000's of tests setting it to true has a // noticeable performance impact reportPureAndViewMethods: true, // This option can add SIGNIFICANT LAG to test startup time if you have // 100's of contracts in your project. (It parses all the sources in your dependency tree // to identify state variable declarations) excludeAutoGeneratedGetters: true, }
-
There are multiple report formats, including markdown.
-
The reporter now supports sub-gwei gas prices. Sub-penny cost display is possible by configuring the
currencyDisplayPrecision
option -
Dedicated 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:
- eth-gas-reporter's logic has been ported here and translated to Typescript
- The plugin has been decoupled from Mocha so it can be seamlessly integrated with lots of other tasks or test frameworks
- There have been big architectural changes and testing improvements and additional features are in the pipeline
Breaking
- Codechecks support was removed because it hasn't been accepting users for a while. I loved codechecks. (Building a github action for the reporter is on the V2 roadmap though).
- The JSON object emitted by the reporter has changed to reflect the plugin's internal types. If you've been post-processing that data you'll need to look at the JSON Output docs and update your logic.
- The
gas-reporter:merge
task has been renamedhhgas:merge
- The
onlyCalledMethods
option has been renamedshowUncalledMethods
and 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: https://github.com/cgewecke/hardhat-gas-reporter/compare/v1.10.0...v2.0.0
v1.0.10
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 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.
- [ ] If you want to rebase/retry this PR, check this box
This PR has been generated by Mend Renovate. View repository job log here.
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Name | Status | Preview | Comments | Updated (UTC) |
---|---|---|---|---|
dapp-token-ico | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | May 24, 2024 3:15am |
⚠️ No Changeset found
Latest commit: cc3a28d8ecbef8cb10968fb76ffe4afe8eed7699
Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.
Click here to learn what changesets are, and how to add one.
Click here if you're a maintainer who wants to add a changeset to this PR
New and removed dependencies detected. Learn more about Socket for GitHub ↗︎
Package | New capabilities | Transitives | Size | Publisher |
---|---|---|---|---|
npm/[email protected] | Transitive: environment, filesystem, network | +6 |
1.92 MB |
🚮 Removed packages: npm/[email protected]
👍 Dependency issues cleared. Learn more about Socket for GitHub ↗︎
This PR previously contained dependency changes with security issues that have been resolved, removed, or ignored.
[!IMPORTANT]
Review Skipped
Bot user detected.
To trigger a single review, invoke the
@coderabbitai review
command.You can disable this status message by setting the
reviews.review_status
tofalse
in the CodeRabbit configuration file.
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Tips
Chat
There are 3 ways to chat with CodeRabbit:
- Review comments: Directly reply to a review comment made by CodeRabbit. Example:
-
I pushed a fix in commit <commit_id>.
-
Generate unit testing code for this file.
-
Open a follow-up GitHub issue for this discussion.
-
- Files and specific lines of code (under the "Files changed" tab): Tag
@coderabbitai
in a new review comment at the desired location with your query. Examples:-
@coderabbitai generate unit testing code for this file.
-
@coderabbitai modularize this function.
-
- PR comments: Tag
@coderabbitai
in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:-
@coderabbitai generate interesting stats about this repository and render them as a table.
-
@coderabbitai show all the console.log statements in this repository.
-
@coderabbitai read src/utils.ts and generate unit testing code.
-
@coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
-
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.
CodeRabbit Commands (invoked as PR comments)
-
@coderabbitai pause
to pause the reviews on a PR. -
@coderabbitai resume
to resume the paused reviews. -
@coderabbitai review
to trigger a review. This is useful when automatic reviews are disabled for the repository. -
@coderabbitai resolve
resolve all the CodeRabbit review comments. -
@coderabbitai help
to get help.
Additionally, you can add @coderabbitai ignore
anywhere in the PR description to prevent this PR from being reviewed.
CodeRabbit Configration File (.coderabbit.yaml
)
- You can programmatically configure CodeRabbit by adding a
.coderabbit.yaml
file to the root of your repository. - Please see the configuration documentation for more information.
- If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation:
# yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json
Documentation and Community
- Visit our Documentation for detailed information on how to use CodeRabbit.
- Join our Discord Community to get help, request features, and share feedback.
- Follow us on X/Twitter for updates and announcements.