IERC1820Implementer.sol 647 B

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