Fraction ProtocolinternalFacetsreceivePhaseFacetsreceiveStateFacetssingleState

SingleStateReceiveFacetStorage

SingleStateReceiveFacetStorage

AlreadyInitialized

error AlreadyInitialized()

Thrown when attempting to re-initialize.

InvalidZeroReceiveState

error InvalidZeroReceiveState()

Thrown when attempting to pass zero receive state.

NonReceiveState

error NonReceiveState(uint256 receiveState, uint256 currentState)

Thrown when trying to receive in non 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: 0x8d70df10a4056ad29690ef7b637f9abf7a848579be5be415d8f2fe53bd294e00

Layout

struct Layout {
  uint256 receiveState;
}

layout

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

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

initReceiveStateFacet

function initReceiveStateFacet(struct SingleStateReceiveFacetStorage.Layout l, bytes initReceiveStateData) internal returns (uint256)

checkReceiveState

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

On this page