Fraction ProtocolsubInternalFacetsrecoverFractionsPhaseFacetsrecoverFractionsStateFacetsrestrictedStates

RestrictedStatesRecoverFractionsFacetStorage

RestrictedStatesRecoverFractionsFacetStorage

AlreadyInitialized

error AlreadyInitialized()

Thrown when attempting to re-initialize.

NonProvidedZeroAsRestrictedState

error NonProvidedZeroAsRestrictedState()

Thrown when attempting not to pass zero value at restricted states (state 0 - NON_CREATED should ALWAYS be part of it).

InvalidZeroLengthForRestrictedRecoverFractionsStates

error InvalidZeroLengthForRestrictedRecoverFractionsStates()

Thrown when attempting to pass zero restricted states (state 0 - NON_CREATED should ALWAYS be part of it). If it is not part, they might try to recover fractions for a non_created campaign - which is not working.

InRestrictedToRecoverFractionsState

error InRestrictedToRecoverFractionsState(uint256 campaignId)

Thrown when a campaign is in a restricted to recover fractions 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) isRestrictedRecoverFractionsState;
}

layout

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

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

initRecoverFractionsStateFacet

function initRecoverFractionsStateFacet(struct RestrictedStatesRecoverFractionsFacetStorage.Layout l, bytes initRecoverFractionsStateData) internal returns (uint256[])

checkRecoverFractionsState

function checkRecoverFractionsState(struct RestrictedStatesRecoverFractionsFacetStorage.Layout l, uint256 campaignId) internal view

On this page