Skip to content

Merge pull request #443 from lynaDev2/feature/issues-395-396-397-398-…#444

Merged
mftee merged 1 commit into
CodeGirlsInc:mainfrom
SheyeJDev:feat/SC-08-Expose-Prometheus-metrics-endpoint-Repo-Avatar
Apr 25, 2026
Merged

Merge pull request #443 from lynaDev2/feature/issues-395-396-397-398-…#444
mftee merged 1 commit into
CodeGirlsInc:mainfrom
SheyeJDev:feat/SC-08-Expose-Prometheus-metrics-endpoint-Repo-Avatar

Conversation

@SheyeJDev

Copy link
Copy Markdown

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

…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 …
@vercel

vercel Bot commented Apr 25, 2026

Copy link
Copy Markdown
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.

@drips-wave

drips-wave Bot commented Apr 25, 2026

Copy link
Copy Markdown

@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! 🚀

Learn more about application limits

@mftee mftee merged commit d220040 into CodeGirlsInc:main Apr 25, 2026
2 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants