Fraction ProtocolinternalFacetspurchasePhaseFacetspurchaseStateFacetstwoClickMultipleState

TwoClickMultipleStatePurchaseFacetStorage

TwoClickMultipleStatePurchaseFacetStorage

AlreadyInitialized

error AlreadyInitialized()

Thrown when attempting to re-initialize.

InvalidZeroLengthForHappyPathAfterFundedStates

error InvalidZeroLengthForHappyPathAfterFundedStates()

Thrown when attempting to pass zero happy path after funded states.

InvalidHappyPathAfterFundedStateZero

error InvalidHappyPathAfterFundedStateZero()

Thrown when attempting to set happy path after funded state as 0.

NotInValidHappyPathAfterFundedState

error NotInValidHappyPathAfterFundedState()

Thrown when not in a happy path after funded 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: TO-DO

Layout

struct Layout {
  bool isInitialized;
  mapping(uint256 => bool) isHappyPathAfterFundedState;
}

layout

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

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

initPurchaseHappyPathStateFacet

function initPurchaseHappyPathStateFacet(struct TwoClickMultipleStatePurchaseFacetStorage.Layout l, bytes initPurchaseHappyPathStateData) internal returns (uint256[])

checkPurchaseHappyPathState

function checkPurchaseHappyPathState(struct TwoClickMultipleStatePurchaseFacetStorage.Layout l, uint256 campaignId) internal view

On this page