Skip to content

Add leaderboard query: top users by wrap count #68

Description

@Calebux

Problem

No way to query top users by number of wraps. Useful for gamification and frontend leaderboards.

Considerations

Soroban storage doesn't support range queries. Options:

  1. Off-chain indexing — index events, build leaderboard in backend (recommended)
  2. On-chain sorted list — maintain a top-N list on-chain (expensive)

Acceptance Criteria

  • Decision: on-chain vs off-chain leaderboard
  • If off-chain: document event schema for indexers
  • If on-chain: implement top-N tracking with bounded storage

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions