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:
@@ -19,14 +19,14 @@ use codec::{Decode, Encode};
|
||||
use pezkuwi_primitives::{Block, InherentData as TeyrchainsInherentData};
|
||||
use pezkuwi_test_runtime::UncheckedExtrinsic;
|
||||
use pezkuwi_test_service::GetLastTimestamp;
|
||||
use sc_block_builder::{BlockBuilder, BlockBuilderBuilder};
|
||||
use sp_api::ProvideRuntimeApi;
|
||||
use sp_consensus_babe::{
|
||||
use pezsc_block_builder::{BlockBuilder, BlockBuilderBuilder};
|
||||
use pezsp_api::ProvideRuntimeApi;
|
||||
use pezsp_consensus_babe::{
|
||||
digests::{PreDigest, SecondaryPlainPreDigest},
|
||||
BABE_ENGINE_ID,
|
||||
};
|
||||
use sp_runtime::{traits::Block as BlockT, Digest, DigestItem};
|
||||
use sp_state_machine::BasicExternalities;
|
||||
use pezsp_runtime::{traits::Block as BlockT, Digest, DigestItem};
|
||||
use pezsp_state_machine::BasicExternalities;
|
||||
|
||||
/// An extension for the test client to initialize a Pezkuwi specific block builder.
|
||||
pub trait InitPezkuwiBlockBuilder {
|
||||
@@ -34,7 +34,7 @@ pub trait InitPezkuwiBlockBuilder {
|
||||
///
|
||||
/// This will automatically create and push the inherents for you to make the block valid for
|
||||
/// the test runtime.
|
||||
fn init_pezkuwi_block_builder(&self) -> sc_block_builder::BlockBuilder<'_, Block, Client>;
|
||||
fn init_pezkuwi_block_builder(&self) -> pezsc_block_builder::BlockBuilder<'_, Block, Client>;
|
||||
|
||||
/// Init a Pezkuwi specific block builder at a specific block that works for the test runtime.
|
||||
///
|
||||
@@ -43,7 +43,7 @@ pub trait InitPezkuwiBlockBuilder {
|
||||
fn init_pezkuwi_block_builder_at(
|
||||
&self,
|
||||
hash: <Block as BlockT>::Hash,
|
||||
) -> sc_block_builder::BlockBuilder<'_, Block, Client>;
|
||||
) -> pezsc_block_builder::BlockBuilder<'_, Block, Client>;
|
||||
}
|
||||
|
||||
impl InitPezkuwiBlockBuilder for Client {
|
||||
@@ -96,10 +96,10 @@ impl InitPezkuwiBlockBuilder for Client {
|
||||
.build()
|
||||
.expect("Creates new block builder for test runtime");
|
||||
|
||||
let mut inherent_data = sp_inherents::InherentData::new();
|
||||
let mut inherent_data = pezsp_inherents::InherentData::new();
|
||||
|
||||
inherent_data
|
||||
.put_data(sp_timestamp::INHERENT_IDENTIFIER, ×tamp)
|
||||
.put_data(pezsp_timestamp::INHERENT_IDENTIFIER, ×tamp)
|
||||
.expect("Put timestamp inherent data");
|
||||
|
||||
let parent_header = self
|
||||
@@ -140,14 +140,14 @@ pub trait BlockBuilderExt {
|
||||
fn push_pezkuwi_extrinsic(
|
||||
&mut self,
|
||||
ext: UncheckedExtrinsic,
|
||||
) -> Result<(), sp_blockchain::Error>;
|
||||
) -> Result<(), pezsp_blockchain::Error>;
|
||||
}
|
||||
|
||||
impl BlockBuilderExt for BlockBuilder<'_, Block, Client> {
|
||||
fn push_pezkuwi_extrinsic(
|
||||
&mut self,
|
||||
ext: UncheckedExtrinsic,
|
||||
) -> Result<(), sp_blockchain::Error> {
|
||||
) -> Result<(), pezsp_blockchain::Error> {
|
||||
let encoded = ext.encode();
|
||||
self.push(
|
||||
Decode::decode(&mut &encoded[..]).expect(
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
mod block_builder;
|
||||
|
||||
use pezkuwi_primitives::Block;
|
||||
use sp_runtime::BuildStorage;
|
||||
use pezsp_runtime::BuildStorage;
|
||||
use std::sync::Arc;
|
||||
|
||||
pub use block_builder::*;
|
||||
@@ -29,27 +29,27 @@ pub use pezkuwi_test_runtime as runtime;
|
||||
pub use pezkuwi_test_service::{
|
||||
construct_extrinsic, construct_transfer_extrinsic, Client, FullBackend,
|
||||
};
|
||||
pub use substrate_test_client::*;
|
||||
pub use bizinikiwi_test_client::*;
|
||||
|
||||
/// Test client executor.
|
||||
pub type Executor = client::LocalCallExecutor<
|
||||
Block,
|
||||
FullBackend,
|
||||
WasmExecutor<(sp_io::SubstrateHostFunctions, frame_benchmarking::benchmarking::HostFunctions)>,
|
||||
WasmExecutor<(pezsp_io::BizinikiwiHostFunctions, pezframe_benchmarking::benchmarking::HostFunctions)>,
|
||||
>;
|
||||
|
||||
/// Test client builder for Pezkuwi.
|
||||
pub type TestClientBuilder =
|
||||
substrate_test_client::TestClientBuilder<Block, Executor, FullBackend, GenesisParameters>;
|
||||
bizinikiwi_test_client::TestClientBuilder<Block, Executor, FullBackend, GenesisParameters>;
|
||||
|
||||
/// `LongestChain` type for the test runtime/client.
|
||||
pub type LongestChain = sc_consensus::LongestChain<FullBackend, Block>;
|
||||
pub type LongestChain = pezsc_consensus::LongestChain<FullBackend, Block>;
|
||||
|
||||
/// Parameters of test-client builder with test-runtime.
|
||||
#[derive(Default)]
|
||||
pub struct GenesisParameters;
|
||||
|
||||
impl substrate_test_client::GenesisInit for GenesisParameters {
|
||||
impl bizinikiwi_test_client::GenesisInit for GenesisParameters {
|
||||
fn genesis_storage(&self) -> Storage {
|
||||
pezkuwi_test_service::chain_spec::pezkuwi_local_testnet_config()
|
||||
.build_storage()
|
||||
@@ -98,7 +98,7 @@ impl DefaultTestClientBuilderExt for TestClientBuilder {
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use super::*;
|
||||
use sp_consensus::BlockOrigin;
|
||||
use pezsp_consensus::BlockOrigin;
|
||||
|
||||
#[test]
|
||||
fn ensure_test_client_can_build_and_import_block() {
|
||||
@@ -117,8 +117,8 @@ mod tests {
|
||||
|
||||
let transfer = construct_transfer_extrinsic(
|
||||
&client,
|
||||
sp_keyring::Sr25519Keyring::Alice,
|
||||
sp_keyring::Sr25519Keyring::Bob,
|
||||
pezsp_keyring::Sr25519Keyring::Alice,
|
||||
pezsp_keyring::Sr25519Keyring::Bob,
|
||||
1000,
|
||||
);
|
||||
let mut block_builder = client.init_pezkuwi_block_builder();
|
||||
|
||||
Reference in New Issue
Block a user