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:
@@ -0,0 +1,62 @@
|
||||
// This file is part of Bizinikiwi.
|
||||
|
||||
// Copyright (C) Parity Technologies (UK) Ltd.
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
use std::{fs, process::Command};
|
||||
|
||||
fn main() {
|
||||
generate_git_revision();
|
||||
generate_metadata_file();
|
||||
}
|
||||
|
||||
fn generate_git_revision() {
|
||||
let output = Command::new("rustc")
|
||||
.arg("--version")
|
||||
.output()
|
||||
.expect("cannot get the current rustc version");
|
||||
// Exports the default rustc --version output:
|
||||
// e.g. rustc 1.83.0 (90b35a623 2024-11-26)
|
||||
// into the usual Ethereum web3_clientVersion format
|
||||
// e.g. rustc1.83.0
|
||||
let rustc_version = String::from_utf8_lossy(&output.stdout)
|
||||
.split_whitespace()
|
||||
.take(2)
|
||||
.collect::<Vec<_>>()
|
||||
.join("");
|
||||
let target = std::env::var("TARGET").unwrap_or_else(|_| "unknown".to_string());
|
||||
|
||||
let (branch, id) = if let Ok(repo) = git2::Repository::open("../../../..") {
|
||||
let head = repo.head().expect("should have head");
|
||||
let commit = head.peel_to_commit().expect("should have commit");
|
||||
let branch = head.shorthand().unwrap_or("unknown").to_string();
|
||||
let id = &commit.id().to_string()[..7];
|
||||
(branch, id.to_string())
|
||||
} else {
|
||||
("unknown".to_string(), "unknown".to_string())
|
||||
};
|
||||
|
||||
println!("cargo:rustc-env=RUSTC_VERSION={rustc_version}");
|
||||
println!("cargo:rustc-env=TARGET={target}");
|
||||
println!("cargo:rustc-env=GIT_REVISION={branch}-{id}");
|
||||
}
|
||||
|
||||
fn generate_metadata_file() {
|
||||
let mut ext = pezsp_io::TestExternalities::new(Default::default());
|
||||
ext.execute_with(|| {
|
||||
let metadata = revive_dev_runtime::Runtime::metadata_at_version(16).unwrap();
|
||||
let bytes: &[u8] = &metadata;
|
||||
fs::write("revive_chain.scale", bytes).unwrap();
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user