From fa525310e45f91eb20a6d3baa2644be8e0adba31 Mon Sep 17 00:00:00 2001 From: github-actions <41898282+github-actions[bot]@users.noreply.github.com> Date: Thu, 17 Oct 2024 11:54:24 +0000 Subject: [PATCH] Transpile 69c8def5f --- .changeset/chilled-walls-develop.md | 5 -- .changeset/chilly-humans-warn.md | 5 -- .changeset/cold-cheetahs-check.md | 5 -- .changeset/cool-mangos-compare.md | 5 -- .changeset/curvy-crabs-repeat.md | 5 -- .changeset/dirty-cobras-smile.md | 5 -- .changeset/eight-eyes-burn.md | 5 -- .changeset/eleven-planets-relax.md | 5 -- .changeset/flat-turtles-repeat.md | 5 -- .changeset/fluffy-buses-jump.md | 5 -- .changeset/fluffy-steaks-exist.md | 5 -- .changeset/forty-dodos-visit.md | 5 -- .changeset/friendly-nails-push.md | 5 -- .changeset/gentle-bulldogs-turn.md | 5 -- .changeset/gorgeous-badgers-vanish.md | 5 -- .changeset/great-pianos-work.md | 5 -- .changeset/heavy-baboons-give.md | 5 -- .changeset/kind-planets-cough.md | 5 -- .changeset/light-news-listen.md | 5 -- .changeset/lucky-crews-eat.md | 5 -- .changeset/nervous-eyes-teach.md | 5 -- .changeset/nervous-pans-grow.md | 5 -- .changeset/nice-paws-pull.md | 5 -- .changeset/odd-files-protect.md | 5 -- .changeset/odd-lobsters-wash.md | 5 -- .changeset/poor-chefs-cheat.md | 5 -- .changeset/pre.json | 53 ------------------- .changeset/serious-carrots-provide.md | 5 -- .changeset/shiny-poets-whisper.md | 5 -- .changeset/silver-swans-promise.md | 5 -- .changeset/smart-bugs-switch.md | 5 -- .changeset/spotty-falcons-explain.md | 5 -- .changeset/spotty-queens-own.md | 5 -- .changeset/strong-singers-talk.md | 5 -- .changeset/thick-pumpkins-report.md | 5 -- .changeset/thin-walls-drop.md | 5 -- .changeset/tricky-bats-pretend.md | 5 -- .changeset/twenty-feet-grin.md | 5 -- .changeset/violet-moons-tell.md | 5 -- .changeset/warm-sheep-cover.md | 5 -- .changeset/wise-bobcats-speak.md | 5 -- .changeset/witty-chicken-smile.md | 5 -- .changeset/yellow-deers-walk.md | 5 -- .changeset/yellow-moles-hammer.md | 5 -- .changeset/yellow-tables-sell.md | 5 -- CHANGELOG.md | 7 +-- contracts/access/Ownable2StepUpgradeable.sol | 2 +- .../AccessControlEnumerableUpgradeable.sol | 2 +- .../manager/AccessManagedUpgradeable.sol | 2 +- .../manager/AccessManagerUpgradeable.sol | 2 +- .../finance/VestingWalletCliffUpgradeable.sol | 2 +- .../finance/VestingWalletUpgradeable.sol | 2 +- contracts/governance/GovernorUpgradeable.sol | 2 +- .../GovernorCountingFractionalUpgradeable.sol | 2 +- .../GovernorCountingSimpleUpgradeable.sol | 2 +- .../extensions/GovernorStorageUpgradeable.sol | 2 +- .../GovernorTimelockAccessUpgradeable.sol | 2 +- .../GovernorTimelockCompoundUpgradeable.sol | 2 +- .../GovernorTimelockControlUpgradeable.sol | 2 +- .../extensions/GovernorVotesUpgradeable.sol | 2 +- .../governance/utils/VotesUpgradeable.sol | 2 +- .../metatx/ERC2771ContextUpgradeable.sol | 2 +- .../metatx/ERC2771ForwarderUpgradeable.sol | 2 +- contracts/package.json | 4 +- contracts/proxy/utils/UUPSUpgradeable.sol | 2 +- .../token/ERC1155/ERC1155Upgradeable.sol | 2 +- .../extensions/ERC1155PausableUpgradeable.sol | 2 +- .../extensions/ERC1155SupplyUpgradeable.sol | 2 +- .../ERC1155URIStorageUpgradeable.sol | 2 +- .../utils/ERC1155HolderUpgradeable.sol | 2 +- contracts/token/ERC20/ERC20Upgradeable.sol | 2 +- .../ERC20/extensions/ERC1363Upgradeable.sol | 2 +- .../extensions/ERC20FlashMintUpgradeable.sol | 2 +- .../extensions/ERC20PausableUpgradeable.sol | 2 +- .../extensions/ERC20PermitUpgradeable.sol | 2 +- .../extensions/ERC20VotesUpgradeable.sol | 2 +- .../extensions/ERC20WrapperUpgradeable.sol | 2 +- .../ERC20/extensions/ERC4626Upgradeable.sol | 2 +- ...raft-ERC20TemporaryApprovalUpgradeable.sol | 2 +- contracts/token/ERC721/ERC721Upgradeable.sol | 2 +- .../extensions/ERC721BurnableUpgradeable.sol | 2 +- .../ERC721ConsecutiveUpgradeable.sol | 2 +- .../ERC721EnumerableUpgradeable.sol | 2 +- .../extensions/ERC721PausableUpgradeable.sol | 2 +- .../extensions/ERC721RoyaltyUpgradeable.sol | 2 +- .../ERC721URIStorageUpgradeable.sol | 2 +- .../extensions/ERC721VotesUpgradeable.sol | 2 +- .../extensions/ERC721WrapperUpgradeable.sol | 2 +- contracts/token/common/ERC2981Upgradeable.sol | 2 +- .../ReentrancyGuardTransientUpgradeable.sol | 2 +- .../utils/ReentrancyGuardUpgradeable.sol | 2 +- .../utils/cryptography/EIP712Upgradeable.sol | 2 +- .../utils/introspection/ERC165Upgradeable.sol | 2 +- docs/antora.yml | 4 +- lib/openzeppelin-contracts | 2 +- package.json | 2 +- 96 files changed, 54 insertions(+), 330 deletions(-) delete mode 100644 .changeset/chilled-walls-develop.md delete mode 100644 .changeset/chilly-humans-warn.md delete mode 100644 .changeset/cold-cheetahs-check.md delete mode 100644 .changeset/cool-mangos-compare.md delete mode 100644 .changeset/curvy-crabs-repeat.md delete mode 100644 .changeset/dirty-cobras-smile.md delete mode 100644 .changeset/eight-eyes-burn.md delete mode 100644 .changeset/eleven-planets-relax.md delete mode 100644 .changeset/flat-turtles-repeat.md delete mode 100644 .changeset/fluffy-buses-jump.md delete mode 100644 .changeset/fluffy-steaks-exist.md delete mode 100644 .changeset/forty-dodos-visit.md delete mode 100644 .changeset/friendly-nails-push.md delete mode 100644 .changeset/gentle-bulldogs-turn.md delete mode 100644 .changeset/gorgeous-badgers-vanish.md delete mode 100644 .changeset/great-pianos-work.md delete mode 100644 .changeset/heavy-baboons-give.md delete mode 100644 .changeset/kind-planets-cough.md delete mode 100644 .changeset/light-news-listen.md delete mode 100644 .changeset/lucky-crews-eat.md delete mode 100644 .changeset/nervous-eyes-teach.md delete mode 100644 .changeset/nervous-pans-grow.md delete mode 100644 .changeset/nice-paws-pull.md delete mode 100644 .changeset/odd-files-protect.md delete mode 100644 .changeset/odd-lobsters-wash.md delete mode 100644 .changeset/poor-chefs-cheat.md delete mode 100644 .changeset/pre.json delete mode 100644 .changeset/serious-carrots-provide.md delete mode 100644 .changeset/shiny-poets-whisper.md delete mode 100644 .changeset/silver-swans-promise.md delete mode 100644 .changeset/smart-bugs-switch.md delete mode 100644 .changeset/spotty-falcons-explain.md delete mode 100644 .changeset/spotty-queens-own.md delete mode 100644 .changeset/strong-singers-talk.md delete mode 100644 .changeset/thick-pumpkins-report.md delete mode 100644 .changeset/thin-walls-drop.md delete mode 100644 .changeset/tricky-bats-pretend.md delete mode 100644 .changeset/twenty-feet-grin.md delete mode 100644 .changeset/violet-moons-tell.md delete mode 100644 .changeset/warm-sheep-cover.md delete mode 100644 .changeset/wise-bobcats-speak.md delete mode 100644 .changeset/witty-chicken-smile.md delete mode 100644 .changeset/yellow-deers-walk.md delete mode 100644 .changeset/yellow-moles-hammer.md delete mode 100644 .changeset/yellow-tables-sell.md diff --git a/.changeset/chilled-walls-develop.md b/.changeset/chilled-walls-develop.md deleted file mode 100644 index 4108feb61..000000000 --- a/.changeset/chilled-walls-develop.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'openzeppelin-solidity': minor ---- - -`Clones`: Add version of `clone` and `cloneDeterministic` that support sending value at creation. diff --git a/.changeset/chilly-humans-warn.md b/.changeset/chilly-humans-warn.md deleted file mode 100644 index 1301dfec4..000000000 --- a/.changeset/chilly-humans-warn.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'openzeppelin-solidity': patch ---- - -`ProxyAdmin`: Fixed documentation for `UPGRADE_INTERFACE_VERSION` getter. diff --git a/.changeset/cold-cheetahs-check.md b/.changeset/cold-cheetahs-check.md deleted file mode 100644 index 0697dcdf7..000000000 --- a/.changeset/cold-cheetahs-check.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'openzeppelin-solidity': minor ---- - -`CircularBuffer`: Add a data structure that stores the last `N` values pushed to it. diff --git a/.changeset/cool-mangos-compare.md b/.changeset/cool-mangos-compare.md deleted file mode 100644 index 470ee0894..000000000 --- a/.changeset/cool-mangos-compare.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'openzeppelin-solidity': minor ---- - -`Math`: add an `invMod` function to get the modular multiplicative inverse of a number in Z/nZ. diff --git a/.changeset/curvy-crabs-repeat.md b/.changeset/curvy-crabs-repeat.md deleted file mode 100644 index db3ef275b..000000000 --- a/.changeset/curvy-crabs-repeat.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'openzeppelin-solidity': minor ---- - -`RSA`: Library to verify signatures according to RFC 8017 Signature Verification Operation diff --git a/.changeset/dirty-cobras-smile.md b/.changeset/dirty-cobras-smile.md deleted file mode 100644 index d71194cfc..000000000 --- a/.changeset/dirty-cobras-smile.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'openzeppelin-solidity': minor ---- - -`Arrays`: add a `sort` functions for `address[]`, `bytes32[]` and `uint256[]` memory arrays. diff --git a/.changeset/eight-eyes-burn.md b/.changeset/eight-eyes-burn.md deleted file mode 100644 index 908c90c7b..000000000 --- a/.changeset/eight-eyes-burn.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'openzeppelin-solidity': minor ---- - -`GovernorCountingFractional`: Add a governor counting module that allows distributing voting power amongst 3 options (For, Against, Abstain). diff --git a/.changeset/eleven-planets-relax.md b/.changeset/eleven-planets-relax.md deleted file mode 100644 index a1f1bbf1c..000000000 --- a/.changeset/eleven-planets-relax.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'openzeppelin-solidity': patch ---- - -`TransparentUpgradeableProxy`: Make internal `_proxyAdmin()` getter have `view` visibility. diff --git a/.changeset/flat-turtles-repeat.md b/.changeset/flat-turtles-repeat.md deleted file mode 100644 index 6b627201a..000000000 --- a/.changeset/flat-turtles-repeat.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'openzeppelin-solidity': minor ---- - -`Arrays`: deprecate `findUpperBound` in favor of the new `lowerBound`. diff --git a/.changeset/fluffy-buses-jump.md b/.changeset/fluffy-buses-jump.md deleted file mode 100644 index 0525a4d8e..000000000 --- a/.changeset/fluffy-buses-jump.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'openzeppelin-solidity': minor ---- - -`Comparator`: A library of comparator functions, useful for customizing the behavior of the Heap structure. diff --git a/.changeset/fluffy-steaks-exist.md b/.changeset/fluffy-steaks-exist.md deleted file mode 100644 index b625e2434..000000000 --- a/.changeset/fluffy-steaks-exist.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'openzeppelin-solidity': patch ---- - -`Create2`, `Clones`: Mask `computeAddress` and `cloneDeterministic` outputs to produce a clean value for an `address` type (i.e. only use 20 bytes) diff --git a/.changeset/forty-dodos-visit.md b/.changeset/forty-dodos-visit.md deleted file mode 100644 index 7d5ae7473..000000000 --- a/.changeset/forty-dodos-visit.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'openzeppelin-solidity': minor ---- - -`Strings`: Added a utility function for converting an address to checksummed string. diff --git a/.changeset/friendly-nails-push.md b/.changeset/friendly-nails-push.md deleted file mode 100644 index 157bf0556..000000000 --- a/.changeset/friendly-nails-push.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'openzeppelin-solidity': minor ---- - -`ERC1363`: Add implementation of the token payable standard allowing execution of contract code after transfers and approvals. diff --git a/.changeset/gentle-bulldogs-turn.md b/.changeset/gentle-bulldogs-turn.md deleted file mode 100644 index 12bc87a2d..000000000 --- a/.changeset/gentle-bulldogs-turn.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'openzeppelin-solidity': minor ---- - -`DoubleEndedQueue`: Custom errors replaced with native panic codes. diff --git a/.changeset/gorgeous-badgers-vanish.md b/.changeset/gorgeous-badgers-vanish.md deleted file mode 100644 index ce75ed6eb..000000000 --- a/.changeset/gorgeous-badgers-vanish.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'openzeppelin-solidity': minor ---- - -`SlotDerivation`: Add a library of methods for derivating common storage slots. diff --git a/.changeset/great-pianos-work.md b/.changeset/great-pianos-work.md deleted file mode 100644 index da54483e4..000000000 --- a/.changeset/great-pianos-work.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'openzeppelin-solidity': minor ---- - -`Heap`: A data structure that implements a heap-based priority queue. diff --git a/.changeset/heavy-baboons-give.md b/.changeset/heavy-baboons-give.md deleted file mode 100644 index 5852748f8..000000000 --- a/.changeset/heavy-baboons-give.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'openzeppelin-solidity': minor ---- - -`Packing`: Added a new utility for packing, extracting and replacing bytesXX values. diff --git a/.changeset/kind-planets-cough.md b/.changeset/kind-planets-cough.md deleted file mode 100644 index 988e24c4a..000000000 --- a/.changeset/kind-planets-cough.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'openzeppelin-solidity': minor ---- - -`StorageSlot`: Add primitives for operating on the transient storage space using a typed-slot representation. diff --git a/.changeset/light-news-listen.md b/.changeset/light-news-listen.md deleted file mode 100644 index 1572d9081..000000000 --- a/.changeset/light-news-listen.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'openzeppelin-solidity': minor ---- - -`AccessManager`: Allow the `onlyAuthorized` modifier to restrict functions added to the manager. diff --git a/.changeset/lucky-crews-eat.md b/.changeset/lucky-crews-eat.md deleted file mode 100644 index 48592b5ea..000000000 --- a/.changeset/lucky-crews-eat.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'openzeppelin-solidity': minor ---- - -`Votes`: Set `_moveDelegateVotes` visibility to internal instead of private. diff --git a/.changeset/nervous-eyes-teach.md b/.changeset/nervous-eyes-teach.md deleted file mode 100644 index f85bc66d8..000000000 --- a/.changeset/nervous-eyes-teach.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'openzeppelin-solidity': minor ---- - -`Create2`: Bubbles up returndata from a deployed contract that reverted during construction. diff --git a/.changeset/nervous-pans-grow.md b/.changeset/nervous-pans-grow.md deleted file mode 100644 index b86a075c6..000000000 --- a/.changeset/nervous-pans-grow.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'openzeppelin-solidity': patch ---- - -`SafeCast`: Add `toUint(bool)` for operating on `bool` values as `uint256`. diff --git a/.changeset/nice-paws-pull.md b/.changeset/nice-paws-pull.md deleted file mode 100644 index 11f48d51f..000000000 --- a/.changeset/nice-paws-pull.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'openzeppelin-solidity': minor ---- - -`SafeERC20`: Add "relaxed" function for interacting with ERC-1363 functions in a way that is compatible with EOAs. diff --git a/.changeset/odd-files-protect.md b/.changeset/odd-files-protect.md deleted file mode 100644 index 8b334acfd..000000000 --- a/.changeset/odd-files-protect.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'openzeppelin-solidity': minor ---- - -`Hashes`: A library with commonly used hash functions. diff --git a/.changeset/odd-lobsters-wash.md b/.changeset/odd-lobsters-wash.md deleted file mode 100644 index 578f7a42e..000000000 --- a/.changeset/odd-lobsters-wash.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'openzeppelin-solidity': minor ---- - -`P256`: Library for verification and public key recovery of P256 (aka secp256r1) signatures. diff --git a/.changeset/poor-chefs-cheat.md b/.changeset/poor-chefs-cheat.md deleted file mode 100644 index 39db3d513..000000000 --- a/.changeset/poor-chefs-cheat.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'openzeppelin-solidity': minor ---- - -`ERC721Utils` and `ERC1155Utils`: Add reusable libraries with functions to perform acceptance checks on `IERC721Receiver` and `IERC1155Receiver` implementers. diff --git a/.changeset/pre.json b/.changeset/pre.json deleted file mode 100644 index 67cb6ac7e..000000000 --- a/.changeset/pre.json +++ /dev/null @@ -1,53 +0,0 @@ -{ - "mode": "exit", - "tag": "rc", - "initialVersions": { - "openzeppelin-solidity": "5.0.2" - }, - "changesets": [ - "chilled-walls-develop", - "chilly-humans-warn", - "cold-cheetahs-check", - "cool-mangos-compare", - "curvy-crabs-repeat", - "dirty-cobras-smile", - "eight-eyes-burn", - "eleven-planets-relax", - "flat-turtles-repeat", - "fluffy-buses-jump", - "fluffy-steaks-exist", - "forty-dodos-visit", - "friendly-nails-push", - "gentle-bulldogs-turn", - "gorgeous-badgers-vanish", - "great-pianos-work", - "heavy-baboons-give", - "kind-planets-cough", - "light-news-listen", - "lucky-crews-eat", - "nervous-eyes-teach", - "nervous-pans-grow", - "nice-paws-pull", - "odd-files-protect", - "odd-lobsters-wash", - "poor-chefs-cheat", - "serious-carrots-provide", - "shiny-poets-whisper", - "silver-swans-promise", - "smart-bugs-switch", - "spotty-falcons-explain", - "spotty-queens-own", - "strong-singers-talk", - "thick-pumpkins-report", - "thin-walls-drop", - "tricky-bats-pretend", - "twenty-feet-grin", - "violet-moons-tell", - "warm-sheep-cover", - "wise-bobcats-speak", - "witty-chicken-smile", - "yellow-deers-walk", - "yellow-moles-hammer", - "yellow-tables-sell" - ] -} diff --git a/.changeset/serious-carrots-provide.md b/.changeset/serious-carrots-provide.md deleted file mode 100644 index 60a16580d..000000000 --- a/.changeset/serious-carrots-provide.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'openzeppelin-solidity': minor ---- - -`ERC20TemporaryApproval`: Add an ERC-20 extension that implements temporary approval using transient storage, based on ERC7674 (draft). diff --git a/.changeset/shiny-poets-whisper.md b/.changeset/shiny-poets-whisper.md deleted file mode 100644 index 92497033a..000000000 --- a/.changeset/shiny-poets-whisper.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'openzeppelin-solidity': minor ---- - -`Math`: Add `modExp` function that exposes the `EIP-198` precompile. Includes `uint256` and `bytes memory` versions. diff --git a/.changeset/silver-swans-promise.md b/.changeset/silver-swans-promise.md deleted file mode 100644 index 1d2ff2e9e..000000000 --- a/.changeset/silver-swans-promise.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'openzeppelin-solidity': minor ---- - -`Panic`: Add a library for reverting with panic codes. diff --git a/.changeset/smart-bugs-switch.md b/.changeset/smart-bugs-switch.md deleted file mode 100644 index 8a001ae58..000000000 --- a/.changeset/smart-bugs-switch.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'openzeppelin-solidity': minor ---- - -`Math`: Custom errors replaced with native panic codes. diff --git a/.changeset/spotty-falcons-explain.md b/.changeset/spotty-falcons-explain.md deleted file mode 100644 index 28cb95190..000000000 --- a/.changeset/spotty-falcons-explain.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'openzeppelin-solidity': minor ---- - -`Math`, `SignedMath`: Add a branchless `ternary` function that computes`cond ? a : b` in constant gas cost. diff --git a/.changeset/spotty-queens-own.md b/.changeset/spotty-queens-own.md deleted file mode 100644 index 98fb2fbc0..000000000 --- a/.changeset/spotty-queens-own.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'openzeppelin-solidity': minor ---- - -`MerkleProof`: Add variations of `verify`, `processProof`, `multiProofVerify` and `processMultiProof` (and equivalent calldata version) with support for custom hashing functions. diff --git a/.changeset/strong-singers-talk.md b/.changeset/strong-singers-talk.md deleted file mode 100644 index 7897980cb..000000000 --- a/.changeset/strong-singers-talk.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'openzeppelin-solidity': minor ---- - -`Errors`: New library of common custom errors. diff --git a/.changeset/thick-pumpkins-report.md b/.changeset/thick-pumpkins-report.md deleted file mode 100644 index f17a20895..000000000 --- a/.changeset/thick-pumpkins-report.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'openzeppelin-solidity': minor ---- - -`Arrays`: add new functions `lowerBound`, `upperBound`, `lowerBoundMemory` and `upperBoundMemory` for lookups in sorted arrays with potential duplicates. diff --git a/.changeset/thin-walls-drop.md b/.changeset/thin-walls-drop.md deleted file mode 100644 index 802600202..000000000 --- a/.changeset/thin-walls-drop.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'openzeppelin-solidity': minor ---- - -`AccessManager`, `VestingWallet`, `TimelockController` and `ERC2771Forwarder`: Added a public `initializer` function in their corresponding upgradeable variants. diff --git a/.changeset/tricky-bats-pretend.md b/.changeset/tricky-bats-pretend.md deleted file mode 100644 index 2809d3293..000000000 --- a/.changeset/tricky-bats-pretend.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'openzeppelin-solidity': minor ---- - -`ERC1363Utils`: Add helper similar to the existing `ERC721Utils` and `ERC1155Utils` diff --git a/.changeset/twenty-feet-grin.md b/.changeset/twenty-feet-grin.md deleted file mode 100644 index 69b4fe63b..000000000 --- a/.changeset/twenty-feet-grin.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'openzeppelin-solidity': minor ---- - -`Base64`: Add `encodeURL` following section 5 of RFC4648 for URL encoding diff --git a/.changeset/violet-moons-tell.md b/.changeset/violet-moons-tell.md deleted file mode 100644 index be215e193..000000000 --- a/.changeset/violet-moons-tell.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'openzeppelin-solidity': minor ---- - -`AccessControlEnumerable`: Add a `getRoleMembers` method to return all accounts that have `role`. diff --git a/.changeset/warm-sheep-cover.md b/.changeset/warm-sheep-cover.md deleted file mode 100644 index f0a2ebaa2..000000000 --- a/.changeset/warm-sheep-cover.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'openzeppelin-solidity': minor ---- - -`MerkleTree`: A data structure that allows inserting elements into a merkle tree and updating its root hash. diff --git a/.changeset/wise-bobcats-speak.md b/.changeset/wise-bobcats-speak.md deleted file mode 100644 index 6ecd96957..000000000 --- a/.changeset/wise-bobcats-speak.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'openzeppelin-solidity': minor ---- - -`VestingWalletCliff`: Add an extension of the `VestingWallet` contract with an added cliff. diff --git a/.changeset/witty-chicken-smile.md b/.changeset/witty-chicken-smile.md deleted file mode 100644 index 6fae3e744..000000000 --- a/.changeset/witty-chicken-smile.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'openzeppelin-solidity': minor ---- - -`ReentrancyGuardTransient`: Added a variant of `ReentrancyGuard` that uses transient storage. diff --git a/.changeset/yellow-deers-walk.md b/.changeset/yellow-deers-walk.md deleted file mode 100644 index ad370b36e..000000000 --- a/.changeset/yellow-deers-walk.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'openzeppelin-solidity': minor ---- - -`EnumerableMap`: add `UintToBytes32Map`, `AddressToAddressMap`, `AddressToBytes32Map` and `Bytes32ToAddressMap`. diff --git a/.changeset/yellow-moles-hammer.md b/.changeset/yellow-moles-hammer.md deleted file mode 100644 index b13971a28..000000000 --- a/.changeset/yellow-moles-hammer.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'openzeppelin-solidity': minor ---- - -`SignatureChecker`: refactor `isValidSignatureNow` to avoid validating ECDSA signatures if there is code deployed at the signer's address. diff --git a/.changeset/yellow-tables-sell.md b/.changeset/yellow-tables-sell.md deleted file mode 100644 index f8cdc8d30..000000000 --- a/.changeset/yellow-tables-sell.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'openzeppelin-solidity': minor ---- - -`SafeERC20`: Document risks of `safeIncreaseAllowance` and `safeDecreaseAllowance` when associated with ERC-7674. diff --git a/CHANGELOG.md b/CHANGELOG.md index c2f3c6b77..b652a68fa 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,11 +1,7 @@ # Changelog -## 5.1.0-rc.1 (2024-10-17) - -- `SafeERC20`: Document risks of `safeIncreaseAllowance` and `safeDecreaseAllowance` when associated with ERC-7674. - -## 5.1.0-rc.0 (2024-10-03) +## 5.1.0 (2024-10-17) ### Breaking changes @@ -56,6 +52,7 @@ This version comes with changes to the custom error identifiers. Contracts previ - `ERC1363`: Add implementation of the token payable standard allowing execution of contract code after transfers and approvals. ([#4631](https://github.com/OpenZeppelin/openzeppelin-contracts/pull/4631)) - `ERC20TemporaryApproval`: Add an ERC-20 extension that implements temporary approval using transient storage, based on ERC7674 (draft). ([#5071](https://github.com/OpenZeppelin/openzeppelin-contracts/pull/5071)) - `SafeERC20`: Add "relaxed" function for interacting with ERC-1363 functions in a way that is compatible with EOAs. ([#4631](https://github.com/OpenZeppelin/openzeppelin-contracts/pull/4631)) +- `SafeERC20`: Document risks of `safeIncreaseAllowance` and `safeDecreaseAllowance` when associated with ERC-7674. - `ERC721Utils` and `ERC1155Utils`: Add reusable libraries with functions to perform acceptance checks on `IERC721Receiver` and `IERC1155Receiver` implementers. ([#4845](https://github.com/OpenZeppelin/openzeppelin-contracts/pull/4845)) - `ERC1363Utils`: Add helper similar to the existing ERC721Utils and ERC1155Utils. ([#5133](https://github.com/OpenZeppelin/openzeppelin-contracts/pull/5133)) diff --git a/contracts/access/Ownable2StepUpgradeable.sol b/contracts/access/Ownable2StepUpgradeable.sol index ebf1de031..8505b3a35 100644 --- a/contracts/access/Ownable2StepUpgradeable.sol +++ b/contracts/access/Ownable2StepUpgradeable.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -// OpenZeppelin Contracts (last updated v5.1.0-rc.1) (access/Ownable2Step.sol) +// OpenZeppelin Contracts (last updated v5.1.0) (access/Ownable2Step.sol) pragma solidity ^0.8.20; diff --git a/contracts/access/extensions/AccessControlEnumerableUpgradeable.sol b/contracts/access/extensions/AccessControlEnumerableUpgradeable.sol index 892f9d331..75e45bc7e 100644 --- a/contracts/access/extensions/AccessControlEnumerableUpgradeable.sol +++ b/contracts/access/extensions/AccessControlEnumerableUpgradeable.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -// OpenZeppelin Contracts (last updated v5.1.0-rc.1) (access/extensions/AccessControlEnumerable.sol) +// OpenZeppelin Contracts (last updated v5.1.0) (access/extensions/AccessControlEnumerable.sol) pragma solidity ^0.8.20; diff --git a/contracts/access/manager/AccessManagedUpgradeable.sol b/contracts/access/manager/AccessManagedUpgradeable.sol index 7303a2dbd..86378906d 100644 --- a/contracts/access/manager/AccessManagedUpgradeable.sol +++ b/contracts/access/manager/AccessManagedUpgradeable.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -// OpenZeppelin Contracts (last updated v5.1.0-rc.1) (access/manager/AccessManaged.sol) +// OpenZeppelin Contracts (last updated v5.1.0) (access/manager/AccessManaged.sol) pragma solidity ^0.8.20; diff --git a/contracts/access/manager/AccessManagerUpgradeable.sol b/contracts/access/manager/AccessManagerUpgradeable.sol index c24595e23..c70f8aea3 100644 --- a/contracts/access/manager/AccessManagerUpgradeable.sol +++ b/contracts/access/manager/AccessManagerUpgradeable.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -// OpenZeppelin Contracts (last updated v5.1.0-rc.1) (access/manager/AccessManager.sol) +// OpenZeppelin Contracts (last updated v5.1.0) (access/manager/AccessManager.sol) pragma solidity ^0.8.20; diff --git a/contracts/finance/VestingWalletCliffUpgradeable.sol b/contracts/finance/VestingWalletCliffUpgradeable.sol index 108663707..634941e47 100644 --- a/contracts/finance/VestingWalletCliffUpgradeable.sol +++ b/contracts/finance/VestingWalletCliffUpgradeable.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -// OpenZeppelin Contracts (last updated v5.1.0-rc.1) (finance/VestingWalletCliff.sol) +// OpenZeppelin Contracts (last updated v5.1.0) (finance/VestingWalletCliff.sol) pragma solidity ^0.8.20; diff --git a/contracts/finance/VestingWalletUpgradeable.sol b/contracts/finance/VestingWalletUpgradeable.sol index e6bfebfa6..0ae67931f 100644 --- a/contracts/finance/VestingWalletUpgradeable.sol +++ b/contracts/finance/VestingWalletUpgradeable.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -// OpenZeppelin Contracts (last updated v5.1.0-rc.1) (finance/VestingWallet.sol) +// OpenZeppelin Contracts (last updated v5.1.0) (finance/VestingWallet.sol) pragma solidity ^0.8.20; import {IERC20} from "@openzeppelin/contracts/token/ERC20/IERC20.sol"; diff --git a/contracts/governance/GovernorUpgradeable.sol b/contracts/governance/GovernorUpgradeable.sol index de3e0a385..ca0438477 100644 --- a/contracts/governance/GovernorUpgradeable.sol +++ b/contracts/governance/GovernorUpgradeable.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -// OpenZeppelin Contracts (last updated v5.1.0-rc.1) (governance/Governor.sol) +// OpenZeppelin Contracts (last updated v5.1.0) (governance/Governor.sol) pragma solidity ^0.8.20; diff --git a/contracts/governance/extensions/GovernorCountingFractionalUpgradeable.sol b/contracts/governance/extensions/GovernorCountingFractionalUpgradeable.sol index 68f584b4c..a973e337f 100644 --- a/contracts/governance/extensions/GovernorCountingFractionalUpgradeable.sol +++ b/contracts/governance/extensions/GovernorCountingFractionalUpgradeable.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -// OpenZeppelin Contracts (last updated v5.1.0-rc.1) (governance/extensions/GovernorCountingFractional.sol) +// OpenZeppelin Contracts (last updated v5.1.0) (governance/extensions/GovernorCountingFractional.sol) pragma solidity ^0.8.20; diff --git a/contracts/governance/extensions/GovernorCountingSimpleUpgradeable.sol b/contracts/governance/extensions/GovernorCountingSimpleUpgradeable.sol index 5f5819726..44833d3ae 100644 --- a/contracts/governance/extensions/GovernorCountingSimpleUpgradeable.sol +++ b/contracts/governance/extensions/GovernorCountingSimpleUpgradeable.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -// OpenZeppelin Contracts (last updated v5.1.0-rc.1) (governance/extensions/GovernorCountingSimple.sol) +// OpenZeppelin Contracts (last updated v5.1.0) (governance/extensions/GovernorCountingSimple.sol) pragma solidity ^0.8.20; diff --git a/contracts/governance/extensions/GovernorStorageUpgradeable.sol b/contracts/governance/extensions/GovernorStorageUpgradeable.sol index 0f76811f8..40a52f3a8 100644 --- a/contracts/governance/extensions/GovernorStorageUpgradeable.sol +++ b/contracts/governance/extensions/GovernorStorageUpgradeable.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -// OpenZeppelin Contracts (last updated v5.1.0-rc.1) (governance/extensions/GovernorStorage.sol) +// OpenZeppelin Contracts (last updated v5.1.0) (governance/extensions/GovernorStorage.sol) pragma solidity ^0.8.20; diff --git a/contracts/governance/extensions/GovernorTimelockAccessUpgradeable.sol b/contracts/governance/extensions/GovernorTimelockAccessUpgradeable.sol index 5e8fd02c7..ae71c4d61 100644 --- a/contracts/governance/extensions/GovernorTimelockAccessUpgradeable.sol +++ b/contracts/governance/extensions/GovernorTimelockAccessUpgradeable.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -// OpenZeppelin Contracts (last updated v5.1.0-rc.1) (governance/extensions/GovernorTimelockAccess.sol) +// OpenZeppelin Contracts (last updated v5.1.0) (governance/extensions/GovernorTimelockAccess.sol) pragma solidity ^0.8.20; diff --git a/contracts/governance/extensions/GovernorTimelockCompoundUpgradeable.sol b/contracts/governance/extensions/GovernorTimelockCompoundUpgradeable.sol index b52337b50..562f40e38 100644 --- a/contracts/governance/extensions/GovernorTimelockCompoundUpgradeable.sol +++ b/contracts/governance/extensions/GovernorTimelockCompoundUpgradeable.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -// OpenZeppelin Contracts (last updated v5.1.0-rc.1) (governance/extensions/GovernorTimelockCompound.sol) +// OpenZeppelin Contracts (last updated v5.1.0) (governance/extensions/GovernorTimelockCompound.sol) pragma solidity ^0.8.20; diff --git a/contracts/governance/extensions/GovernorTimelockControlUpgradeable.sol b/contracts/governance/extensions/GovernorTimelockControlUpgradeable.sol index a61369ad3..efc98c9b1 100644 --- a/contracts/governance/extensions/GovernorTimelockControlUpgradeable.sol +++ b/contracts/governance/extensions/GovernorTimelockControlUpgradeable.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -// OpenZeppelin Contracts (last updated v5.1.0-rc.1) (governance/extensions/GovernorTimelockControl.sol) +// OpenZeppelin Contracts (last updated v5.1.0) (governance/extensions/GovernorTimelockControl.sol) pragma solidity ^0.8.20; diff --git a/contracts/governance/extensions/GovernorVotesUpgradeable.sol b/contracts/governance/extensions/GovernorVotesUpgradeable.sol index 163c6d771..eb9cbbf1e 100644 --- a/contracts/governance/extensions/GovernorVotesUpgradeable.sol +++ b/contracts/governance/extensions/GovernorVotesUpgradeable.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -// OpenZeppelin Contracts (last updated v5.1.0-rc.1) (governance/extensions/GovernorVotes.sol) +// OpenZeppelin Contracts (last updated v5.1.0) (governance/extensions/GovernorVotes.sol) pragma solidity ^0.8.20; diff --git a/contracts/governance/utils/VotesUpgradeable.sol b/contracts/governance/utils/VotesUpgradeable.sol index ecdeab470..82c101dd2 100644 --- a/contracts/governance/utils/VotesUpgradeable.sol +++ b/contracts/governance/utils/VotesUpgradeable.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -// OpenZeppelin Contracts (last updated v5.1.0-rc.1) (governance/utils/Votes.sol) +// OpenZeppelin Contracts (last updated v5.1.0) (governance/utils/Votes.sol) pragma solidity ^0.8.20; import {IERC5805} from "@openzeppelin/contracts/interfaces/IERC5805.sol"; diff --git a/contracts/metatx/ERC2771ContextUpgradeable.sol b/contracts/metatx/ERC2771ContextUpgradeable.sol index 71d2a19d0..7c8b6792c 100644 --- a/contracts/metatx/ERC2771ContextUpgradeable.sol +++ b/contracts/metatx/ERC2771ContextUpgradeable.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -// OpenZeppelin Contracts (last updated v5.1.0-rc.1) (metatx/ERC2771Context.sol) +// OpenZeppelin Contracts (last updated v5.1.0) (metatx/ERC2771Context.sol) pragma solidity ^0.8.20; diff --git a/contracts/metatx/ERC2771ForwarderUpgradeable.sol b/contracts/metatx/ERC2771ForwarderUpgradeable.sol index c14441f25..c2529aab0 100644 --- a/contracts/metatx/ERC2771ForwarderUpgradeable.sol +++ b/contracts/metatx/ERC2771ForwarderUpgradeable.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -// OpenZeppelin Contracts (last updated v5.1.0-rc.1) (metatx/ERC2771Forwarder.sol) +// OpenZeppelin Contracts (last updated v5.1.0) (metatx/ERC2771Forwarder.sol) pragma solidity ^0.8.20; diff --git a/contracts/package.json b/contracts/package.json index c41686e7b..4332cd046 100644 --- a/contracts/package.json +++ b/contracts/package.json @@ -1,7 +1,7 @@ { "name": "@openzeppelin/contracts-upgradeable", "description": "Secure Smart Contract library for Solidity", - "version": "5.1.0-rc.1", + "version": "5.1.0", "files": [ "**/*.sol", "/build/contracts/*.json", @@ -30,6 +30,6 @@ }, "homepage": "https://openzeppelin.com/contracts/", "peerDependencies": { - "@openzeppelin/contracts": "5.1.0-rc.1" + "@openzeppelin/contracts": "5.1.0" } } diff --git a/contracts/proxy/utils/UUPSUpgradeable.sol b/contracts/proxy/utils/UUPSUpgradeable.sol index b42bfbee2..e0feb3ff1 100644 --- a/contracts/proxy/utils/UUPSUpgradeable.sol +++ b/contracts/proxy/utils/UUPSUpgradeable.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -// OpenZeppelin Contracts (last updated v5.1.0-rc.1) (proxy/utils/UUPSUpgradeable.sol) +// OpenZeppelin Contracts (last updated v5.1.0) (proxy/utils/UUPSUpgradeable.sol) pragma solidity ^0.8.20; diff --git a/contracts/token/ERC1155/ERC1155Upgradeable.sol b/contracts/token/ERC1155/ERC1155Upgradeable.sol index 4a4be9a3c..b2581c650 100644 --- a/contracts/token/ERC1155/ERC1155Upgradeable.sol +++ b/contracts/token/ERC1155/ERC1155Upgradeable.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -// OpenZeppelin Contracts (last updated v5.1.0-rc.1) (token/ERC1155/ERC1155.sol) +// OpenZeppelin Contracts (last updated v5.1.0) (token/ERC1155/ERC1155.sol) pragma solidity ^0.8.20; diff --git a/contracts/token/ERC1155/extensions/ERC1155PausableUpgradeable.sol b/contracts/token/ERC1155/extensions/ERC1155PausableUpgradeable.sol index 57f659727..3efea4d2b 100644 --- a/contracts/token/ERC1155/extensions/ERC1155PausableUpgradeable.sol +++ b/contracts/token/ERC1155/extensions/ERC1155PausableUpgradeable.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -// OpenZeppelin Contracts (last updated v5.1.0-rc.1) (token/ERC1155/extensions/ERC1155Pausable.sol) +// OpenZeppelin Contracts (last updated v5.1.0) (token/ERC1155/extensions/ERC1155Pausable.sol) pragma solidity ^0.8.20; diff --git a/contracts/token/ERC1155/extensions/ERC1155SupplyUpgradeable.sol b/contracts/token/ERC1155/extensions/ERC1155SupplyUpgradeable.sol index 2a959e7ec..eeb12b5dd 100644 --- a/contracts/token/ERC1155/extensions/ERC1155SupplyUpgradeable.sol +++ b/contracts/token/ERC1155/extensions/ERC1155SupplyUpgradeable.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -// OpenZeppelin Contracts (last updated v5.1.0-rc.1) (token/ERC1155/extensions/ERC1155Supply.sol) +// OpenZeppelin Contracts (last updated v5.1.0) (token/ERC1155/extensions/ERC1155Supply.sol) pragma solidity ^0.8.20; diff --git a/contracts/token/ERC1155/extensions/ERC1155URIStorageUpgradeable.sol b/contracts/token/ERC1155/extensions/ERC1155URIStorageUpgradeable.sol index f528f3f4e..8b9bed0de 100644 --- a/contracts/token/ERC1155/extensions/ERC1155URIStorageUpgradeable.sol +++ b/contracts/token/ERC1155/extensions/ERC1155URIStorageUpgradeable.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -// OpenZeppelin Contracts (last updated v5.1.0-rc.1) (token/ERC1155/extensions/ERC1155URIStorage.sol) +// OpenZeppelin Contracts (last updated v5.1.0) (token/ERC1155/extensions/ERC1155URIStorage.sol) pragma solidity ^0.8.20; diff --git a/contracts/token/ERC1155/utils/ERC1155HolderUpgradeable.sol b/contracts/token/ERC1155/utils/ERC1155HolderUpgradeable.sol index 89c20cd89..28228e5e1 100644 --- a/contracts/token/ERC1155/utils/ERC1155HolderUpgradeable.sol +++ b/contracts/token/ERC1155/utils/ERC1155HolderUpgradeable.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -// OpenZeppelin Contracts (last updated v5.1.0-rc.1) (token/ERC1155/utils/ERC1155Holder.sol) +// OpenZeppelin Contracts (last updated v5.1.0) (token/ERC1155/utils/ERC1155Holder.sol) pragma solidity ^0.8.20; diff --git a/contracts/token/ERC20/ERC20Upgradeable.sol b/contracts/token/ERC20/ERC20Upgradeable.sol index 82137a276..f5a6d8b7c 100644 --- a/contracts/token/ERC20/ERC20Upgradeable.sol +++ b/contracts/token/ERC20/ERC20Upgradeable.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -// OpenZeppelin Contracts (last updated v5.1.0-rc.1) (token/ERC20/ERC20.sol) +// OpenZeppelin Contracts (last updated v5.1.0) (token/ERC20/ERC20.sol) pragma solidity ^0.8.20; diff --git a/contracts/token/ERC20/extensions/ERC1363Upgradeable.sol b/contracts/token/ERC20/extensions/ERC1363Upgradeable.sol index 9fe7813eb..bdef6c555 100644 --- a/contracts/token/ERC20/extensions/ERC1363Upgradeable.sol +++ b/contracts/token/ERC20/extensions/ERC1363Upgradeable.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -// OpenZeppelin Contracts (last updated v5.1.0-rc.1) (token/ERC20/extensions/ERC1363.sol) +// OpenZeppelin Contracts (last updated v5.1.0) (token/ERC20/extensions/ERC1363.sol) pragma solidity ^0.8.20; diff --git a/contracts/token/ERC20/extensions/ERC20FlashMintUpgradeable.sol b/contracts/token/ERC20/extensions/ERC20FlashMintUpgradeable.sol index 30e786573..d09838dd3 100644 --- a/contracts/token/ERC20/extensions/ERC20FlashMintUpgradeable.sol +++ b/contracts/token/ERC20/extensions/ERC20FlashMintUpgradeable.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -// OpenZeppelin Contracts (last updated v5.1.0-rc.1) (token/ERC20/extensions/ERC20FlashMint.sol) +// OpenZeppelin Contracts (last updated v5.1.0) (token/ERC20/extensions/ERC20FlashMint.sol) pragma solidity ^0.8.20; diff --git a/contracts/token/ERC20/extensions/ERC20PausableUpgradeable.sol b/contracts/token/ERC20/extensions/ERC20PausableUpgradeable.sol index 976f24328..c025af302 100644 --- a/contracts/token/ERC20/extensions/ERC20PausableUpgradeable.sol +++ b/contracts/token/ERC20/extensions/ERC20PausableUpgradeable.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -// OpenZeppelin Contracts (last updated v5.1.0-rc.1) (token/ERC20/extensions/ERC20Pausable.sol) +// OpenZeppelin Contracts (last updated v5.1.0) (token/ERC20/extensions/ERC20Pausable.sol) pragma solidity ^0.8.20; diff --git a/contracts/token/ERC20/extensions/ERC20PermitUpgradeable.sol b/contracts/token/ERC20/extensions/ERC20PermitUpgradeable.sol index feae9c71d..0e278c508 100644 --- a/contracts/token/ERC20/extensions/ERC20PermitUpgradeable.sol +++ b/contracts/token/ERC20/extensions/ERC20PermitUpgradeable.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -// OpenZeppelin Contracts (last updated v5.1.0-rc.1) (token/ERC20/extensions/ERC20Permit.sol) +// OpenZeppelin Contracts (last updated v5.1.0) (token/ERC20/extensions/ERC20Permit.sol) pragma solidity ^0.8.20; diff --git a/contracts/token/ERC20/extensions/ERC20VotesUpgradeable.sol b/contracts/token/ERC20/extensions/ERC20VotesUpgradeable.sol index f7054bc64..b790cd5af 100644 --- a/contracts/token/ERC20/extensions/ERC20VotesUpgradeable.sol +++ b/contracts/token/ERC20/extensions/ERC20VotesUpgradeable.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -// OpenZeppelin Contracts (last updated v5.1.0-rc.1) (token/ERC20/extensions/ERC20Votes.sol) +// OpenZeppelin Contracts (last updated v5.1.0) (token/ERC20/extensions/ERC20Votes.sol) pragma solidity ^0.8.20; diff --git a/contracts/token/ERC20/extensions/ERC20WrapperUpgradeable.sol b/contracts/token/ERC20/extensions/ERC20WrapperUpgradeable.sol index 63b3e1da7..e698520d5 100644 --- a/contracts/token/ERC20/extensions/ERC20WrapperUpgradeable.sol +++ b/contracts/token/ERC20/extensions/ERC20WrapperUpgradeable.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -// OpenZeppelin Contracts (last updated v5.1.0-rc.1) (token/ERC20/extensions/ERC20Wrapper.sol) +// OpenZeppelin Contracts (last updated v5.1.0) (token/ERC20/extensions/ERC20Wrapper.sol) pragma solidity ^0.8.20; diff --git a/contracts/token/ERC20/extensions/ERC4626Upgradeable.sol b/contracts/token/ERC20/extensions/ERC4626Upgradeable.sol index 6c37c2aa0..12e251861 100644 --- a/contracts/token/ERC20/extensions/ERC4626Upgradeable.sol +++ b/contracts/token/ERC20/extensions/ERC4626Upgradeable.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -// OpenZeppelin Contracts (last updated v5.1.0-rc.1) (token/ERC20/extensions/ERC4626.sol) +// OpenZeppelin Contracts (last updated v5.1.0) (token/ERC20/extensions/ERC4626.sol) pragma solidity ^0.8.20; diff --git a/contracts/token/ERC20/extensions/draft-ERC20TemporaryApprovalUpgradeable.sol b/contracts/token/ERC20/extensions/draft-ERC20TemporaryApprovalUpgradeable.sol index 216de1eb5..382906d9d 100644 --- a/contracts/token/ERC20/extensions/draft-ERC20TemporaryApprovalUpgradeable.sol +++ b/contracts/token/ERC20/extensions/draft-ERC20TemporaryApprovalUpgradeable.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -// OpenZeppelin Contracts (last updated v5.1.0-rc.1) (token/ERC20/extensions/draft-ERC20TemporaryApproval.sol) +// OpenZeppelin Contracts (last updated v5.1.0) (token/ERC20/extensions/draft-ERC20TemporaryApproval.sol) pragma solidity ^0.8.24; diff --git a/contracts/token/ERC721/ERC721Upgradeable.sol b/contracts/token/ERC721/ERC721Upgradeable.sol index d50cb8ba0..d2567f13d 100644 --- a/contracts/token/ERC721/ERC721Upgradeable.sol +++ b/contracts/token/ERC721/ERC721Upgradeable.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -// OpenZeppelin Contracts (last updated v5.1.0-rc.1) (token/ERC721/ERC721.sol) +// OpenZeppelin Contracts (last updated v5.1.0) (token/ERC721/ERC721.sol) pragma solidity ^0.8.20; diff --git a/contracts/token/ERC721/extensions/ERC721BurnableUpgradeable.sol b/contracts/token/ERC721/extensions/ERC721BurnableUpgradeable.sol index d5428a7a5..792447c4b 100644 --- a/contracts/token/ERC721/extensions/ERC721BurnableUpgradeable.sol +++ b/contracts/token/ERC721/extensions/ERC721BurnableUpgradeable.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -// OpenZeppelin Contracts (last updated v5.1.0-rc.1) (token/ERC721/extensions/ERC721Burnable.sol) +// OpenZeppelin Contracts (last updated v5.1.0) (token/ERC721/extensions/ERC721Burnable.sol) pragma solidity ^0.8.20; diff --git a/contracts/token/ERC721/extensions/ERC721ConsecutiveUpgradeable.sol b/contracts/token/ERC721/extensions/ERC721ConsecutiveUpgradeable.sol index 8fd7ea97f..6d74a4930 100644 --- a/contracts/token/ERC721/extensions/ERC721ConsecutiveUpgradeable.sol +++ b/contracts/token/ERC721/extensions/ERC721ConsecutiveUpgradeable.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -// OpenZeppelin Contracts (last updated v5.1.0-rc.1) (token/ERC721/extensions/ERC721Consecutive.sol) +// OpenZeppelin Contracts (last updated v5.1.0) (token/ERC721/extensions/ERC721Consecutive.sol) pragma solidity ^0.8.20; diff --git a/contracts/token/ERC721/extensions/ERC721EnumerableUpgradeable.sol b/contracts/token/ERC721/extensions/ERC721EnumerableUpgradeable.sol index 9b44caf94..6dbbbdabc 100644 --- a/contracts/token/ERC721/extensions/ERC721EnumerableUpgradeable.sol +++ b/contracts/token/ERC721/extensions/ERC721EnumerableUpgradeable.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -// OpenZeppelin Contracts (last updated v5.1.0-rc.1) (token/ERC721/extensions/ERC721Enumerable.sol) +// OpenZeppelin Contracts (last updated v5.1.0) (token/ERC721/extensions/ERC721Enumerable.sol) pragma solidity ^0.8.20; diff --git a/contracts/token/ERC721/extensions/ERC721PausableUpgradeable.sol b/contracts/token/ERC721/extensions/ERC721PausableUpgradeable.sol index fc094528b..49124de58 100644 --- a/contracts/token/ERC721/extensions/ERC721PausableUpgradeable.sol +++ b/contracts/token/ERC721/extensions/ERC721PausableUpgradeable.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -// OpenZeppelin Contracts (last updated v5.1.0-rc.1) (token/ERC721/extensions/ERC721Pausable.sol) +// OpenZeppelin Contracts (last updated v5.1.0) (token/ERC721/extensions/ERC721Pausable.sol) pragma solidity ^0.8.20; diff --git a/contracts/token/ERC721/extensions/ERC721RoyaltyUpgradeable.sol b/contracts/token/ERC721/extensions/ERC721RoyaltyUpgradeable.sol index 24c0969f1..5e2238307 100644 --- a/contracts/token/ERC721/extensions/ERC721RoyaltyUpgradeable.sol +++ b/contracts/token/ERC721/extensions/ERC721RoyaltyUpgradeable.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -// OpenZeppelin Contracts (last updated v5.1.0-rc.1) (token/ERC721/extensions/ERC721Royalty.sol) +// OpenZeppelin Contracts (last updated v5.1.0) (token/ERC721/extensions/ERC721Royalty.sol) pragma solidity ^0.8.20; diff --git a/contracts/token/ERC721/extensions/ERC721URIStorageUpgradeable.sol b/contracts/token/ERC721/extensions/ERC721URIStorageUpgradeable.sol index 61d78cf7c..b7b9c2044 100644 --- a/contracts/token/ERC721/extensions/ERC721URIStorageUpgradeable.sol +++ b/contracts/token/ERC721/extensions/ERC721URIStorageUpgradeable.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -// OpenZeppelin Contracts (last updated v5.1.0-rc.1) (token/ERC721/extensions/ERC721URIStorage.sol) +// OpenZeppelin Contracts (last updated v5.1.0) (token/ERC721/extensions/ERC721URIStorage.sol) pragma solidity ^0.8.20; diff --git a/contracts/token/ERC721/extensions/ERC721VotesUpgradeable.sol b/contracts/token/ERC721/extensions/ERC721VotesUpgradeable.sol index 76a4aff3b..4409b0db8 100644 --- a/contracts/token/ERC721/extensions/ERC721VotesUpgradeable.sol +++ b/contracts/token/ERC721/extensions/ERC721VotesUpgradeable.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -// OpenZeppelin Contracts (last updated v5.1.0-rc.1) (token/ERC721/extensions/ERC721Votes.sol) +// OpenZeppelin Contracts (last updated v5.1.0) (token/ERC721/extensions/ERC721Votes.sol) pragma solidity ^0.8.20; diff --git a/contracts/token/ERC721/extensions/ERC721WrapperUpgradeable.sol b/contracts/token/ERC721/extensions/ERC721WrapperUpgradeable.sol index 380260c03..3520c3499 100644 --- a/contracts/token/ERC721/extensions/ERC721WrapperUpgradeable.sol +++ b/contracts/token/ERC721/extensions/ERC721WrapperUpgradeable.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -// OpenZeppelin Contracts (last updated v5.1.0-rc.1) (token/ERC721/extensions/ERC721Wrapper.sol) +// OpenZeppelin Contracts (last updated v5.1.0) (token/ERC721/extensions/ERC721Wrapper.sol) pragma solidity ^0.8.20; diff --git a/contracts/token/common/ERC2981Upgradeable.sol b/contracts/token/common/ERC2981Upgradeable.sol index b465d1d8d..030116f51 100644 --- a/contracts/token/common/ERC2981Upgradeable.sol +++ b/contracts/token/common/ERC2981Upgradeable.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -// OpenZeppelin Contracts (last updated v5.1.0-rc.1) (token/common/ERC2981.sol) +// OpenZeppelin Contracts (last updated v5.1.0) (token/common/ERC2981.sol) pragma solidity ^0.8.20; diff --git a/contracts/utils/ReentrancyGuardTransientUpgradeable.sol b/contracts/utils/ReentrancyGuardTransientUpgradeable.sol index f5d7916ca..3090da707 100644 --- a/contracts/utils/ReentrancyGuardTransientUpgradeable.sol +++ b/contracts/utils/ReentrancyGuardTransientUpgradeable.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -// OpenZeppelin Contracts (last updated v5.1.0-rc.1) (utils/ReentrancyGuardTransient.sol) +// OpenZeppelin Contracts (last updated v5.1.0) (utils/ReentrancyGuardTransient.sol) pragma solidity ^0.8.24; diff --git a/contracts/utils/ReentrancyGuardUpgradeable.sol b/contracts/utils/ReentrancyGuardUpgradeable.sol index 50b421d55..5c66d6fb2 100644 --- a/contracts/utils/ReentrancyGuardUpgradeable.sol +++ b/contracts/utils/ReentrancyGuardUpgradeable.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -// OpenZeppelin Contracts (last updated v5.1.0-rc.1) (utils/ReentrancyGuard.sol) +// OpenZeppelin Contracts (last updated v5.1.0) (utils/ReentrancyGuard.sol) pragma solidity ^0.8.20; import {Initializable} from "../proxy/utils/Initializable.sol"; diff --git a/contracts/utils/cryptography/EIP712Upgradeable.sol b/contracts/utils/cryptography/EIP712Upgradeable.sol index db591602f..86431510a 100644 --- a/contracts/utils/cryptography/EIP712Upgradeable.sol +++ b/contracts/utils/cryptography/EIP712Upgradeable.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -// OpenZeppelin Contracts (last updated v5.1.0-rc.1) (utils/cryptography/EIP712.sol) +// OpenZeppelin Contracts (last updated v5.1.0) (utils/cryptography/EIP712.sol) pragma solidity ^0.8.20; diff --git a/contracts/utils/introspection/ERC165Upgradeable.sol b/contracts/utils/introspection/ERC165Upgradeable.sol index 8a0cabef0..f39d94f7c 100644 --- a/contracts/utils/introspection/ERC165Upgradeable.sol +++ b/contracts/utils/introspection/ERC165Upgradeable.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -// OpenZeppelin Contracts (last updated v5.1.0-rc.1) (utils/introspection/ERC165.sol) +// OpenZeppelin Contracts (last updated v5.1.0) (utils/introspection/ERC165.sol) pragma solidity ^0.8.20; diff --git a/docs/antora.yml b/docs/antora.yml index 46c7444e0..4bc06b36a 100644 --- a/docs/antora.yml +++ b/docs/antora.yml @@ -1,7 +1,7 @@ name: contracts title: Contracts -version: 5.x-rc -prerelease: true +version: 5.x +prerelease: false nav: - modules/ROOT/nav.adoc - modules/api/nav.adoc diff --git a/lib/openzeppelin-contracts b/lib/openzeppelin-contracts index 49941b16c..69c8def5f 160000 --- a/lib/openzeppelin-contracts +++ b/lib/openzeppelin-contracts @@ -1 +1 @@ -Subproject commit 49941b16c0cb3b139f27c03209c35e2e10b23637 +Subproject commit 69c8def5f222ff96f2b5beff05dfba996368aa79 diff --git a/package.json b/package.json index 3bc6db441..e86834441 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "openzeppelin-solidity", "description": "Secure Smart Contract library for Solidity", - "version": "5.1.0-rc.1", + "version": "5.1.0", "private": true, "files": [ "/contracts/**/*.sol",