全部经验 · Developer tooling · 从这里开始 · 术语表
Derive devnet Spore and system script cell deps from a fresh OffCKB export实践再次出现
再次出现 · 核对结果:部分正确 · 核对于 2026-11-19
Do not hardcode devnet code hashes and cell dep out points (secp256k1, Spore, cluster) in an example: they come from the local OffCKB devnet and can drift when OffCKB's bundled scripts change. Export them with `offckb system-scripts --network devnet --export-style ccc` before start, fail if a needed script lacks codeHash, hashType or a cellDep outPoint, and build both the CCC client config and the Spore SDK lumos config from that one file.
为什么重要: Hardcoded devnet out points and code hashes go stale when the OffCKB devnet changes, so the CCC client and the Spore SDK end up pointing at wrong or missing cell deps and transactions fail.
同一提交中改动了测试
它与修复在一起,我们没有运行它。
- LusoCryptoLabs/docs.nervos.org:
examples/dApp/create-dob/scripts/devnet-lumos-config.test.cjs,examples/dApp/create-dob/scripts/sync-devnet-system-scripts.test.cjs,examples/dApp/simple-lock/scripts/deploy.test.js,examples/dApp/simple-lock/tests/frontend-transaction.test.ts,examples/dApp/simple-transfer/scripts/sync-devnet-system-scripts.test.cjs - nervosnetwork/docs.nervos.org:
examples/dApp/create-dob/scripts/devnet-lumos-config.test.cjs,examples/dApp/create-dob/scripts/sync-devnet-system-scripts.test.cjs,examples/dApp/simple-lock/scripts/deploy.test.js,examples/dApp/simple-lock/tests/frontend-transaction.test.ts,examples/dApp/simple-transfer/scripts/sync-devnet-system-scripts.test.cjs
- 概念
- Cell deps and script lookup, Testing and devnet
- 证据
- 再次出现: 在两个或以上项目中出现
- 首次出现
- 2026-09-29
- 最近改动
- 2026-09-29
- 最近核对
- 2026-11-19
- 对照提交的核对结果
- 部分正确:核心属实,但有一部分表述松散或范围过宽
来源(2)
- 2026-09-29 · LusoCryptoLabs/docs.nervos.org · 这个项目的更多经验
- 2026-09-29 · nervosnetwork/docs.nervos.org · 这个项目的更多经验
更多关于Developer tooling
- Saved transaction test vectors go stale when their cell deps are spent
- Mock transactions must expand dep_group members
- ckb-vm-js 0.2.0 (npm) checks header hash instead of rejecting the field
引用这条经验
LusoCryptoLabs, "Derive devnet Spore and system script cell deps from a fresh OffCKB export", CKB lessons, https://pulse.lusocryptolabs.com/learned/tooling/derive-devnet-spore-and-system-script-cell-deps-from-a-fresh, CC BY 4.0, last changed 2026-09-29.