IERC1820Implementer.sol 789 B

1234567891011121314151617
  1. pragma solidity ^0.5.7;
  2. /**
  3. * @title IERC1820Implementer
  4. * Interface for contracts that will be registered as implementers in the ERC1820 registry.
  5. * @notice For more details, see https://eips.ethereum.org/EIPS/eip-1820
  6. */
  7. interface IERC1820Implementer {
  8. /**
  9. * @notice Indicates whether the contract implements the interface `interfaceHash` for the address `account` or
  10. * not.
  11. * @param interfaceHash keccak256 hash of the name of the interface
  12. * @param account Address for which the contract will implement the interface
  13. * @return ERC1820_ACCEPT_MAGIC only if the contract implements `interfaceHash` for the address `account`.
  14. */
  15. function canImplementInterfaceForAddress(bytes32 interfaceHash, address account) external view returns (bytes32);
  16. }