Fraction ProtocolinternalFacetspurchasePhaseFacetspurchaseStateFacetssingleState

SingleStatePurchaseFacetStorage

SingleStatePurchaseFacetStorage

AlreadyInitialized

error AlreadyInitialized()

Thrown when attempting to re-initialize.

InvalidZeroPurchaseState

error InvalidZeroPurchaseState()

Thrown when attempting to pass zero purchase state.

NonPurchaseState

error NonPurchaseState(uint256 purchaseState, uint256 currentState)

Thrown when trying to purchase in non purchase state.

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: 0xbb7157287e26193908070d02757be9fab9c371d1e2994f8d0cf4f4437d81d900

Layout

struct Layout {
  uint256 purchaseState;
}

layout

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

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

initPurchaseStateFacet

function initPurchaseStateFacet(struct SingleStatePurchaseFacetStorage.Layout l, bytes initPurchaseStateData) internal returns (uint256)

checkPurchaseState

function checkPurchaseState(struct SingleStatePurchaseFacetStorage.Layout l, uint256 campaignId) internal view

On this page