Fraction ProtocolinternalFacetscreateFractionsPhaseFacetspostFractionFacets

CreateFractionsSetterFacetStorage

CreateFractionsSetterFacetStorage

All specified required setter function calls must be successful, there is no case for unsuccessful calls.

AlreadyInitialized

error AlreadyInitialized()

Thrown when attempting to re-initialize.

InvalidZeroRequiredSelectors

error InvalidZeroRequiredSelectors()

Thrown when no required selectors are specified in the setter function.

WrongInputData

error WrongInputData()

Thrown when input data is wrong.

NonSupportedSelector

error NonSupportedSelector(bytes4 invalidOptionalSelector)

Thrown when an optional specified selector is not supported.

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

Layout

struct Layout {
  bool isInitialized;
  bytes4[] requiredSelectors;
  mapping(bytes4 => bool) optionalSelectorSupported;
}

layout

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

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

initPostFractionPhaseData

function initPostFractionPhaseData(struct CreateFractionsSetterFacetStorage.Layout l, bytes initPostFractionData) internal returns (bytes4[], bytes4[])

InitPostFractionPhaseData

Sets the required and optional selectors

Parameters

NameTypeDescription
lstruct CreateFractionsSetterFacetStorage.LayoutLayout struct
initPostFractionDatabytesThe ABI encoded required and optional selectors to store

handlePostFractionPhase

function handlePostFractionPhase(struct CreateFractionsSetterFacetStorage.Layout l, bytes postFractionData) internal returns (bytes4[], bytes4[])

HandlePostFractionPhase

Executes low-level calls to all the required setter functions and specified optional setter functions (if any)

Parameters

NameTypeDescription
lstruct CreateFractionsSetterFacetStorage.LayoutLayout struct
postFractionDatabytesThe ABI encoded optional setter functions' selectors and data for the required and optional setter functions if any

On this page