Skip to content

Standardized event schema & indexing docs #222

Description

@DevMuhdishaq

Description
Off-chain consumers (dashboards, the market-data-streaming component) need a consistent, documented event schema across swaps, liquidity, staking, orders, and governance.

Direction

  • Audit events.rs and each module's emissions; normalize topic naming and payload structs.
  • Ensure every state-mutating public function emits a typed event with a versioned schema tag.
  • Document the full event catalog in counter/EVENTS.md (topic, fields, emitting function).

Acceptance criteria

  • Every mutating entry point emits at least one event (verified by test assertions).
  • Event topics follow a single documented naming convention.
  • EVENTS.md lists all events with fields and source functions.
  • A test subscribes to and asserts event payloads for swap, add/remove liquidity, stake, and order placement.

Metadata

Metadata

Assignees

Labels

GrantFox OSSIssue tracked in GrantFox OSSMaybe RewardedIssue may be eligible for a GrantFox rewardOfficial Campaign | FWC26Campaign: Official Campaign | FWC26

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions