Milestone 1 Progress Update — fiber-checkout
Core library is in good shape.
GitHub - salmansarwarr/Fiber-checkout · GitHub
• useFiberInvoice and useFiberPayment hooks are done and working correctly — invoice generation, 2s polling, all 5 status mappings, expiry detection, and callback wiring
• component with full props API (amount, asset, nodeUrl, onSuccess, onExpired, onError, dangerouslyAllowDirectRpc)
• FiberError typed error class with code, message, factory methods, and type guard
• Dual CJS + ESM build output with TypeScript strict mode and ≥80% coverage threshold enforced
• Next.js proxy reference implementations for both App Router and Pages Router
• Testnet integration script covering CKB + RUSD invoice creation, status polling, and end-to-end payment
Two items remain before the milestone is signed off:
1. SEAL asset — UDT type script and registry entry needed (CKB and RUSD are done)
2. feePaid — currently always null; needs a get_payment call on success to populate the fee
Also pending: npm publish and improvement of frontend.
Next up: resolving the twoblockers above, cutting the npm release, and getting the demo deployed with real transaction evidence.
里程碑 1 进展更新 — fiber-checkout
核心库已基本完善。
GitHub - salmansarwarr/Fiber-checkout · GitHub
• useFiberInvoice 和 useFiberPayment hooks 已完成并正常工作 —— 支持发票生成、2 秒轮询、全部 5 种状态映射、过期检测以及回调绑定
• 组件,提供完整的 props API(amount、asset、nodeUrl、onSuccess、onExpired、onError、dangerouslyAllowDirectRpc)
• FiberError 类型化错误类,包含 code、message、工厂方法以及类型守卫
• 支持 CJS + ESM 双构建输出,启用 TypeScript 严格模式,并强制 ≥80% 测试覆盖率
• 提供 Next.js 代理参考实现(支持 App Router 和 Pages Router)
• 测试网集成脚本,覆盖 CKB + RUSD 发票创建、状态轮询以及端到端支付流程
在里程碑签署前还剩两个事项:
-
SEAL 资产 —— 需要完成 UDT 类型脚本及注册表条目(CKB 和 RUSD 已完成)
-
feePaid —— 当前始终为 null;需要在成功后调用 get_payment 来填充手续费
此外仍待完成:npm 发布以及前端优化。
下一步:解决上述两个阻塞项,发布 npm 版本,并部署带有真实交易证明的演示。