Skip to content

[Backend] backend/src/services/indexerService.ts and soroban-indexer.service.ts have near-identical names but different responsibilities, confusing new contributors #1096

Description

@grantfox-oss

Join our community: https://t.me/+DOylgFv1jyJlNzM0

Why this matters

backend/src/services/indexerService.ts and backend/src/services/soroban-indexer.service.ts sit side by side with overlapping names (one is camelCase-named, the other kebab-with-suffix), and separately from backend/src/workers/soroban-event-worker.ts which is flagged elsewhere as running a second, racing indexer. Beyond the functional race already tracked, the naming itself makes it hard for a new contributor to know which file to read first when debugging indexing.

Acceptance criteria

  • Document (in a code comment or docs/ARCHITECTURE.md) which service is the source of truth and which is legacy/being phased out
  • Align file naming convention (both kebab-case with .service.ts, or both camelCase) once the functional consolidation (tracked separately) lands

Files to touch

  • backend/src/services/indexerService.ts
  • backend/src/services/soroban-indexer.service.ts
  • docs/ARCHITECTURE.md

Out of scope

  • Fixing the double-indexer race condition itself (tracked separately)
  • Renaming worker files

Metadata

Metadata

Assignees

Labels

GrantFox OSSIssue tracked in GrantFox OSSMaybe RewardedIssue may be eligible for a GrantFox rewardOfficial Campaign | FWC26Campaign: Official Campaign | FWC26Stellar WaveIssues in the Stellar wave programbackendBackend related tasksrefactorRefactoring existing code

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions