feat: Soroban RPC client, idempotent DB writes, and Prometheus metrics (#349, #357, #356) - #380
Merged
cypriannwokolo2-creator merged 3 commits intoAug 31, 2026
Conversation
added 3 commits
August 31, 2026 10:41
…s validation, and claim-name security hardening (cocor-tech#341, cocor-tech#343, cocor-tech#334, cocor-tech#332)
|
Someone is attempting to deploy a commit to the Nzubechukwu 's projects Team on Vercel. A member of the Team first needs to authorize it. |
|
@linesofcodes0-cloud 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.
Closes #349
Closes #357
Closes #356
Fixes #349
Fixes #357
Fixes #356
Resolves #349
Resolves #357
Resolves #356
#349
#357
#356
Linked Issues
Summary
This PR resolves three frontend features/issues on
cocor-tech/moistello-frontend:1. Soroban RPC client with retry logic (Closes #349)
SorobanRpcClientinsrc/lib/soroban/rpc-client.ts.AbortController(30s default timeout).SorobanNetworkError,SorobanTimeoutError,SorobanRPCError,SorobanContractError).getHealth,getAccount,getTransaction,sendTransaction,simulateTransaction).src/lib/soroban/__tests__/rpc-client.test.ts.2. Idempotent DB writes for event processing (Closes #357)
IdempotentEventStoreinsrc/lib/events/idempotent-event-store.ts.INSERT ON CONFLICT (idempotency_key) DO NOTHINGquery builder.tx_hash:log_index).src/lib/events/__tests__/idempotent-event-store.test.ts.3. Prometheus metrics for indexer and API (Closes #356)
PrometheusRegistryinsrc/lib/metrics/prometheus-registry.tsand exposedGET /api/metricsinsrc/app/api/metrics/route.ts.events_processedcounter (event_type,status).events_failedcounter (error_type).cursor_laggauge.db_write_latencyhistogram with configurable buckets.reconciler_runscounter (status).GET /api/metricsreturning Prometheus text exposition format (text/plain; version=0.0.4; charset=utf-8).src/lib/metrics/__tests__/prometheus-registry.test.tsandsrc/app/api/metrics/__tests__/route.test.ts.Verification