Summary
The wallet holdings, activity feed, and key holders endpoints all need cursor-based pagination. Each currently implements pagination logic independently. A shared pagination helper that accepts a query builder, page size, and cursor should be used across all list endpoints.
Scope
- Add a
paginateQuery(query, { cursor, limit }) helper that appends cursor filtering and limit to a query
- Returns
{ data, nextCursor, hasMore }
- Add unit tests for: first page with no cursor, subsequent page with cursor, last page where hasMore is false
Acceptance Criteria
ETA: 12 hours
Coordinate on Telegram
Summary
The wallet holdings, activity feed, and key holders endpoints all need cursor-based pagination. Each currently implements pagination logic independently. A shared pagination helper that accepts a query builder, page size, and cursor should be used across all list endpoints.
Scope
paginateQuery(query, { cursor, limit })helper that appends cursor filtering and limit to a query{ data, nextCursor, hasMore }Acceptance Criteria
hasMore: falseand no next cursorETA: 12 hours
Coordinate on Telegram