Minimize Solidity pragma versions for interface compatibility (#5727)
This commit is contained in:
@ -1,6 +1,6 @@
|
||||
// SPDX-License-Identifier: MIT
|
||||
// OpenZeppelin Contracts (last updated v5.0.0) (interfaces/IERC1155.sol)
|
||||
|
||||
pragma solidity ^0.8.20;
|
||||
pragma solidity >=0.6.2;
|
||||
|
||||
import {IERC1155} from "../token/ERC1155/IERC1155.sol";
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
// SPDX-License-Identifier: MIT
|
||||
// OpenZeppelin Contracts (last updated v5.0.0) (interfaces/IERC1155MetadataURI.sol)
|
||||
|
||||
pragma solidity ^0.8.20;
|
||||
pragma solidity >=0.6.2;
|
||||
|
||||
import {IERC1155MetadataURI} from "../token/ERC1155/extensions/IERC1155MetadataURI.sol";
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
// SPDX-License-Identifier: MIT
|
||||
// OpenZeppelin Contracts (last updated v5.0.0) (interfaces/IERC1155Receiver.sol)
|
||||
|
||||
pragma solidity ^0.8.20;
|
||||
pragma solidity >=0.6.2;
|
||||
|
||||
import {IERC1155Receiver} from "../token/ERC1155/IERC1155Receiver.sol";
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
// SPDX-License-Identifier: MIT
|
||||
// OpenZeppelin Contracts (last updated v5.3.0) (interfaces/IERC1271.sol)
|
||||
|
||||
pragma solidity ^0.8.20;
|
||||
pragma solidity >=0.5.0;
|
||||
|
||||
/**
|
||||
* @dev Interface of the ERC-1271 standard signature validation method for
|
||||
@ -13,5 +13,5 @@ interface IERC1271 {
|
||||
* @param hash Hash of the data to be signed
|
||||
* @param signature Signature byte array associated with `hash`
|
||||
*/
|
||||
function isValidSignature(bytes32 hash, bytes memory signature) external view returns (bytes4 magicValue);
|
||||
function isValidSignature(bytes32 hash, bytes calldata signature) external view returns (bytes4 magicValue);
|
||||
}
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
// SPDX-License-Identifier: MIT
|
||||
// OpenZeppelin Contracts (last updated v5.1.0) (interfaces/IERC1363.sol)
|
||||
|
||||
pragma solidity ^0.8.20;
|
||||
pragma solidity >=0.6.2;
|
||||
|
||||
import {IERC20} from "./IERC20.sol";
|
||||
import {IERC165} from "./IERC165.sol";
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
// SPDX-License-Identifier: MIT
|
||||
// OpenZeppelin Contracts (last updated v5.1.0) (interfaces/IERC1363Receiver.sol)
|
||||
|
||||
pragma solidity ^0.8.20;
|
||||
pragma solidity >=0.5.0;
|
||||
|
||||
/**
|
||||
* @title IERC1363Receiver
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
// SPDX-License-Identifier: MIT
|
||||
// OpenZeppelin Contracts (last updated v5.1.0) (interfaces/IERC1363Spender.sol)
|
||||
|
||||
pragma solidity ^0.8.20;
|
||||
pragma solidity >=0.5.0;
|
||||
|
||||
/**
|
||||
* @title IERC1363Spender
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
// SPDX-License-Identifier: MIT
|
||||
// OpenZeppelin Contracts (last updated v5.0.0) (interfaces/IERC165.sol)
|
||||
|
||||
pragma solidity ^0.8.20;
|
||||
pragma solidity >=0.4.16;
|
||||
|
||||
import {IERC165} from "../utils/introspection/IERC165.sol";
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
// SPDX-License-Identifier: MIT
|
||||
// OpenZeppelin Contracts (last updated v5.1.0) (interfaces/IERC1820Implementer.sol)
|
||||
|
||||
pragma solidity ^0.8.20;
|
||||
pragma solidity >=0.4.16;
|
||||
|
||||
/**
|
||||
* @dev Interface for an ERC-1820 implementer, as defined in the
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
// SPDX-License-Identifier: MIT
|
||||
// OpenZeppelin Contracts (last updated v5.1.0) (interfaces/IERC1820Registry.sol)
|
||||
|
||||
pragma solidity ^0.8.20;
|
||||
pragma solidity >=0.5.0;
|
||||
|
||||
/**
|
||||
* @dev Interface of the global ERC-1820 Registry, as defined in the
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
// SPDX-License-Identifier: MIT
|
||||
// OpenZeppelin Contracts (last updated v5.0.0) (interfaces/IERC1967.sol)
|
||||
|
||||
pragma solidity ^0.8.20;
|
||||
pragma solidity >=0.4.11;
|
||||
|
||||
/**
|
||||
* @dev ERC-1967: Proxy Storage Slots. This interface contains the events defined in the ERC.
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
// SPDX-License-Identifier: MIT
|
||||
// OpenZeppelin Contracts (last updated v5.0.0) (interfaces/IERC20.sol)
|
||||
|
||||
pragma solidity ^0.8.20;
|
||||
pragma solidity >=0.4.16;
|
||||
|
||||
import {IERC20} from "../token/ERC20/IERC20.sol";
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
// SPDX-License-Identifier: MIT
|
||||
// OpenZeppelin Contracts (last updated v5.0.0) (interfaces/IERC20Metadata.sol)
|
||||
|
||||
pragma solidity ^0.8.20;
|
||||
pragma solidity >=0.6.2;
|
||||
|
||||
import {IERC20Metadata} from "../token/ERC20/extensions/IERC20Metadata.sol";
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
// SPDX-License-Identifier: MIT
|
||||
// OpenZeppelin Contracts (last updated v5.0.0) (interfaces/IERC2309.sol)
|
||||
|
||||
pragma solidity ^0.8.20;
|
||||
pragma solidity >=0.4.11;
|
||||
|
||||
/**
|
||||
* @dev ERC-2309: ERC-721 Consecutive Transfer Extension.
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
// SPDX-License-Identifier: MIT
|
||||
// OpenZeppelin Contracts (last updated v5.0.0) (interfaces/IERC2612.sol)
|
||||
|
||||
pragma solidity ^0.8.20;
|
||||
pragma solidity >=0.6.2;
|
||||
|
||||
import {IERC20Permit} from "../token/ERC20/extensions/IERC20Permit.sol";
|
||||
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
// SPDX-License-Identifier: MIT
|
||||
// OpenZeppelin Contracts (last updated v5.1.0) (interfaces/IERC2981.sol)
|
||||
|
||||
pragma solidity ^0.8.20;
|
||||
pragma solidity >=0.6.2;
|
||||
|
||||
import {IERC165} from "../utils/introspection/IERC165.sol";
|
||||
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
// SPDX-License-Identifier: MIT
|
||||
// OpenZeppelin Contracts (last updated v5.0.0) (interfaces/IERC3156.sol)
|
||||
|
||||
pragma solidity ^0.8.20;
|
||||
pragma solidity >=0.5.0;
|
||||
|
||||
import {IERC3156FlashBorrower} from "./IERC3156FlashBorrower.sol";
|
||||
import {IERC3156FlashLender} from "./IERC3156FlashLender.sol";
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
// SPDX-License-Identifier: MIT
|
||||
// OpenZeppelin Contracts (last updated v5.1.0) (interfaces/IERC3156FlashBorrower.sol)
|
||||
|
||||
pragma solidity ^0.8.20;
|
||||
pragma solidity >=0.5.0;
|
||||
|
||||
/**
|
||||
* @dev Interface of the ERC-3156 FlashBorrower, as defined in
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
// SPDX-License-Identifier: MIT
|
||||
// OpenZeppelin Contracts (last updated v5.1.0) (interfaces/IERC3156FlashLender.sol)
|
||||
|
||||
pragma solidity ^0.8.20;
|
||||
pragma solidity >=0.5.0;
|
||||
|
||||
import {IERC3156FlashBorrower} from "./IERC3156FlashBorrower.sol";
|
||||
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
// SPDX-License-Identifier: MIT
|
||||
// OpenZeppelin Contracts (last updated v5.3.0) (interfaces/IERC4626.sol)
|
||||
|
||||
pragma solidity ^0.8.20;
|
||||
pragma solidity >=0.6.2;
|
||||
|
||||
import {IERC20} from "../token/ERC20/IERC20.sol";
|
||||
import {IERC20Metadata} from "../token/ERC20/extensions/IERC20Metadata.sol";
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
// SPDX-License-Identifier: MIT
|
||||
// OpenZeppelin Contracts (last updated v5.1.0) (interfaces/IERC4906.sol)
|
||||
|
||||
pragma solidity ^0.8.20;
|
||||
pragma solidity >=0.6.2;
|
||||
|
||||
import {IERC165} from "./IERC165.sol";
|
||||
import {IERC721} from "./IERC721.sol";
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
// SPDX-License-Identifier: MIT
|
||||
// OpenZeppelin Contracts (last updated v5.0.0) (interfaces/IERC5267.sol)
|
||||
|
||||
pragma solidity ^0.8.20;
|
||||
pragma solidity >=0.4.16;
|
||||
|
||||
interface IERC5267 {
|
||||
/**
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
// SPDX-License-Identifier: MIT
|
||||
// OpenZeppelin Contracts (last updated v5.0.0) (interfaces/IERC5313.sol)
|
||||
|
||||
pragma solidity ^0.8.20;
|
||||
pragma solidity >=0.4.16;
|
||||
|
||||
/**
|
||||
* @dev Interface for the Light Contract Ownership Standard.
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
// SPDX-License-Identifier: MIT
|
||||
// OpenZeppelin Contracts (last updated v5.0.0) (interfaces/IERC5805.sol)
|
||||
|
||||
pragma solidity ^0.8.20;
|
||||
pragma solidity >=0.8.4;
|
||||
|
||||
import {IVotes} from "../governance/utils/IVotes.sol";
|
||||
import {IERC6372} from "./IERC6372.sol";
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
// SPDX-License-Identifier: MIT
|
||||
// OpenZeppelin Contracts (last updated v5.0.0) (interfaces/IERC6372.sol)
|
||||
|
||||
pragma solidity ^0.8.20;
|
||||
pragma solidity >=0.4.16;
|
||||
|
||||
interface IERC6372 {
|
||||
/**
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
// SPDX-License-Identifier: MIT
|
||||
// OpenZeppelin Contracts (last updated v5.0.0) (interfaces/IERC721.sol)
|
||||
|
||||
pragma solidity ^0.8.20;
|
||||
pragma solidity >=0.6.2;
|
||||
|
||||
import {IERC721} from "../token/ERC721/IERC721.sol";
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
// SPDX-License-Identifier: MIT
|
||||
// OpenZeppelin Contracts (last updated v5.0.0) (interfaces/IERC721Enumerable.sol)
|
||||
|
||||
pragma solidity ^0.8.20;
|
||||
pragma solidity >=0.6.2;
|
||||
|
||||
import {IERC721Enumerable} from "../token/ERC721/extensions/IERC721Enumerable.sol";
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
// SPDX-License-Identifier: MIT
|
||||
// OpenZeppelin Contracts (last updated v5.0.0) (interfaces/IERC721Metadata.sol)
|
||||
|
||||
pragma solidity ^0.8.20;
|
||||
pragma solidity >=0.6.2;
|
||||
|
||||
import {IERC721Metadata} from "../token/ERC721/extensions/IERC721Metadata.sol";
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
// SPDX-License-Identifier: MIT
|
||||
// OpenZeppelin Contracts (last updated v5.0.0) (interfaces/IERC721Receiver.sol)
|
||||
|
||||
pragma solidity ^0.8.20;
|
||||
pragma solidity >=0.5.0;
|
||||
|
||||
import {IERC721Receiver} from "../token/ERC721/IERC721Receiver.sol";
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
// SPDX-License-Identifier: MIT
|
||||
// OpenZeppelin Contracts (last updated v5.1.0) (interfaces/IERC777.sol)
|
||||
|
||||
pragma solidity ^0.8.20;
|
||||
pragma solidity >=0.5.0;
|
||||
|
||||
/**
|
||||
* @dev Interface of the ERC-777 Token standard as defined in the ERC.
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
// SPDX-License-Identifier: MIT
|
||||
// OpenZeppelin Contracts (last updated v5.1.0) (interfaces/IERC777Recipient.sol)
|
||||
|
||||
pragma solidity ^0.8.20;
|
||||
pragma solidity >=0.5.0;
|
||||
|
||||
/**
|
||||
* @dev Interface of the ERC-777 Tokens Recipient standard as defined in the ERC.
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
// SPDX-License-Identifier: MIT
|
||||
// OpenZeppelin Contracts (last updated v5.1.0) (interfaces/IERC777Sender.sol)
|
||||
|
||||
pragma solidity ^0.8.20;
|
||||
pragma solidity >=0.5.0;
|
||||
|
||||
/**
|
||||
* @dev Interface of the ERC-777 Tokens Sender standard as defined in the ERC.
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
// SPDX-License-Identifier: MIT
|
||||
|
||||
pragma solidity ^0.8.0;
|
||||
pragma solidity >=0.5.0;
|
||||
|
||||
/**
|
||||
* @dev Interface for minimal batch executor.
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
// SPDX-License-Identifier: MIT
|
||||
|
||||
pragma solidity ^0.8.0;
|
||||
pragma solidity >=0.5.0;
|
||||
|
||||
/**
|
||||
* @dev Signature verifier interface.
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
// SPDX-License-Identifier: MIT
|
||||
// OpenZeppelin Contracts (last updated v5.1.0) (interfaces/draft-IERC1822.sol)
|
||||
|
||||
pragma solidity ^0.8.20;
|
||||
pragma solidity >=0.4.16;
|
||||
|
||||
/**
|
||||
* @dev ERC-1822: Universal Upgradeable Proxy Standard (UUPS) documents a method for upgradeability through a simplified
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
// SPDX-License-Identifier: MIT
|
||||
// OpenZeppelin Contracts (last updated v5.3.0) (interfaces/draft-IERC4337.sol)
|
||||
|
||||
pragma solidity ^0.8.20;
|
||||
pragma solidity >=0.8.4;
|
||||
|
||||
/**
|
||||
* @dev A https://github.com/ethereum/ercs/blob/master/ERCS/erc-4337.md#useroperation[user operation] is composed of the following elements:
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
// SPDX-License-Identifier: MIT
|
||||
// OpenZeppelin Contracts (last updated v5.1.0) (interfaces/draft-IERC6093.sol)
|
||||
pragma solidity ^0.8.20;
|
||||
pragma solidity >=0.8.4;
|
||||
|
||||
/**
|
||||
* @dev Standard ERC-20 Errors
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
// SPDX-License-Identifier: MIT
|
||||
// OpenZeppelin Contracts (last updated v5.3.0) (interfaces/draft-IERC6909.sol)
|
||||
|
||||
pragma solidity ^0.8.20;
|
||||
pragma solidity >=0.6.2;
|
||||
|
||||
import {IERC165} from "../utils/introspection/IERC165.sol";
|
||||
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
// SPDX-License-Identifier: MIT
|
||||
// OpenZeppelin Contracts (last updated v5.3.0) (interfaces/draft-IERC7579.sol)
|
||||
pragma solidity ^0.8.20;
|
||||
pragma solidity >=0.8.4;
|
||||
|
||||
import {PackedUserOperation} from "./draft-IERC4337.sol";
|
||||
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
// SPDX-License-Identifier: MIT
|
||||
// OpenZeppelin Contracts (last updated v5.1.0) (interfaces/draft-IERC7674.sol)
|
||||
|
||||
pragma solidity ^0.8.20;
|
||||
pragma solidity >=0.6.2;
|
||||
|
||||
import {IERC20} from "./IERC20.sol";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user