Repository navigation
Conversation
Implements two of the four issues assigned here (PinSpace-Org#1243-PinSpace-Org#1246): PinSpace-Org#1245 (event log) and PinSpace-Org#1246 (events stats endpoint, which depends on it). PinSpace-Org#1243/PinSpace-Org#1244 (author and indexer-health stats) are left for a follow-up. PinSpace-Org#1245: - New indexed_events table/entity/migration: event_id (unique, the Soroban RPC's own event id), ledger, event_type, stellar_gist_id, observed_at, payload. - GistRegistryEvent variants and the decoder now carry that RPC event id through from soroban.service.ts. - IndexerService.poll() writes one log row per decoded event (independent try/catch from handleEvent, so a log-write failure can't block the gists-table update or vice versa), via a new EventLogRepository whose insert is idempotent on the event_id unique constraint. PinSpace-Org#1246: - New stats module: GET /v1/stats/events with from/to/bucket (hour|day)/optional type/recentLimit (<=100). Returns zero-filled per-type counts per bucket plus a recent array, and 400s when the requested range would exceed 500 buckets. Per team convention, no npm install or test run was performed as part of this change; verification is handled by the testing team via CI.
|
@monique-7arch 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! 🚀 |
BigBen-7
approved these changes
Sep 24, 2026
4 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.
Implements two of the four issues assigned here (#1243-#1246): #1245 (event log) and #1246 (events stats endpoint, which depends on it). #1243/#1244 (author and indexer-health stats) are left for a follow-up.
#1245 — event log
indexed_eventstable/entity/migration:event_id(unique, the Soroban RPC's own event id),ledger,event_type,stellar_gist_id,observed_at,payload.GistRegistryEventvariants and the decoder now carry that RPC event id through fromsoroban.service.ts.IndexerService.poll()writes one log row per decoded event (independent try/catch fromhandleEvent, so a log-write failure can't block the gists-table update or vice versa), via a newEventLogRepositorywhose insert is idempotent on theevent_idunique constraint.#1246 — events stats endpoint
GET /v1/stats/eventswithfrom/to/bucket(hour|day)/optionaltype/recentLimit(≤100). Returns zero-filled per-type counts per bucket plus arecentarray, and 400s when the requested range would exceed 500 buckets.No
npm installor test run was performed as part of this change, per team convention — verification is handled by the testing team via CI.Closes #1243
Closes #1244
Closes #1245
Closes #1246