BBPosts

Functions

createPost

Creates a post and sets its CID

Parameters

Name
Type
Description

profileId

uint256

ID of the profile to create the post in

cid

string

CID of the created post

Return Values

Name
Type
Description

postId

uint256

ID of the created post

editPost

Sets an existing posts CID

Parameters

Name
Type
Description

profileId

uint256

ID of the profile to edit the post in

postId

uint256

ID of the post to edit

cid

string

New CID of the post

getPost

Returns an existing posts CID

Parameters

Name
Type
Description

profileId

uint256

ID of the profile that owns the post

postId

uint256

ID of the post to return

Return Values

Name
Type
Description

cid

string

Returned posts CID

profilesTotalPosts

Returns the number of total posts from a profile

Parameters

Name
Type
Description

profileId

uint256

ID of the profile to return the number of total posts

Return Values

Name
Type
Description

total

uint256

Number of total posts

Last updated