IERC165.sol 870 B

12345678910111213141516171819202122232425
  1. // SPDX-License-Identifier: MIT
  2. // OpenZeppelin Contracts (last updated v5.1.0) (utils/introspection/IERC165.sol)
  3. pragma solidity ^0.8.20;
  4. /**
  5. * @dev Interface of the ERC-165 standard, as defined in the
  6. * https://eips.ethereum.org/EIPS/eip-165[ERC].
  7. *
  8. * Implementers can declare support of contract interfaces, which can then be
  9. * queried by others ({ERC165Checker}).
  10. *
  11. * For an implementation, see {ERC165}.
  12. */
  13. interface IERC165 {
  14. /**
  15. * @dev Returns true if this contract implements the interface defined by
  16. * `interfaceId`. See the corresponding
  17. * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[ERC section]
  18. * to learn more about how these ids are created.
  19. *
  20. * This function call must use less than 30 000 gas.
  21. */
  22. function supportsInterface(bytes4 interfaceId) external view returns (bool);
  23. }