ERC165CheckerMockUpgradeable.sol 1.1 KB

123456789101112131415161718192021222324252627282930313233
  1. // SPDX-License-Identifier: MIT
  2. pragma solidity ^0.8.0;
  3. import "../utils/introspection/ERC165CheckerUpgradeable.sol";
  4. import "../proxy/utils/Initializable.sol";
  5. contract ERC165CheckerMockUpgradeable is Initializable {
  6. function __ERC165CheckerMock_init() internal onlyInitializing {
  7. __ERC165CheckerMock_init_unchained();
  8. }
  9. function __ERC165CheckerMock_init_unchained() internal onlyInitializing {
  10. }
  11. using ERC165CheckerUpgradeable for address;
  12. function supportsERC165(address account) public view returns (bool) {
  13. return account.supportsERC165();
  14. }
  15. function supportsInterface(address account, bytes4 interfaceId) public view returns (bool) {
  16. return account.supportsInterface(interfaceId);
  17. }
  18. function supportsAllInterfaces(address account, bytes4[] memory interfaceIds) public view returns (bool) {
  19. return account.supportsAllInterfaces(interfaceIds);
  20. }
  21. function getSupportedInterfaces(address account, bytes4[] memory interfaceIds) public view returns (bool[] memory) {
  22. return account.getSupportedInterfaces(interfaceIds);
  23. }
  24. uint256[50] private __gap;
  25. }