Fraction ProtocolinterfacesgenericFacetsstateFacet
IStateFacet
It defines the basic interface of State Facets.
initStateFacet
changeState
Changes the state from fromState to toState
Parameters
| Name | Type | Description |
|---|---|---|
| campaignId | uint256 | The campaignId associated with the state transition. |
| fromState | uint256 | The state before the transition. |
| toState | uint256 | The state after the transition. |
getStateOfId
Returns the state of the specified campaign
Parameters
| Name | Type | Description |
|---|---|---|
| campaignId | uint256 | The campaignId. |

