Summary
Upgrade the OpenZeppelin contracts stack to the latest eligible major versions older than 3 days as of 2026-04-23:
@openzeppelin/contracts 4.9.6 -> 5.6.1
@openzeppelin/contracts-upgradeable 4.9.6 -> 5.6.1
This impacts both contracts and examples.
Why this is not in the current dependency bump PR
This is a breaking contract-library migration. For upgradeable contracts, storage layout and API compatibility must be reviewed carefully before any change is merged.
Documentation
Expected codebase changes
- Review all imports, inheritance trees, constructors/initializers, and access-control patterns.
- Review removed or renamed helpers, changed hook behaviors, and updated extension APIs.
- Re-check any upgradeable storage layout assumptions before changing live upgrade paths.
- Re-run examples that consume the contracts packages.
Migration plan
- Inventory every OpenZeppelin base contract and utility used in
contracts and examples.
- Update dependencies to
5.6.1 on a dedicated branch.
- Resolve compile breaks and explicitly review upgradeable contract storage/layout implications.
- Re-run all contract tests and add targeted regression tests where inheritance or access control changes.
- Verify that deployment, upgrade, and example flows still work as expected.
Validation checklist
- Compile all contracts and examples.
- Run the full contracts test suite.
- Review upgrade safety for any upgradeable contracts before considering deployment changes.
- Document any migration constraints discovered during implementation.
Summary
Upgrade the OpenZeppelin contracts stack to the latest eligible major versions older than 3 days as of 2026-04-23:
@openzeppelin/contracts4.9.6->5.6.1@openzeppelin/contracts-upgradeable4.9.6->5.6.1This impacts both
contractsandexamples.Why this is not in the current dependency bump PR
This is a breaking contract-library migration. For upgradeable contracts, storage layout and API compatibility must be reviewed carefully before any change is merged.
Documentation
Expected codebase changes
Migration plan
contractsandexamples.5.6.1on a dedicated branch.Validation checklist