ILegacyReferenceModule
Author: Lens Protocol
This is the deprecated interface for previously Lens-compatible ReferenceModules.
Functions
initializeReferenceModule
Initializes data for a given publication being published. This can only be called by the hub.
function initializeReferenceModule(uint256 profileId, uint256 pubId, bytes calldata data)
external
returns (bytes memory);
Parameters
Name | Type | Description |
---|---|---|
profileId | uint256 | The token ID of the profile publishing the publication. |
pubId | uint256 | The associated publication's LensHub publication ID. |
data | bytes | Arbitrary data passed from the user to be decoded. |
Returns
Name | Type | Description |
---|---|---|
<none> | bytes | bytes An ABI-encoded data encapsulating the execution's state changes. This will be emitted by the hub alongside the collect module's address and should be consumed by front ends. |
processComment
Processes a comment action referencing a given publication. This can only be called by the hub.
function processComment(uint256 profileId, uint256 pointedProfileId, uint256 pointedPubId, bytes calldata data)
external;
Parameters
Name | Type | Description |
---|---|---|
profileId | uint256 | The token ID of the profile associated with the publication being published. |
pointedProfileId | uint256 | The profile ID of the profile associated with the publication being referenced. |
pointedPubId | uint256 | The publication ID of the publication being referenced. |
data | bytes | Arbitrary data passed from the commenter! to be decoded. |
processMirror
Processes a mirror action referencing a given publication. This can only be called by the hub.
function processMirror(uint256 profileId, uint256 pointedProfileId, uint256 pointedPubId, bytes calldata data)
external;
Parameters
Name | Type | Description |
---|---|---|
profileId | uint256 | The token ID of the profile associated with the publication being published. |
pointedProfileId | uint256 | The profile ID of the profile associated with the publication being referenced. |
pointedPubId | uint256 | The publication ID of the publication being referenced. |
data | bytes | Arbitrary data passed from the mirrorer! to be decoded. |