feat: look up a pool by id
维护者通常 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 内容生成。
描述
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 lintpass
- 主要语言
- TypeScript
- 星标
- 2
- 派生
- 0
- 平均合并
- 10 小时 46 分钟
- 30 天内合并 PR
- 37
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
decdn/stats 的其他 Issue
-
bug good first issue
难度 2/5 1-3 小时 新手友好度 72/100
维护者通常 1 天内回复
-
feature frontend indexer
难度 3/5 1-2 天 新手友好度 62/100
维护者通常 1 天内回复
-
feat: mark Labs nodes and pools, and show external nodes and external bytes as their own counters未关闭enhancement
难度 4/5 3-5 天 新手友好度 35/100
维护者通常 1 天内回复
-
enhancement
难度 4/5 3-5 天 新手友好度 42/100
维护者通常 1 天内回复
-
feat: add a world map of nodes by region可能已有人在做 @yigitdot 于 30 天前认领。 未关闭enhancement
难度 4/5 3-5 天 新手友好度 22/100
维护者通常 1 天内回复
相似的 Issue
-
area:cli bug P4
难度 2/5 1-3 小时 新手友好度 82/100
维护者通常 1 天内回复
-
bug from-studio
难度 2/5 1-3 小时 新手友好度 65/100
esengine/DeepSeek-Reasonix#14868 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 82/100
linxiv-dev/linXiv#384 · 1 条评论 ·
维护者通常 1 天内回复
-
scope:core type:security
难度 2/5 1-3 小时 新手友好度 75/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 66/100
mailgun/mailgun.js#544 ·