Staking Protocolinterfaces
ILockVariationsFacet
It defines the basic interface of LockVariation facets.
initLockVariationsFacet
Initialization function.
The structure and content of initLockVariationsData
are implementation specific.
Parameters
Name | Type | Description |
---|---|---|
initLockVariationsData | bytes | The ABI-encoded initialization data. |
setCampaignLockVariations
Setter function for configuring time-based lock constraints for the specified staking campaign.
Setter functions are executed during the creation process of campaigns.
The structure and content of campaignLockVariationsData
are implementation specific.
Parameters
Name | Type | Description |
---|---|---|
campaignId | uint256 | The unique identifier of the targeted staking campaign. |
campaignLockVariationsData | bytes | The ABI-encoded time-based lock configuration data. |
checkTimeLock
Checks whether the specified lock period complies with the configured time-based lock constraints of the given campaign.
Parameters
Name | Type | Description |
---|---|---|
campaignId | uint256 | The unique identifier of the targeted staking campaign. |
timeLockPeriod | uint256 | The lock period to check, in seconds (unix period format). |