Skip to content
This repository has been archived by the owner on Aug 24, 2023. It is now read-only.

bump(deps): update dependency hardhat to ^2.17.1 #177

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Dec 6, 2022

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
hardhat (source) ^2.12.2 -> ^2.17.1 age adoption passing confidence

Release Notes

nomiclabs/hardhat (hardhat)

v2.17.1: Hardhat v2.17.1

Compare Source

This release adds support for solc v0.8.21, allows using console.log in pure functions and improves the output of the flatten task (see https://github.com/NomicFoundation/hardhat/issues/1499).

Besides that, this version:

  • Removed an unnecessary dependency (abort-controller) because it's no longer needed in the versions of node.js supported by Hardhat (thanks @​orlandoortegajr!)
  • Fixed a bug caused by nodes returning 429 responses without a Retry-After header (thanks @​kowalski!)
  • Added logic to throw an error when the debug_traceTransaction method is called with a tracer parameter that is not supported.

v2.17.0: Hardhat v2.17.0

Compare Source

This new minor version of Hardhat drops support for Node.js v14 and adds support for Node v20. To learn about which versions of Node we support, check our Stability guarantees page.

This version also adds support for solc 0.8.19 and 0.8.20 and fixes two bugs:

v2.16.1: Hardhat v2.16.1

Compare Source

This release fixes an issue in the compiler download that happens when Hardhat is used with node v18.16.x (the latest versions of node v18).

v2.16.0: Hardhat v2.16.0 - Extendable providers

Compare Source

This version of Hardhat adds a new extensibility point: you can now wrap Hardhat's network provider with your own logic.

This is done by using the new extendProvider configuration function:

extendProvider(async (provider, config, network) => {
  const newProvider = new MyProviderWrapper(provider);
  return newProvider;
});

Doing this means that all the JSON-RPC calls will go through your custom provider wrapper. You can use this to intercept and handle some requests while forwarding the rest to the original provider.

To learn more about this, read the "Extending the Hardhat provider" section in our docs. If you have questions about how to use this, please open a new discussion.

Other changes

Besides this new feature, this version includes the following changes:

  • console.sol is now memory-safe (thanks @​ZumZoom!)
  • Added optional params to some compilation subtasks to make them more flexible (thanks @​adjisb!)
  • Added a HARDHAT_DISABLE_TELEMETRY_PROMPT environment variable that can be set to true to prevent Hardhat from showing the telemetry consent prompt
  • The opt-in telemetry is now done using Google Analytics 4

v2.15.0: Hardhat v2.15.0

Compare Source

This new version of Hardhat uses the new ethers v6 based Toolbox when initializing a project. Check the release notes of the Toolbox to learn more.

v2.14.1: Hardhat v2.14.1

Compare Source

This release adds better information to Hardhat about which block numbers correspond to which hardforks. Most users won't be affected by this, but it fixes some issues for certain edge cases.

v2.14.0: Hardhat v2.14.0 — Shanghai

Compare Source

This release sets Shanghai as the default hardfork used by the Hardhat Network.

If for some reason you want to keep using the previous hardfork, set it explicitly in your config:

module.exports = {
  networks: {
    hardhat: {
      hardfork: "merge"
    }
  }
}

v2.13.1: Hardhat v2.13.1

Compare Source

This release adds support for the upcoming Shanghai hardfork. This hardfork is not enabled by default; if you want to use it, then you have to enable it in your Hardhat config:

module.exports = {
  networks: {
    hardhat: {
      hardfork: "shanghai"
    }
  }
}

Besides that, this version fixes a problem when importing scoped packages in a Yarn Berry monorepo that uses PnP (thanks @​zouguangxian!)

v2.13.0: Hardhat v2.13.0 — ES Modules and compiling with viaIR

Compare Source

This new version of Hardhat adds two long-awaited features: ES Modules support, and better support for solc’s IR-based compilation pipeline. Besides that, this version includes several other improvements and bug fixes.

Remember to give this repo a star ⭐ if you are enjoying Hardhat!

ES Modules support

Hardhat was designed with CommonJS in mind, but in the last years adoption of ES Modules (ESM) has been growing. This version includes better support for it. You can now write scripts and tests as ESM, but your Hardhat config —and anything imported from it— still needs to use CommonJS.

ES modules let you use import/export and top-level await. This means that instead of writing a script like this:

// script.js
const helpers = require("@​nomicfoundation/hardhat-network-helpers");

async function main() {
  const latestBlockNumber = await helpers.time.latestBlock();
  console.log("Latest block:", latestBlockNumber);
}

main()
  .then(() => process.exit(0))
  .catch(error => {
    console.error(error);
    process.exit(1);
  });

you can now write a less verbose ESM script:

// script.mjs <-- notice the extension
import helpers from "@&#8203;nomicfoundation/hardhat-network-helpers";

const latestBlockNumber = await helpers.time.latestBlock();
console.log("Latest block:", latestBlockNumber);

Check our guide about Using ES modules with Hardhat to learn more.

Huge thanks to @​phated, who started the work on this and helped us along the way.

IR-based compilation pipeline

The solc compiler has a newer, alternative way of generating bytecode through an intermediate representation (IR). Previous versions of Hardhat don’t work well with this compilation mode, especially when the optimizer is fully-enabled.

This release adds better support for the IR compilation pipeline, but you might still get some issues if you use the default settings. We recommend enabling the minimal necessary optimization steps when compiling with IR:

solidity: {
  version: "0.8.18",
  settings: {
    viaIR: true,
    optimizer: {
      enabled: true,
      details: {
        yulDetails: {
          optimizerSteps: "u:",
        },
      },
    },
  },
}

You can learn more about Hardhat and IR here.

Other improvements

In addition to ES Modules and compiling with the IR-based pipeline, this version includes these improvements and bug fixes:

  • Added support for Solidity 0.8.18 (thanks @​taxio!)
  • Hardhat's task runner now allows you to override the arguments passed to subtasks (thanks @​zemse!)
  • The colors used to show errors and warnings are better and more readable (thanks @​frangio!)
  • We now show better error messages when a transaction to a JSON-RPC network reverts (thanks @​orenyomtov!)
  • Hardhat is now more tolerant to Node.js versions that are not officially supported (thanks @​iamrekas!)
  • The resolveJsonModule compiler option is now enabled by default in the sample tsconfig (thanks @​mlshv!)
  • The sample project’s deploy script uses better example values (thanks @​mutedSpectre!)
  • Fixed an issue with a warning showing the same solc version multiple times (thanks @​shark0der!)
  • Fixed an error that could happen when a download failed

v2.12.7

Compare Source

Changes

  • e443b36: Added an option in Hardhat Network to allow mining blocks with the same timestamp

  • c23a1ca: Added support for the http_proxy environment variable. When this variable is set, Hardhat will send its requests through the given proxy for things like JSON-RPC requests, mainnet forking and downloading compilers.

    We also removed support for the HTTP_PROXY and HTTPS_PROXY environment variables, since http_proxy is the most commonly used environment variable for this kind of thing. Those variables could only be used for downloading compilers.

    Finally, we also added support for no_proxy, which accepts a comma separated list of hosts or "*". Any host included in this list will not be proxied.

    Note that requests to "localhost" or "127.0.0.1" are never proxied.

  • 6954665: Added support for sending batch requests through WebSocket to the Hardhat node (thanks @​tenbits!)

  • 6bf1673: Added a config validation for the number of optimizer runs used (thanks @​konarshankar07!)

v2.12.6: Hardhat v2.12.6

Compare Source

Features
  • Added support for pnpm during project creation (thanks @​Hopsken!)
  • Added a version field to the Hardhat Runtime Environment (thanks @​konarshankar07!)
Bug fixes
  • Fixed a problem with impersonated-sender transactions sometimes resulting in duplicate transaction hashes (issue #​1963)
Other changes
  • Added a minor clarification to the help output of the flatten task
  • Upgraded the versions of mocha and @types/mocha used by Hardhat
  • Upgraded the version of undici used by Hardhat.
  • Removed the message linking to the 2022 Solidity Survey
  • Added a new subtask to the compile task that will be used by the hardhat-foundry plugin.

v2.12.5: Hardhat v2.12.5

Compare Source

  • The full return data of unrecognized custom errors is now shown in error messages
  • Fixed a bug that was causing the flatten task to produce non-deterministic results
  • Fixed a bug when gasPrice was set to "auto", which is the default configuration when connecting to a JSON-RPC network. This bug was preventing the results from eth_feeHistory from being used when they should.
  • Added an experimental environment variable flag to disable the local installation check (thanks @​arijoon!)

v2.12.4: Hardhat v2.12.4

Compare Source

This release fixes a small issue that was affecting our VSCode extension in some edge cases.

It also includes a non-intrusive message promoting this year's Solidity Developer Survey.

v2.12.3: Hardhat v2.12.3

Compare Source

  • Added a new hardhat_metadata RPC method
  • Trim leading and trailing spaces in mnemonics (thanks @​winor30!)
  • Pending blocks now include the bloom field (thanks @​InoMurko!)
  • A better error is shown if a Solidity file makes an import through its own package name (thanks @​KaanKC!)
  • Added a getBuildInfoSync function to the hre.artifacts object (thanks @​emretepedev!)
  • Fixed an edge case where Hardhat would hang if debug_traceTransaction was used with an OOG transaction sent to a precompile

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.

@renovate renovate bot temporarily deployed to Release Docker December 6, 2022 03:29 Inactive
@netlify
Copy link

netlify bot commented Dec 6, 2022

Deploy Preview for metachain failed.

Name Link
🔨 Latest commit 583c8a0
🔍 Latest deploy log https://app.netlify.com/sites/metachain/deploys/64c9772fbba35a0008d30aa6

@defichain-bot defichain-bot added area/packages kind/dependencies Pull requests that update a dependency file labels Dec 6, 2022
@codecov
Copy link

codecov bot commented Dec 6, 2022

Codecov Report

Patch coverage has no change and project coverage change: +85.50% 🎉

Comparison is base (111e219) 3.96% compared to head (583c8a0) 89.47%.

Additional details and impacted files
@@            Coverage Diff             @@
##            main     #177       +/-   ##
==========================================
+ Coverage   3.96%   89.47%   +85.50%     
==========================================
  Files         10        4        -6     
  Lines       1766       57     -1709     
  Branches       0        3        +3     
==========================================
- Hits          70       51       -19     
+ Misses      1696        6     -1690     

see 14 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@github-actions
Copy link

github-actions bot commented Dec 6, 2022

Docker image for defich/metachain is ready!

Built with commit a6eff0f

  • docker pull ghcr.io/defich/metachain:a6eff0f47cbb651c391e29f9ca98e2b4fcde71cd
  • docker pull ghcr.io/defich/metachain:pr-177

@renovate renovate bot changed the title bump(deps): update dependency hardhat to ^2.12.3 bump(deps): update dependency hardhat to ^2.12.4 Dec 8, 2022
@renovate renovate bot temporarily deployed to Release Docker December 8, 2022 22:27 Inactive
@renovate renovate bot changed the title bump(deps): update dependency hardhat to ^2.12.4 Update dependency hardhat to ^2.12.4 Dec 17, 2022
@defichain-bot defichain-bot removed the kind/dependencies Pull requests that update a dependency file label Dec 17, 2022
@renovate renovate bot changed the title Update dependency hardhat to ^2.12.4 bump(deps): update dependency hardhat to ^2.12.4 Dec 17, 2022
@defichain-bot defichain-bot added the kind/dependencies Pull requests that update a dependency file label Dec 17, 2022
@renovate renovate bot changed the title bump(deps): update dependency hardhat to ^2.12.4 bump(deps): update dependency hardhat to ^2.12.5 Dec 29, 2022
@renovate renovate bot temporarily deployed to Release Docker December 29, 2022 20:25 Inactive
@renovate renovate bot changed the title bump(deps): update dependency hardhat to ^2.12.5 bump(deps): update dependency hardhat to ^2.12.6 Jan 11, 2023
@renovate renovate bot temporarily deployed to Release Docker January 11, 2023 11:01 Inactive
@renovate renovate bot changed the title bump(deps): update dependency hardhat to ^2.12.6 bump(deps): update dependency hardhat to ^2.12.7 Feb 9, 2023
@prasannavl prasannavl temporarily deployed to Release Docker March 8, 2023 09:10 — with GitHub Actions Inactive
@renovate renovate bot changed the title bump(deps): update dependency hardhat to ^2.12.7 bump(deps): update dependency hardhat to ^2.13.0 Mar 17, 2023
@renovate renovate bot temporarily deployed to Release Docker March 17, 2023 12:10 Inactive
@renovate renovate bot changed the title bump(deps): update dependency hardhat to ^2.13.0 bump(deps): update dependency hardhat to ^2.13.1 Apr 10, 2023
@renovate renovate bot temporarily deployed to Release Docker April 10, 2023 13:14 Inactive
@renovate renovate bot changed the title bump(deps): update dependency hardhat to ^2.13.1 bump(deps): update dependency hardhat to ^2.14.0 Apr 15, 2023
@renovate renovate bot temporarily deployed to Release Docker April 15, 2023 19:23 Inactive
@renovate renovate bot changed the title bump(deps): update dependency hardhat to ^2.14.0 bump(deps): update dependency hardhat to ^2.14.1 May 31, 2023
@renovate renovate bot temporarily deployed to Release Docker May 31, 2023 09:46 Inactive
@renovate renovate bot changed the title bump(deps): update dependency hardhat to ^2.14.1 bump(deps): update dependency hardhat to ^2.15.0 Jun 8, 2023
@renovate renovate bot temporarily deployed to Release Docker June 8, 2023 12:16 Inactive
@renovate renovate bot changed the title bump(deps): update dependency hardhat to ^2.15.0 bump(deps): update dependency hardhat to ^2.16.0 Jun 22, 2023
@renovate renovate bot temporarily deployed to Release Docker June 22, 2023 06:55 Inactive
@renovate renovate bot changed the title bump(deps): update dependency hardhat to ^2.16.0 bump(deps): update dependency hardhat to ^2.16.1 Jun 27, 2023
@renovate renovate bot temporarily deployed to Release Docker June 27, 2023 20:16 Inactive
@renovate renovate bot changed the title bump(deps): update dependency hardhat to ^2.16.1 bump(deps): update dependency hardhat to ^2.17.0 Jul 14, 2023
@renovate renovate bot temporarily deployed to Release Docker July 14, 2023 10:27 Inactive
@renovate renovate bot changed the title bump(deps): update dependency hardhat to ^2.17.0 bump(deps): update dependency hardhat to ^2.17.1 Aug 1, 2023
@renovate renovate bot temporarily deployed to Release Docker August 1, 2023 21:20 Inactive
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area/packages kind/dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants