IERC165.sol 753 B

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