Skip to content

Commit ea410a7

Browse files
chore(deps): update dependency @openzeppelin/contracts to v5.3.0 (#118)
This PR contains the following updates: | Package | Type | Update | Change | OpenSSF | |---|---|---|---|---| | [@openzeppelin/contracts](https://openzeppelin.com/contracts/) ([source](https://redirect.github.com/OpenZeppelin/openzeppelin-contracts)) | dependencies | minor | [`5.2.0` -> `5.3.0`](https://renovatebot.com/diffs/npm/@openzeppelin%2fcontracts/5.2.0/5.3.0) | [![OpenSSF Scorecard](https://api.securityscorecards.dev/projects/github.com/OpenZeppelin/openzeppelin-contracts/badge)](https://securityscorecards.dev/viewer/?uri=github.com/OpenZeppelin/openzeppelin-contracts) | --- ### Release Notes <details> <summary>OpenZeppelin/openzeppelin-contracts (@&#8203;openzeppelin/contracts)</summary> ### [`v5.3.0`](https://redirect.github.com/OpenZeppelin/openzeppelin-contracts/releases/tag/v5.3.0) [Compare Source](https://redirect.github.com/OpenZeppelin/openzeppelin-contracts/compare/v5.2.0...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. ([#&#8203;5614](https://redirect.github.com/OpenZeppelin/openzeppelin-contracts/pull/5614)) - `ERC7579Utils`: Add ABI decoding checks on calldata bounds within `decodeBatch`. ([#&#8203;5371](https://redirect.github.com/OpenZeppelin/openzeppelin-contracts/pull/5371)) - `ERC7579Utils`: Replace `address(0)` with `address(this)` during execution for calldata compression efficiency. ([#&#8203;5614](https://redirect.github.com/OpenZeppelin/openzeppelin-contracts/pull/5614)) ##### Governance - `IGovernor`: Add the `getProposalId` function to the governor interface. ([#&#8203;5290](https://redirect.github.com/OpenZeppelin/openzeppelin-contracts/pull/5290)) - `GovernorProposalGuardian`: Add a governance extension that defines a proposal guardian who can cancel proposals at any stage in their lifecycle. ([#&#8203;5303](https://redirect.github.com/OpenZeppelin/openzeppelin-contracts/pull/5303)) - `GovernorSequentialProposalId`: Adds a `Governor` extension that sequentially numbers proposal ids instead of using the hash. ([#&#8203;5290](https://redirect.github.com/OpenZeppelin/openzeppelin-contracts/pull/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. ([#&#8203;5526](https://redirect.github.com/OpenZeppelin/openzeppelin-contracts/pull/5526)) - `GovernorVotesSuperQuorumFraction`: Add a variant of the `GovernorSuperQuorum` extensions where the super quorum is expressed as a fraction of the total supply. ([#&#8203;5526](https://redirect.github.com/OpenZeppelin/openzeppelin-contracts/pull/5526)) - `TimelockController`: Receive function is now virtual. ([#&#8203;5509](https://redirect.github.com/OpenZeppelin/openzeppelin-contracts/pull/5509)) ##### Structures - `EnumerableSet`: Add `clear` function to EnumerableSets which deletes all values in the set. ([#&#8203;5486](https://redirect.github.com/OpenZeppelin/openzeppelin-contracts/pull/5486)) - `EnumerableMap`: Add `clear` function to EnumerableMaps which deletes all entries in the map. ([#&#8203;5486](https://redirect.github.com/OpenZeppelin/openzeppelin-contracts/pull/5486)) - `MerkleTree`: Add an update function that replaces a previously inserted leaf with a new value, updating the tree root along the way. ([#&#8203;5526](https://redirect.github.com/OpenZeppelin/openzeppelin-contracts/pull/5526)) ##### Tokens - `ERC4626`: Use the `asset` getter in `totalAssets`, `_deposit` and `_withdraw`. ([#&#8203;5322](https://redirect.github.com/OpenZeppelin/openzeppelin-contracts/pull/5322)) - `IERC6909`: Add the interface for ERC-6909. ([#&#8203;5343](https://redirect.github.com/OpenZeppelin/openzeppelin-contracts/pull/5343)) - `ERC6909`: Add a standard implementation of ERC6909. ([#&#8203;5394](https://redirect.github.com/OpenZeppelin/openzeppelin-contracts/pull/5394)) - `ERC6909TokenSupply`: Add an extension of ERC6909 which tracks total supply for each token id. ([#&#8203;5394](https://redirect.github.com/OpenZeppelin/openzeppelin-contracts/pull/5394)) - `ERC6909Metadata`: Add an extension of ERC6909 which adds metadata functionality. ([#&#8203;5394](https://redirect.github.com/OpenZeppelin/openzeppelin-contracts/pull/5394)) - `ERC6909ContentURI`: Add an extension of ERC6909 which adds content URI functionality. ([#&#8203;5394](https://redirect.github.com/OpenZeppelin/openzeppelin-contracts/pull/5394)) - `SafeERC20`: Add `trySafeTransfer` and `trySafeTransferFrom` that do not revert and return false if the transfer is not successful. ([#&#8203;5483](https://redirect.github.com/OpenZeppelin/openzeppelin-contracts/pull/5483)) ##### Other - `Address`: bubble up revert data on `sendValue` failed call. ([#&#8203;5379](https://redirect.github.com/OpenZeppelin/openzeppelin-contracts/pull/5379)) - `Calldata`: Library with `emptyBytes` and `emptyString` functions to generate empty `bytes` and `string` calldata types. ([#&#8203;5422](https://redirect.github.com/OpenZeppelin/openzeppelin-contracts/pull/5422)) - `ERC2771Forwarder`: Expose the `_isTrustedByTarget` internal function to check whether a target trusts the forwarder. ([#&#8203;5416](https://redirect.github.com/OpenZeppelin/openzeppelin-contracts/pull/5416)) - `Hashes`: Expose `efficientKeccak256` for hashing non-commutative pairs of bytes32 without allocating extra memory. ([#&#8203;5442](https://redirect.github.com/OpenZeppelin/openzeppelin-contracts/pull/5442)) - `Initializable`: Add `_initializableStorageSlot` function that returns a pointer to the storage struct. The function allows customizing with a custom storage slot with an `override`. ([#&#8203;5526](https://redirect.github.com/OpenZeppelin/openzeppelin-contracts/pull/5526)) - `Math`: Add `add512`, `mul512` and `mulShr`. ([#&#8203;5526](https://redirect.github.com/OpenZeppelin/openzeppelin-contracts/pull/5526)) - `Math`: Add saturating arithmetic operations `saturatingAdd`, `saturatingSub` and `saturatingMul`. ([#&#8203;5526](https://redirect.github.com/OpenZeppelin/openzeppelin-contracts/pull/5526)) - `MessageHashUtils`: Add `toDataWithIntendedValidatorHash(address, bytes32)`. ([#&#8203;5526](https://redirect.github.com/OpenZeppelin/openzeppelin-contracts/pull/5526)) - `P256`: Adjust precompile detection in `verifyNative` to consider empty `returndata` on invalid verification. Previously, invalid signatures would've reverted with a `MissingPrecompile` error in chains with RIP-7212 support. ([#&#8203;5620](https://redirect.github.com/OpenZeppelin/openzeppelin-contracts/pull/5620)) - `Pausable`: Stop explicitly setting `paused` to `false` during construction. ([#&#8203;5448](https://redirect.github.com/OpenZeppelin/openzeppelin-contracts/pull/5448)) - `Strings`: Add `espaceJSON` that escapes special characters in JSON strings. ([#&#8203;5526](https://redirect.github.com/OpenZeppelin/openzeppelin-contracts/pull/5526)) </details> --- ### 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. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/settlemint/solidity-token-erc721). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOS4yMzguMCIsInVwZGF0ZWRJblZlciI6IjM5LjIzOC4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJkZXBlbmRlbmNpZXMiXX0=--> ## Summary by Sourcery Update OpenZeppelin Contracts dependency to version 5.3.0, incorporating various improvements and new features across governance, tokens, and utility contracts New Features: - Added support for ERC6909 token standard - Introduced new governance extensions like GovernorProposalGuardian and GovernorSuperQuorum - Added new utility functions in Math, Strings, and other helper libraries Enhancements: - Improved ERC4626 asset handling - Added clear functions to EnumerableSet and EnumerableMap - Enhanced error naming and handling in various contracts Chores: - Upgrade OpenZeppelin Contracts from version 5.2.0 to 5.3.0 Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
1 parent b222164 commit ea410a7

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

bun.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
"@nomicfoundation/hardhat-ignition-viem": "0.15.10",
4242
"@nomicfoundation/hardhat-toolbox-viem": "3.0.0",
4343
"@nomiclabs/hardhat-solhint": "4.0.1",
44-
"@openzeppelin/contracts": "5.2.0",
44+
"@openzeppelin/contracts": "5.3.0",
4545
"@openzeppelin/subgraphs": "0.1.8-5",
4646
"hardhat": "2.22.19",
4747
"solhint": "5.0.5"

0 commit comments

Comments
 (0)