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): update dependency @openzeppelin/contracts to v5.2.0 #77

Merged
merged 1 commit into from
Jan 9, 2025

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Jan 9, 2025

This PR contains the following updates:

Package Type Update Change OpenSSF
@openzeppelin/contracts (source) devDependencies minor 5.1.0 -> 5.2.0 OpenSSF Scorecard

Release Notes

OpenZeppelin/openzeppelin-contracts (@​openzeppelin/contracts)

v5.2.0

Compare Source

Breaking Changes
Custom error changes

This version comes with changes to the custom error identifiers. Contracts previously depending on the following errors should be replaced accordingly:

  • Replace Errors.FailedCall with a bubbled-up revert reason in Address.sendValue.
Changes by category
General
  • Update some pragma directives to ensure that all file requirements match that of the files they import. (#​5273)
Account
  • ERC4337Utils: Add a reusable library to manipulate user operations and interact with ERC-4337 contracts (#​5274)
  • ERC7579Utils: Add a reusable library to interact with ERC-7579 modular accounts (#​5274)
Governance
  • GovernorCountingOverridable: Add a governor counting module that enables token holders to override the vote of their delegate. (#​5192)
  • VotesExtended: Create an extension of Votes which checkpoints balances and delegates. (#​5192)
Proxy
  • Clones: Add cloneWithImmutableArgs and cloneDeterministicWithImmutableArgs variants that create clones with per-instance immutable arguments. The immutable arguments can be retrieved using fetchCloneArgs. The corresponding predictDeterministicWithImmutableArgs function is also included. (#​5109)
Tokens
  • ERC1363Utils: Add helper similar to the existing ERC721Utils and ERC1155Utils (#​5133)
Utils
  • Address: bubble up revert data on sendValue failed call (#​5418)
  • Bytes: Add a library of common operations that operate on bytes objects. (#​5252)
  • CAIP2 and CAIP10: Add libraries for formatting and parsing CAIP-2 and CAIP-10 identifiers. (#​5252)
  • NoncesKeyed: Add a variant of Nonces that implements the ERC-4337 entrypoint nonce system. (#​5272)
  • Packing: Add variants for packing bytes10 and bytes22 (#​5274)
  • Strings: Add parseUint, parseInt, parseHexUint and parseAddress to parse strings into numbers and addresses. Also provide variants of these functions that parse substrings, and tryXxx variants that do not revert on invalid input. (#​5166)

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Enabled.

Rebasing: Whenever PR is behind base branch, 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 was generated by Mend Renovate. View the repository job log.

Summary by Sourcery

Build:

  • Update the OpenZeppelin Contracts dependency from v5.1.0 to v5.2.0.

Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
@renovate renovate bot added the dependencies label Jan 9, 2025
@renovate renovate bot enabled auto-merge (squash) January 9, 2025 16:42
Copy link

sourcery-ai bot commented Jan 9, 2025

Reviewer's Guide by Sourcery

This PR updates the @openzeppelin/contracts dependency from version 5.1.0 to 5.2.0. This includes several breaking changes, new features, and general improvements.

Class diagram showing new utility classes in OpenZeppelin 5.2.0

classDiagram
    class ERC4337Utils {
        +manipulateUserOperations()
        +interactWithERC4337Contracts()
    }
    class ERC7579Utils {
        +interactWithModularAccounts()
    }
    class Bytes {
        +commonBytesOperations()
    }
    class CAIP2 {
        +formatCAIP2Identifiers()
        +parseCAIP2Identifiers()
    }
    class CAIP10 {
        +formatCAIP10Identifiers()
        +parseCAIP10Identifiers()
    }
    class NoncesKeyed {
        +ERC4337EntrypointNonceSystem()
    }
    class Strings {
        +parseUint()
        +parseInt()
        +parseHexUint()
        +parseAddress()
        +tryParseUint()
        +tryParseInt()
        +tryParseHexUint()
        +tryParseAddress()
    }
    note for ERC4337Utils "New utility for ERC-4337 operations"
    note for ERC7579Utils "New utility for modular accounts"
    note for Strings "Enhanced string parsing capabilities"
Loading

Class diagram showing new governance features in OpenZeppelin 5.2.0

classDiagram
    class GovernorCountingOverridable {
        +overrideVote()
    }
    class VotesExtended {
        +checkpointBalances()
        +checkpointDelegates()
    }
    VotesExtended --|> Votes: extends
    note for GovernorCountingOverridable "Enables token holders to override delegate votes"
    note for VotesExtended "Extended version with balance and delegate checkpointing"
Loading

Class diagram showing enhanced Clones functionality in OpenZeppelin 5.2.0

classDiagram
    class Clones {
        +cloneWithImmutableArgs()
        +cloneDeterministicWithImmutableArgs()
        +fetchCloneArgs()
        +predictDeterministicWithImmutableArgs()
    }
    note for Clones "Added support for immutable arguments in clones"
Loading

File-Level Changes

Change Details Files
Updated @openzeppelin/contracts dependency to v5.2.0
  • Incremented the version of @openzeppelin/contracts from 5.1.0 to 5.2.0 in the package.json and bun.lockb files.
package.json
bun.lockb

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time. You can also use
    this command to specify where the summary should be inserted.

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

Copy link

@sourcery-ai sourcery-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We have skipped reviewing this pull request. It seems to have been created by a bot (hey, renovate[bot]!). We assume it knows what it's doing!

Copy link

github-actions bot commented Jan 9, 2025

📦 Packages

Package Install
React bun add @settlemint/settlemint/[email protected]

@renovate renovate bot merged commit 7a916bf into main Jan 9, 2025
3 checks passed
@renovate renovate bot deleted the renovate/openzeppelin-packages branch January 9, 2025 16:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants