Fraction ProtocolsubInternalFacetsvestingPhaseFacetsvestingStateFacetsmultipleState

MultipleStateVestingFacetStorage

MultipleStateVestingFacetStorage

AlreadyInitialized

error AlreadyInitialized()

Thrown when attempting to re-initialize.

InvalidZeroLengthForVestingStates

error InvalidZeroLengthForVestingStates()

Thrown when attempting to pass zero vesting states.

InvalidVestingStateZero

error InvalidVestingStateZero()

Thrown when attempting to set vesting state as 0.

NotInValidVestingState

error NotInValidVestingState()

Thrown when not in a valid vesting 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: 0x58194bc930435bf2ce7372ddf9641f8b20fcb9814b8e6f28d05f15fe12d26c00

Layout

struct Layout {
  bool isInitialized;
  mapping(uint256 => bool) isVestingState;
}

layout

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

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

initVestingStateFacet

function initVestingStateFacet(struct MultipleStateVestingFacetStorage.Layout l, bytes initVestingStateData) internal returns (uint256[])

checkVestingState

function checkVestingState(struct MultipleStateVestingFacetStorage.Layout l, uint256 campaignId) internal view

On this page