feat: add off-chain notification service (#114)#205
Open
precious522 wants to merge 1 commit into
Open
Conversation
- notification-service/ — Node.js/TypeScript service that polls Horizon for governance contract events and notifies subscribers - src/types.ts — GovernanceEvent, Subscriber, SubscriptionStore types - src/subscriptions.ts — CRUD + matching logic, JSON file persistence - src/notifier.ts — email (nodemailer) and webhook (axios) dispatch - src/watcher.ts — Horizon event poller with cursor tracking - src/index.ts — CLI: start | subscribe | unsubscribe | list - .env.example — all configurable env vars documented - docs/notification-service.md — setup, usage, CLI reference, payload format - README.md — project structure entry + Resources link Closes PrincessnJoy#114
|
@precious522 Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits. You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Implements an off-chain notification service that watches Stellar Horizon for CosmosVote governance events and notifies subscribers via email and/or webhook.
Changes
notification-service/(new)src/types.ts—GovernanceEvent,Subscriber,SubscriptionStoretypessrc/subscriptions.ts— subscriber CRUD, event matching, JSON file persistence with cursor trackingsrc/notifier.ts— email dispatch (nodemailer/SMTP) and webhook dispatch (axios)src/watcher.ts— polls Horizon contract events, filters(gov, created/voted/final/exec/cancel), resumes from last cursorsrc/index.ts— CLI entry:start,subscribe,unsubscribe,list.env.example— all config variables documentedpackage.json/tsconfig.json— project config matching repo conventionsDocs
docs/notification-service.md— setup guide, CLI reference, webhook payload format, subscription file formatREADME.md— project structure and Resources section updatedAcceptance Criteria
Closes #114