ILegacyReferenceModule

Git Source

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

NameTypeDescription
profileIduint256The token ID of the profile publishing the publication.
pubIduint256The associated publication's LensHub publication ID.
databytesArbitrary data passed from the user to be decoded.

Returns

NameTypeDescription
<none>bytesbytes 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

NameTypeDescription
profileIduint256The token ID of the profile associated with the publication being published.
pointedProfileIduint256The profile ID of the profile associated with the publication being referenced.
pointedPubIduint256The publication ID of the publication being referenced.
databytesArbitrary 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

NameTypeDescription
profileIduint256The token ID of the profile associated with the publication being published.
pointedProfileIduint256The profile ID of the profile associated with the publication being referenced.
pointedPubIduint256The publication ID of the publication being referenced.
databytesArbitrary data passed from the mirrorer! to be decoded.