Skip to content

Add integration test for the leaderboard endpoint returning creators sorted by holder count descending #680

Description

@Chucks1093

Summary

The leaderboard endpoint should return creators ordered by holder count descending. An integration test should seed creators with different holder counts and confirm the sort order is correct and stable when two creators share the same count.

Scope

  • Seed three creators with holder counts 50, 20, and 50
  • Call the leaderboard endpoint
  • Assert the two creators with 50 holders appear before the creator with 20
  • Assert the tie between the two creators with 50 holders is broken by creator address alphabetically
  • Assert the response includes rank, creator, holder_count, and current_price fields

Acceptance Criteria

  • Creators sorted descending by holder count
  • Tie broken alphabetically by creator address
  • All four required fields present in each entry
  • Creator with 20 holders ranked last

ETA: 12 hours


Coordinate on Telegram

Metadata

Metadata

Assignees

Labels

Stellar WaveIssues in the Stellar wave program

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions