( English below )
这是什么?为什么要做在 CKB 上?
CellCat 是一个跑在 CKB 上的全链上基因猫小游戏,玩法很简单:领养 → 配对产蛋 → 等出块孵化 → 挂单交易 / 熔猫。
选 CKB 带来的特性:
- 猫有真地板价:每只猫都是一个真实的 Cell,喂食就是往里存 CKB;不想玩了随时“熔猫”,Cell 里的 CKB 全退回钱包。
- 不存图,链上算基因:每只猫只存 32 字节 DNA(显性+隐性基因),繁殖先产蛋、到指定块高取区块头做随机源,链上重算 DNA 防作弊。
- 无托管原子交易:用
sale-lock挂单,买家付够 CKB 直接换锁成交,卖家随时撤单,不需要把猫转给平台托管。 - 零门槛:接入 JoyID,不用装插件背助记词,打开网页就能玩。
目前已经做完的部分(本地 Devnet 已跑通)
- 4 个 Rust 合约(
cat-type、egg-type、sale-lock、config-type):纯手写字节布局和ckb_std::syscalls,避开了riscv64imac原子指令的坑。 - 跨端基因库:Rust(
no_std)和前端 JS 逐字节一致,有 82 条自动化校验向量。 - 合约测试:
ckb-testtool写了 20 多个正常和异常用例(防改 DNA、冷却、次数上限、繁育费、区块头、挂单少付/错付等),已全过。 - 移动端网页:猫舍、繁育、集市、明信片生成和基础社交交互在本地 devnet 上已经能玩。
开发规划
- 第 1 周:完善玩法机制;美化视觉资产;复查合约的边界;测试经济学可持续性;部署到 CKB Testnet 。做数据统计 dashboard。
- 第 2 周:上公网 HTTPS 服务器,小范围拉 20–50 个内测玩家,实测领养、繁殖孵化、买卖、喂食和熔猫全流程。
- 第 3 周:内测收尾,发放激励,汇总反馈。进一步完善代码。
- 第 4 周:接通 JoyID(Testnet)。交付代码、演示录屏。
验收
- 直接玩:打开公网链接,用 JoyID 领猫、配种、等孵化、去集市挂单/买猫、熔掉退回 CKB,全流程可以体验验证。
- 查浏览器:结项时我会把 4 个合约的部署哈希,以及领养、繁殖、孵化、成交、熔猫的 Testnet 交易哈希全贴出来啊。 ,直接在 Explorer 上对账。
- 看录屏:附一段 2 分钟无剪辑实操录屏。
- 跑源码测试:拉下仓库直接在本地或者服务器部署运行
预算:$680
| 项目 | 说明 | 金额 |
|---|---|---|
| 人工工时 | 30 小时 × $15/小时 | $450 |
| AI Token | 编码 + 排查测试 + 猫猫部件美术素材优化 | $100 |
| 内测用户激励 | 发给参与完整测试和报有效 Bug 的社区玩家(规则和转账记录全公开) | $100 |
| 服务器 | 云服务器 + 域名/HTTPS(覆盖内测及结项展示) | $30 |
| 合计 | $680 |
关于我
简介:业余全栈开发,ckb123.com(已下线)站长,CKB 主网启动参与者之一
GitHub: cool007zqw (Enzo Zheng) · GitHub 大部分项目涉及工作或个人信息因此没有设为公开可见
联系:请直接通过 Nervos Talk 联络
What Is This, and Why Build It on CKB?
CellCat is a fully on-chain genetic cat game built on CKB. The gameplay is simple: Adopt → Breed to produce eggs → Wait for block-based hatching → List for sale or burn cats.
Why CKB?
Real floor value for every cat: Each cat is represented by a real Cell. Feeding a cat means depositing CKB into its Cell. If you no longer want to play, you can simply “burn” the cat and recover all the CKB stored in its Cell back to your wallet.
No images stored on-chain; genetics are computed on-chain: Each cat stores only 32 bytes of DNA (dominant + recessive genes). Breeding first produces an egg. Once a designated block height is reached, the block header is used as a randomness source, and the DNA is recomputed on-chain to prevent cheating.
Non-custodial atomic trading: Cats are listed using sale-lock. Buyers can complete a purchase by paying the required amount of CKB and unlocking the transaction directly. Sellers can cancel their listings at any time. Cats never need to be transferred to a platform for custody.
Zero-friction onboarding: Integrated with JoyID. No browser extensions or seed phrases required. Just open the website and start playing.
What Has Been Completed So Far
The entire system has been successfully tested on a local Devnet.
Smart contracts
- Four Rust contracts implemented: “cat-type”, “egg-type”, “sale-lock”, and “config-type”.
- Handwritten byte layouts and “ckb_std::syscalls” are used to avoid issues with unsupported atomic instructions in “riscv64imac”.
Cross-platform genetics library
- The Rust (“no_std”) and frontend JavaScript implementations produce byte-for-byte identical results.
- 82 automated test vectors are in place to verify consistency.
Smart contract testing
- More than 20 test cases implemented using “ckb-testtool”, covering both normal and edge cases.
- Test coverage includes DNA tampering prevention, cooldowns, breeding limits, breeding fees, block header validation, and underpayment/incorrect payment during marketplace transactions.
- All tests are passing.
Mobile-friendly web application
- The cattery, breeding system, marketplace, postcard generation, and basic social interactions are all playable on the local Devnet.
Development Roadmap
Week 1:
- Finalize gameplay mechanics.
- Polish visual assets.
- Review smart contract edge cases.
- Evaluate the economic sustainability of the game.
- Deploy to CKB Testnet.
- Build a data analytics dashboard.
Week 2:
- Launch a public HTTPS server.
- Recruit 20–50 players for a small closed beta.
- Test the complete user journey, including adoption, breeding, hatching, trading, feeding, and burning cats.
Week 3:
- Wrap up the closed beta.
- Distribute participation incentives.
- Collect and review user feedback.
- Further improve the codebase.
Week 4:
- Integrate JoyID on Testnet.
- Deliver the source code and a recorded demonstration.
Acceptance Criteria
- Play the game directly
Open the public URL and use JoyID to adopt cats, breed them, wait for eggs to hatch, list or purchase cats on the marketplace, and burn cats to recover their CKB. The entire gameplay loop will be publicly accessible and verifiable.
- Verify on the blockchain
At project completion, I will publish the deployment transaction hashes of all four smart contracts, along with the Testnet transaction hashes for adoption, breeding, hatching, successful trades, and cat burning.
Everything can be independently verified and reconciled directly through the CKB Explorer.
- Watch an unedited demo
A two-minute, unedited screen recording demonstrating the actual gameplay will be provided.
- Run the source code and tests
Clone the repository and deploy and run the project locally or on your own server.
Budget
Total budget: $680
Item| Description| Amount
Development labor| 30 hours × $15/hour| $450
AI tokens| Coding, debugging, testing, and optimization of cat visual assets| $100
Beta tester incentives| Rewards for community members who complete testing and report valid bugs (all rules and transaction records will be public)| $100
Server| Cloud server, domain, and HTTPS (covering the beta and final demonstration)| $30
Total| | $680
About Me
Background: Hobbyist full-stack developer, founder of ckb123.com (now offline), and one of the early participants in the CKB Mainnet launch.
GitHub: Most of my projects involve work-related or personal information, so their repositories are not publicly accessible.
Contact: Please reach out to me directly via Nervos Talk.
