Skip to content

Commit ac4198f

Browse files
Release v5.2.0 (rc) (#5277)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: Hadrien Croubois <[email protected]>
1 parent 7e014ee commit ac4198f

31 files changed

+78
-21
lines changed

.changeset/pre.json

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,18 @@
44
"initialVersions": {
55
"openzeppelin-solidity": "5.1.0"
66
},
7-
"changesets": []
7+
"changesets": [
8+
"eighty-hounds-promise",
9+
"four-chairs-help",
10+
"great-lions-hear",
11+
"healthy-books-shout",
12+
"hot-shrimps-wait",
13+
"lovely-dodos-lay",
14+
"pink-wasps-hammer",
15+
"proud-planes-arrive",
16+
"seven-donkeys-tap",
17+
"small-seahorses-bathe",
18+
"tricky-bats-pretend",
19+
"weak-roses-bathe"
20+
]
821
}

CHANGELOG.md

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,40 @@
11
# Changelog
22

33

4+
## 5.2.0-rc.0 (2024-12-04)
5+
6+
### Changes by category
7+
8+
#### General
9+
10+
- Update some pragma directives to ensure that all file requirements match that of the files they import. ([#5273](https://github.com/OpenZeppelin/openzeppelin-contracts/pull/5273))
11+
12+
#### Account
13+
14+
- `ERC4337Utils`: Add a reusable library to manipulate user operations and interact with ERC-4337 contracts ([#5274](https://github.com/OpenZeppelin/openzeppelin-contracts/pull/5274))
15+
- `ERC7579Utils`: Add a reusable library to interact with ERC-7579 modular accounts ([#5274](https://github.com/OpenZeppelin/openzeppelin-contracts/pull/5274))
16+
17+
#### Governance
18+
19+
- `GovernorCountingOverridable`: Add a governor counting module that enables token holders to override the vote of their delegate. ([#5192](https://github.com/OpenZeppelin/openzeppelin-contracts/pull/5192))
20+
- `VotesExtended`: Create an extension of `Votes` which checkpoints balances and delegates. ([#5192](https://github.com/OpenZeppelin/openzeppelin-contracts/pull/5192))
21+
22+
### Proxy
23+
24+
- `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](https://github.com/OpenZeppelin/openzeppelin-contracts/pull/5109))
25+
26+
### Tokens
27+
28+
- `ERC1363Utils`: Add helper similar to the existing `ERC721Utils` and `ERC1155Utils` ([#5133](https://github.com/OpenZeppelin/openzeppelin-contracts/pull/5133))
29+
30+
### Utils
31+
32+
- `Bytes`: Add a library of common operation that operate on `bytes` objects. ([#5252](https://github.com/OpenZeppelin/openzeppelin-contracts/pull/5252))
33+
- `CAIP2` and `CAIP10`: Add libraries for formatting and parsing CAIP-2 and CAIP-10 identifiers. ([#5252](https://github.com/OpenZeppelin/openzeppelin-contracts/pull/5252))
34+
- `NoncesKeyed`: Add a variant of `Nonces` that implements the ERC-4337 entrypoint nonce system. ([#5272](https://github.com/OpenZeppelin/openzeppelin-contracts/pull/5272))
35+
- `Packing`: Add variants for packing `bytes10` and `bytes22` ([#5274](https://github.com/OpenZeppelin/openzeppelin-contracts/pull/5274))
36+
- `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](https://github.com/OpenZeppelin/openzeppelin-contracts/pull/5166))
37+
438
## 5.1.0 (2024-10-17)
539

640
### Breaking changes

contracts/account/utils/draft-ERC4337Utils.sol

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// SPDX-License-Identifier: MIT
2+
// OpenZeppelin Contracts (last updated v5.2.0-rc.0) (account/utils/draft-ERC4337Utils.sol)
23

34
pragma solidity ^0.8.20;
45

contracts/account/utils/draft-ERC7579Utils.sol

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// SPDX-License-Identifier: MIT
2+
// OpenZeppelin Contracts (last updated v5.2.0-rc.0) (account/utils/draft-ERC7579Utils.sol)
23

34
pragma solidity ^0.8.20;
45

contracts/finance/VestingWallet.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// SPDX-License-Identifier: MIT
2-
// OpenZeppelin Contracts (last updated v5.1.0) (finance/VestingWallet.sol)
2+
// OpenZeppelin Contracts (last updated v5.2.0-rc.0) (finance/VestingWallet.sol)
33
pragma solidity ^0.8.20;
44

55
import {IERC20} from "../token/ERC20/IERC20.sol";

contracts/governance/Governor.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// SPDX-License-Identifier: MIT
2-
// OpenZeppelin Contracts (last updated v5.1.0) (governance/Governor.sol)
2+
// OpenZeppelin Contracts (last updated v5.2.0-rc.0) (governance/Governor.sol)
33

44
pragma solidity ^0.8.20;
55

contracts/governance/extensions/GovernorCountingOverridable.sol

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// SPDX-License-Identifier: MIT
2+
// OpenZeppelin Contracts (last updated v5.2.0-rc.0) (governance/extensions/GovernorCountingOverridable.sol)
23

34
pragma solidity ^0.8.20;
45

contracts/governance/extensions/GovernorPreventLateQuorum.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// SPDX-License-Identifier: MIT
2-
// OpenZeppelin Contracts (last updated v5.0.0) (governance/extensions/GovernorPreventLateQuorum.sol)
2+
// OpenZeppelin Contracts (last updated v5.2.0-rc.0) (governance/extensions/GovernorPreventLateQuorum.sol)
33

44
pragma solidity ^0.8.20;
55

contracts/governance/utils/Votes.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// SPDX-License-Identifier: MIT
2-
// OpenZeppelin Contracts (last updated v5.1.0) (governance/utils/Votes.sol)
2+
// OpenZeppelin Contracts (last updated v5.2.0-rc.0) (governance/utils/Votes.sol)
33
pragma solidity ^0.8.20;
44

55
import {IERC5805} from "../../interfaces/IERC5805.sol";

contracts/governance/utils/VotesExtended.sol

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// SPDX-License-Identifier: MIT
2+
// OpenZeppelin Contracts (last updated v5.2.0-rc.0) (governance/utils/VotesExtended.sol)
23
pragma solidity ^0.8.20;
34

45
import {Checkpoints} from "../../utils/structs/Checkpoints.sol";

0 commit comments

Comments
 (0)