// SPDX-License-Identifier: MIT pragma solidity ^0.8.23; // interfaces import {IDiamond} from "@towns-protocol/diamond/src/Diamond.sol"; // libraries import {LibDeploy} from "@towns-protocol/diamond/src/utils/LibDeploy.sol"; // contracts import {EntitlementGated} from "src/spaces/facets/gated/EntitlementGated.sol"; library DeploySpaceEntitlementGated { function selectors() internal pure returns (bytes4[] memory res) { res = new bytes4[](3); res[0] = EntitlementGated.postEntitlementCheckResult.selector; res[1] = EntitlementGated.postEntitlementCheckResultV2.selector; res[2] = EntitlementGated.getRuleData.selector; } function makeCut( address facetAddress, IDiamond.FacetCutAction action ) internal pure returns (IDiamond.FacetCut memory) { return IDiamond.FacetCut(facetAddress, action, selectors()); } function deploy() internal returns (address) { return LibDeploy.deployCode("SpaceEntitlementGated.sol", ""); } }