feat(tools): add Soroban ledger-events-backfill CLI (#560) - #666
Open
oluwaseyi1996-netizen wants to merge 1 commit into
Open
feat(tools): add Soroban ledger-events-backfill CLI (#560)#666oluwaseyi1996-netizen wants to merge 1 commit into
oluwaseyi1996-netizen wants to merge 1 commit into
Conversation
Add a standalone Node.js CLI for range-based, checkpointed backfill of
Soroban contract events with structured progress logs and Prometheus
metrics. The tool runs independently of the NestJS backend so it can be
invoked from cron, CI, or operator scripts without booting the full
API.
Acceptance criteria:
- Range-based: --start / --end Soroban ledger sequences
- Safe resume: atomic checkpoint file (tmp + rename); idempotent
complete(); compatibility check rejects mismatched intent
- Progress logs: stderr in pretty or JSON format with batch progress
- Metrics: Prometheus text-format file with +Inf bucket, sorted,
including counters, gauges, and histograms
Layout:
tools/ledger-events-backfill/ CLI + tests
.github/workflows/ledger-events- CI for the new tool
backfill-ci.yml
Tests use node:test with an in-memory MockSorobanServer so the suite
runs offline without Soroban RPC access. End-to-end spec exercises
fresh runs, resume from a pre-existing checkpoint, --status,
incompatible metadata rejection, and --reset.
|
Someone is attempting to deploy a commit to the Cedarich's projects Team on Vercel. A member of the Team first needs to authorize it. |
|
@oluwaseyi1996-netizen 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! 馃殌 |
Contributor
|
@oluwaseyi1996-netizen fix workflow |
Author
|
Okay |
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.
Add a standalone Node.js CLI for range-based, checkpointed backfill of Soroban contract events with structured progress logs and Prometheus metrics. The tool runs independently of the NestJS backend so it can be invoked from cron, CI, or operator scripts without booting the full API.
Acceptance criteria:
Layout:
tools/ledger-events-backfill/ CLI + tests
.github/workflows/ledger-events- CI for the new tool
backfill-ci.yml
Tests use node:test with an in-memory MockSorobanServer so the suite runs offline without Soroban RPC access. End-to-end spec exercises fresh runs, resume from a pre-existing checkpoint, --status, incompatible metadata rejection, and --reset.
closes #560