BBProfiles

Functions

createProfile

function createProfile(
    address owner, 
    address receiver, 
    string calldata cid
) external returns (uint256 profileId)

Creates a profile and sets its owner, receiver and CID

Parameters

Return Values

editProfile

function editProfile(
    uint256 profileId, 
    address owner, 
    address receiver, 
    string calldata cid
) external

Sets the owner, receiver and CID of an existing profile

Parameters

totalProfiles

function totalProfiles(
) external view returns (uint256 total)

Returns the total number of profiles

Return Values

getProfile

function getProfile(
    uint256 profileId
) external view returns (address owner, address receiver, string memory cid)

Returns an existing profiles owner, receiver and CID

Parameters

Return Values

getOwnersProfiles

function getOwnersProfiles(
    address account
) external view returns (uint256[] memory profileIds)

Returns all profile ID's an address is the owner of

Parameters

Return Values

ownersTotalProfiles

function ownersTotalProfiles(
    address owner
) external view returns (uint256 total)

Returns the total number of profiles an address is the owner of

Parameters

Return Values

Last updated