Skip to content

feat: Add Active Provers and Miner Count to PoVW Cycles tab - #43

Merged
mintybasil merged 2 commits into
mainfrom
zeroklaw/add-active-provers-miner-count
May 11, 2026
Merged

feat: Add Active Provers and Miner Count to PoVW Cycles tab#43
mintybasil merged 2 commits into
mainfrom
zeroklaw/add-active-provers-miner-count

Conversation

@zeroklaw

Copy link
Copy Markdown
Member

Summary

Adds two new statistics to the "Latest Epoch" grid in the PoVW Cycles tab:

  1. Active Provers — number of provers active on the market in the last 24 hours, fetched from a new /api/provers-count endpoint (proxies explorer.boundless.network/api/base/provers/summary/1d, cached in KV for 10 minutes)

  2. Miner Count — number of unique miners in the latest finalized epoch, sourced from the existing /api/epochs endpoint's num_participants field

Changes

  • functions/api/epochs.ts — Add miner_count field to EpochData interface and normaliseEntries mapping (from upstream num_participants)
  • functions/api/provers-count.ts — NEW: Pages Function that proxies the provers summary endpoint, counts entries, returns { active_provers: number }
  • src/lib/parseEpochs.ts — Add miner_count: number to frontend EpochData type
  • src/lib/parseEpochs.test.ts — Add miner_count to all mock epoch objects
  • src/components/tabs/PovwCycles.tsx — Add activeProvers state + fetch, latestMinerCount computed value, two new stat cards with tooltips, expand grid to 7 columns
  • src/data/epochs.json — Add miner_count: 7 to all 100 fallback entries

Closes #41

zeroklaw added 2 commits May 11, 2026 16:02
- Add miner_count field to EpochData (API and frontend)
- Map num_participants from upstream mining API to miner_count
- Add Active Provers card fetching from /api/provers-count
- Add Miner Count card displaying latest epoch's miner_count
- Expand Latest Epoch grid from 5 to 7 columns
- Update epochs.json fallback data with miner_count field
- Add tooltip icons for both new stat cards

Closes #41
@github-actions

Copy link
Copy Markdown

Preview deployment

URL
Latest commit https://e3aaff5f.boundless-profit-explorer.pages.dev
Branch alias https://head.boundless-profit-explorer.pages.dev

The branch alias URL always points to the latest commit on this PR.

@zeroklaw
zeroklaw marked this pull request as ready for review May 11, 2026 16:14
@mintybasil
mintybasil merged commit 99537f6 into main May 11, 2026
1 check passed
@mintybasil
mintybasil deleted the zeroklaw/add-active-provers-miner-count branch May 11, 2026 18:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add active provers and miner count to POVW page

2 participants