Fraction ProtocolinternalFacetspurchasePhaseFacetspurchaseEligibilityFacetsroleEligibility

PurchaseRoleEligibilityFacetStorage

PurchaseRoleEligibilityFacetStorage

AlreadyInitialized

error AlreadyInitialized()

Thrown when attempting to re-initialize.

UnauthorizedPurchase

error UnauthorizedPurchase(address account)

Thrown when attempting to purchase without having the eligibility to.

STORAGE_SLOT

bytes32 STORAGE_SLOT

================================================== STORAGE =================================================

Unique identifier for the storage slot where the Layout struct is stored. Derived from the ERC7201 formula. STORAGE_SLOT: 0xd5cd8371a7fd556e2460514e332e5053b03ea4dfc5006058c02878e13bbc1c00

Layout

struct Layout {
  bool isInitialized;
  bool checkEligibilityPerId;
  bytes32 eligibleRole;
}

layout

function layout() internal pure returns (struct PurchaseRoleEligibilityFacetStorage.Layout l)

Retrieves a reference to the Layout struct stored at a specified storage slot

initPurchaseEligibilityFacet

function initPurchaseEligibilityFacet(struct PurchaseRoleEligibilityFacetStorage.Layout l, bytes initPurchaseEligibilityData) internal returns (bytes32, bool)

checkPurchaserEligibility

function checkPurchaserEligibility(struct PurchaseRoleEligibilityFacetStorage.Layout l, uint256 campaignId, address account) internal view

On this page