Forráskód Böngészése

Release v4.6 (#3358)

* 4.6.0-rc.0

* Fix release script to only release @openzeppelin/contracts

(cherry picked from commit 2bd75a44bb5f419d132bdca6f1bf483d1479f550)

* make ERC2981:royaltyInfo public (#3305)

(cherry picked from commit d2832ca7a9096afa77a7c5b669292c0ca5f3ddb7)
Signed-off-by: Hadrien Croubois <hadrien.croubois@gmail.com>

* add transpilation guards to the crosschain mocks (#3306)

(cherry picked from commit 9af5af8fffe9964cd1d20a39f399fea173d18653)
Signed-off-by: Hadrien Croubois <hadrien.croubois@gmail.com>

* Fix tests on upgradeable contracts after transpilation

(cherry picked from commit 0762479dd518a23821eeb17c622f1227461441d1)
Signed-off-by: Hadrien Croubois <hadrien.croubois@gmail.com>

* Remove unused constructor argument

(cherry picked from commit 69c3781043b9671012c5b19fdea81784a70a5289)
Signed-off-by: Hadrien Croubois <hadrien.croubois@gmail.com>

* Bump minimum Solidity version for Initializable.sol to 0.8.2 (#3328)

(cherry picked from commit cb14ea3c5c72151f254ec79866793ddf65f4c727)

* Fix update-comment script to ignore invalid tags

(cherry picked from commit 848fef5b6c39333a2f9f1fb352cca7c188c3754b)
Signed-off-by: Hadrien Croubois <hadrien.croubois@gmail.com>

* 4.6.0

Co-authored-by: Francisco Giordano <frangio.1@gmail.com>
Hadrien Croubois 3 éve
szülő
commit
a035b235b4
63 módosított fájl, 65 hozzáadás és 41 törlés
  1. 2 1
      CHANGELOG.md
  2. 1 1
      contracts/access/AccessControl.sol
  3. 1 0
      contracts/access/AccessControlCrossChain.sol
  4. 1 0
      contracts/crosschain/CrossChainEnabled.sol
  5. 1 0
      contracts/crosschain/amb/CrossChainEnabledAMB.sol
  6. 1 0
      contracts/crosschain/amb/LibAMB.sol
  7. 1 0
      contracts/crosschain/arbitrum/CrossChainEnabledArbitrumL1.sol
  8. 1 0
      contracts/crosschain/arbitrum/CrossChainEnabledArbitrumL2.sol
  9. 1 0
      contracts/crosschain/arbitrum/LibArbitrumL1.sol
  10. 1 0
      contracts/crosschain/arbitrum/LibArbitrumL2.sol
  11. 1 0
      contracts/crosschain/errors.sol
  12. 1 0
      contracts/crosschain/optimism/CrossChainEnabledOptimism.sol
  13. 1 0
      contracts/crosschain/optimism/LibOptimism.sol
  14. 1 0
      contracts/crosschain/polygon/CrossChainEnabledPolygonChild.sol
  15. 1 1
      contracts/finance/VestingWallet.sol
  16. 1 1
      contracts/governance/Governor.sol
  17. 1 1
      contracts/governance/IGovernor.sol
  18. 1 1
      contracts/governance/TimelockController.sol
  19. 1 1
      contracts/governance/compatibility/GovernorCompatibilityBravo.sol
  20. 1 1
      contracts/governance/extensions/GovernorCountingSimple.sol
  21. 1 1
      contracts/governance/extensions/GovernorPreventLateQuorum.sol
  22. 1 1
      contracts/governance/extensions/GovernorTimelockCompound.sol
  23. 1 1
      contracts/governance/extensions/GovernorTimelockControl.sol
  24. 1 1
      contracts/governance/extensions/GovernorVotes.sol
  25. 1 1
      contracts/governance/extensions/GovernorVotesComp.sol
  26. 1 1
      contracts/governance/utils/Votes.sol
  27. 1 1
      contracts/interfaces/IERC2981.sol
  28. 1 1
      contracts/package.json
  29. 1 1
      contracts/proxy/Proxy.sol
  30. 1 1
      contracts/proxy/utils/Initializable.sol
  31. 1 1
      contracts/token/ERC1155/ERC1155.sol
  32. 1 1
      contracts/token/ERC1155/extensions/ERC1155Supply.sol
  33. 1 0
      contracts/token/ERC1155/extensions/ERC1155URIStorage.sol
  34. 1 1
      contracts/token/ERC20/ERC20.sol
  35. 1 1
      contracts/token/ERC20/IERC20.sol
  36. 1 1
      contracts/token/ERC20/extensions/ERC20FlashMint.sol
  37. 1 1
      contracts/token/ERC20/extensions/ERC20Snapshot.sol
  38. 1 1
      contracts/token/ERC20/extensions/ERC20Wrapper.sol
  39. 1 1
      contracts/token/ERC20/extensions/draft-ERC20Permit.sol
  40. 1 1
      contracts/token/ERC721/ERC721.sol
  41. 1 1
      contracts/token/ERC721/IERC721.sol
  42. 1 1
      contracts/token/ERC721/IERC721Receiver.sol
  43. 1 1
      contracts/token/ERC721/extensions/draft-ERC721Votes.sol
  44. 1 1
      contracts/token/ERC777/ERC777.sol
  45. 1 1
      contracts/token/ERC777/IERC777.sol
  46. 1 1
      contracts/token/common/ERC2981.sol
  47. 1 1
      contracts/utils/cryptography/MerkleProof.sol
  48. 1 1
      contracts/utils/introspection/IERC1820Registry.sol
  49. 1 1
      contracts/utils/math/SafeMath.sol
  50. 1 0
      contracts/utils/structs/DoubleEndedQueue.sol
  51. 1 1
      contracts/utils/structs/EnumerableMap.sol
  52. 1 1
      contracts/utils/structs/EnumerableSet.sol
  53. 1 0
      contracts/vendor/amb/IAMB.sol
  54. 1 0
      contracts/vendor/arbitrum/IArbSys.sol
  55. 1 0
      contracts/vendor/arbitrum/IBridge.sol
  56. 1 0
      contracts/vendor/arbitrum/IInbox.sol
  57. 1 0
      contracts/vendor/arbitrum/IMessageProvider.sol
  58. 1 0
      contracts/vendor/arbitrum/IOutbox.sol
  59. 1 0
      contracts/vendor/compound/ICompoundTimelock.sol
  60. 1 0
      contracts/vendor/optimism/ICrossDomainMessenger.sol
  61. 1 0
      contracts/vendor/polygon/IFxMessageProcessor.sol
  62. 2 2
      package-lock.json
  63. 1 1
      package.json

+ 2 - 1
CHANGELOG.md

@@ -5,7 +5,7 @@
  * `Clones`: optimize clone creation ([#3329](https://github.com/OpenZeppelin/openzeppelin-contracts/pull/3329))
  * `TimelockController`: Migrate `_call` to `_execute` and allow inheritance and overriding similar to `Governor`. ([#3317](https://github.com/OpenZeppelin/openzeppelin-contracts/pull/3317))
 
-## Unreleased
+## 4.6.0 (2022-04-26)
 
  * `crosschain`: Add a new set of contracts for cross-chain applications. `CrossChainEnabled` is a base contract with instantiations for several chains and bridges, and `AccessControlCrossChain` is an extension of access control that allows cross-chain operation. ([#3183](https://github.com/OpenZeppelin/openzeppelin-contracts/pull/3183))
  * `AccessControl`: add a virtual `_checkRole(bytes32)` function that can be overridden to alter the `onlyRole` modifier behavior. ([#3137](https://github.com/OpenZeppelin/openzeppelin-contracts/pull/3137))
@@ -26,6 +26,7 @@
  * `TimelockController`: Add a separate canceller role for the ability to cancel. ([#3165](https://github.com/OpenZeppelin/openzeppelin-contracts/pull/3165))
  * `Initializable`: add a reinitializer modifier that enables the initialization of new modules, added to already initialized contracts through upgradeability. ([#3232](https://github.com/OpenZeppelin/openzeppelin-contracts/pull/3232))
  * `Initializable`: add an Initialized event that tracks initialized version numbers. ([#3294](https://github.com/OpenZeppelin/openzeppelin-contracts/pull/3294))
+ * `ERC2981`: make `royaltiInfo` public to allow super call in overrides. ([#3305](https://github.com/OpenZeppelin/openzeppelin-contracts/pull/3305))
 
 ### Breaking changes
 

+ 1 - 1
contracts/access/AccessControl.sol

@@ -1,5 +1,5 @@
 // SPDX-License-Identifier: MIT
-// OpenZeppelin Contracts (last updated v4.5.0) (access/AccessControl.sol)
+// OpenZeppelin Contracts (last updated v4.6.0) (access/AccessControl.sol)
 
 pragma solidity ^0.8.0;
 

+ 1 - 0
contracts/access/AccessControlCrossChain.sol

@@ -1,4 +1,5 @@
 // SPDX-License-Identifier: MIT
+// OpenZeppelin Contracts (last updated v4.6.0) (access/AccessControlCrossChain.sol)
 
 pragma solidity ^0.8.4;
 

+ 1 - 0
contracts/crosschain/CrossChainEnabled.sol

@@ -1,4 +1,5 @@
 // SPDX-License-Identifier: MIT
+// OpenZeppelin Contracts (last updated v4.6.0) (crosschain/CrossChainEnabled.sol)
 
 pragma solidity ^0.8.4;
 

+ 1 - 0
contracts/crosschain/amb/CrossChainEnabledAMB.sol

@@ -1,4 +1,5 @@
 // SPDX-License-Identifier: MIT
+// OpenZeppelin Contracts (last updated v4.6.0) (crosschain/amb/CrossChainEnabledAMB.sol)
 
 pragma solidity ^0.8.4;
 

+ 1 - 0
contracts/crosschain/amb/LibAMB.sol

@@ -1,4 +1,5 @@
 // SPDX-License-Identifier: MIT
+// OpenZeppelin Contracts (last updated v4.6.0) (crosschain/amb/LibAMB.sol)
 
 pragma solidity ^0.8.4;
 

+ 1 - 0
contracts/crosschain/arbitrum/CrossChainEnabledArbitrumL1.sol

@@ -1,4 +1,5 @@
 // SPDX-License-Identifier: MIT
+// OpenZeppelin Contracts (last updated v4.6.0) (crosschain/arbitrum/CrossChainEnabledArbitrumL1.sol)
 
 pragma solidity ^0.8.4;
 

+ 1 - 0
contracts/crosschain/arbitrum/CrossChainEnabledArbitrumL2.sol

@@ -1,4 +1,5 @@
 // SPDX-License-Identifier: MIT
+// OpenZeppelin Contracts (last updated v4.6.0) (crosschain/arbitrum/CrossChainEnabledArbitrumL2.sol)
 
 pragma solidity ^0.8.4;
 

+ 1 - 0
contracts/crosschain/arbitrum/LibArbitrumL1.sol

@@ -1,4 +1,5 @@
 // SPDX-License-Identifier: MIT
+// OpenZeppelin Contracts (last updated v4.6.0) (crosschain/arbitrum/LibArbitrumL1.sol)
 
 pragma solidity ^0.8.4;
 

+ 1 - 0
contracts/crosschain/arbitrum/LibArbitrumL2.sol

@@ -1,4 +1,5 @@
 // SPDX-License-Identifier: MIT
+// OpenZeppelin Contracts (last updated v4.6.0) (crosschain/arbitrum/LibArbitrumL2.sol)
 
 pragma solidity ^0.8.4;
 

+ 1 - 0
contracts/crosschain/errors.sol

@@ -1,4 +1,5 @@
 // SPDX-License-Identifier: MIT
+// OpenZeppelin Contracts (last updated v4.6.0) (crosschain/errors.sol)
 
 pragma solidity ^0.8.4;
 

+ 1 - 0
contracts/crosschain/optimism/CrossChainEnabledOptimism.sol

@@ -1,4 +1,5 @@
 // SPDX-License-Identifier: MIT
+// OpenZeppelin Contracts (last updated v4.6.0) (crosschain/optimism/CrossChainEnabledOptimism.sol)
 
 pragma solidity ^0.8.4;
 

+ 1 - 0
contracts/crosschain/optimism/LibOptimism.sol

@@ -1,4 +1,5 @@
 // SPDX-License-Identifier: MIT
+// OpenZeppelin Contracts (last updated v4.6.0) (crosschain/optimism/LibOptimism.sol)
 
 pragma solidity ^0.8.4;
 

+ 1 - 0
contracts/crosschain/polygon/CrossChainEnabledPolygonChild.sol

@@ -1,4 +1,5 @@
 // SPDX-License-Identifier: MIT
+// OpenZeppelin Contracts (last updated v4.6.0) (crosschain/polygon/CrossChainEnabledPolygonChild.sol)
 
 pragma solidity ^0.8.4;
 

+ 1 - 1
contracts/finance/VestingWallet.sol

@@ -1,5 +1,5 @@
 // SPDX-License-Identifier: MIT
-// OpenZeppelin Contracts v4.4.1 (finance/VestingWallet.sol)
+// OpenZeppelin Contracts (last updated v4.6.0) (finance/VestingWallet.sol)
 pragma solidity ^0.8.0;
 
 import "../token/ERC20/utils/SafeERC20.sol";

+ 1 - 1
contracts/governance/Governor.sol

@@ -1,5 +1,5 @@
 // SPDX-License-Identifier: MIT
-// OpenZeppelin Contracts (last updated v4.5.0) (governance/Governor.sol)
+// OpenZeppelin Contracts (last updated v4.6.0) (governance/Governor.sol)
 
 pragma solidity ^0.8.0;
 

+ 1 - 1
contracts/governance/IGovernor.sol

@@ -1,5 +1,5 @@
 // SPDX-License-Identifier: MIT
-// OpenZeppelin Contracts (last updated v4.5.0) (governance/IGovernor.sol)
+// OpenZeppelin Contracts (last updated v4.6.0) (governance/IGovernor.sol)
 
 pragma solidity ^0.8.0;
 

+ 1 - 1
contracts/governance/TimelockController.sol

@@ -1,5 +1,5 @@
 // SPDX-License-Identifier: MIT
-// OpenZeppelin Contracts v4.4.1 (governance/TimelockController.sol)
+// OpenZeppelin Contracts (last updated v4.6.0) (governance/TimelockController.sol)
 
 pragma solidity ^0.8.0;
 

+ 1 - 1
contracts/governance/compatibility/GovernorCompatibilityBravo.sol

@@ -1,5 +1,5 @@
 // SPDX-License-Identifier: MIT
-// OpenZeppelin Contracts (last updated v4.5.0) (governance/compatibility/GovernorCompatibilityBravo.sol)
+// OpenZeppelin Contracts (last updated v4.6.0) (governance/compatibility/GovernorCompatibilityBravo.sol)
 
 pragma solidity ^0.8.0;
 

+ 1 - 1
contracts/governance/extensions/GovernorCountingSimple.sol

@@ -1,5 +1,5 @@
 // SPDX-License-Identifier: MIT
-// OpenZeppelin Contracts v4.4.1 (governance/extensions/GovernorCountingSimple.sol)
+// OpenZeppelin Contracts (last updated v4.6.0) (governance/extensions/GovernorCountingSimple.sol)
 
 pragma solidity ^0.8.0;
 

+ 1 - 1
contracts/governance/extensions/GovernorPreventLateQuorum.sol

@@ -1,5 +1,5 @@
 // SPDX-License-Identifier: MIT
-// OpenZeppelin Contracts (last updated v4.5.0) (governance/extensions/GovernorPreventLateQuorum.sol)
+// OpenZeppelin Contracts (last updated v4.6.0) (governance/extensions/GovernorPreventLateQuorum.sol)
 
 pragma solidity ^0.8.0;
 

+ 1 - 1
contracts/governance/extensions/GovernorTimelockCompound.sol

@@ -1,5 +1,5 @@
 // SPDX-License-Identifier: MIT
-// OpenZeppelin Contracts (last updated v4.5.0) (governance/extensions/GovernorTimelockCompound.sol)
+// OpenZeppelin Contracts (last updated v4.6.0) (governance/extensions/GovernorTimelockCompound.sol)
 
 pragma solidity ^0.8.0;
 

+ 1 - 1
contracts/governance/extensions/GovernorTimelockControl.sol

@@ -1,5 +1,5 @@
 // SPDX-License-Identifier: MIT
-// OpenZeppelin Contracts (last updated v4.5.0) (governance/extensions/GovernorTimelockControl.sol)
+// OpenZeppelin Contracts (last updated v4.6.0) (governance/extensions/GovernorTimelockControl.sol)
 
 pragma solidity ^0.8.0;
 

+ 1 - 1
contracts/governance/extensions/GovernorVotes.sol

@@ -1,5 +1,5 @@
 // SPDX-License-Identifier: MIT
-// OpenZeppelin Contracts (last updated v4.5.0) (governance/extensions/GovernorVotes.sol)
+// OpenZeppelin Contracts (last updated v4.6.0) (governance/extensions/GovernorVotes.sol)
 
 pragma solidity ^0.8.0;
 

+ 1 - 1
contracts/governance/extensions/GovernorVotesComp.sol

@@ -1,5 +1,5 @@
 // SPDX-License-Identifier: MIT
-// OpenZeppelin Contracts v4.4.1 (governance/extensions/GovernorVotesComp.sol)
+// OpenZeppelin Contracts (last updated v4.6.0) (governance/extensions/GovernorVotesComp.sol)
 
 pragma solidity ^0.8.0;
 

+ 1 - 1
contracts/governance/utils/Votes.sol

@@ -1,5 +1,5 @@
 // SPDX-License-Identifier: MIT
-// OpenZeppelin Contracts (last updated v4.5.0) (governance/utils/Votes.sol)
+// OpenZeppelin Contracts (last updated v4.6.0) (governance/utils/Votes.sol)
 pragma solidity ^0.8.0;
 
 import "../../utils/Context.sol";

+ 1 - 1
contracts/interfaces/IERC2981.sol

@@ -1,5 +1,5 @@
 // SPDX-License-Identifier: MIT
-// OpenZeppelin Contracts (last updated v4.5.0) (interfaces/IERC2981.sol)
+// OpenZeppelin Contracts (last updated v4.6.0) (interfaces/IERC2981.sol)
 
 pragma solidity ^0.8.0;
 

+ 1 - 1
contracts/package.json

@@ -1,7 +1,7 @@
 {
   "name": "@openzeppelin/contracts",
   "description": "Secure Smart Contract library for Solidity",
-  "version": "4.5.0",
+  "version": "4.6.0",
   "files": [
     "**/*.sol",
     "/build/contracts/*.json",

+ 1 - 1
contracts/proxy/Proxy.sol

@@ -1,5 +1,5 @@
 // SPDX-License-Identifier: MIT
-// OpenZeppelin Contracts (last updated v4.5.0) (proxy/Proxy.sol)
+// OpenZeppelin Contracts (last updated v4.6.0) (proxy/Proxy.sol)
 
 pragma solidity ^0.8.0;
 

+ 1 - 1
contracts/proxy/utils/Initializable.sol

@@ -1,5 +1,5 @@
 // SPDX-License-Identifier: MIT
-// OpenZeppelin Contracts (last updated v4.5.0) (proxy/utils/Initializable.sol)
+// OpenZeppelin Contracts (last updated v4.6.0) (proxy/utils/Initializable.sol)
 
 pragma solidity ^0.8.2;
 

+ 1 - 1
contracts/token/ERC1155/ERC1155.sol

@@ -1,5 +1,5 @@
 // SPDX-License-Identifier: MIT
-// OpenZeppelin Contracts v4.4.1 (token/ERC1155/ERC1155.sol)
+// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC1155/ERC1155.sol)
 
 pragma solidity ^0.8.0;
 

+ 1 - 1
contracts/token/ERC1155/extensions/ERC1155Supply.sol

@@ -1,5 +1,5 @@
 // SPDX-License-Identifier: MIT
-// OpenZeppelin Contracts v4.4.1 (token/ERC1155/extensions/ERC1155Supply.sol)
+// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC1155/extensions/ERC1155Supply.sol)
 
 pragma solidity ^0.8.0;
 

+ 1 - 0
contracts/token/ERC1155/extensions/ERC1155URIStorage.sol

@@ -1,4 +1,5 @@
 // SPDX-License-Identifier: MIT
+// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC1155/extensions/ERC1155URIStorage.sol)
 
 pragma solidity ^0.8.0;
 

+ 1 - 1
contracts/token/ERC20/ERC20.sol

@@ -1,5 +1,5 @@
 // SPDX-License-Identifier: MIT
-// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC20/ERC20.sol)
+// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/ERC20.sol)
 
 pragma solidity ^0.8.0;
 

+ 1 - 1
contracts/token/ERC20/IERC20.sol

@@ -1,5 +1,5 @@
 // SPDX-License-Identifier: MIT
-// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC20/IERC20.sol)
+// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol)
 
 pragma solidity ^0.8.0;
 

+ 1 - 1
contracts/token/ERC20/extensions/ERC20FlashMint.sol

@@ -1,5 +1,5 @@
 // SPDX-License-Identifier: MIT
-// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC20/extensions/ERC20FlashMint.sol)
+// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/extensions/ERC20FlashMint.sol)
 
 pragma solidity ^0.8.0;
 

+ 1 - 1
contracts/token/ERC20/extensions/ERC20Snapshot.sol

@@ -1,5 +1,5 @@
 // SPDX-License-Identifier: MIT
-// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/ERC20Snapshot.sol)
+// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/extensions/ERC20Snapshot.sol)
 
 pragma solidity ^0.8.0;
 

+ 1 - 1
contracts/token/ERC20/extensions/ERC20Wrapper.sol

@@ -1,5 +1,5 @@
 // SPDX-License-Identifier: MIT
-// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/ERC20Wrapper.sol)
+// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/extensions/ERC20Wrapper.sol)
 
 pragma solidity ^0.8.0;
 

+ 1 - 1
contracts/token/ERC20/extensions/draft-ERC20Permit.sol

@@ -1,5 +1,5 @@
 // SPDX-License-Identifier: MIT
-// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/draft-ERC20Permit.sol)
+// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/extensions/draft-ERC20Permit.sol)
 
 pragma solidity ^0.8.0;
 

+ 1 - 1
contracts/token/ERC721/ERC721.sol

@@ -1,5 +1,5 @@
 // SPDX-License-Identifier: MIT
-// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/ERC721.sol)
+// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/ERC721.sol)
 
 pragma solidity ^0.8.0;
 

+ 1 - 1
contracts/token/ERC721/IERC721.sol

@@ -1,5 +1,5 @@
 // SPDX-License-Identifier: MIT
-// OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721.sol)
+// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721.sol)
 
 pragma solidity ^0.8.0;
 

+ 1 - 1
contracts/token/ERC721/IERC721Receiver.sol

@@ -1,5 +1,5 @@
 // SPDX-License-Identifier: MIT
-// OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721Receiver.sol)
+// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721Receiver.sol)
 
 pragma solidity ^0.8.0;
 

+ 1 - 1
contracts/token/ERC721/extensions/draft-ERC721Votes.sol

@@ -1,5 +1,5 @@
 // SPDX-License-Identifier: MIT
-// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/extensions/draft-ERC721Votes.sol)
+// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/extensions/draft-ERC721Votes.sol)
 
 pragma solidity ^0.8.0;
 

+ 1 - 1
contracts/token/ERC777/ERC777.sol

@@ -1,5 +1,5 @@
 // SPDX-License-Identifier: MIT
-// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC777/ERC777.sol)
+// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC777/ERC777.sol)
 
 pragma solidity ^0.8.0;
 

+ 1 - 1
contracts/token/ERC777/IERC777.sol

@@ -1,5 +1,5 @@
 // SPDX-License-Identifier: MIT
-// OpenZeppelin Contracts v4.4.1 (token/ERC777/IERC777.sol)
+// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC777/IERC777.sol)
 
 pragma solidity ^0.8.0;
 

+ 1 - 1
contracts/token/common/ERC2981.sol

@@ -1,5 +1,5 @@
 // SPDX-License-Identifier: MIT
-// OpenZeppelin Contracts (last updated v4.5.0) (token/common/ERC2981.sol)
+// OpenZeppelin Contracts (last updated v4.6.0) (token/common/ERC2981.sol)
 
 pragma solidity ^0.8.0;
 

+ 1 - 1
contracts/utils/cryptography/MerkleProof.sol

@@ -1,5 +1,5 @@
 // SPDX-License-Identifier: MIT
-// OpenZeppelin Contracts (last updated v4.5.0) (utils/cryptography/MerkleProof.sol)
+// OpenZeppelin Contracts (last updated v4.6.0) (utils/cryptography/MerkleProof.sol)
 
 pragma solidity ^0.8.0;
 

+ 1 - 1
contracts/utils/introspection/IERC1820Registry.sol

@@ -1,5 +1,5 @@
 // SPDX-License-Identifier: MIT
-// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC1820Registry.sol)
+// OpenZeppelin Contracts (last updated v4.6.0) (utils/introspection/IERC1820Registry.sol)
 
 pragma solidity ^0.8.0;
 

+ 1 - 1
contracts/utils/math/SafeMath.sol

@@ -1,5 +1,5 @@
 // SPDX-License-Identifier: MIT
-// OpenZeppelin Contracts v4.4.1 (utils/math/SafeMath.sol)
+// OpenZeppelin Contracts (last updated v4.6.0) (utils/math/SafeMath.sol)
 
 pragma solidity ^0.8.0;
 

+ 1 - 0
contracts/utils/structs/DoubleEndedQueue.sol

@@ -1,4 +1,5 @@
 // SPDX-License-Identifier: MIT
+// OpenZeppelin Contracts (last updated v4.6.0) (utils/structs/DoubleEndedQueue.sol)
 pragma solidity ^0.8.4;
 
 import "../math/SafeCast.sol";

+ 1 - 1
contracts/utils/structs/EnumerableMap.sol

@@ -1,5 +1,5 @@
 // SPDX-License-Identifier: MIT
-// OpenZeppelin Contracts v4.4.1 (utils/structs/EnumerableMap.sol)
+// OpenZeppelin Contracts (last updated v4.6.0) (utils/structs/EnumerableMap.sol)
 
 pragma solidity ^0.8.0;
 

+ 1 - 1
contracts/utils/structs/EnumerableSet.sol

@@ -1,5 +1,5 @@
 // SPDX-License-Identifier: MIT
-// OpenZeppelin Contracts v4.4.1 (utils/structs/EnumerableSet.sol)
+// OpenZeppelin Contracts (last updated v4.6.0) (utils/structs/EnumerableSet.sol)
 
 pragma solidity ^0.8.0;
 

+ 1 - 0
contracts/vendor/amb/IAMB.sol

@@ -1,4 +1,5 @@
 // SPDX-License-Identifier: MIT
+// OpenZeppelin Contracts (last updated v4.6.0) (vendor/amb/IAMB.sol)
 pragma solidity ^0.8.0;
 
 interface IAMB {

+ 1 - 0
contracts/vendor/arbitrum/IArbSys.sol

@@ -1,4 +1,5 @@
 // SPDX-License-Identifier: MIT
+// OpenZeppelin Contracts (last updated v4.6.0) (vendor/arbitrum/IArbSys.sol)
 pragma solidity >=0.4.21 <0.9.0;
 
 /**

+ 1 - 0
contracts/vendor/arbitrum/IBridge.sol

@@ -1,4 +1,5 @@
 // SPDX-License-Identifier: Apache-2.0
+// OpenZeppelin Contracts (last updated v4.6.0) (vendor/arbitrum/IBridge.sol)
 
 /*
  * Copyright 2021, Offchain Labs, Inc.

+ 1 - 0
contracts/vendor/arbitrum/IInbox.sol

@@ -1,4 +1,5 @@
 // SPDX-License-Identifier: Apache-2.0
+// OpenZeppelin Contracts (last updated v4.6.0) (vendor/arbitrum/IInbox.sol)
 
 /*
  * Copyright 2021, Offchain Labs, Inc.

+ 1 - 0
contracts/vendor/arbitrum/IMessageProvider.sol

@@ -1,4 +1,5 @@
 // SPDX-License-Identifier: Apache-2.0
+// OpenZeppelin Contracts (last updated v4.6.0) (vendor/arbitrum/IMessageProvider.sol)
 
 /*
  * Copyright 2021, Offchain Labs, Inc.

+ 1 - 0
contracts/vendor/arbitrum/IOutbox.sol

@@ -1,4 +1,5 @@
 // SPDX-License-Identifier: Apache-2.0
+// OpenZeppelin Contracts (last updated v4.6.0) (vendor/arbitrum/IOutbox.sol)
 
 /*
  * Copyright 2021, Offchain Labs, Inc.

+ 1 - 0
contracts/vendor/compound/ICompoundTimelock.sol

@@ -1,4 +1,5 @@
 // SPDX-License-Identifier: MIT
+// OpenZeppelin Contracts (last updated v4.6.0) (vendor/compound/ICompoundTimelock.sol)
 
 pragma solidity ^0.8.0;
 

+ 1 - 0
contracts/vendor/optimism/ICrossDomainMessenger.sol

@@ -1,4 +1,5 @@
 // SPDX-License-Identifier: MIT
+// OpenZeppelin Contracts (last updated v4.6.0) (vendor/optimism/ICrossDomainMessenger.sol)
 pragma solidity >0.5.0 <0.9.0;
 
 /**

+ 1 - 0
contracts/vendor/polygon/IFxMessageProcessor.sol

@@ -1,4 +1,5 @@
 // SPDX-License-Identifier: MIT
+// OpenZeppelin Contracts (last updated v4.6.0) (vendor/polygon/IFxMessageProcessor.sol)
 pragma solidity ^0.8.0;
 
 interface IFxMessageProcessor {

+ 2 - 2
package-lock.json

@@ -1,12 +1,12 @@
 {
   "name": "openzeppelin-solidity",
-  "version": "4.5.0",
+  "version": "4.6.0",
   "lockfileVersion": 2,
   "requires": true,
   "packages": {
     "": {
       "name": "openzeppelin-solidity",
-      "version": "4.5.0",
+      "version": "4.6.0",
       "license": "MIT",
       "bin": {
         "openzeppelin-contracts-migrate-imports": "scripts/migrate-imports.js"

+ 1 - 1
package.json

@@ -1,7 +1,7 @@
 {
   "name": "openzeppelin-solidity",
   "description": "Secure Smart Contract library for Solidity",
-  "version": "4.5.0",
+  "version": "4.6.0",
   "files": [
     "/contracts/**/*.sol",
     "/build/contracts/*.json",