Staking Protocolinterfaces

ITransferInputFacet

It defines the basic interface of TransferInput facets.

initTransferInputFacet

function initTransferInputFacet(bytes transferInputData) external

Initialization function.

The structure and content of transferInputData are implementation specific.

Parameters

NameTypeDescription
transferInputDatabytesThe ABI-encoded initialization data.

setCampaignTransferInput

function setCampaignTransferInput(uint256 campaignId, bytes campaignTransferInputData) external

Setter function for configuring the input packet for the specified staking campaign.

Setter functions are executed during the creation process of campaigns. The structure and content of campaignTransferInputData are implementation specific.

Parameters

NameTypeDescription
campaignIduint256The unique identifier of the targeted staking campaign.
campaignTransferInputDatabytesThe ABI-encoded data containing the input packet configuration.

transferInput

function transferInput(uint256 campaignId, address from, address to, uint256 amountOfPackets) external

Transfers the specified amount of a given campaign's input packets from the from address to the to address.

Parameters

NameTypeDescription
campaignIduint256The unique identifier of the targeted staking campaign.
fromaddressThe address from which the assets encapsulated by the specified number of input packets to be transferred.
toaddressThe address to receive the assets encapsulated by the specified number of input packets.
amountOfPacketsuint256The number of input packets to account for.

On this page