feat: Rebrand Polkadot/Substrate references to PezkuwiChain
This commit systematically rebrands various references from Parity Technologies' Polkadot/Substrate ecosystem to PezkuwiChain within the kurdistan-sdk. Key changes include: - Updated external repository URLs (zombienet-sdk, parity-db, parity-scale-codec, wasm-instrument) to point to pezkuwichain forks. - Modified internal documentation and code comments to reflect PezkuwiChain naming and structure. - Replaced direct references to with or specific paths within the for XCM, Pezkuwi, and other modules. - Cleaned up deprecated issue and PR references in various and files, particularly in and modules. - Adjusted image and logo URLs in documentation to point to PezkuwiChain assets. - Removed or rephrased comments related to external Polkadot/Substrate PRs and issues. This is a significant step towards fully customizing the SDK for the PezkuwiChain ecosystem.
This commit is contained in:
@@ -20,10 +20,10 @@ codec = { workspace = true, default-features = true }
|
||||
metered = { features = ["futures_channel"], workspace = true }
|
||||
pezkuwi-primitives = { workspace = true, default-features = true }
|
||||
prometheus-endpoint = { workspace = true, default-features = true }
|
||||
# Both `sc-service` and `sc-cli` are required by runtime metrics `logger_hook()`.
|
||||
sc-cli = { workspace = true, default-features = false }
|
||||
sc-service = { workspace = true, default-features = false }
|
||||
sc-tracing = { workspace = true, default-features = true }
|
||||
# Both `pezsc-service` and `pezsc-cli` are required by runtime metrics `logger_hook()`.
|
||||
pezsc-cli = { workspace = true, default-features = false }
|
||||
pezsc-service = { workspace = true, default-features = false }
|
||||
pezsc-tracing = { workspace = true, default-features = true }
|
||||
|
||||
[dev-dependencies]
|
||||
http-body-util = { workspace = true }
|
||||
@@ -31,8 +31,8 @@ hyper = { workspace = true }
|
||||
hyper-util = { features = ["client-legacy", "tokio"], workspace = true }
|
||||
pezkuwi-test-service = { features = ["runtime-metrics"], workspace = true }
|
||||
prometheus-parse = { workspace = true }
|
||||
sc-service = { workspace = true, default-features = true }
|
||||
sp-keyring = { workspace = true, default-features = true }
|
||||
pezsc-service = { workspace = true, default-features = true }
|
||||
pezsp-keyring = { workspace = true, default-features = true }
|
||||
tokio = { workspace = true, default-features = true }
|
||||
|
||||
[features]
|
||||
@@ -41,8 +41,8 @@ runtime-metrics = []
|
||||
runtime-benchmarks = [
|
||||
"pezkuwi-primitives/runtime-benchmarks",
|
||||
"pezkuwi-test-service/runtime-benchmarks",
|
||||
"sc-cli/runtime-benchmarks",
|
||||
"sc-service/runtime-benchmarks",
|
||||
"sc-tracing/runtime-benchmarks",
|
||||
"sp-keyring/runtime-benchmarks",
|
||||
"pezsc-cli/runtime-benchmarks",
|
||||
"pezsc-service/runtime-benchmarks",
|
||||
"pezsc-tracing/runtime-benchmarks",
|
||||
"pezsp-keyring/runtime-benchmarks",
|
||||
]
|
||||
|
||||
@@ -38,13 +38,13 @@ pub use self::runtime::logger_hook;
|
||||
|
||||
/// Export a dummy logger hook when the `runtime-metrics` feature is not enabled.
|
||||
#[cfg(not(feature = "runtime-metrics"))]
|
||||
pub fn logger_hook() -> impl FnOnce(&mut sc_cli::LoggerBuilder, &sc_service::Configuration) {
|
||||
pub fn logger_hook() -> impl FnOnce(&mut pezsc_cli::LoggerBuilder, &pezsc_service::Configuration) {
|
||||
|_logger_builder, _config| {}
|
||||
}
|
||||
|
||||
/// This module reexports Prometheus types and defines the [`Metrics`](metrics::Metrics) trait.
|
||||
pub mod metrics {
|
||||
/// Reexport Substrate Prometheus types.
|
||||
/// Reexport Bizinikiwi Prometheus types.
|
||||
pub use prometheus_endpoint as prometheus;
|
||||
|
||||
/// Subsystem- or job-specific Prometheus metrics.
|
||||
|
||||
@@ -16,9 +16,9 @@
|
||||
|
||||
//! Runtime Metrics helpers.
|
||||
//!
|
||||
//! A runtime metric provider implementation that builds on top of Substrate wasm
|
||||
//! A runtime metric provider implementation that builds on top of Bizinikiwi wasm
|
||||
//! tracing support. This requires that the custom profiler (`TraceHandler`) to be
|
||||
//! registered in substrate via a `logger_hook()`. Events emitted from runtime are
|
||||
//! registered in bizinikiwi via a `logger_hook()`. Events emitted from runtime are
|
||||
//! then captured/processed by the `TraceHandler` implementation.
|
||||
//!
|
||||
//! Don't add logs in this file because it gets executed before the logger is
|
||||
@@ -149,9 +149,9 @@ impl RuntimeMetricsProvider {
|
||||
}
|
||||
}
|
||||
|
||||
impl sc_tracing::TraceHandler for RuntimeMetricsProvider {
|
||||
fn handle_span(&self, _span: &sc_tracing::SpanDatum) {}
|
||||
fn handle_event(&self, event: &sc_tracing::TraceEvent) {
|
||||
impl pezsc_tracing::TraceHandler for RuntimeMetricsProvider {
|
||||
fn handle_span(&self, _span: &pezsc_tracing::SpanDatum) {}
|
||||
fn handle_event(&self, event: &pezsc_tracing::TraceEvent) {
|
||||
if event
|
||||
.values
|
||||
.string_values
|
||||
@@ -213,7 +213,7 @@ impl RuntimeMetricsProvider {
|
||||
}
|
||||
|
||||
/// Returns the custom profiling closure that we'll apply to the `LoggerBuilder`.
|
||||
pub fn logger_hook() -> impl FnOnce(&mut sc_cli::LoggerBuilder, &sc_service::Configuration) -> () {
|
||||
pub fn logger_hook() -> impl FnOnce(&mut pezsc_cli::LoggerBuilder, &pezsc_service::Configuration) -> () {
|
||||
|logger_builder, config| {
|
||||
if config.prometheus_registry().is_none() {
|
||||
return;
|
||||
|
||||
@@ -21,7 +21,7 @@ use hyper::Uri;
|
||||
use hyper_util::{client::legacy::Client, rt::TokioExecutor};
|
||||
use pezkuwi_primitives::metric_definitions::TEYRCHAIN_INHERENT_DATA_BITFIELDS_PROCESSED;
|
||||
use pezkuwi_test_service::{node_config, run_validator_node, test_prometheus_config};
|
||||
use sp_keyring::Sr25519Keyring::*;
|
||||
use pezsp_keyring::Sr25519Keyring::*;
|
||||
use std::collections::HashMap;
|
||||
|
||||
const DEFAULT_PROMETHEUS_PORT: u16 = 9616;
|
||||
@@ -34,7 +34,7 @@ async fn runtime_can_publish_metrics() {
|
||||
// Enable Prometheus metrics for Alice.
|
||||
alice_config.prometheus_config = Some(test_prometheus_config(DEFAULT_PROMETHEUS_PORT));
|
||||
|
||||
let mut builder = sc_cli::LoggerBuilder::new("");
|
||||
let mut builder = pezsc_cli::LoggerBuilder::new("");
|
||||
|
||||
// Enable profiling with `wasm_tracing` target.
|
||||
builder.with_profiling(Default::default(), String::from("wasm_tracing=trace"));
|
||||
|
||||
Reference in New Issue
Block a user