Todas as lições · Developer tooling · Começa aqui · Glossário
Derive devnet Spore and system script cell deps from a fresh OffCKB exportPráticoVista outra vez
Vista outra vez · Verificação: em parte certa · Verificada em 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.
Porque importa: 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.
Um teste mudou no mesmo commit
Está ao lado da correcção. Nós não o corremos.
- 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
- Conceitos
- Cell deps and script lookup, Testing and devnet
- Evidência
- Vista outra vez: vista em dois ou mais projetos
- Vista pela primeira vez
- 2026-09-29
- Última mudança
- 2026-09-29
- Última verificação
- 2026-11-19
- Verificação contra o commit
- em parte certa: um núcleo verdadeiro, com uma parte solta ou demasiado larga
Fontes (2)
- 2026-09-29 · LusoCryptoLabs/docs.nervos.org · mais deste projeto
- 2026-09-29 · nervosnetwork/docs.nervos.org · mais deste projeto
Mais sobre 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
Manténs um projeto de onde esta lição veio? Confirma ou corrige
Citar esta lição
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.