ERC165CheckerMockUpgradeable.sol 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738
  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. }
  8. function __ERC165CheckerMock_init_unchained() internal onlyInitializing {
  9. }
  10. using ERC165CheckerUpgradeable for address;
  11. function supportsERC165(address account) public view returns (bool) {
  12. return account.supportsERC165();
  13. }
  14. function supportsInterface(address account, bytes4 interfaceId) public view returns (bool) {
  15. return account.supportsInterface(interfaceId);
  16. }
  17. function supportsAllInterfaces(address account, bytes4[] memory interfaceIds) public view returns (bool) {
  18. return account.supportsAllInterfaces(interfaceIds);
  19. }
  20. function getSupportedInterfaces(address account, bytes4[] memory interfaceIds) public view returns (bool[] memory) {
  21. return account.getSupportedInterfaces(interfaceIds);
  22. }
  23. /**
  24. * @dev This empty reserved space is put in place to allow future versions to add new
  25. * variables without shifting down storage in the inheritance chain.
  26. * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps
  27. */
  28. uint256[50] private __gap;
  29. }