feat(contract): CT-14 VerificationWebhookNotifier and CT-15 CacheWarmupService#593
Merged
Merged
Conversation
… CacheWarmupService - Add VerificationWebhookNotifier in contract/src/module/webhook/ - Reads WEBHOOK_URL env var; disables and logs warning if unset - notify() POSTs JSON payload with event_type, document_hash, tx_hash, timestamp, service - 5-second reqwest timeout; retries once after 2s on failure; logs WARN, never errors handler - Add CacheWarmupService in contract/src/module/cache_warmup/ - Runs before HTTP server accepts connections - Scans Redis submit:* keys, warms up to 200 entries with verified=true - Logs count and duration at INFO; skips gracefully if Redis unavailable - Wire notifier into submit, revoke, and transfer handlers - Add notifier to AppState Closes CodeGirlsInc#546 Closes CodeGirlsInc#547
Contributor
|
@Ibinola is attempting to deploy a commit to the Mftee's projects Team on Vercel. A member of the Team first needs to authorize it. |
|
@Ibinola 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! 🚀 |
mftee
approved these changes
Jun 26, 2026
7 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
Implements [CT-14] and [CT-15] for the Stellar Wave program.
CT-14 — VerificationWebhookNotifier (
contract/src/module/webhook/)WEBHOOK_URLenv var on startup; disabled with a WARN log if not setnotify(event_type, document_hash, tx_hash, timestamp)fires a POST with JSON payload{ event_type, document_hash, tx_hash, timestamp, service: "smalda-contract" }submit_document,revoke_document, andrecord_transferafter successful Stellar transactionsCT-15 — CacheWarmupService (
contract/src/module/cache_warmup/)submit:*keys, limits warmup to 200 entriesverified=truecache entries using the storedtx_hashwithout re-querying StellarTesting
cargo build— cleancargo test— 28/28 passingCloses #546
Closes #547