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

build: (deps) [Snyk] Upgrade ethereumjs/trie & @ethereumjs/util #2980

Merged
merged 2 commits into from
Sep 16, 2024

Conversation

swirlds-automation
Copy link
Contributor

snyk-top-banner

Snyk has created this PR to upgrade multiple dependencies.

👯‍♂ The following dependencies are linked and will therefore be updated together.

ℹ️ Keep your dependencies up-to-date. This makes it easier to fix existing vulnerabilities and to more quickly identify and fix newly disclosed vulnerabilities when they affect your project.

Name Versions Released on

@ethereumjs/util
from 9.0.3 to 9.1.0 | 1 version ahead of your current version | a month ago
on 2024-08-15
@ethereumjs/trie
from 6.2.0 to 6.2.1 | 1 version ahead of your current version | a month ago
on 2024-08-15

Release notes
Package name: @ethereumjs/util
  • 9.1.0 - 2024-08-15

    Support for Partial Accounts

    For Verkle or other contexts it can be useful to create partial accounts not containing all the account parameters. This is now supported starting with this release, see PR #3269:

    import { Account } from '@ ethereumjs/util'

    const account = Account.fromPartialAccountData({
    nonce: '0x02',
    balance: '0x0384',
    })
    console.log(Partial account with nonce=<span class="pl-s1"><span class="pl-kos">${</span><span class="pl-s1">account</span><span class="pl-kos">.</span><span class="pl-c1">nonce</span><span class="pl-kos">}</span></span> and balance=<span class="pl-s1"><span class="pl-kos">${</span><span class="pl-s1">account</span><span class="pl-kos">.</span><span class="pl-c1">balance</span><span class="pl-kos">}</span></span> created)

    New requests Module

    This release introduces a new requests module (see PRs #3372, #3393, #3398 and #3477) with various type and an abstract base class for EIP-7685 general purpose execution layer requests to the CL (Prague hardfork) as well as concrete implementations for the currently supported request types:

    • EIP-6110: DepositRequest (Prague Hardfork)
    • EIP-7002: WithdrawawlRequest (Prague Hardfork)
    • EIP-7251: ConsolidationRequest (Prague Hardfork)

    These request types are mainly used within the @ ethereumjs/block library where applied usage instructions are provided in the README.

    Verkle Updates

    • Update kzg-wasm to 0.4.0, PR #3358
    • Shift Verkle to osaka hardfork, PR #3371
    • New verkle module with utility methods and interfaces, PR #3462
    • Rename verkle utils and refactor, PR #3468

    Other Features

    • Stricter prefixed hex typing, PRs #3348, #3427 and #3357 (some changes removed in PR #3382 for backwards compatibility reasons, will be reintroduced along upcoming breaking releases)

    Other Changes

    • Adjust Account.isContract() (in Verkle context work), PR #3343
    • Rename deposit receipt to deposit request, PR #3408
    • Adjust Account.isEmpty() to also work for partial accounts, PR #3405
    • Enhances typing of CL requests, PR #3398
    • Rename withdrawal request's validatorPublicKey to validatorPubkey, PR #3474
  • 9.0.3 - 2024-03-18
from @ethereumjs/util GitHub release notes
Package name: @ethereumjs/trie
  • 6.2.1 - 2024-08-15

    Other Features

    • Stricter prefixed hex typing, PRs #3348, #3427 and #3357 (some changes removed in PR #3382 for backwards compatibility reasons, will be reintroduced along upcoming breaking releases)

    Bugfixes

    • Fixes an issue in the delete operation used for unhashed tries and pruning activated which resulted in a wrong state root (bad!), PR #3333
  • 6.2.0 - 2024-03-18
from @ethereumjs/trie GitHub release notes

Important

  • Check the changes in this PR to ensure they won't cause issues with your project.
  • This PR was automatically created by Snyk using the credentials of a real user.

Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open upgrade PRs.

For more information:

Copy link

github-actions bot commented Sep 13, 2024

Acceptance Tests

  19 files  242 suites   33m 2s ⏱️
602 tests 594 ✔️ 4 💤 4
730 runs  722 ✔️ 4 💤 4

Results for commit 3423cc6.

♻️ This comment has been updated with latest results.

Copy link

github-actions bot commented Sep 16, 2024

Tests

       3 files     274 suites   19s ⏱️
1 289 tests 1 288 ✔️ 1 💤 0
1 301 runs  1 300 ✔️ 1 💤 0

Results for commit 3423cc6.

♻️ This comment has been updated with latest results.

@quiet-node quiet-node added the dependencies Pull requests that update a dependency file label Sep 16, 2024
@quiet-node quiet-node added this to the 0.57.0 milestone Sep 16, 2024
@ebadiere ebadiere changed the title [Snyk] Upgrade: , build: (deps) [Snyk] Upgrade: , Sep 16, 2024
snyk-bot and others added 2 commits September 16, 2024 12:23
Snyk has created this PR to upgrade:
  - @ethereumjs/util from 9.0.3 to 9.1.0.
    See this package in npm: https://www.npmjs.com/package/@ethereumjs/util
  - @ethereumjs/trie from 6.2.0 to 6.2.1.
    See this package in npm: https://www.npmjs.com/package/@ethereumjs/trie

See this project in Snyk:
https://app.snyk.io/org/json-rpc-relay/project/bdb2179b-5ce8-4cf3-8b32-a42cc27e3d62?utm_source=github&utm_medium=referral&page=upgrade-pr

Signed-off-by: ebadiere <ebadiere@gmail.com>
Signed-off-by: ebadiere <ebadiere@gmail.com>
@ebadiere ebadiere force-pushed the snyk-upgrade-9804690e1e9ff29294418724e8e4be6e branch from 05a0ebc to 3423cc6 Compare September 16, 2024 18:23
Copy link

sonarcloud bot commented Sep 16, 2024

@quiet-node quiet-node changed the title build: (deps) [Snyk] Upgrade: , build: (deps) [Snyk] Upgrade ethereumjs/trie & @ethereumjs/util Sep 16, 2024
@quiet-node quiet-node merged commit 14f3d32 into main Sep 16, 2024
41 checks passed
@quiet-node quiet-node deleted the snyk-upgrade-9804690e1e9ff29294418724e8e4be6e branch September 16, 2024 19:51
Copy link

codecov bot commented Sep 16, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 89.56%. Comparing base (f55c304) to head (3423cc6).
Report is 11 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2980      +/-   ##
==========================================
+ Coverage   89.54%   89.56%   +0.02%     
==========================================
  Files          56       56              
  Lines        3796     3796              
  Branches      775      775              
==========================================
+ Hits         3399     3400       +1     
+ Misses        350      349       -1     
  Partials       47       47              
Flag Coverage Δ
relay 89.68% <ø> (ø)
server 88.30% <ø> (+0.14%) ⬆️
ws-server 100.00% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

see 1 file with indirect coverage changes

@quiet-node quiet-node modified the milestones: 0.57.0, 0.56.0 Sep 17, 2024
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.

4 participants