BBSubscriptions
For each ERC20 token accepted by the protocol, there is a corresponding BBSubscriptions contract.
Functions
subscribe
Create a subscription to a Profile at a specific Tier.
Parameters
Return Values
unsubscribe
Unsubscribe from a Profile
checkUpkeep
Generate input for performUpkeep
Parameters
checkData Structure
Return Values
performData Structure
performUpkeep
PerformUpkeep is a standard AutomationCompatibleInterface
function. Input can be automatically generated by the checkUpkeep() function or manually built.
Parameters
RenewalData Structure
withdrawToTreasury
Sends the ERC20 token balance the instance of BBSubscriptions handles to the treasury of the BBSubscriptionsFactory.
getSubscriptionFromProfile
Get the subscription data on an account for a given profile and tier.
Parameters
Return Values
getSubscriptionFromId
Get the details of a subscription based on an ID.
Parameters
Return Values
Last updated