Tips
Tip Users and Groups / Spaces with MATIC or any ERC-20 token on Polygon
Table of Contents
Events
logAddTip
This event is emitted when a tip is added to a post.
logClaimTips
This event is emitted when tips are claimed by a user or group.
logTaggedTip
This event is emitted when a tagged tip is made.
logTaggedTipERC20
This event is emitted when a tagged ERC20 tip is made.
Public Functions
getTippersFromMsgID
Returns a list of addresses that tipped a post and how much they tipped in MATIC.
msgID
uint256
the message ID to get tips from
startFrom
uint256
the number to start getting records from
checkTips
Checks to see how much in tips are owed to an address of a user or group.
addr
address
the address to check for tips owed to
claimTips
Claims tips owed to an address (user or group). If you pass a group ID, then you must be the owner of the group to claim the tips.
groupID
uint256
the group ID to claim tips for
addTipFromPost
Adds tips to a post. Tips are calculated from the value sent to this function.
msgID
uint256
the message ID you want to add the tips to
Last updated