Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

README.md

Parachain Runtime

A Cumulus-based parachain runtime built on polkadot-sdk stable2512-3. Compatible with polkadot-omni-node for local development.

What's Included

  • Core pallets: System, Balances, Aura, Session, Sudo, XCM, Cumulus message queue
  • Membership (index 51): homes, blocks, committee, elections, encrypted PII — see ../pallets/membership/
  • Governance (index 52): proposals, Groth16 ZK voting, declining quorum, comments — see ../pallets/governance/

Source Layout

File Purpose
src/lib.rs Runtime definition, opaque types, version, runtime APIs
src/configs/mod.rs Pallet configuration (System, Balances, Membership, Governance, ...)
src/configs/xcm_config.rs XCM cross-chain messaging configuration
src/genesis_config_presets.rs Genesis presets for dev and testnet
src/genesis_content.rs Auto-generated IPFS CIDs and encrypted phone ciphertexts (scripts/pin-genesis-content.mjs)
src/weights/ Auto-generated weight files per pallet

Commands

# Build the runtime (WASM + native)
cargo build -p stack-template-runtime --release

# Run tests
cargo test -p stack-template-runtime

# Run all workspace tests including benchmarks
cargo test --workspace --features runtime-benchmarks

The compiled WASM blob is output to:

target/release/wbuild/stack-template-runtime/stack_template_runtime.compact.compressed.wasm

See ../README.md for full blockchain build and run instructions.