Staking Protocolutilsinterfaces
ICampaignTimesFacet
It defines the basic interface of CampaignTimes facets.
initCampaignTimesFacet
Initialization function.
The structure and content of initCampaignTimesData are implementation specific.
Parameters
| Name | Type | Description |
|---|---|---|
| initCampaignTimesData | bytes | The ABI-encoded initialization data. |
setCampaignTimesData
Setter function for configuring essential timestamps for campaigns.
Setter functions are executed during the creation process of campaigns.
The structure and content of campaignTimesData are implementation specific.
Parameters
| Name | Type | Description |
|---|---|---|
| campaignId | uint256 | The unique identifier of the targeted staking campaign. |
| campaignTimesData | bytes | The ABI-encoded configuration data. |
checkCampaignTimesOnStake
Checks whether the targeted campaign is currently within the allowed time period for a stake or restake operation.
Parameters
| Name | Type | Description |
|---|---|---|
| campaignId | uint256 | The unique identifier of the targeted staking campaign. |
Return Values
| Name | Type | Description |
|---|---|---|
| [0] | uint256 | The active start timestamp of the stake (or restake) operation. |

