Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

feat: look up a pool by id

Aperta
#72 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
39/100
Tipo di issue
Funzionalità
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
typescript
Ambito
data, full-stack

Direzione di ricerca

Start with worker/src/stats.ts and inspect how the indexer records pool owners and aggregates PoolRedeemed bytes; trace the existing static export and pool data flow to identify where per-pool records can be supplied. Then review the relevant UI entry point and its typecheck and lint commands. Done means the acceptance criteria are met, including lookup validation and not-found feedback, accessible themed UI, and passing pnpm typecheck && pnpm lint.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

feature frontend indexer

Add a search input where a user enters a pool ID and sees that pool's details.

Today the stats file only records each pool's owner (poolOwners, keyed by poolId) and folds PoolRedeemed bytes into region totals, so the indexer (or a direct PaymentPool read) needs to keep a per-pool record before most fields can show.

Missing data: status (open/closed), nodes paid from the pool, capacity / balance, usage (bytes redeemed per pool), stake / rewards, creation date (PoolOpened block timestamp).

Acceptance criteria

  • Search input accepts a pool ID (32-byte hex) and submits on Enter or a button
  • Shows the pool's owner, status, nodes, capacity, usage, stake/rewards and creation date
  • Malformed IDs show a clear validation error without a lookup
  • Well-formed IDs with no matching pool show a clear "pool not found" message
  • Indexer (or contract read) provides the per-pool fields above; schema change follows worker/src/stats.ts
  • Works on the static export, keyboard accessible, in light and dark themes
  • pnpm typecheck && pnpm lint pass
Lingua principale
TypeScript
Stelle
2
Fork
0
Merge medio
10h 46m
PR unite (30g)
37

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di decdn/stats

Tutte le issue di decdn/stats

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.