mirror of
https://github.com/pezkuwichain/pez-solochain-template.git
synced 2026-04-21 23:47:59 +00:00
1.7 KiB
1.7 KiB
Pezkuwi Solochain Template
A minimal, ready-to-use solochain template built with the Pezkuwi SDK. This template provides a starting point for building custom blockchains (Solochains) within the Pezkuwi ecosystem using Bizinikiwi (our Substrate fork) and Pezframe.
🚀 Getting Started
Follow these steps to get started with the Pezkuwi Solochain Template:
1. Prerequisites
Ensure you have the following installed:
- Rust (stable and nightly)
- Clang and LLVM
- Pezkuwi SDK environment (see docs.pezkuwichain.io)
2. Build
Build the node in release mode:
cargo build --release
3. Run
Run the temporary node in developer mode:
./target/release/pez-solochain-template-node --dev
This command will:
- Start a single-node development chain.
- Keep the state in a temporary directory.
- Expose RPC and WebSocket ports.
🏗️ Structure
This repository is structured as follows:
node/: The blockchain node logic (CLI, RPC, Service).runtime/: The runtime logic, aggregating all pezpallets.pallets/: Custom runtime modules (Pezpallets).template/: A sample pezpallet demonstrating storage, events, and errors.
🛠️ Customization
To customize this template:
- Modify the Runtime: Edit
runtime/src/lib.rsto add or remove pezpallets. - Add Logic: Modify
pallets/template/src/lib.rsto implement your custom business logic. - Chain Spec: Update
node/src/chain_spec.rsto define your chain's genesis state.
📚 Documentation
📜 License
Unlicense