Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Notifications for inboudn channel payments #294

Open
bedeho opened this issue Feb 2, 2024 · 1 comment
Open

Notifications for inboudn channel payments #294

bedeho opened this issue Feb 2, 2024 · 1 comment
Assignees

Comments

@bedeho
Copy link
Member

bedeho commented Feb 2, 2024

Channels can be paid either through a direct transfer or through the channel payout proposals. Being able to process these, and then trigger notifications to the appropriate channel, would be a great way to re-engage creators when there is a positive event. Processing channel payout proposals is much harder, as it requires processing thew whole manifest and determining who is able to claim what, while normal direct payments is easier. So perhaps best to just start with the easiest for now.

@zeeshanakram3
Copy link
Contributor

The notifications for direct channel transfers are already implemented in the Orion, and they work as expected (provided that users have enabled notifications for this notification type). So both in-app/email notifications for YPP rewards and for any other direct channel transfer are sent already.

Processing channel payout proposals is much harder, as it requires processing thew whole manifest and determining who is able to claim what

The logic for processing the channel payouts proposal manifest/payload is already implemented in the @joystream/js monorepo package (i.e. fetching the payload header, getting the channel offset from the header, getting the payout record for a specific channel etc). And the joystream CLI commands for Channel payout proposals use the same reusable logic.

So, Orion would also use the same @joystream/js logic to determine the channel payments after processing mappings for Content.ChannelPayoutsUpdated runtime event, and dispatch notifications.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants