Skip to content

Latest commit

 

History

History
33 lines (26 loc) · 917 Bytes

deployment_manifest.md

File metadata and controls

33 lines (26 loc) · 917 Bytes

Deployment Manifest Example

Use Cell.toml for deployment facts that must be visible to builders and release gates.

[package]
name = "token"
version = "0.1.0"

[deploy.ckb]
hash_type = "data2"
out_point = "0x0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef:0"
dep_type = "code"

[[deploy.ckb.cell_deps]]
name = "secp256k1"
out_point = "0xabcdefabcdefabcdefabcdefabcdefabcdefabcdefabcdefabcdefabcdefabcd:0"
dep_type = "dep_group"
hash_type = "type"

Validate the manifest through normal package commands and inspect metadata:

cellc info --json
cellc constraints examples/token.cell --target-profile ckb --json

The generated artifact must use data2, which selects the VM2 instruction set required by the 0.26 Zbb backend. External CellDeps retain their own declared hash types. The compiler rejects an unknown value or a primary deployment hash type other than data2.