Created
June 23, 2023 12:26
-
-
Save PaulRBerg/1fe9c2bd7e9731280235f572f6999085 to your computer and use it in GitHub Desktop.
Interfaces for IERC165
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// SPDX-License-Identifier: MIT | |
pragma solidity >=0.8.4; | |
/// @notice Interface of the ERC165 standard, as defined in https://eips.ethereum.org/EIPS/eip-165. Implementers can | |
/// declare support of contract interfaces, which can then be queried by other contracts. | |
/// @dev Credits to OpenZeppelin under MIT license. | |
interface IERC165 { | |
/// @notice Returns true if this contract implements the interface defined by `interfaceId`. See the EIP to learn | |
/// more about how these ids are created. | |
/// | |
/// Requirements: | |
/// - This function call must use less than 30 000 gas. | |
function supportsInterface(bytes4 interfaceId) external view returns (bool); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment