Skip to content

WIP: Minimize Interface Pragmas #5649

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion contracts/governance/utils/IVotes.sol
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (governance/utils/IVotes.sol)
pragma solidity ^0.8.20;
pragma solidity >=0.8.4;

/**
* @dev Common interface for {ERC20Votes}, {ERC721Votes}, and other {Votes}-enabled contracts.
Expand Down
2 changes: 1 addition & 1 deletion contracts/interfaces/IERC1155.sol
Original file line number Diff line number Diff line change
@@ -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";
2 changes: 1 addition & 1 deletion contracts/interfaces/IERC1155MetadataURI.sol
Original file line number Diff line number Diff line change
@@ -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";
2 changes: 1 addition & 1 deletion contracts/interfaces/IERC1155Receiver.sol
Original file line number Diff line number Diff line change
@@ -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";
2 changes: 1 addition & 1 deletion contracts/interfaces/IERC1271.sol
Original file line number Diff line number Diff line change
@@ -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.6.9;

/**
* @dev Interface of the ERC-1271 standard signature validation method for
Expand Down
2 changes: 1 addition & 1 deletion contracts/interfaces/IERC1363.sol
Original file line number Diff line number Diff line change
@@ -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";
Expand Down
2 changes: 1 addition & 1 deletion contracts/interfaces/IERC1363Receiver.sol
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion contracts/interfaces/IERC1363Spender.sol
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion contracts/interfaces/IERC165.sol
Original file line number Diff line number Diff line change
@@ -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.5.0;

import {IERC165} from "../utils/introspection/IERC165.sol";
2 changes: 1 addition & 1 deletion contracts/interfaces/IERC1820Implementer.sol
Original file line number Diff line number Diff line change
@@ -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.5.0;

/**
* @dev Interface for an ERC-1820 implementer, as defined in the
Expand Down
2 changes: 1 addition & 1 deletion contracts/interfaces/IERC1820Registry.sol
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion contracts/interfaces/IERC1967.sol
Original file line number Diff line number Diff line change
@@ -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.5.0;

/**
* @dev ERC-1967: Proxy Storage Slots. This interface contains the events defined in the ERC.
Expand Down
2 changes: 1 addition & 1 deletion contracts/interfaces/IERC20.sol
Original file line number Diff line number Diff line change
@@ -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.5.0;

import {IERC20} from "../token/ERC20/IERC20.sol";
2 changes: 1 addition & 1 deletion contracts/interfaces/IERC20Metadata.sol
Original file line number Diff line number Diff line change
@@ -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";
2 changes: 1 addition & 1 deletion contracts/interfaces/IERC2309.sol
Original file line number Diff line number Diff line change
@@ -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.5.0;

/**
* @dev ERC-2309: ERC-721 Consecutive Transfer Extension.
Expand Down
2 changes: 1 addition & 1 deletion contracts/interfaces/IERC2612.sol
Original file line number Diff line number Diff line change
@@ -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";

Expand Down
2 changes: 1 addition & 1 deletion contracts/interfaces/IERC2981.sol
Original file line number Diff line number Diff line change
@@ -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";

Expand Down
2 changes: 1 addition & 1 deletion contracts/interfaces/IERC3156.sol
Original file line number Diff line number Diff line change
@@ -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.8.20;

import {IERC3156FlashBorrower} from "./IERC3156FlashBorrower.sol";
import {IERC3156FlashLender} from "./IERC3156FlashLender.sol";
2 changes: 1 addition & 1 deletion contracts/interfaces/IERC3156FlashBorrower.sol
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion contracts/interfaces/IERC3156FlashLender.sol
Original file line number Diff line number Diff line change
@@ -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";

Expand Down
2 changes: 1 addition & 1 deletion contracts/interfaces/IERC4626.sol
Original file line number Diff line number Diff line change
@@ -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";
Expand Down
2 changes: 1 addition & 1 deletion contracts/interfaces/IERC4906.sol
Original file line number Diff line number Diff line change
@@ -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";
Expand Down
2 changes: 1 addition & 1 deletion contracts/interfaces/IERC5267.sol
Original file line number Diff line number Diff line change
@@ -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.5.0;

interface IERC5267 {
/**
Expand Down
2 changes: 1 addition & 1 deletion contracts/interfaces/IERC5313.sol
Original file line number Diff line number Diff line change
@@ -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.5.0;

/**
* @dev Interface for the Light Contract Ownership Standard.
Expand Down
2 changes: 1 addition & 1 deletion contracts/interfaces/IERC5805.sol
Original file line number Diff line number Diff line change
@@ -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";
Expand Down
2 changes: 1 addition & 1 deletion contracts/interfaces/IERC6372.sol
Original file line number Diff line number Diff line change
@@ -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.5.0;

interface IERC6372 {
/**
Expand Down
2 changes: 1 addition & 1 deletion contracts/interfaces/IERC721.sol
Original file line number Diff line number Diff line change
@@ -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";
2 changes: 1 addition & 1 deletion contracts/interfaces/IERC721Enumerable.sol
Original file line number Diff line number Diff line change
@@ -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";
2 changes: 1 addition & 1 deletion contracts/interfaces/IERC721Metadata.sol
Original file line number Diff line number Diff line change
@@ -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";
2 changes: 1 addition & 1 deletion contracts/interfaces/IERC721Receiver.sol
Original file line number Diff line number Diff line change
@@ -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";
2 changes: 1 addition & 1 deletion contracts/interfaces/IERC777.sol
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
2 changes: 1 addition & 1 deletion contracts/interfaces/IERC777Recipient.sol
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
2 changes: 1 addition & 1 deletion contracts/interfaces/IERC777Sender.sol
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
2 changes: 1 addition & 1 deletion contracts/token/ERC1155/IERC1155.sol
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.3.0) (token/ERC1155/IERC1155.sol)

pragma solidity ^0.8.20;
pragma solidity >=0.6.2;

import {IERC165} from "../../utils/introspection/IERC165.sol";

Expand Down
2 changes: 1 addition & 1 deletion contracts/token/ERC1155/IERC1155Receiver.sol
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.1.0) (token/ERC1155/IERC1155Receiver.sol)

pragma solidity ^0.8.20;
pragma solidity >=0.6.2;

import {IERC165} from "../../utils/introspection/IERC165.sol";

Expand Down
2 changes: 1 addition & 1 deletion contracts/token/ERC1155/extensions/IERC1155MetadataURI.sol
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.1.0) (token/ERC1155/extensions/IERC1155MetadataURI.sol)

pragma solidity ^0.8.20;
pragma solidity >=0.6.2;

import {IERC1155} from "../IERC1155.sol";

Expand Down
2 changes: 1 addition & 1 deletion contracts/token/ERC20/IERC20.sol
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.1.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.20;
pragma solidity >=0.5.0;

/**
* @dev Interface of the ERC-20 standard as defined in the ERC.
Expand Down
2 changes: 1 addition & 1 deletion contracts/token/ERC20/extensions/IERC20Metadata.sol
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.1.0) (token/ERC20/extensions/IERC20Metadata.sol)

pragma solidity ^0.8.20;
pragma solidity >=0.6.2;

import {IERC20} from "../IERC20.sol";

Expand Down
2 changes: 1 addition & 1 deletion contracts/token/ERC20/extensions/IERC20Permit.sol
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.1.0) (token/ERC20/extensions/IERC20Permit.sol)

pragma solidity ^0.8.20;
pragma solidity >=0.5.0;

/**
* @dev Interface of the ERC-20 Permit extension allowing approvals to be made via signatures, as defined in
Expand Down
2 changes: 1 addition & 1 deletion contracts/token/ERC721/IERC721.sol
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.1.0) (token/ERC721/IERC721.sol)

pragma solidity ^0.8.20;
pragma solidity >=0.6.2;

import {IERC165} from "../../utils/introspection/IERC165.sol";

Expand Down
2 changes: 1 addition & 1 deletion contracts/token/ERC721/IERC721Receiver.sol
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.1.0) (token/ERC721/IERC721Receiver.sol)

pragma solidity ^0.8.20;
pragma solidity >=0.5.0;

/**
* @title ERC-721 token receiver interface
Expand Down
2 changes: 1 addition & 1 deletion contracts/token/ERC721/extensions/IERC721Enumerable.sol
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC721/extensions/IERC721Enumerable.sol)

pragma solidity ^0.8.20;
pragma solidity >=0.6.2;

import {IERC721} from "../IERC721.sol";

Expand Down
2 changes: 1 addition & 1 deletion contracts/token/ERC721/extensions/IERC721Metadata.sol
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC721/extensions/IERC721Metadata.sol)

pragma solidity ^0.8.20;
pragma solidity >=0.6.2;

import {IERC721} from "../IERC721.sol";

Expand Down
2 changes: 1 addition & 1 deletion contracts/utils/introspection/IERC165.sol
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.1.0) (utils/introspection/IERC165.sol)

pragma solidity ^0.8.20;
pragma solidity >=0.5.0;

/**
* @dev Interface of the ERC-165 standard, as defined in the
Expand Down
Loading