Staking Protocolinterfaces

IStakersEligibilityFacet

It defines the basic interface of StakersEligibility facets.

initStakersEligibilityFacet

function initStakersEligibilityFacet(bytes initStakersEligibilityData) external

Initialization function.

The structure and content of initStakersEligibilityData are implementation specific.

Parameters

NameTypeDescription
initStakersEligibilityDatabytesThe ABI-encoded initialization data.

setCampaignStakersEligibility

function setCampaignStakersEligibility(uint256 campaignId, bytes campaignStakersEligibilityData) external

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

NameTypeDescription
campaignIduint256The unique identifier of the targeted staking campaign.
campaignStakersEligibilityDatabytesThe ABI-encoded data containing the eligibility configuration for participation in the campaign.

checkStakersEligibility

function checkStakersEligibility(uint256 campaignId, address account) external

Checks whether the specified account is eligible to participate in the given campaign.

Parameters

NameTypeDescription
campaignIduint256The unique identifier of the targeted staking campaign.
accountaddressThe address of the account to check.

On this page