Refactoring Checkpoint: (WIP)

This commit is contained in:
2025-12-14 10:29:31 +03:00
parent 6588d9a1f2
commit 0c5d19e3a0
1423 changed files with 6413 additions and 6062 deletions
+6 -6
View File
@@ -45,7 +45,7 @@ After you build the project, you can use the following command to explore its
parameters and subcommands:
```sh
./target/release/solochain-template-node -h
./target/release/pez-solochain-template-node -h
```
You can generate and view the [Rust
@@ -62,19 +62,19 @@ The following command starts a single-node development chain that doesn't
persist state:
```sh
./target/release/solochain-template-node --dev
./target/release/pez-solochain-template-node --dev
```
To purge the development chain's state, run the following command:
```sh
./target/release/solochain-template-node purge-chain --dev
./target/release/pez-solochain-template-node purge-chain --dev
```
To start the development chain with detailed logging, run the following command:
```sh
RUST_BACKTRACE=1 ./target/release/solochain-template-node -ldebug --dev
RUST_BACKTRACE=1 ./target/release/pez-solochain-template-node -ldebug --dev
```
Development chains:
@@ -94,7 +94,7 @@ similar to the following:
$ mkdir my-chain-state
// Use of that folder to store the chain state
$ ./target/release/solochain-template-node --dev --base-path ./my-chain-state/
$ ./target/release/pez-solochain-template-node --dev --base-path ./my-chain-state/
// Check the folder structure created inside the base path after running the chain
$ ls ./my-chain-state
@@ -153,7 +153,7 @@ following:
`development_config` and `testnet_genesis` functions. These functions are
used to define the genesis state for the local development chain
configuration. These functions identify some [well-known
accounts](https://docs.pezkuwichain.io/reference/command-line-tools/subkey/) and
accounts](https://docs.pezkuwichain.io/reference/command-line-tools/pez_subkey/) and
use them to configure the blockchain's initial state.
- [`service.rs`](./node/src/service.rs): This file defines the node
implementation. Take note of the libraries that this file imports and the
+6 -6
View File
@@ -1,5 +1,5 @@
[package]
name = "solochain-template-node"
name = "pez-solochain-template-node"
description = "A solochain node template built with Bizinikiwi, part of Pezkuwi Sdk."
version = "0.0.0"
license = "Unlicense"
@@ -10,7 +10,7 @@ edition.workspace = true
publish = false
build = "build.rs"
documentation = "https://docs.rs/solochain-template-node"
documentation = "https://docs.rs/pez-solochain-template-node"
[package.metadata.docs.rs]
targets = ["x86_64-unknown-linux-gnu"]
@@ -62,14 +62,14 @@ bizinikiwi-frame-rpc-system = { workspace = true, default-features = true }
pezframe-benchmarking-cli = { workspace = true, default-features = true }
# Local Dependencies
solochain-template-runtime = { workspace = true }
pez-solochain-template-runtime = { workspace = true }
[build-dependencies]
bizinikiwi-build-script-utils = { workspace = true, default-features = true }
[features]
default = ["std"]
std = ["solochain-template-runtime/std"]
std = ["pez-solochain-template-runtime/std"]
# Dependencies that are only required if runtime benchmarking should be build.
runtime-benchmarks = [
"pezframe-benchmarking-cli/runtime-benchmarks",
@@ -89,7 +89,7 @@ runtime-benchmarks = [
"pezsc-service/runtime-benchmarks",
"pezsc-transaction-pool-api/runtime-benchmarks",
"pezsc-transaction-pool/runtime-benchmarks",
"solochain-template-runtime/runtime-benchmarks",
"pez-solochain-template-runtime/runtime-benchmarks",
"pezsp-api/runtime-benchmarks",
"pezsp-block-builder/runtime-benchmarks",
"pezsp-blockchain/runtime-benchmarks",
@@ -107,6 +107,6 @@ runtime-benchmarks = [
try-runtime = [
"pezframe-system/try-runtime",
"pezpallet-transaction-payment/try-runtime",
"solochain-template-runtime/try-runtime",
"pez-solochain-template-runtime/try-runtime",
"pezsp-runtime/try-runtime",
]
+1 -1
View File
@@ -7,7 +7,7 @@ use crate::service::FullClient;
use runtime::{AccountId, Balance, BalancesCall, SystemCall};
use pezsc_cli::Result;
use pezsc_client_api::BlockBackend;
use solochain_template_runtime as runtime;
use pez_solochain_template_runtime as runtime;
use pezsp_core::{Encode, Pair};
use pezsp_inherents::{InherentData, InherentDataProvider};
use pezsp_keyring::Sr25519Keyring;
+1 -1
View File
@@ -1,5 +1,5 @@
use pezsc_service::ChainType;
use solochain_template_runtime::WASM_BINARY;
use pez_solochain_template_runtime::WASM_BINARY;
/// Specialized `ChainSpec`. This is a specialization of the general Bizinikiwi ChainSpec type.
pub type ChainSpec = pezsc_service::GenericChainSpec;
+3 -3
View File
@@ -7,7 +7,7 @@ use crate::{
use pezframe_benchmarking_cli::{BenchmarkCmd, ExtrinsicFactory, BIZINIKIWI_REFERENCE_HARDWARE};
use pezsc_cli::BizinikiwiCli;
use pezsc_service::PartialComponents;
use solochain_template_runtime::{Block, EXISTENTIAL_DEPOSIT};
use pez_solochain_template_runtime::{Block, EXISTENTIAL_DEPOSIT};
use pezsp_keyring::Sr25519Keyring;
impl BizinikiwiCli for Cli {
@@ -187,8 +187,8 @@ pub fn run() -> pezsc_cli::Result<()> {
match config.network.network_backend {
pezsc_network::config::NetworkBackendType::Libp2p => service::new_full::<
pezsc_network::NetworkWorker<
solochain_template_runtime::opaque::Block,
<solochain_template_runtime::opaque::Block as pezsp_runtime::traits::Block>::Hash,
pez_solochain_template_runtime::opaque::Block,
<pez_solochain_template_runtime::opaque::Block as pezsp_runtime::traits::Block>::Hash,
>,
>(config)
.map_err(pezsc_cli::Error::Service),
+1 -1
View File
@@ -9,7 +9,7 @@ use std::sync::Arc;
use jsonrpsee::RpcModule;
use pezsc_transaction_pool_api::TransactionPool;
use solochain_template_runtime::{opaque::Block, AccountId, Balance, Nonce};
use pez_solochain_template_runtime::{opaque::Block, AccountId, Balance, Nonce};
use pezsp_api::ProvideRuntimeApi;
use pezsp_block_builder::BlockBuilder;
use pezsp_blockchain::{Error as BlockChainError, HeaderBackend, HeaderMetadata};
+1 -1
View File
@@ -7,7 +7,7 @@ use pezsc_consensus_grandpa::SharedVoterState;
use pezsc_service::{error::Error as ServiceError, Configuration, TaskManager, WarpSyncConfig};
use pezsc_telemetry::{Telemetry, TelemetryWorker};
use pezsc_transaction_pool_api::OffchainTransactionPoolFactory;
use solochain_template_runtime::{self, apis::RuntimeApi, opaque::Block};
use pez_solochain_template_runtime::{self, apis::RuntimeApi, opaque::Block};
use pezsp_consensus_aura::sr25519::AuthorityPair as AuraPair;
use std::{sync::Arc, time::Duration};
+2 -2
View File
@@ -1,5 +1,5 @@
[package]
name = "solochain-template-runtime"
name = "pez-solochain-template-runtime"
description = "A solochain runtime template built with Bizinikiwi, part of Pezkuwi Sdk."
version = "0.0.0"
license = "Unlicense"
@@ -8,7 +8,7 @@ homepage.workspace = true
repository.workspace = true
edition.workspace = true
publish = false
documentation = "https://docs.rs/solochain-template-runtime"
documentation = "https://docs.rs/pez-solochain-template-runtime"
[package.metadata.docs.rs]
targets = ["x86_64-unknown-linux-gnu"]
+2 -2
View File
@@ -61,8 +61,8 @@ impl_opaque_keys! {
// https://docs.pezkuwichain.io/main-docs/build/upgrade#runtime-versioning
#[pezsp_version::runtime_version]
pub const VERSION: RuntimeVersion = RuntimeVersion {
spec_name: alloc::borrow::Cow::Borrowed("solochain-template-runtime"),
impl_name: alloc::borrow::Cow::Borrowed("solochain-template-runtime"),
spec_name: alloc::borrow::Cow::Borrowed("pez-solochain-template-runtime"),
impl_name: alloc::borrow::Cow::Borrowed("pez-solochain-template-runtime"),
authoring_version: 1,
// The version of the runtime specification. A full node will not attempt to use its native
// runtime in substitute for the on-chain Wasm runtime unless all of `spec_name`,