Remove "available since" comments (#4424)
Co-authored-by: Hadrien Croubois <hadrien.croubois@gmail.com>
This commit is contained in:
@ -63,8 +63,6 @@ library ECDSA {
|
||||
* Documentation for signature generation:
|
||||
* - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js]
|
||||
* - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers]
|
||||
*
|
||||
* _Available since v4.3._
|
||||
*/
|
||||
function tryRecover(bytes32 hash, bytes memory signature) internal pure returns (address, RecoverError, bytes32) {
|
||||
if (signature.length == 65) {
|
||||
@ -109,8 +107,6 @@ library ECDSA {
|
||||
* @dev Overload of {ECDSA-tryRecover} that receives the `r` and `vs` short-signature fields separately.
|
||||
*
|
||||
* See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures]
|
||||
*
|
||||
* _Available since v4.3._
|
||||
*/
|
||||
function tryRecover(bytes32 hash, bytes32 r, bytes32 vs) internal pure returns (address, RecoverError, bytes32) {
|
||||
unchecked {
|
||||
@ -123,8 +119,6 @@ library ECDSA {
|
||||
|
||||
/**
|
||||
* @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately.
|
||||
*
|
||||
* _Available since v4.2._
|
||||
*/
|
||||
function recover(bytes32 hash, bytes32 r, bytes32 vs) internal pure returns (address) {
|
||||
(address recovered, RecoverError error, bytes32 errorArg) = tryRecover(hash, r, vs);
|
||||
@ -135,8 +129,6 @@ library ECDSA {
|
||||
/**
|
||||
* @dev Overload of {ECDSA-tryRecover} that receives the `v`,
|
||||
* `r` and `s` signature fields separately.
|
||||
*
|
||||
* _Available since v4.3._
|
||||
*/
|
||||
function tryRecover(
|
||||
bytes32 hash,
|
||||
|
||||
@ -28,8 +28,6 @@ import {IERC5267} from "../../interfaces/IERC5267.sol";
|
||||
* separator of the implementation contract. This will cause the `_domainSeparatorV4` function to always rebuild the
|
||||
* separator from the immutable values, which is cheaper than accessing a cached version in cold storage.
|
||||
*
|
||||
* _Available since v3.4._
|
||||
*
|
||||
* @custom:oz-upgrades-unsafe-allow state-variable-immutable state-variable-assignment
|
||||
*/
|
||||
abstract contract EIP712 is IERC5267 {
|
||||
@ -111,8 +109,6 @@ abstract contract EIP712 is IERC5267 {
|
||||
|
||||
/**
|
||||
* @dev See {IERC-5267}.
|
||||
*
|
||||
* _Available since v4.9._
|
||||
*/
|
||||
function eip712Domain()
|
||||
public
|
||||
@ -144,8 +140,6 @@ abstract contract EIP712 is IERC5267 {
|
||||
*
|
||||
* NOTE: By default this function reads _name which is an immutable value.
|
||||
* It only reads from storage if necessary (in case the value is too large to fit in a ShortString).
|
||||
*
|
||||
* _Available since v5.0._
|
||||
*/
|
||||
// solhint-disable-next-line func-name-mixedcase
|
||||
function _EIP712Name() internal view returns (string memory) {
|
||||
@ -157,8 +151,6 @@ abstract contract EIP712 is IERC5267 {
|
||||
*
|
||||
* NOTE: By default this function reads _version which is an immutable value.
|
||||
* It only reads from storage if necessary (in case the value is too large to fit in a ShortString).
|
||||
*
|
||||
* _Available since v5.0._
|
||||
*/
|
||||
// solhint-disable-next-line func-name-mixedcase
|
||||
function _EIP712Version() internal view returns (string memory) {
|
||||
|
||||
@ -35,8 +35,6 @@ library MerkleProof {
|
||||
|
||||
/**
|
||||
* @dev Calldata version of {verify}
|
||||
*
|
||||
* _Available since v4.7._
|
||||
*/
|
||||
function verifyCalldata(bytes32[] calldata proof, bytes32 root, bytes32 leaf) internal pure returns (bool) {
|
||||
return processProofCalldata(proof, leaf) == root;
|
||||
@ -47,8 +45,6 @@ library MerkleProof {
|
||||
* from `leaf` using `proof`. A `proof` is valid if and only if the rebuilt
|
||||
* hash matches the root of the tree. When processing the proof, the pairs
|
||||
* of leafs & pre-images are assumed to be sorted.
|
||||
*
|
||||
* _Available since v4.4._
|
||||
*/
|
||||
function processProof(bytes32[] memory proof, bytes32 leaf) internal pure returns (bytes32) {
|
||||
bytes32 computedHash = leaf;
|
||||
@ -60,8 +56,6 @@ library MerkleProof {
|
||||
|
||||
/**
|
||||
* @dev Calldata version of {processProof}
|
||||
*
|
||||
* _Available since v4.7._
|
||||
*/
|
||||
function processProofCalldata(bytes32[] calldata proof, bytes32 leaf) internal pure returns (bytes32) {
|
||||
bytes32 computedHash = leaf;
|
||||
@ -76,8 +70,6 @@ library MerkleProof {
|
||||
* `root`, according to `proof` and `proofFlags` as described in {processMultiProof}.
|
||||
*
|
||||
* CAUTION: Not all merkle trees admit multiproofs. See {processMultiProof} for details.
|
||||
*
|
||||
* _Available since v4.7._
|
||||
*/
|
||||
function multiProofVerify(
|
||||
bytes32[] memory proof,
|
||||
@ -92,8 +84,6 @@ library MerkleProof {
|
||||
* @dev Calldata version of {multiProofVerify}
|
||||
*
|
||||
* CAUTION: Not all merkle trees admit multiproofs. See {processMultiProof} for details.
|
||||
*
|
||||
* _Available since v4.7._
|
||||
*/
|
||||
function multiProofVerifyCalldata(
|
||||
bytes32[] calldata proof,
|
||||
@ -113,8 +103,6 @@ library MerkleProof {
|
||||
* CAUTION: Not all merkle trees admit multiproofs. To use multiproofs, it is sufficient to ensure that: 1) the tree
|
||||
* is complete (but not necessarily perfect), 2) the leaves to be proven are in the opposite order they are in the
|
||||
* tree (i.e., as seen from right to left starting at the deepest layer and continuing at the next layer).
|
||||
*
|
||||
* _Available since v4.7._
|
||||
*/
|
||||
function processMultiProof(
|
||||
bytes32[] memory proof,
|
||||
@ -171,8 +159,6 @@ library MerkleProof {
|
||||
* @dev Calldata version of {processMultiProof}.
|
||||
*
|
||||
* CAUTION: Not all merkle trees admit multiproofs. See {processMultiProof} for details.
|
||||
*
|
||||
* _Available since v4.7._
|
||||
*/
|
||||
function processMultiProofCalldata(
|
||||
bytes32[] calldata proof,
|
||||
|
||||
@ -10,8 +10,6 @@ import {IERC1271} from "../../interfaces/IERC1271.sol";
|
||||
* @dev Signature verification helper that can be used instead of `ECDSA.recover` to seamlessly support both ECDSA
|
||||
* signatures from externally owned accounts (EOAs) as well as ERC1271 signatures from smart contract wallets like
|
||||
* Argent and Safe Wallet (previously Gnosis Safe).
|
||||
*
|
||||
* _Available since v4.1._
|
||||
*/
|
||||
library SignatureChecker {
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user