Fraction ProtocolinternalFacetsreceivePhaseFacetsreceiveStateFacetsmultipleState

MultipleStateReceiveFacetStorage

MultipleStateReceiveFacetStorage

AlreadyInitialized

error AlreadyInitialized()

Thrown when attempting to re-initialize.

InvalidZeroLengthForReceiveStates

error InvalidZeroLengthForReceiveStates()

Thrown when attempting to pass zero receive states.

InvalidReceiveStateZero

error InvalidReceiveStateZero()

Thrown when attempting to set receive state as 0.

NotInValidReceiveState

error NotInValidReceiveState(uint256 campaignId)

Thrown when not in a valid receive 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) isReceiveState;
}

layout

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

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

initReceiveStateFacet

function initReceiveStateFacet(struct MultipleStateReceiveFacetStorage.Layout l, bytes initReceiveStateData) internal returns (uint256[])

checkReceiveState

function checkReceiveState(struct MultipleStateReceiveFacetStorage.Layout l, uint256 campaignId) internal view

On this page