Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

feat: look up a pool by id

未关闭
#72 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
5/5
预计耗时
一周以上
新手友好度
39/100
Issue 类型
功能
描述清晰度
描述清楚
活跃度
活跃
技术栈
typescript
领域
data, full-stack

调研方向

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.

由索引模型根据 Issue 内容生成。

描述

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
主要语言
TypeScript
星标
2
派生
0
平均合并
10 小时 46 分钟
30 天内合并 PR
37

环境准备

这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

decdn/stats 的其他 Issue

查看 decdn/stats 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。