Merge pull request #443 from lynaDev2/feature/issues-395-396-397-398-…#444
Merged
mftee merged 1 commit intoApr 25, 2026
Conversation
…396-397-398-fe-components git push -u origin feat/SC-08-Expose-Prometheus-metrics-endpoint-Repo-Avatar feat: PDF preview, skeleton loaders, error boundary, 404 page & risk …
Contributor
|
Someone is attempting to deploy a commit to the Mftee's projects Team on Vercel. A member of the Team first needs to authorize it. |
|
@SheyeJDev 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
Apr 25, 2026
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.
PR Description
feat(cmmty): add revoke, metrics, history, and batch-verify endpoints
Implements four new endpoints inside contract/cmmty/, each self-contained in its own sub-module:
POST /cmmty/revoke — writes a manageData(revoked_, timestamp) operation to Stellar and invalidates the local verify cache so subsequent calls immediately reflect the revocation.
GET /cmmty/metrics — exposes a Prometheus text-format scrape endpoint tracking verify_requests_total, anchor_requests_total, cache_hits_total, cache_misses_total, stellar_errors_total, and a request_duration_seconds histogram via a shared MetricsRegistry.
GET /cmmty/history/:hash — returns an ordered (ANCHORED → REVOKED) event list assembled from Stellar account data, sorted by ledger sequence.
POST /cmmty/verify/batch — accepts up to 50 hashes (returns 400 beyond that), checks the in-memory cache first for each, falls back to concurrent Stellar lookups, and includes revocation awareness in each result.
Closes #409
Closes #407
Closes #408
Closes #414