Skip to content

Add Soroban contract event filtering and search #136

Description

@Just-Bamford

Problem

\subscribeContractEvents()\ emits all events. No way to search historical events or filter by criteria.

Solution

Implement \queryContractEvents(contractId, filter?: EventFilter)\ in \src/soroban/index.ts. Searches Horizon for matching events.

Acceptance Criteria

  • Function added to \src/soroban/index.ts\
  • Accepts event name, topic patterns
  • Returns filtered event array
  • Tests cover various filters

Note for contributors

Reference Soroban event structure. Add tests to \src/tests/soroban.test.ts.

Metadata

Metadata

Labels

Stellar WaveIssues in the Stellar wave programenhancementNew feature or requestsmart-contractSoroban contract related

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