IERC1820Implementer.sol 772 B

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