code for ink, the decentralized social network.
- post a blot
- follow another user
- claim your $INK token
- invite another user to join
- tip a user in $INK
- tip a post in $INK
register
: registers an address on theuserIndex
mappingcreatePost
: creates a post on thepostIndex
followUser
: follows a user specifiedgetFollowers
: returns the length ofactiveFollowers
mappinggetUserPost
: returnsPost[]
array from inputted valuesgetUser
: returnsUserDeets
from inputted valuesgetPost
: returnsPost
from inputted valuesgetPosts
: returns details about posts given the starting and ending indexes_tipUser
: tips a user given amount and addresstipOnPost
: tips a specific post based on inputted values