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

feat: adding payment stream creation event to indexer #213

Merged
merged 27 commits into from
Oct 8, 2024

Conversation

undercover-cactus
Copy link
Contributor

This PR add the logic to have the indexer processing the payment stream creation events.

We are adding a new table PaymentStream that aggregate the payment stream created (with fixed rate and dynamic rate). The table has an extra column total_amount that keep record of the total amount paid to the provider (not yet implemented).

@undercover-cactus undercover-cactus marked this pull request as ready for review October 2, 2024 13:17
Copy link
Contributor

@ffarall ffarall left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great job! Neat and tidy code. Just some changes required mostly around naming and conventions.

client/indexer-db/src/models/paymentstream.rs Outdated Show resolved Hide resolved
client/indexer-db/src/models/paymentstream.rs Outdated Show resolved Hide resolved
client/indexer-service/src/handler.rs Outdated Show resolved Hide resolved
client/indexer-service/src/handler.rs Outdated Show resolved Hide resolved
client/indexer-service/src/handler.rs Outdated Show resolved Hide resolved
pallets/payment-streams/src/lib.rs Outdated Show resolved Hide resolved
pallets/payment-streams/src/lib.rs Outdated Show resolved Hide resolved
pallets/payment-streams/src/lib.rs Outdated Show resolved Hide resolved
pallets/payment-streams/src/lib.rs Outdated Show resolved Hide resolved
pallets/payment-streams/src/lib.rs Outdated Show resolved Hide resolved
pallets/payment-streams/src/lib.rs Outdated Show resolved Hide resolved
Copy link
Contributor

@ffarall ffarall left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good job!

@undercover-cactus undercover-cactus merged commit a72381d into main Oct 8, 2024
21 checks passed
@undercover-cactus undercover-cactus deleted the feat/payment-streams branch October 8, 2024 13:18
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

Successfully merging this pull request may close these issues.

3 participants