1.0.0 • Published 1 year ago

openbrowser-social v1.0.0

Weekly downloads
-
License
ISC
Repository
github
Last release
1 year ago

OpenBrowser Social Contract

View Functions

getNameOwner(name)

Get owner address of name

getUserAccount(address)

Get UserAccount struct of address

struct UserAccount {
    string name;
    string pfpHash;
    string bio;
    address owner;
}

getPostInfoFromArray(index)

Get PostInfo struct from array

struct PostInfo {
        string text;
        string mediaHash;
        string mediaFtype;
        uint256 postedTimestamp;
        string[] hashTagArray;
        string name;
    }

getPostInfoFromHashtag(hashTag, index) getPostInfoFromName(name, index)

Transaction Functions

createAccount(name, pfpHash, bio)

editAccount(pfpHash, bio)

transferAccountOwnership(newOwner)

createPost(text, mediaHash, mediaFtype, hashTagArray)