Skip to content

core: implement contract event replay and indexing support #17

@EmeditWeb

Description

@EmeditWeb

Problem

The API cannot efficiently track historical contract
events. Soroban events are ephemeral. There is no
mechanism for the indexer to know which events it
has already processed.

What To Build

  1. Add sequence numbers to all events
  2. Add get_sequence() view function
  3. Standardize event topic structure
  4. Add get_event_count()

Files To Touch

All 5 contract events.rs, lib.rs, storage.rs files

Acceptance Criteria

  • All events include sequence number
  • Sequence increments on every mutation
  • get_sequence() returns accurate count
  • Event topics follow standard structure
  • API can detect gaps in event sequence

Mandatory Checks Before PR

  • cargo build passes
  • All tests pass
  • PR references this issue

Metadata

Metadata

Assignees

No one assigned

    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