Skip to content

build(deps-dev): Bump @openzeppelin/contracts from 5.2.0 to 5.3.0 #1316

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Apr 9, 2025

Bumps @openzeppelin/contracts from 5.2.0 to 5.3.0.

Release notes

Sourced from @​openzeppelin/contracts's releases.

v5.3.0

Breaking Changes

  • Replace GovernorCountingOverridable.VoteReceipt struct parameter member names hasOverriden and overridenWeight for hasOverridden and overriddenWeight respectively.

Custom error changes

  • Replace AccessControlNonRevokable with AccessControlNonRevocable.
  • Replace GovernorAlreadyOverridenVote with GovernorAlreadyOverriddenVote.
  • Replace GovernorOnlyProposer with GovernorUnableToCancel.

Changes by category

Account

  • ERC4337Utils: Update the hash function to call getUserOpHash on the specified entrypoint and add an ENTRYPOINT_V08 constant. (#5614)
  • ERC7579Utils: Add ABI decoding checks on calldata bounds within decodeBatch. (#5371)
  • ERC7579Utils: Replace address(0) with address(this) during execution for calldata compression efficiency. (#5614)

Governance

  • IGovernor: Add the getProposalId function to the governor interface. (#5290)
  • GovernorProposalGuardian: Add a governance extension that defines a proposal guardian who can cancel proposals at any stage in their lifecycle. (#5303)
  • GovernorSequentialProposalId: Adds a Governor extension that sequentially numbers proposal ids instead of using the hash. (#5290)
  • GovernorSuperQuorum: Add a governance extension to support a super quorum. Proposals that meet the super quorum (and have a majority of for votes) advance to the Succeeded state before the proposal deadline. (#5526)
  • GovernorVotesSuperQuorumFraction: Add a variant of the GovernorSuperQuorum extensions where the super quorum is expressed as a fraction of the total supply. (#5526)
  • TimelockController: Receive function is now virtual. (#5509)

Structures

  • EnumerableSet: Add clear function to EnumerableSets which deletes all values in the set. (#5486)
  • EnumerableMap: Add clear function to EnumerableMaps which deletes all entries in the map. (#5486)
  • MerkleTree: Add an update function that replaces a previously inserted leaf with a new value, updating the tree root along the way. (#5526)

Tokens

  • ERC4626: Use the asset getter in totalAssets, _deposit and _withdraw. (#5322)
  • IERC6909: Add the interface for ERC-6909. (#5343)
  • ERC6909: Add a standard implementation of ERC6909. (#5394)
  • ERC6909TokenSupply: Add an extension of ERC6909 which tracks total supply for each token id. (#5394)
  • ERC6909Metadata: Add an extension of ERC6909 which adds metadata functionality. (#5394)
  • ERC6909ContentURI: Add an extension of ERC6909 which adds content URI functionality. (#5394)
  • SafeERC20: Add trySafeTransfer and trySafeTransferFrom that do not revert and return false if the transfer is not successful. (#5483)

Other

  • Address: bubble up revert data on sendValue failed call. (#5379)
  • Calldata: Library with emptyBytes and emptyString functions to generate empty bytes and string calldata types. (#5422)
  • ERC2771Forwarder: Expose the _isTrustedByTarget internal function to check whether a target trusts the forwarder. (#5416)
  • Hashes: Expose efficientKeccak256 for hashing non-commutative pairs of bytes32 without allocating extra memory. (#5442)

... (truncated)

Changelog

Sourced from @​openzeppelin/contracts's changelog.

5.3.0 (2025-04-09)

Breaking Changes

  • Replace GovernorCountingOverridable.VoteReceipt struct parameter member names hasOverriden and overridenWeight for hasOverridden and overriddenWeight respectively.

Custom error changes

  • Replace AccessControlNonRevokable with AccessControlNonRevocable.
  • Replace GovernorAlreadyOverridenVote with GovernorAlreadyOverriddenVote.
  • Replace GovernorOnlyProposer with GovernorUnableToCancel.

Changes by category

Account

  • ERC4337Utils: Update the hash function to call getUserOpHash on the specified entrypoint and add an ENTRYPOINT_V08 constant. (#5614)
  • ERC7579Utils: Add ABI decoding checks on calldata bounds within decodeBatch. (#5371)
  • ERC7579Utils: Replace address(0) with address(this) during execution for calldata compression efficiency. (#5614)

Governance

  • IGovernor: Add the getProposalId function to the governor interface. (#5290)
  • GovernorProposalGuardian: Add a governance extension that defines a proposal guardian who can cancel proposals at any stage in their lifecycle. (#5303)
  • GovernorSequentialProposalId: Adds a Governor extension that sequentially numbers proposal ids instead of using the hash. (#5290)
  • GovernorSuperQuorum: Add a governance extension to support a super quorum. Proposals that meet the super quorum (and have a majority of for votes) advance to the Succeeded state before the proposal deadline. (#5526)
  • GovernorVotesSuperQuorumFraction: Add a variant of the GovernorSuperQuorum extensions where the super quorum is expressed as a fraction of the total supply. (#5526)
  • TimelockController: Receive function is now virtual. (#5509)

Structures

  • EnumerableSet: Add clear function to EnumerableSets which deletes all values in the set. (#5486)
  • EnumerableMap: Add clear function to EnumerableMaps which deletes all entries in the map. (#5486)
  • MerkleTree: Add an update function that replaces a previously inserted leaf with a new value, updating the tree root along the way. (#5526)

Tokens

  • ERC4626: Use the asset getter in totalAssets, _deposit and _withdraw. (#5322)
  • IERC6909: Add the interface for ERC-6909. (#5343)
  • ERC6909: Add a standard implementation of ERC6909. (#5394)
  • ERC6909TokenSupply: Add an extension of ERC6909 which tracks total supply for each token id. (#5394)
  • ERC6909Metadata: Add an extension of ERC6909 which adds metadata functionality. (#5394)
  • ERC6909ContentURI: Add an extension of ERC6909 which adds content URI functionality. (#5394)
  • SafeERC20: Add trySafeTransfer and trySafeTransferFrom that do not revert and return false if the transfer is not successful. (#5483)

Other

  • Address: bubble up revert data on sendValue failed call. (#5379)
  • Calldata: Library with emptyBytes and emptyString functions to generate empty bytes and string calldata types. (#5422)
  • ERC2771Forwarder: Expose the _isTrustedByTarget internal function to check whether a target trusts the forwarder. (#5416)

... (truncated)

Commits

Dependabot compatibility score

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)

@dependabot dependabot bot added dependencies Pull requests that update a dependency file javascript Pull requests that update Javascript code labels Apr 9, 2025
@dependabot dependabot bot requested a review from a team as a code owner April 9, 2025 20:52
Copy link

github-actions bot commented Apr 9, 2025

Test Results

 19 files  ±0  107 suites   - 1   29m 0s ⏱️ + 11m 22s
390 tests +6  378 ✅ +14  8 💤 ±0  4 ❌  - 8 
501 runs   - 6  489 ✅ + 2  8 💤 ±0  4 ❌  - 8 

For more details on these failures, see this check.

Results for commit 7d0d000. ± Comparison against base commit 266107f.

This pull request removes 23 and adds 29 tests. Note that renamed tests count towards both.
"before all" hook for "should cancel a single pending fungible token airdrop" ‑ HIP904 CancelAirdropContract Test Suite "before all" hook for "should cancel a single pending fungible token airdrop"
"before all" hook for "should claim a single pending fungible token airdrop" ‑ HIP904 ClaimAirdropContract Test Suite "before all" hook for "should claim a single pending fungible token airdrop"
"before all" hook for "should reject tokens for a single account" ‑ HIP904 TokenRejectContract Test Suite "before all" hook for "should reject tokens for a single account"
should NOT be able call tokenByIndex ‑ ERC721Contract Test Suite Unsupported operations should NOT be able call tokenByIndex
should NOT be able call tokenOfOwnerByIndex ‑ ERC721Contract Test Suite Unsupported operations should NOT be able call tokenOfOwnerByIndex
should NOT be able execute safeTransferFrom ‑ ERC721Contract Test Suite Unsupported operations should NOT be able execute safeTransferFrom
should NOT be able execute safeTransferFromWithData ‑ ERC721Contract Test Suite Unsupported operations should NOT be able execute safeTransferFromWithData
should NOT be able to execute approve ‑ ERC721Contract Test Suite Unsupported operations should NOT be able to execute approve
should NOT be able to execute delegateSetApprovalForAll and isApprovedForAll ‑ ERC721Contract Test Suite should NOT be able to execute delegateSetApprovalForAll and isApprovedForAll
should NOT be able to execute transferFrom ‑ ERC721Contract Test Suite Unsupported operations should NOT be able to execute transferFrom
…
"before all" hook for "should be able to get token name" ‑ ERC721Contract Test Suite "before all" hook for "should be able to get token name"
"before each" hook for "should be able to execute associate() via redirectForToken" ‑ @HRC-719 Test Suite "before each" hook for "should be able to execute associate() via redirectForToken"
should cancel a single pending NFT airdrop ‑ HIP904 CancelAirdropContract Test Suite should cancel a single pending NFT airdrop
should cancel a single pending fungible token airdrop ‑ HIP904 CancelAirdropContract Test Suite should cancel a single pending fungible token airdrop
should cancel multiple pending fungible token airdrops ‑ HIP904 CancelAirdropContract Test Suite should cancel multiple pending fungible token airdrops
should claim a single pending NFT airdrop ‑ HIP904 ClaimAirdropContract Test Suite should claim a single pending NFT airdrop
should claim a single pending fungible token airdrop ‑ HIP904 ClaimAirdropContract Test Suite should claim a single pending fungible token airdrop
should claim multiple pending fungible token airdrops ‑ HIP904 ClaimAirdropContract Test Suite should claim multiple pending fungible token airdrops
should fail to claim airdrops when NFT does not exist ‑ HIP904 ClaimAirdropContract Test Suite should fail to claim airdrops when NFT does not exist
should fail to claim airdrops when NFT serial number does not exist ‑ HIP904 ClaimAirdropContract Test Suite should fail to claim airdrops when NFT serial number does not exist
…

♻️ This comment has been updated with latest results.

@quiet-node quiet-node added this to the 0.12.0 milestone Apr 9, 2025
@quiet-node quiet-node force-pushed the dependabot/npm_and_yarn/openzeppelin/contracts-5.3.0 branch 2 times, most recently from 35b5ca2 to cfca59e Compare April 10, 2025 15:47
@quiet-node
Copy link
Member

There is a dependency mismatch between this direct dependency and the indirect dependency used by @openzeppelin/[email protected]. It will be resolved once #1315 is merged.

@quiet-node quiet-node force-pushed the dependabot/npm_and_yarn/openzeppelin/contracts-5.3.0 branch from cfca59e to a03f8a9 Compare April 10, 2025 15:52
Bumps [@openzeppelin/contracts](https://github.com/OpenZeppelin/openzeppelin-contracts) from 5.2.0 to 5.3.0.
- [Release notes](https://github.com/OpenZeppelin/openzeppelin-contracts/releases)
- [Changelog](https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/CHANGELOG.md)
- [Commits](OpenZeppelin/openzeppelin-contracts@v5.2.0...v5.3.0)

---
updated-dependencies:
- dependency-name: "@openzeppelin/contracts"
  dependency-version: 5.3.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
Signed-off-by: Logan Nguyen <[email protected]>
@quiet-node quiet-node force-pushed the dependabot/npm_and_yarn/openzeppelin/contracts-5.3.0 branch from a03f8a9 to 7d0d000 Compare April 10, 2025 18:32
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 javascript Pull requests that update Javascript code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant