Staking Protocolutilsinterfaces
ITransferInputFacet
It defines the basic interface of TransferInput facets.
initTransferInputFacet
Initialization function.
The structure and content of transferInputData are implementation specific.
Parameters
| Name | Type | Description |
|---|---|---|
| transferInputData | bytes | The ABI-encoded initialization data. |
setCampaignTransferInput
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
| Name | Type | Description |
|---|---|---|
| campaignId | uint256 | The unique identifier of the targeted staking campaign. |
| campaignTransferInputData | bytes | The ABI-encoded data containing the input packet configuration. |
transferInput
Transfers the specified amount of a given campaign's input packets from the from address
to the to address.
Parameters
| Name | Type | Description |
|---|---|---|
| campaignId | uint256 | The unique identifier of the targeted staking campaign. |
| from | address | The address from which the assets encapsulated by the specified number of input packets to be transferred. |
| to | address | The address to receive the assets encapsulated by the specified number of input packets. |
| amountOfPackets | uint256 | The number of input packets to account for. |

