Staking ProtocolglobalStoragecampaignCreation

CampaignCreationStorage

This library manages the storage of function selectors (bytes4) for functions executed during the creation of staking campaigns within the staking platform (Staking Diamond).

_These functions, referred to as setters, are invoked via low-level calls during the campaign creation process (see CampaignCreationSkeleton.sol). They must be implemented within contracts added as facets to the staking diamond.

Setter functions are categorized as either required or optional. Required setters are executed by default during campaign creation, while optional setters are executed only if selected by the campaign creator._

STORAGE_SLOT

bytes32 STORAGE_SLOT

Unique identifier for the storage slot where the Layout struct is stored.

Layout

Struct for storing selectors of setter functions.

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

layout

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

Retrieves a reference to the Layout struct stored at the slot specified by STORAGE_SLOT unique identifier.

On this page