Skip to content

Implement event polling loop #29

Description

@pragmaticAweds

Repository

This issue belongs in Fundable-Protocol/Backend under indexer/.

Migrated from https://github.com/Fundable-Protocol/stellar_indexer/issues/10.

Context

The indexer needs a core loop that fetches Soroban events from a cursor position and sends them to registered handlers.

Scope

  • Read current cursor
  • Fetch events from Soroban RPC by ledger range
  • Dispatch events to handlers
  • Advance cursor only after successful processing
  • Add tests with mocked RPC and repositories

Out of Scope

  • Unrelated package work
  • Docker, CI, or deployment work unless named in scope
  • Broad refactors outside the touched package

Acceptance Criteria

  • Scope items are complete
  • Relevant tests are added or updated
  • Documentation is updated when needed
  • bun run type-check passes
  • bun run test passes
  • bun run lint passes
  • bun run indexer:type-check passes
  • bun run indexer:test passes
  • bun run indexer:lint passes

Dependencies

Suggested Files or Packages

  • indexer/common/src/poller/

Metadata

Metadata

Labels

Stellar WaveIssues in the Stellar wave program

Type

No type
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