celo-org / optics-monorepo

🔮 OPTimistic Interchain Communication
Other
119 stars 37 forks source link

chore(deps): bump cacheable-request, @nomiclabs/hardhat-waffle, ethereum-waffle and solidity-coverage in /solidity/optics-xapps #997

Open dependabot[bot] opened 1 year ago

dependabot[bot] commented 1 year ago

Removes cacheable-request. It's no longer used after updating ancestor dependencies cacheable-request, @nomiclabs/hardhat-waffle, ethereum-waffle and solidity-coverage. These dependencies need to be updated together.

Removes cacheable-request

Updates @nomiclabs/hardhat-waffle from 2.0.1 to 2.0.5

Release notes

Sourced from @​nomiclabs/hardhat-waffle's releases.

@​nomiclabs/hardaht-waffle v2.0.5 released

This is the first version of the plugin published in collaboration with the TrueFi team, the maintainers of Waffle 🚀

We moved this plugin to its own repository, cleaned it up in the process, and implemented some small improvements.

Changes

  • c5b5c29: Introduce skipEstimateGas and injectCallHistory fields to hardhat config
Changelog

Sourced from @​nomiclabs/hardhat-waffle's changelog.

2.0.5

Patch Changes

  • 36441d8: Add hardhat chai matchers incompatibility check
  • c5b5c29: Introduce skipEstimateGas and injectCallHistory fields to hardhat config

2.0.3

Patch Changes

  • bc940060: Improve how errors are created in the hardhat-waffle plugin (#2307)

2.0.2

Patch Changes

  • 8327d8c6: Add support for the hexEqual matcher (#2200)
Commits


Updates ethereum-waffle from 3.4.0 to 4.0.9

Release notes

Sourced from ethereum-waffle's releases.

@​ethereum-waffle/chai@​4.0.9

Patch Changes

  • 216f1d8: Switch hardhat error priority

ethereum-waffle@4.0.9

Patch Changes

  • Updated dependencies [216f1d8]
    • @​ethereum-waffle/chai@​4.0.9
    • @​ethereum-waffle/compiler@​4.0.3
    • @​ethereum-waffle/mock-contract@​4.0.3

@​ethereum-waffle/chai@​4.0.8

Patch Changes

  • f93abe9: Move call history injection logic to hardhat plugin
  • 9602243: 👔 revertedWith().withArgs no longer fails for uint values exceeding JavaScript's max int limit
  • b54c6b9: Add delta to balance changing matchers
  • 64707ae: Allow special characters in revertedWith regex
  • 702c6ab: 🗾 Extend matching of Hardhat revert reasons
  • a0f721a: Move ethers to peer deps
  • f6d240e: 🛶 Updates for hardhat v2.11
  • Updated dependencies [ee1d1b8]
  • Updated dependencies [a0f721a]
    • @​ethereum-waffle/provider@​4.0.5

ethereum-waffle@4.0.8

Patch Changes

  • f93abe9: Move call history injection logic to hardhat plugin
  • a0f721a: Move ethers to peer deps
  • Updated dependencies [da92375]
  • Updated dependencies [f93abe9]
  • Updated dependencies [46b954e]
  • Updated dependencies [9602243]
  • Updated dependencies [fb6863d]
  • Updated dependencies [b54c6b9]
  • Updated dependencies [64707ae]
  • Updated dependencies [1fa1312]
  • Updated dependencies [ee1d1b8]
  • Updated dependencies [702c6ab]
  • Updated dependencies [a0f721a]
  • Updated dependencies [f6d240e]
    • @​ethereum-waffle/mock-contract@​4.0.3
    • @​ethereum-waffle/chai@​4.0.8
    • @​ethereum-waffle/provider@​4.0.5
    • @​ethereum-waffle/compiler@​4.0.3

@​ethereum-waffle/chai@​4.0.7

... (truncated)

Commits


Updates solidity-coverage from 0.7.16 to 0.8.2

Release notes

Sourced from solidity-coverage's releases.

0.8.2

What's Changed

New Contributors

Full Changelog: https://github.com/sc-forks/solidity-coverage/compare/v0.8.1...v0.8.2

0.8.1

What's Changed

Full Changelog: https://github.com/sc-forks/solidity-coverage/compare/v0.8.0...v0.8.1

0.8.0

Hi!

⚠️ This version requires Hardhat >= 2.11.0 (Ethereum Merge)

New Features

A central focus of the 0.8.0 release is improving the coverage tool's branch detection.

Beginning with this version the following syntax is measured as a branch:

OR conditions

When a logical expression is composed with the || operator, both sides can be considered branches. To test the entire expression

if (a == 1 || a == 2)

... a must equal 1, 2 and neither of those values. (Thanks to Gnosis engineer @​rmeissner for proposing this in #175)

Screen Shot 2021-01-12 at 9 41 09 PM

Ternary Conditionals

Long ago, when Solidity was 0.4, solidity-coverage treated ternary conditionals like regular if/else statements. Some language improvements v0.5 subsequently made this impossible. Now it's back...

Screen Shot 2021-01-12 at 9 47 43 PM

Modifier Invocations

Solidity-coverage already covers the code within modifier definitions. However, each modifier invocation at the function level should really be considered its own branch. Some of the most critical logic in Solidity contracts is handled this way (ex: onlyOwner). Testing the pass/fail cases for each occurrence of these gates protects you from accidentally removing them during a refactor.

Because it's possible to write a modifier which performs a preparatory task and never reverts, there's a new option (modifierWhitelist) which allows you to exclude specific modifiers from branch measurement.

... (truncated)

Changelog

Sourced from solidity-coverage's changelog.

Changelog

0.8.1 / 2022-09-06

0.8.0 / 2022-09-05

0.7.21 / 2022-04-24

0.7.20 / 2022-02-15

0.7.19 / 2022-02-09

0.7.18 2022-01-17

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 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) - `@dependabot use these labels` will set the current labels as the default for future PRs for this repo and language - `@dependabot use these reviewers` will set the current reviewers as the default for future PRs for this repo and language - `@dependabot use these assignees` will set the current assignees as the default for future PRs for this repo and language - `@dependabot use this milestone` will set the current milestone as the default for future PRs for this repo and language You can disable automated security fix PRs for this repo from the [Security Alerts page](https://github.com/celo-org/optics-monorepo/network/alerts).
socket-security[bot] commented 1 year ago

Socket Security Pull Request Report

Dependency issues detected. If you merge this pull request, you will not be alerted to the instances of these issues again.

📜 Install scripts

Install scripts are run when the package is installed. The majority of malware in npm is hidden in install scripts.

Packages should not be running non-essential scripts during install and there are often solutions to problems people solve with install scripts that can be run at publish time instead.

Package Script field Source
@trufflesuite/bigint-buffer@1.1.9 (added) install solidity/optics-xapps/package-lock.json via @nomiclabs/hardhat-waffle@2.0.5, ethereum-waffle@4.0.9
ganache@7.4.3 (added) install solidity/optics-xapps/package-lock.json via @nomiclabs/hardhat-waffle@2.0.5, ethereum-waffle@4.0.9
ganache@7.4.3 (added) install solidity/optics-xapps/package-lock.json via @nomiclabs/hardhat-waffle@2.0.5, ethereum-waffle@4.0.9
ganache@7.4.3 (added) install solidity/optics-xapps/package-lock.json via @nomiclabs/hardhat-waffle@2.0.5, ethereum-waffle@4.0.9
ganache-core@2.13.2 (added) install solidity/optics-core/package-lock.json via @nomiclabs/hardhat-waffle@2.0.1, ethereum-waffle@3.4.0, typescript/optics-tests/package-lock.json via @nomiclabs/hardhat-waffle@2.0.1, ethereum-waffle@3.4.0
keccak@3.0.1 (added) install solidity/optics-core/package-lock.json via @nomiclabs/hardhat-ethers@2.0.2, @nomiclabs/hardhat-etherscan@2.1.4, @nomiclabs/hardhat-waffle@2.0.1, @typechain/hardhat@2.3.0, hardhat@2.6.0, hardhat-gas-reporter@1.0.4, solidity-coverage@0.7.16, solidity/optics-xapps/package-lock.json via @nomiclabs/hardhat-ethers@2.0.2, @nomiclabs/hardhat-etherscan@2.1.4, @nomiclabs/hardhat-waffle@2.0.5, @typechain/hardhat@2.3.0, ethereum-waffle@4.0.9, hardhat@2.12.7, hardhat-gas-reporter@1.0.4, solidity-coverage@0.8.2
keccak@3.0.2 (added) install typescript/optics-tests/package-lock.json via @nomiclabs/hardhat-ethers@2.0.2, @nomiclabs/hardhat-waffle@2.0.1, hardhat@2.6.3
keccak@3.0.3 (added) install solidity/optics-xapps/package-lock.json via @nomiclabs/hardhat-ethers@2.0.2, @nomiclabs/hardhat-etherscan@2.1.4, @nomiclabs/hardhat-waffle@2.0.5, @typechain/hardhat@2.3.0, hardhat@2.12.7, hardhat-gas-reporter@1.0.4, solidity-coverage@0.8.2
secp256k1@4.0.2 (added) install solidity/optics-core/package-lock.json via @nomiclabs/hardhat-ethers@2.0.2, @nomiclabs/hardhat-etherscan@2.1.4, @nomiclabs/hardhat-waffle@2.0.1, @typechain/hardhat@2.3.0, ethereum-waffle@3.4.0, hardhat@2.6.0, hardhat-gas-reporter@1.0.4, solidity-coverage@0.7.16, typescript/optics-tests/package-lock.json via @nomiclabs/hardhat-ethers@2.0.2, @nomiclabs/hardhat-waffle@2.0.1, ethereum-waffle@3.4.0, hardhat@2.6.3
secp256k1@4.0.3 (added) install solidity/optics-xapps/package-lock.json via @nomiclabs/hardhat-ethers@2.0.2, @nomiclabs/hardhat-etherscan@2.1.4, @nomiclabs/hardhat-waffle@2.0.5, @typechain/hardhat@2.3.0, ethereum-waffle@4.0.9, hardhat@2.12.7, hardhat-gas-reporter@1.0.4, solidity-coverage@0.8.2
core-js-pure@3.16.1 (added) postinstall solidity/optics-core/package-lock.json via @nomiclabs/hardhat-ethers@2.0.2, @nomiclabs/hardhat-etherscan@2.1.4, @nomiclabs/hardhat-waffle@2.0.1, @typechain/hardhat@2.3.0, hardhat@2.6.0, hardhat-gas-reporter@1.0.4
core-js-pure@3.17.2 (added) postinstall typescript/optics-tests/package-lock.json via @nomiclabs/hardhat-ethers@2.0.2, @nomiclabs/hardhat-waffle@2.0.1, hardhat@2.6.3
core-js-pure@3.27.2 (added) postinstall solidity/optics-xapps/package-lock.json via @nomiclabs/hardhat-waffle@2.0.5, ethereum-waffle@4.0.9
core-js-pure@3.8.2 (added) postinstall solidity/optics-core/package-lock.json via @nomiclabs/hardhat-waffle@2.0.1, ethereum-waffle@3.4.0, typescript/optics-tests/package-lock.json via @nomiclabs/hardhat-waffle@2.0.1, ethereum-waffle@3.4.0
bufferutil@4.0.5 (added) install solidity/optics-xapps/package-lock.json via @nomiclabs/hardhat-waffle@2.0.5, ethereum-waffle@4.0.9
classic-level@1.2.0 (added) install solidity/optics-xapps/package-lock.json via @nomiclabs/hardhat-ethers@2.0.2, @nomiclabs/hardhat-etherscan@2.1.4, @nomiclabs/hardhat-waffle@2.0.5, @typechain/hardhat@2.3.0, hardhat@2.12.7, hardhat-gas-reporter@1.0.4, solidity-coverage@0.8.2
ganache@7.4.3 (added) install solidity/optics-xapps/package-lock.json via @nomiclabs/hardhat-waffle@2.0.5, ethereum-waffle@4.0.9
ganache@7.4.3 (added) install solidity/optics-xapps/package-lock.json via @nomiclabs/hardhat-waffle@2.0.5, ethereum-waffle@4.0.9
utf-8-validate@5.0.4 (added) install solidity/optics-core/package-lock.json via @nomiclabs/hardhat-waffle@2.0.1, ethereum-waffle@3.4.0, typescript/optics-tests/package-lock.json via @nomiclabs/hardhat-waffle@2.0.1, ethereum-waffle@3.4.0
utf-8-validate@5.0.5 (added) install solidity/optics-core/package-lock.json via @nomiclabs/hardhat-ethers@2.0.2, @nomiclabs/hardhat-etherscan@2.1.4, @nomiclabs/hardhat-waffle@2.0.1, @typechain/ethers-v5@7.0.1, @typechain/hardhat@2.3.0, ethereum-waffle@3.4.0, ethers@5.4.4, hardhat@2.6.0, hardhat-gas-reporter@1.0.4, solidity-coverage@0.7.16, solidity/optics-xapps/package-lock.json via @nomiclabs/hardhat-ethers@2.0.2, @nomiclabs/hardhat-etherscan@2.1.4, @nomiclabs/hardhat-waffle@2.0.5, @typechain/ethers-v5@7.0.1, @typechain/hardhat@2.3.0, ethereum-waffle@4.0.9, ethers@5.4.4, hardhat@2.12.7, hardhat-gas-reporter@1.0.4, solidity-coverage@0.8.2
utf-8-validate@5.0.7 (added) install solidity/optics-xapps/package-lock.json via @nomiclabs/hardhat-waffle@2.0.5, ethereum-waffle@4.0.9
🫣 Native code

Contains native code which could be a vector to obscure malicious code, and generally decrease the likelihood of reproducible or reliable installs.

Ensure that native code bindings are expected. Consumers may consider pure JS and functionally similar alternatives to avoid the challenges and risks associated with native code bindings.

Package Location Source
ganache@7.4.3 (added) node_modules/@trufflesuite/bigint-buffer/binding.gyp solidity/optics-xapps/package-lock.json via @nomiclabs/hardhat-waffle@2.0.5, ethereum-waffle@4.0.9
ganache@7.4.3 (added) node_modules/keccak/binding.gyp solidity/optics-xapps/package-lock.json via @nomiclabs/hardhat-waffle@2.0.5, ethereum-waffle@4.0.9
ganache@7.4.3 (added) node_modules/leveldown/binding.gyp solidity/optics-xapps/package-lock.json via @nomiclabs/hardhat-waffle@2.0.5, ethereum-waffle@4.0.9
ganache@7.4.3 (added) node_modules/napi-macros/example/binding.gyp solidity/optics-xapps/package-lock.json via @nomiclabs/hardhat-waffle@2.0.5, ethereum-waffle@4.0.9
ganache@7.4.3 (added) node_modules/secp256k1/binding.gyp solidity/optics-xapps/package-lock.json via @nomiclabs/hardhat-waffle@2.0.5, ethereum-waffle@4.0.9
😵‍💫 Bin script confusion

This package has multiple bin scripts with the same name. This can cause non-deterministic behavior when installing or could be a sign of a supply chain attack

Consider removing one of the conflicting packages. Packages should only export bin scripts with their name

Package Bin script Source
ganache@7.4.3 (added) node-gyp-build-test solidity/optics-xapps/package-lock.json via @nomiclabs/hardhat-waffle@2.0.5, ethereum-waffle@4.0.9
ganache@7.4.3 (added) node-gyp-build-test solidity/optics-xapps/package-lock.json via @nomiclabs/hardhat-waffle@2.0.5, ethereum-waffle@4.0.9
ganache-core@2.13.2 (added) node-gyp-build-test solidity/optics-core/package-lock.json via @nomiclabs/hardhat-waffle@2.0.1, ethereum-waffle@3.4.0, typescript/optics-tests/package-lock.json via @nomiclabs/hardhat-waffle@2.0.1, ethereum-waffle@3.4.0
node-gyp-build@4.2.3 (added) node-gyp-build-test solidity/optics-core/package-lock.json via @nomiclabs/hardhat-ethers@2.0.2, @nomiclabs/hardhat-etherscan@2.1.4, @nomiclabs/hardhat-waffle@2.0.1, @typechain/ethers-v5@7.0.1, @typechain/hardhat@2.3.0, ethereum-waffle@3.4.0, ethers@5.4.4, hardhat@2.6.0, hardhat-gas-reporter@1.0.4, solidity-coverage@0.7.16, typescript/optics-tests/package-lock.json via @nomiclabs/hardhat-ethers@2.0.2, @nomiclabs/hardhat-waffle@2.0.1, hardhat@2.6.3
node-gyp-build@4.3.0 (added) node-gyp-build-test solidity/optics-xapps/package-lock.json via @nomiclabs/hardhat-ethers@2.0.2, @nomiclabs/hardhat-etherscan@2.1.4, @nomiclabs/hardhat-waffle@2.0.5, @typechain/ethers-v5@7.0.1, @typechain/hardhat@2.3.0, ethereum-waffle@4.0.9, ethers@5.4.4, hardhat@2.12.7, hardhat-gas-reporter@1.0.4, solidity-coverage@0.8.2
@nomicfoundation/ethereumjs-rlp@4.0.0 (added) rlp solidity/optics-xapps/package-lock.json via @nomiclabs/hardhat-ethers@2.0.2, @nomiclabs/hardhat-etherscan@2.1.4, @nomiclabs/hardhat-waffle@2.0.5, @typechain/hardhat@2.3.0, hardhat@2.12.7, hardhat-gas-reporter@1.0.4, solidity-coverage@0.8.2
rlp@2.2.6 (added) rlp solidity/optics-core/package-lock.json via @nomiclabs/hardhat-ethers@2.0.2, @nomiclabs/hardhat-etherscan@2.1.4, @nomiclabs/hardhat-waffle@2.0.1, @typechain/hardhat@2.3.0, ethereum-waffle@3.4.0, hardhat@2.6.0, hardhat-gas-reporter@1.0.4, solidity-coverage@0.7.16, solidity/optics-xapps/package-lock.json via @nomiclabs/hardhat-ethers@2.0.2, @nomiclabs/hardhat-etherscan@2.1.4, @nomiclabs/hardhat-waffle@2.0.5, @typechain/hardhat@2.3.0, ethereum-waffle@4.0.9, hardhat@2.12.7, hardhat-gas-reporter@1.0.4, solidity-coverage@0.8.2, typescript/optics-tests/package-lock.json via @nomiclabs/hardhat-ethers@2.0.2, @nomiclabs/hardhat-waffle@2.0.1, ethereum-waffle@3.4.0, hardhat@2.6.3
ganache@7.4.3 (added) node-gyp-build solidity/optics-xapps/package-lock.json via @nomiclabs/hardhat-waffle@2.0.5, ethereum-waffle@4.0.9
ganache@7.4.3 (added) node-gyp-build solidity/optics-xapps/package-lock.json via @nomiclabs/hardhat-waffle@2.0.5, ethereum-waffle@4.0.9
ganache-core@2.13.2 (added) node-gyp-build solidity/optics-core/package-lock.json via @nomiclabs/hardhat-waffle@2.0.1, ethereum-waffle@3.4.0, typescript/optics-tests/package-lock.json via @nomiclabs/hardhat-waffle@2.0.1, ethereum-waffle@3.4.0
node-gyp-build@4.2.3 (added) node-gyp-build solidity/optics-core/package-lock.json via @nomiclabs/hardhat-ethers@2.0.2, @nomiclabs/hardhat-etherscan@2.1.4, @nomiclabs/hardhat-waffle@2.0.1, @typechain/ethers-v5@7.0.1, @typechain/hardhat@2.3.0, ethereum-waffle@3.4.0, ethers@5.4.4, hardhat@2.6.0, hardhat-gas-reporter@1.0.4, solidity-coverage@0.7.16, typescript/optics-tests/package-lock.json via @nomiclabs/hardhat-ethers@2.0.2, @nomiclabs/hardhat-waffle@2.0.1, hardhat@2.6.3
node-gyp-build@4.3.0 (added) node-gyp-build solidity/optics-xapps/package-lock.json via @nomiclabs/hardhat-ethers@2.0.2, @nomiclabs/hardhat-etherscan@2.1.4, @nomiclabs/hardhat-waffle@2.0.5, @typechain/ethers-v5@7.0.1, @typechain/hardhat@2.3.0, ethereum-waffle@4.0.9, ethers@5.4.4, hardhat@2.12.7, hardhat-gas-reporter@1.0.4, solidity-coverage@0.8.2
ganache@7.4.3 (added) node-gyp-build-optional solidity/optics-xapps/package-lock.json via @nomiclabs/hardhat-waffle@2.0.5, ethereum-waffle@4.0.9
ganache@7.4.3 (added) node-gyp-build-optional solidity/optics-xapps/package-lock.json via @nomiclabs/hardhat-waffle@2.0.5, ethereum-waffle@4.0.9
ganache-core@2.13.2 (added) node-gyp-build-optional solidity/optics-core/package-lock.json via @nomiclabs/hardhat-waffle@2.0.1, ethereum-waffle@3.4.0, typescript/optics-tests/package-lock.json via @nomiclabs/hardhat-waffle@2.0.1, ethereum-waffle@3.4.0
node-gyp-build@4.2.3 (added) node-gyp-build-optional solidity/optics-core/package-lock.json via @nomiclabs/hardhat-ethers@2.0.2, @nomiclabs/hardhat-etherscan@2.1.4, @nomiclabs/hardhat-waffle@2.0.1, @typechain/ethers-v5@7.0.1, @typechain/hardhat@2.3.0, ethereum-waffle@3.4.0, ethers@5.4.4, hardhat@2.6.0, hardhat-gas-reporter@1.0.4, solidity-coverage@0.7.16, typescript/optics-tests/package-lock.json via @nomiclabs/hardhat-ethers@2.0.2, @nomiclabs/hardhat-waffle@2.0.1, hardhat@2.6.3
node-gyp-build@4.3.0 (added) node-gyp-build-optional solidity/optics-xapps/package-lock.json via @nomiclabs/hardhat-ethers@2.0.2, @nomiclabs/hardhat-etherscan@2.1.4, @nomiclabs/hardhat-waffle@2.0.5, @typechain/ethers-v5@7.0.1, @typechain/hardhat@2.3.0, ethereum-waffle@4.0.9, ethers@5.4.4, hardhat@2.12.7, hardhat-gas-reporter@1.0.4, solidity-coverage@0.8.2
Pull request report summary
Issue Status
Install scripts ⚠️ 21 issues
Native code ⚠️ 5 issues
Bin script confusion ⚠️ 17 issues
Bin script shell injection ✅ 0 issues
Unresolved require ✅ 0 issues
Invalid package.json ✅ 0 issues
HTTP dependency ✅ 0 issues
Git dependency ✅ 0 issues
Potential typo squat ✅ 0 issues
Known Malware ✅ 0 issues
Telemetry ✅ 0 issues
Protestware/Troll package ✅ 0 issues
Bot Commands

To ignore an alert, reply with a comment starting with @SocketSecurity ignore followed by a space separated list of package-name@version specifiers. e.g. @SocketSecurity ignore foo@1.0.0 bar@2.4.2

  • @SocketSecurity ignore @trufflesuite/bigint-buffer@1.1.9
  • @SocketSecurity ignore ganache@7.4.3
  • @SocketSecurity ignore ganache-core@2.13.2
  • @SocketSecurity ignore keccak@3.0.1
  • @SocketSecurity ignore keccak@3.0.2

Powered by socket.dev