Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chore(deps): Bump the npm_and_yarn group with 2 updates #7

Merged
merged 1 commit into from
Oct 28, 2024

Conversation

dependabot[bot]
Copy link

@dependabot dependabot bot commented on behalf of github Oct 28, 2024

Bumps the npm_and_yarn group with 2 updates: @openzeppelin/contracts and micromatch.

Updates @openzeppelin/contracts from 4.9.6 to 5.0.2

Release notes

Sourced from @​openzeppelin/contracts's releases.

v5.0.2

  • Base64: Fix issue where dirty memory located just after the input buffer is affecting the result. (#4926)

v5.0.1

  • ERC2771Context and Context: Introduce a _contextPrefixLength() getter, used to trim extra information appended to msg.data.
  • Multicall: Make aware of non-canonical context (i.e. msg.sender is not _msgSender()), allowing compatibility with ERC2771Context.

v5.0.0

Additions Summary

The following contracts and libraries were added:

  • AccessManager: A consolidated system for managing access control in complex systems.
    • AccessManaged: A module for connecting a contract to an authority in charge of its access control.
    • GovernorTimelockAccess: An adapter for time-locking governance proposals using an AccessManager.
    • AuthorityUtils: A library of utilities for interacting with authority contracts.
  • GovernorStorage: A Governor module that stores proposal details in storage.
  • ERC2771Forwarder: An ERC2771 forwarder for meta transactions.
  • ERC1967Utils: A library with ERC1967 events, errors and getters.
  • Nonces: An abstraction for managing account nonces.
  • MessageHashUtils: A library for producing digests for ECDSA operations.
  • Time: A library with helpers for manipulating time-related objects.

Removals Summary

The following contracts, libraries, and functions were removed:

  • Address.isContract (because of its ambiguous nature and potential for misuse)
  • Checkpoints.History
  • Counters
  • ERC20Snapshot
  • ERC20VotesComp
  • ERC165Storage (in favor of inheritance based approach)
  • ERC777
  • ERC1820Implementer
  • GovernorVotesComp
  • GovernorProposalThreshold (deprecated since 4.4)
  • PaymentSplitter
  • PullPayment
  • SafeMath
  • SignedSafeMath
  • Timers
  • TokenTimelock (in favor of VestingWallet)
  • All escrow contracts (Escrow, ConditionalEscrow and RefundEscrow)
  • All cross-chain contracts, including AccessControlCrossChain and all the vendored bridge interfaces
  • All presets in favor of OpenZeppelin Contracts Wizard

These removals were implemented in the following PRs: #3637, #3880, #3945, #4258, #4276, #4289

... (truncated)

Changelog

Sourced from @​openzeppelin/contracts's changelog.

5.0.2 (2024-02-29)

  • Base64: Fix issue where dirty memory located just after the input buffer is affecting the result. (#4926)

5.0.1 (2023-12-07)

  • ERC2771Context and Context: Introduce a _contextPrefixLength() getter, used to trim extra information appended to msg.data.
  • Multicall: Make aware of non-canonical context (i.e. msg.sender is not _msgSender()), allowing compatibility with ERC2771Context.

5.0.0 (2023-10-05)

Additions Summary

The following contracts and libraries were added:

  • AccessManager: A consolidated system for managing access control in complex systems.
    • AccessManaged: A module for connecting a contract to an authority in charge of its access control.
    • GovernorTimelockAccess: An adapter for time-locking governance proposals using an AccessManager.
    • AuthorityUtils: A library of utilities for interacting with authority contracts.
  • GovernorStorage: A Governor module that stores proposal details in storage.
  • ERC2771Forwarder: An ERC2771 forwarder for meta transactions.
  • ERC1967Utils: A library with ERC1967 events, errors and getters.
  • Nonces: An abstraction for managing account nonces.
  • MessageHashUtils: A library for producing digests for ECDSA operations.
  • Time: A library with helpers for manipulating time-related objects.

Removals Summary

The following contracts, libraries, and functions were removed:

  • Address.isContract (because of its ambiguous nature and potential for misuse)
  • Checkpoints.History
  • Counters
  • ERC20Snapshot
  • ERC20VotesComp
  • ERC165Storage (in favor of inheritance based approach)
  • ERC777
  • ERC1820Implementer
  • GovernorVotesComp
  • GovernorProposalThreshold (deprecated since 4.4)
  • PaymentSplitter
  • PullPayment
  • SafeMath
  • SignedSafeMath
  • Timers
  • TokenTimelock (in favor of VestingWallet)
  • All escrow contracts (Escrow, ConditionalEscrow and RefundEscrow)
  • All cross-chain contracts, including AccessControlCrossChain and all the vendored bridge interfaces
  • All presets in favor of OpenZeppelin Contracts Wizard

... (truncated)

Commits

Updates micromatch from 4.0.5 to 4.0.8

Release notes

Sourced from micromatch's releases.

4.0.8

Ultimate release that fixes both CVE-2024-4067 and CVE-2024-4068. We consider the issues low-priority, so even if you see automated scanners saying otherwise, don't be scared.

Changelog

Sourced from micromatch's changelog.

[4.0.8] - 2024-08-22

[4.0.7] - 2024-05-22

  • this is basically v4.0.5, with some README updates
  • it is vulnerable to CVE-2024-4067
  • Updated braces to v3.0.3 to avoid CVE-2024-4068
  • does NOT break API compatibility

[4.0.6] - 2024-05-21

  • Added hasBraces to check if a pattern contains braces.
  • Fixes CVE-2024-4067
  • BREAKS API COMPATIBILITY
  • Should be labeled as a major release, but it's not.
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 <dependency name> major version will close this group update PR and stop Dependabot creating any more for the specific dependency's major version (unless you unignore this specific dependency's major version or upgrade to it yourself)
  • @dependabot ignore <dependency name> minor version will close this group update PR and stop Dependabot creating any more for the specific dependency's minor version (unless you unignore this specific dependency's minor version or upgrade to it yourself)
  • @dependabot ignore <dependency name> will close this group update PR and stop Dependabot creating any more for the specific dependency (unless you unignore this specific dependency or upgrade to it yourself)
  • @dependabot unignore <dependency name> will remove all of the ignore conditions of the specified dependency
  • @dependabot unignore <dependency name> <ignore condition> will remove the ignore condition of the specified dependency and ignore conditions
    You can disable automated security fix PRs for this repo from the Security Alerts page.

@dependabot dependabot bot added dependencies Pull requests that update a dependency file javascript Pull requests that update Javascript code labels Oct 28, 2024
Copy link

github-actions bot commented Oct 28, 2024

Branch preview

❌ Deploy failed!

Copy link

github-actions bot commented Oct 28, 2024

Coverage report

Caution

Test run failed

St.
Category Percentage Covered / Total
🟡 Statements
73.52% (-0.19% 🔻)
13495/18355
🔴 Branches
51.33% (-0.14% 🔻)
3281/6392
🔴 Functions
56.99% (-0.26% 🔻)
1960/3439
🟡 Lines
75.22% (-0.19% 🔻)
12271/16314
Show files with reduced coverage 🔻
St.
File Statements Branches Functions Lines
🟡
... / transactions.ts
73.43% (-4.2% 🔻)
53.33% (-1.67% 🔻)
45.45% (-4.55% 🔻)
75.4% (-3.97% 🔻)
🔴
... / create.ts
49.28% (-2.9% 🔻)
60%
28.57% (-7.14% 🔻)
50.91% (-3.64% 🔻)
🔴
... / SafeTxProvider.tsx
28.95% 0%
30% (-10% 🔻)
29.41%
🟡
... / index.tsx
75% (-19.44% 🔻)
72.22% (-5.56% 🔻)
66.67% (-33.33% 🔻)
75% (-21.88% 🔻)
🔴
... / approvals.ts
32.73% (-32.73% 🔻)
6.9% (-24.14% 🔻)
14.29% (-57.14% 🔻)
32% (-32% 🔻)
🟢
... / index.ts
97.83% (-2.17% 🔻)
100% 100%
97.78% (-2.22% 🔻)

Test suite run failed

Failed tests: 5/1573. Failed suites: 2/208.
  ● useApprovalInfos › returns an ApprovalInfo if the transaction contains an increaseAllowance call

    TypeError: unknown function (argument="fragment", value="increaseAllowance", code=INVALID_ARGUMENT, version=6.11.1)

      50 |
      51 |     if (txPartial.data.startsWith(INCREASE_ALLOWANCE_SIGNATURE_HASH)) {
    > 52 |       const [spender, amount] = ERC20_INTERFACE.decodeFunctionData('increaseAllowance', txPartial.data)
         |                                                 ^
      53 |       return [
      54 |         {
      55 |           amount,

      at makeError (node_modules/ethers/src.ts/utils/errors.ts:687:21)
      at assert (node_modules/ethers/src.ts/utils/errors.ts:715:25)
      at assertArgument (node_modules/ethers/src.ts/utils/errors.ts:727:5)
      at Interface.decodeFunctionData (node_modules/ethers/src.ts/abi/interface.ts:860:27)
      at Function.decodeFunctionData [as scanInnerTransaction] (src/services/security/modules/ApprovalModule/index.ts:52:49)
      at ApprovalModule.scanInnerTransaction [as scanTransaction] (src/services/security/modules/ApprovalModule/index.ts:126:44)
      at scanTransaction (src/components/tx/ApprovalEditor/hooks/useApprovalInfos.ts:39:37)
      at mountMemo (node_modules/react-dom/cjs/react-dom.development.js:16406:19)
      at Object.useMemo (node_modules/react-dom/cjs/react-dom.development.js:16851:16)
      at useMemo (node_modules/react/cjs/react.development.js:1650:21)
      at useApprovalInfos (src/components/tx/ApprovalEditor/hooks/useApprovalInfos.ts:37:28)
      at src/components/tx/ApprovalEditor/hooks/useApprovalInfos.test.ts:88:57
      at TestComponent (node_modules/@testing-library/react/dist/pure.js:283:27)
      at renderWithHooks (node_modules/react-dom/cjs/react-dom.development.js:15486:18)
      at mountIndeterminateComponent (node_modules/react-dom/cjs/react-dom.development.js:20103:13)
      at beginWork (node_modules/react-dom/cjs/react-dom.development.js:21626:16)
      at beginWork$1 (node_modules/react-dom/cjs/react-dom.development.js:27465:14)
      at performUnitOfWork (node_modules/react-dom/cjs/react-dom.development.js:26599:12)
      at workLoopSync (node_modules/react-dom/cjs/react-dom.development.js:26505:5)
      at renderRootSync (node_modules/react-dom/cjs/react-dom.development.js:26473:7)
      at recoverFromConcurrentError (node_modules/react-dom/cjs/react-dom.development.js:25889:20)
      at performConcurrentWorkOnRoot (node_modules/react-dom/cjs/react-dom.development.js:25789:22)
      at flushActQueue (node_modules/react/cjs/react.development.js:2667:24)
      at act (node_modules/react/cjs/react.development.js:2582:11)
      at actWithWarning (node_modules/react-dom/cjs/react-dom-test-utils.development.js:1740:10)
      at node_modules/@testing-library/react/dist/act-compat.js:63:25
      at renderRoot (node_modules/@testing-library/react/dist/pure.js:159:26)
      at render (node_modules/@testing-library/react/dist/pure.js:246:10)
      at renderHook (node_modules/@testing-library/react/dist/pure.js:293:7)
      at customRenderHook (src/tests/test-utils.tsx:85:20)
      at Object.<anonymous> (src/components/tx/ApprovalEditor/hooks/useApprovalInfos.test.ts:88:34)

  ● useApprovalInfos › returns multiple ApprovalInfos if the transaction is a multiSend containing an approve and increaseAllowance call

    TypeError: unknown function (argument="fragment", value="increaseAllowance", code=INVALID_ARGUMENT, version=6.11.1)

      50 |
      51 |     if (txPartial.data.startsWith(INCREASE_ALLOWANCE_SIGNATURE_HASH)) {
    > 52 |       const [spender, amount] = ERC20_INTERFACE.decodeFunctionData('increaseAllowance', txPartial.data)
         |                                                 ^
      53 |       return [
      54 |         {
      55 |           amount,

      at makeError (node_modules/ethers/src.ts/utils/errors.ts:687:21)
      at assert (node_modules/ethers/src.ts/utils/errors.ts:715:25)
      at assertArgument (node_modules/ethers/src.ts/utils/errors.ts:727:5)
      at Interface.decodeFunctionData (node_modules/ethers/src.ts/abi/interface.ts:860:27)
      at Function.decodeFunctionData [as scanInnerTransaction] (src/services/security/modules/ApprovalModule/index.ts:52:49)
      at scanInnerTransaction (src/services/security/modules/ApprovalModule/index.ts:124:76)
          at Array.flatMap (<anonymous>)
      at ApprovalModule.flatMap [as scanTransaction] (src/services/security/modules/ApprovalModule/index.ts:124:38)
      at scanTransaction (src/components/tx/ApprovalEditor/hooks/useApprovalInfos.ts:39:37)
      at mountMemo (node_modules/react-dom/cjs/react-dom.development.js:16406:19)
      at Object.useMemo (node_modules/react-dom/cjs/react-dom.development.js:16851:16)
      at useMemo (node_modules/react/cjs/react.development.js:1650:21)
      at useApprovalInfos (src/components/tx/ApprovalEditor/hooks/useApprovalInfos.ts:37:28)
      at src/components/tx/ApprovalEditor/hooks/useApprovalInfos.test.ts:134:57
      at TestComponent (node_modules/@testing-library/react/dist/pure.js:283:27)
      at renderWithHooks (node_modules/react-dom/cjs/react-dom.development.js:15486:18)
      at mountIndeterminateComponent (node_modules/react-dom/cjs/react-dom.development.js:20103:13)
      at beginWork (node_modules/react-dom/cjs/react-dom.development.js:21626:16)
      at beginWork$1 (node_modules/react-dom/cjs/react-dom.development.js:27465:14)
      at performUnitOfWork (node_modules/react-dom/cjs/react-dom.development.js:26599:12)
      at workLoopSync (node_modules/react-dom/cjs/react-dom.development.js:26505:5)
      at renderRootSync (node_modules/react-dom/cjs/react-dom.development.js:26473:7)
      at recoverFromConcurrentError (node_modules/react-dom/cjs/react-dom.development.js:25889:20)
      at performConcurrentWorkOnRoot (node_modules/react-dom/cjs/react-dom.development.js:25789:22)
      at flushActQueue (node_modules/react/cjs/react.development.js:2667:24)
      at act (node_modules/react/cjs/react.development.js:2582:11)
      at actWithWarning (node_modules/react-dom/cjs/react-dom-test-utils.development.js:1740:10)
      at node_modules/@testing-library/react/dist/act-compat.js:63:25
      at renderRoot (node_modules/@testing-library/react/dist/pure.js:159:26)
      at render (node_modules/@testing-library/react/dist/pure.js:246:10)
      at renderHook (node_modules/@testing-library/react/dist/pure.js:293:7)
      at customRenderHook (src/tests/test-utils.tsx:85:20)
      at Object.<anonymous> (src/components/tx/ApprovalEditor/hooks/useApprovalInfos.test.ts:134:34)

  ● useApprovalInfos › returns multiple ApprovalInfos if the transaction is a multiSend containing 2 approvals and other transaction inbetween

    TypeError: unknown function (argument="fragment", value="increaseAllowance", code=INVALID_ARGUMENT, version=6.11.1)

      50 |
      51 |     if (txPartial.data.startsWith(INCREASE_ALLOWANCE_SIGNATURE_HASH)) {
    > 52 |       const [spender, amount] = ERC20_INTERFACE.decodeFunctionData('increaseAllowance', txPartial.data)
         |                                                 ^
      53 |       return [
      54 |         {
      55 |           amount,

      at makeError (node_modules/ethers/src.ts/utils/errors.ts:687:21)
      at assert (node_modules/ethers/src.ts/utils/errors.ts:715:25)
      at assertArgument (node_modules/ethers/src.ts/utils/errors.ts:727:5)
      at Interface.decodeFunctionData (node_modules/ethers/src.ts/abi/interface.ts:860:27)
      at Function.decodeFunctionData [as scanInnerTransaction] (src/services/security/modules/ApprovalModule/index.ts:52:49)
      at scanInnerTransaction (src/services/security/modules/ApprovalModule/index.ts:124:76)
          at Array.flatMap (<anonymous>)
      at ApprovalModule.flatMap [as scanTransaction] (src/services/security/modules/ApprovalModule/index.ts:124:38)
      at scanTransaction (src/components/tx/ApprovalEditor/hooks/useApprovalInfos.ts:39:37)
      at mountMemo (node_modules/react-dom/cjs/react-dom.development.js:16406:19)
      at Object.useMemo (node_modules/react-dom/cjs/react-dom.development.js:16851:16)
      at useMemo (node_modules/react/cjs/react.development.js:1650:21)
      at useApprovalInfos (src/components/tx/ApprovalEditor/hooks/useApprovalInfos.ts:37:28)
      at src/components/tx/ApprovalEditor/hooks/useApprovalInfos.test.ts:209:57
      at TestComponent (node_modules/@testing-library/react/dist/pure.js:283:27)
      at renderWithHooks (node_modules/react-dom/cjs/react-dom.development.js:15486:18)
      at mountIndeterminateComponent (node_modules/react-dom/cjs/react-dom.development.js:20103:13)
      at beginWork (node_modules/react-dom/cjs/react-dom.development.js:21626:16)
      at beginWork$1 (node_modules/react-dom/cjs/react-dom.development.js:27465:14)
      at performUnitOfWork (node_modules/react-dom/cjs/react-dom.development.js:26599:12)
      at workLoopSync (node_modules/react-dom/cjs/react-dom.development.js:26505:5)
      at renderRootSync (node_modules/react-dom/cjs/react-dom.development.js:26473:7)
      at recoverFromConcurrentError (node_modules/react-dom/cjs/react-dom.development.js:25889:20)
      at performConcurrentWorkOnRoot (node_modules/react-dom/cjs/react-dom.development.js:25789:22)
      at flushActQueue (node_modules/react/cjs/react.development.js:2667:24)
      at act (node_modules/react/cjs/react.development.js:2582:11)
      at actWithWarning (node_modules/react-dom/cjs/react-dom-test-utils.development.js:1740:10)
      at node_modules/@testing-library/react/dist/act-compat.js:63:25
      at renderRoot (node_modules/@testing-library/react/dist/pure.js:159:26)
      at render (node_modules/@testing-library/react/dist/pure.js:246:10)
      at renderHook (node_modules/@testing-library/react/dist/pure.js:293:7)
      at customRenderHook (src/tests/test-utils.tsx:85:20)
      at Object.<anonymous> (src/components/tx/ApprovalEditor/hooks/useApprovalInfos.test.ts:209:34)


  ● ApprovalEditor › should modify approvals on save

    TypeError: unknown function (argument="fragment", value="increaseAllowance", code=INVALID_ARGUMENT, version=6.11.1)

      156 |           {
      157 |             to: tokenAddress,
    > 158 |             data: ERC20_INTERFACE.encodeFunctionData('increaseAllowance', [spenderAddress, '690000000000']),
          |                                   ^
      159 |             value: '0',
      160 |             operation: OperationType.Call,
      161 |           },

      at makeError (node_modules/ethers/src.ts/utils/errors.ts:687:21)
      at assert (node_modules/ethers/src.ts/utils/errors.ts:715:25)
      at assertArgument (node_modules/ethers/src.ts/utils/errors.ts:727:5)
      at Interface.encodeFunctionData (node_modules/ethers/src.ts/abi/interface.ts:878:27)
      at Object.encodeFunctionData (src/components/tx/ApprovalEditor/ApprovalEditor.test.tsx:158:35)

  ● ApprovalEditor › should modify increaseAllowance on save

    TypeError: unknown function (argument="fragment", value="increaseAllowance", code=INVALID_ARGUMENT, version=6.11.1)

      264 |           {
      265 |             to: tokenAddress,
    > 266 |             data: ERC20_INTERFACE.encodeFunctionData('increaseAllowance', [spenderAddress, '690000000000']),
          |                                   ^
      267 |             value: '0',
      268 |             operation: OperationType.Call,
      269 |           },

      at makeError (node_modules/ethers/src.ts/utils/errors.ts:687:21)
      at assert (node_modules/ethers/src.ts/utils/errors.ts:715:25)
      at assertArgument (node_modules/ethers/src.ts/utils/errors.ts:727:5)
      at Interface.encodeFunctionData (node_modules/ethers/src.ts/abi/interface.ts:878:27)
      at Object.encodeFunctionData (src/components/tx/ApprovalEditor/ApprovalEditor.test.tsx:266:35)

Report generated by 🧪jest coverage report action from d36d8c8

Bumps the npm_and_yarn group with 2 updates: [@openzeppelin/contracts](https://github.com/OpenZeppelin/openzeppelin-contracts) and [micromatch](https://github.com/micromatch/micromatch).


Updates `@openzeppelin/contracts` from 4.9.6 to 5.0.2
- [Release notes](https://github.com/OpenZeppelin/openzeppelin-contracts/releases)
- [Changelog](https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/CHANGELOG.md)
- [Commits](OpenZeppelin/openzeppelin-contracts@v4.9.6...v5.0.2)

Updates `micromatch` from 4.0.5 to 4.0.8
- [Release notes](https://github.com/micromatch/micromatch/releases)
- [Changelog](https://github.com/micromatch/micromatch/blob/master/CHANGELOG.md)
- [Commits](micromatch/micromatch@4.0.5...4.0.8)

---
updated-dependencies:
- dependency-name: "@openzeppelin/contracts"
  dependency-type: direct:development
  dependency-group: npm_and_yarn
- dependency-name: micromatch
  dependency-type: indirect
  dependency-group: npm_and_yarn
...

Signed-off-by: dependabot[bot] <[email protected]>
@Dargon789 Dargon789 force-pushed the dependabot/npm_and_yarn/npm_and_yarn-39de5fde56 branch from a8e4ef5 to d36d8c8 Compare October 28, 2024 03:41
@Dargon789 Dargon789 merged commit 7eaf46f into dev Oct 28, 2024
2 of 15 checks passed
@Dargon789 Dargon789 deleted the dependabot/npm_and_yarn/npm_and_yarn-39de5fde56 branch October 28, 2024 03:58
@github-actions github-actions bot locked and limited conversation to collaborators Oct 28, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
dependencies Pull requests that update a dependency file javascript Pull requests that update Javascript code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant