// SPDX-License-Identifier: MIT pragma solidity ^0.8.35; import { sslot } from '../data/StorageSlot.sol'; library ERC165Storage { /** * @custom:storage-location erc7201:solidstate.layout.ERC165 */ struct Layout { mapping(bytes4 interfaceId => bool supportStatus) supportedInterfaces; } sslot internal constant DEFAULT_STORAGE_SLOT = sslot.wrap(erc7201('solidstate.layout.ERC165')); function ref() internal pure returns (Layout storage $) { $ = ref(DEFAULT_STORAGE_SLOT); } function ref(sslot slot) internal pure returns (Layout storage $) { assembly { $.slot := slot } } }