Skip to content

Instantly share code, notes, and snippets.

@PaulRBerg
Created June 23, 2023 12:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save PaulRBerg/1fe9c2bd7e9731280235f572f6999085 to your computer and use it in GitHub Desktop.
Save PaulRBerg/1fe9c2bd7e9731280235f572f6999085 to your computer and use it in GitHub Desktop.
Interfaces for IERC165
// 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