ERC165CheckerMock.sol 826 B

12345678910111213141516171819202122232425
  1. // SPDX-License-Identifier: MIT
  2. pragma solidity ^0.8.0;
  3. import "../utils/introspection/ERC165Checker.sol";
  4. contract ERC165CheckerMock {
  5. using ERC165Checker for address;
  6. function supportsERC165(address account) public view returns (bool) {
  7. return account.supportsERC165();
  8. }
  9. function supportsInterface(address account, bytes4 interfaceId) public view returns (bool) {
  10. return account.supportsInterface(interfaceId);
  11. }
  12. function supportsAllInterfaces(address account, bytes4[] memory interfaceIds) public view returns (bool) {
  13. return account.supportsAllInterfaces(interfaceIds);
  14. }
  15. function getSupportedInterfaces(address account, bytes4[] memory interfaceIds) public view returns (bool[] memory) {
  16. return account.getSupportedInterfaces(interfaceIds);
  17. }
  18. }