// SPDX-License-Identifier: MIT pragma solidity ^0.8.35; import { sslot } from '../data/StorageSlot.sol'; library ERC2535Storage { /** * @custom:storage-location erc7201:solidstate.layout.ERC2535 */ struct Layout { // function selector => (facet address, selector slug position) mapping(bytes4 selector => bytes32 selectorInfo) selectorInfo; // total number of selectors registered uint16 selectorCount; // array of 32-byte slugs with 8 selectors each mapping(uint256 index => bytes32 selectorSlug) selectorSlugs; address fallbackAddress; } sslot internal constant DEFAULT_STORAGE_SLOT = sslot.wrap(erc7201('solidstate.layout.ERC2535')); function ref() internal pure returns (Layout storage $) { $ = ref(DEFAULT_STORAGE_SLOT); } function ref(sslot slot) internal pure returns (Layout storage $) { assembly { $.slot := slot } } }