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

Deprecate the timers library (#4062)

Co-authored-by: Francisco <fg@frang.io>
Hadrien Croubois 2 éve
szülő
commit
815bfbf383
2 módosított fájl, 3 hozzáadás és 0 törlés
  1. 1 0
      CHANGELOG.md
  2. 2 0
      contracts/utils/Timers.sol

+ 1 - 0
CHANGELOG.md

@@ -8,6 +8,7 @@
 ### Deprecations
 
 - `ERC20Permit`: Added the file `IERC20Permit.sol` and `ERC20Permit.sol` and deprecated `draft-IERC20Permit.sol` and `draft-ERC20Permit.sol` since [EIP-2612](https://eips.ethereum.org/EIPS/eip-2612) is no longer a Draft. Developers are encouraged to update their imports. ([#3793](https://github.com/OpenZeppelin/openzeppelin-contracts/pull/3793))
+- `Timers`: The `Timers` library is now deprecated and will be removed in the next major release. ([#4062](https://github.com/OpenZeppelin/openzeppelin-contracts/pull/4062))
 
 ## 4.8.1 (2023-01-12)
 

+ 2 - 0
contracts/utils/Timers.sol

@@ -5,6 +5,8 @@ pragma solidity ^0.8.0;
 
 /**
  * @dev Tooling for timepoints, timers and delays
+ *
+ * CAUTION: This file is deprecated as of 4.9 and will be removed in the next major release.
  */
 library Timers {
     struct Timestamp {