IERC1820Implementer.sol 680 B

12345678910111213141516171819
  1. // SPDX-License-Identifier: MIT
  2. pragma solidity ^0.7.0;
  3. /**
  4. * @dev Interface for an ERC1820 implementer, as defined in the
  5. * https://eips.ethereum.org/EIPS/eip-1820#interface-implementation-erc1820implementerinterface[EIP].
  6. * Used by contracts that will be registered as implementers in the
  7. * {IERC1820Registry}.
  8. */
  9. interface IERC1820Implementer {
  10. /**
  11. * @dev Returns a special value (`ERC1820_ACCEPT_MAGIC`) if this contract
  12. * implements `interfaceHash` for `account`.
  13. *
  14. * See {IERC1820Registry-setInterfaceImplementer}.
  15. */
  16. function canImplementInterfaceForAddress(bytes32 interfaceHash, address account) external view returns (bytes32);
  17. }