feat: add webhook registration system for creator trade events #425#426
Merged
Chucks1093 merged 2 commits intoJun 19, 2026
Conversation
- Add Webhook and WebhookEvent Prisma models with migration - POST /creators/:id/webhooks — register webhook with wallet signature auth - GET /creators/:id/webhooks — list active webhooks (creator auth) - DELETE /creators/:id/webhooks/:webhook_id — remove a webhook - Wallet signature verification via Stellar Ed25519 (x-wallet-address, x-signature, x-timestamp headers) - Configurable max webhooks per creator (default 5) - dispatchWebhookEvent() for use by indexer pipeline — fires POST to registered callback URLs with trade event payload - Retry failed delivery up to 3 times with exponential backoff; flags webhook as failing after exhaustion - events filter (buy/sell) limits which event types trigger the webhook - @stellar/stellar-base dependency for Ed25519 key verification - jest moduleNameMapper for chalk (ESM) to enable integration tests - Unit tests: 15 passing (service + controllers)
Closed
6 tasks
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
Testing
pnpm lintpnpm buildpnpm exec prisma generatewhen schema or generated types changedChecklist