Skip to content

[P2] Add Stellar event indexing service #13

Description

@Obiajulu-gif

Priority

P2

Difficulty

Advanced

Task

Create a Stellar event indexing service that can sync Stellar activity into MongoDB for dashboards.

Suggested file

lib/stellar/indexer.ts

Expected behavior

The service should:

  • read from Stellar network sources through the client helper
  • support cursor or checkpoint storage
  • store idempotency keys
  • map events to ChainMove records
  • avoid duplicate processing

Acceptance criteria

  • Indexer has mock mode.
  • Indexer stores last processed cursor or checkpoint.
  • Indexer handles duplicate events safely.
  • Indexer maps event types to app-level records.
  • Tests use mocked Stellar responses.

Test requirement

Add tests for first sync, repeated sync with same cursor, duplicate event handling, failed upstream request, and mock event mapping.

Evidence required

  • Screenshot of tests passing.
  • Screenshot of mock indexing logs.
  • Screenshot of MongoDB/mock output if available.

Commands

npm run lint
npm run typecheck --if-present
npm run build

Metadata

Metadata

Assignees

Labels

GrantFox OSSIssue tracked in GrantFox OSSMaybe RewardedIssue may be eligible for a GrantFox rewardOfficial CampaignCampaign: Official Campaign

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions