( ctx: HistoryAuthCtx, limit = HISTORY_PAGE_SIZE, )
| 71 | * has_more=true means older events exist. |
| 72 | */ |
| 73 | export async function fetchLatestEvents( |
| 74 | ctx: HistoryAuthCtx, |
| 75 | limit = HISTORY_PAGE_SIZE, |
| 76 | ): Promise<HistoryPage | null> { |
| 77 | return fetchPage(ctx, { limit, anchor_to_latest: true }, 'fetchLatestEvents') |
| 78 | } |
| 79 | |
| 80 | /** Older page: events immediately before `beforeId` cursor. */ |
| 81 | export async function fetchOlderEvents( |
no test coverage detected