Subscription Events
This section covers the events related to subscription management.
StreamCreated
event StreamCreated(address indexed user, address indexed author, uint256 indexed encodedRates)Parameters
Description
Example
// Listen for stream creation events
papayaContract.on("StreamCreated", (user, author, encodedRates) => {
console.log(`Stream created: ${user} subscribed to ${author} with rates ${encodedRates}`);
});StreamRevoked
Parameters
Description
Example
Last updated