FollowLib
Functions
follow
function follow(
uint256 followerProfileId,
address transactionExecutor,
uint256[] calldata idsOfProfilesToFollow,
uint256[] calldata followTokenIds,
bytes[] calldata followModuleDatas
) external returns (uint256[] memory);
unfollow
function unfollow(uint256 unfollowerProfileId, address transactionExecutor, uint256[] calldata idsOfProfilesToUnfollow)
external;
_deployFollowNFT
Deploys the given profile's Follow NFT contract.
function _deployFollowNFT(uint256 profileId) private returns (address);
Parameters
Name | Type | Description |
---|---|---|
profileId | uint256 | The token ID of the profile which Follow NFT should be deployed. |
Returns
Name | Type | Description |
---|---|---|
<none> | address | address The address of the deployed Follow NFT contract. |
_follow
function _follow(
uint256 followerProfileId,
address transactionExecutor,
uint256 idOfProfileToFollow,
uint256 followTokenId,
bytes calldata followModuleData
) private returns (uint256);
_processFollow
function _processFollow(ProcessFollowParams memory processFollowParams) private returns (uint256);
Structs
ProcessFollowParams
struct ProcessFollowParams {
address followNFT;
uint256 followerProfileId;
address transactionExecutor;
uint256 idOfProfileToFollow;
uint256 followTokenId;
address followModule;
bytes followModuleData;
}