Staking Protocolinterfaces
IStakersEligibilityFacet
It defines the basic interface of StakersEligibility facets.
initStakersEligibilityFacet
Initialization function.
The structure and content of initStakersEligibilityData
are implementation specific.
Parameters
Name | Type | Description |
---|---|---|
initStakersEligibilityData | bytes | The ABI-encoded initialization data. |
setCampaignStakersEligibility
Setter function for configuring eligibility criteria for participation in the specified staking campaign.
Setter functions are executed during the creation process of campaigns.
The structure and content of campaignStakersEligibilityData
are implementation specific.
Parameters
Name | Type | Description |
---|---|---|
campaignId | uint256 | The unique identifier of the targeted staking campaign. |
campaignStakersEligibilityData | bytes | The ABI-encoded data containing the eligibility configuration for participation in the campaign. |
checkStakersEligibility
Checks whether the specified account is eligible to participate in the given campaign.
Parameters
Name | Type | Description |
---|---|---|
campaignId | uint256 | The unique identifier of the targeted staking campaign. |
account | address | The address of the account to check. |