Skip to content

Add a bounded, nullable-aware wallet balance consumer - #9

Merged
gjwang merged 2 commits into
mainfrom
feat/wallet-balance-consumer-20261020
Oct 20, 2026
Merged

gjwang merged 2 commits into
mainfrom
feat/wallet-balance-consumer-20261020

Conversation

@gjwang

@gjwang gjwang commented Oct 20, 2026 •

Copy link
Copy Markdown
Contributor

钱包资产接入需要正确处理 Data API 的响应封装、可空元数据和多页结果。本变更新增可选的只读 TypeScript 消费模块:保留余额整数字符串及未知 decimals/symbol,逐页收集并保留原 meta;后页错误、重复 token、循环游标、超过页数或已知快照时间变化时整体拒绝。任一页快照时间未知,汇总 refreshedAt 保持 null。原 npm start 开户/RPC 流程不变,英文与中文 README 增加服务端调用示例。

最终源码 b8991f1 经独立源码复审 APPROVE。Leader Node 24.21.0 实跑 npm test:85通过/0失败/0跳过,npm run typecheck 通过;本 PR 原生 Node24 CI同为85通过/0跳过、类型检查通过。16项新增离线测试覆盖封装、精度、null、游标、限额和失败传播。初版混合未知时间汇总问题经独审阻断,同一反例已实跑修复前失败→修复后通过,并保留原结果。未调用真实 API、创建账号、交易或验证任何链的实际余额数据覆盖。

验收项: OFFLINE_WALLET_BALANCE_CONSUMER

@gjwang
gjwang marked this pull request as ready for review October 20, 2026 06:55
@gjwang
gjwang merged commit d4919ef into main Oct 20, 2026
1 check passed
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.

1 participant