IERC165.sol 794 B

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