Skip to content

[Frontend] StreamEventType union missing FEE_COLLECTED #576

@ogazboiz

Description

@ogazboiz

Telegram: https://t.me/+DOylgFv1jyJlNzM0

Why this matters

frontend/src/lib/api-types.ts defines StreamEventType as CREATED | TOPPED_UP | WITHDRAWN | CANCELLED | COMPLETED | PAUSED | RESUMED — it omits FEE_COLLECTED, which the backend emits and stores (see prisma/schema.prisma and the /v1/events filter enum). BackendStreamEvent.eventType is consequently too narrow; a FEE_COLLECTED event from the API is not representable in the type, and exhaustive switches over event types won't account for it.

Acceptance criteria

  • Add "FEE_COLLECTED" to the StreamEventType union
  • typecheck passes; any switch/style maps that enumerate event types are reviewed (e.g. EVENT_STYLES in stream-detail already includes FEE_COLLECTED)

Files to touch

  • frontend/src/lib/api-types.ts

Out of scope

Metadata

Metadata

Labels

Stellar WaveIssues in the Stellar wave programfrontendFrontend related tasksgood first issueGood for newcomers

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