Fraction ProtocolinterfacesgenericFacetsstateFacet

IStateFacet

It defines the basic interface of State Facets.

initStateFacet

function initStateFacet(bytes initStateData) external

changeState

function changeState(uint256 campaignId, uint256 fromState, uint256 toState) external

Changes the state from fromState to toState

Parameters

NameTypeDescription
campaignIduint256The campaignId associated with the state transition.
fromStateuint256The state before the transition.
toStateuint256The state after the transition.

getStateOfId

function getStateOfId(uint256 campaignId) external view returns (uint256)

Returns the state of the specified campaign

Parameters

NameTypeDescription
campaignIduint256The campaignId.

On this page