Skip to content

Bump got and @nomicfoundation/hardhat-toolbox - #1

Open
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/npm_and_yarn/got-and-nomicfoundation/hardhat-toolbox--removed
Open

Bump got and @nomicfoundation/hardhat-toolbox#1
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/npm_and_yarn/got-and-nomicfoundation/hardhat-toolbox--removed

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Aug 11, 2023

Copy link
Copy Markdown

Removes got. It's no longer used after updating ancestor dependency @nomicfoundation/hardhat-toolbox. These dependencies need to be updated together.

Removes got

Updates @nomicfoundation/hardhat-toolbox from 1.0.2 to 3.0.0

Release notes

Sourced from @​nomicfoundation/hardhat-toolbox's releases.

Hardhat Toolbox v3.0.0: ethers v6, bigints and more!

This new major version of Hardhat Toolbox is based on ethers v6 and uses new versions of the hardhat-ethers, hardhat-chai-matchers and typechain plugins.

Using in a new project

Nothing has changed in how you use the Toolbox for a new project: if you initialize one with the latest version of Hardhat, then this version of the Toolbox will be used. Check our Setting up a project guide for the complete instructions.

Upgrading an existing project

To use this new version of the Toolbox in an existing project, you need to upgrade the Toolbox and its relevant peer dependencies.

If you are using npm 7 or later, you just need to upgrade the Toolbox and npm will handle the rest:

npm install @nomicfoundation/hardhat-toolbox@3

If you are using yarn or an older version of npm, you’ll need to manually upgrade all the relevant packages and remove the ones that are no longer needed:

# upgrade relevant packages
yarn add @nomicfoundation/hardhat-toolbox@3 @nomicfoundation/hardhat-chai-matchers@2 @nomicfoundation/hardhat-ethers@3 @nomicfoundation/hardhat-verify @typechain/ethers-v6 @typechain/hardhat@8 ethers@6
remove packages that are no longer needed
yarn remove @​ethersproject/abi @​ethersproject/providers @​nomiclabs/hardhat-ethers @​nomiclabs/hardhat-etherscan @​typechain/ethers-v5

What’s new?

Ethers v6 has several changes with respect to v5. These are some of them, but check their migration guide for the full details.

Native bigints

One of the most important changes in v6 is that now native bigints are used instead of BigNumber objects. For example, checking if an address has a positive amount of tokens is done like this in v5:

const balance = await token.balanceOf(someAddress)
if (balance.gt(0)) {
// ...
}

While in v6 you would do it this way:

const balance = await token.balanceOf(someAddress)
if (balance > 0n) {
// ...
</tr></table>

... (truncated)

Commits

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    You can disable automated security fix PRs for this repo from the Security Alerts page.

@dependabot dependabot Bot added the dependencies Pull requests that update a dependency file label Aug 11, 2023
@dependabot
dependabot Bot force-pushed the dependabot/npm_and_yarn/got-and-nomicfoundation/hardhat-toolbox--removed branch from 1ab99c3 to dfe587f Compare August 11, 2023 08:17
Removes [got](https://github.com/sindresorhus/got). It's no longer used after updating ancestor dependency [@nomicfoundation/hardhat-toolbox](https://github.com/nomicfoundation/hardhat). These dependencies need to be updated together.


Removes `got`

Updates `@nomicfoundation/hardhat-toolbox` from 1.0.2 to 3.0.0
- [Release notes](https://github.com/nomicfoundation/hardhat/releases)
- [Commits](https://github.com/nomicfoundation/hardhat/compare/@nomicfoundation/hardhat-toolbox@1.0.2...@nomicfoundation/hardhat-toolbox@3.0.0)

---
updated-dependencies:
- dependency-name: got
  dependency-type: indirect
- dependency-name: "@nomicfoundation/hardhat-toolbox"
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot
dependabot Bot force-pushed the dependabot/npm_and_yarn/got-and-nomicfoundation/hardhat-toolbox--removed branch from dfe587f to 88ba058 Compare August 11, 2023 08:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants