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:
@@ -17,44 +17,44 @@ pezkuwi-primitives = { workspace = true, default-features = true }
|
||||
pezkuwi-test-runtime = { workspace = true }
|
||||
pezkuwi-test-service = { workspace = true }
|
||||
|
||||
# Substrate dependencies
|
||||
frame-benchmarking = { workspace = true, default-features = true }
|
||||
sc-block-builder = { workspace = true, default-features = true }
|
||||
sc-consensus = { workspace = true, default-features = true }
|
||||
sc-service = { workspace = true, default-features = true }
|
||||
sp-api = { workspace = true, default-features = true }
|
||||
sp-blockchain = { workspace = true, default-features = true }
|
||||
sp-consensus = { workspace = true, default-features = true }
|
||||
sp-consensus-babe = { workspace = true, default-features = true }
|
||||
sp-inherents = { workspace = true, default-features = true }
|
||||
sp-io = { workspace = true, default-features = true }
|
||||
sp-runtime = { workspace = true, default-features = true }
|
||||
sp-state-machine = { workspace = true, default-features = true }
|
||||
sp-timestamp = { workspace = true, default-features = true }
|
||||
substrate-test-client = { workspace = true }
|
||||
# Bizinikiwi dependencies
|
||||
pezframe-benchmarking = { workspace = true, default-features = true }
|
||||
pezsc-block-builder = { workspace = true, default-features = true }
|
||||
pezsc-consensus = { workspace = true, default-features = true }
|
||||
pezsc-service = { workspace = true, default-features = true }
|
||||
pezsp-api = { workspace = true, default-features = true }
|
||||
pezsp-blockchain = { workspace = true, default-features = true }
|
||||
pezsp-consensus = { workspace = true, default-features = true }
|
||||
pezsp-consensus-babe = { workspace = true, default-features = true }
|
||||
pezsp-inherents = { workspace = true, default-features = true }
|
||||
pezsp-io = { workspace = true, default-features = true }
|
||||
pezsp-runtime = { workspace = true, default-features = true }
|
||||
pezsp-state-machine = { workspace = true, default-features = true }
|
||||
pezsp-timestamp = { workspace = true, default-features = true }
|
||||
bizinikiwi-test-client = { workspace = true }
|
||||
|
||||
[dev-dependencies]
|
||||
futures = { workspace = true }
|
||||
sp-keyring = { workspace = true, default-features = true }
|
||||
pezsp-keyring = { workspace = true, default-features = true }
|
||||
|
||||
[features]
|
||||
runtime-benchmarks = [
|
||||
"frame-benchmarking/runtime-benchmarks",
|
||||
"pezframe-benchmarking/runtime-benchmarks",
|
||||
"pezkuwi-primitives/runtime-benchmarks",
|
||||
"pezkuwi-test-runtime/runtime-benchmarks",
|
||||
"pezkuwi-test-service/runtime-benchmarks",
|
||||
"sc-block-builder/runtime-benchmarks",
|
||||
"sc-consensus/runtime-benchmarks",
|
||||
"sc-service/runtime-benchmarks",
|
||||
"sp-api/runtime-benchmarks",
|
||||
"sp-blockchain/runtime-benchmarks",
|
||||
"sp-consensus-babe/runtime-benchmarks",
|
||||
"sp-consensus/runtime-benchmarks",
|
||||
"sp-inherents/runtime-benchmarks",
|
||||
"sp-io/runtime-benchmarks",
|
||||
"sp-keyring/runtime-benchmarks",
|
||||
"sp-runtime/runtime-benchmarks",
|
||||
"sp-state-machine/runtime-benchmarks",
|
||||
"sp-timestamp/runtime-benchmarks",
|
||||
"substrate-test-client/runtime-benchmarks",
|
||||
"pezsc-block-builder/runtime-benchmarks",
|
||||
"pezsc-consensus/runtime-benchmarks",
|
||||
"pezsc-service/runtime-benchmarks",
|
||||
"pezsp-api/runtime-benchmarks",
|
||||
"pezsp-blockchain/runtime-benchmarks",
|
||||
"pezsp-consensus-babe/runtime-benchmarks",
|
||||
"pezsp-consensus/runtime-benchmarks",
|
||||
"pezsp-inherents/runtime-benchmarks",
|
||||
"pezsp-io/runtime-benchmarks",
|
||||
"pezsp-keyring/runtime-benchmarks",
|
||||
"pezsp-runtime/runtime-benchmarks",
|
||||
"pezsp-state-machine/runtime-benchmarks",
|
||||
"pezsp-timestamp/runtime-benchmarks",
|
||||
"bizinikiwi-test-client/runtime-benchmarks",
|
||||
]
|
||||
|
||||
@@ -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();
|
||||
|
||||
@@ -27,41 +27,41 @@ pezkuwi-test-runtime = { workspace = true }
|
||||
pezkuwi-teyrchain-primitives = { workspace = true, default-features = true }
|
||||
test-runtime-constants = { workspace = true, default-features = true }
|
||||
|
||||
# Substrate dependencies
|
||||
frame-system = { workspace = true, default-features = true }
|
||||
pallet-balances = { workspace = true, default-features = true }
|
||||
pallet-staking = { workspace = true, default-features = true }
|
||||
pallet-transaction-payment = { workspace = true, default-features = true }
|
||||
sc-chain-spec = { workspace = true, default-features = true }
|
||||
sc-cli = { workspace = true, default-features = true }
|
||||
sc-client-api = { workspace = true, default-features = true }
|
||||
sc-consensus = { workspace = true, default-features = true }
|
||||
sc-consensus-grandpa = { workspace = true, default-features = true }
|
||||
sc-network = { workspace = true, default-features = true }
|
||||
sc-service = { workspace = true }
|
||||
sc-tracing = { workspace = true, default-features = true }
|
||||
sp-arithmetic = { workspace = true, default-features = true }
|
||||
sp-authority-discovery = { workspace = true, default-features = true }
|
||||
sp-blockchain = { workspace = true, default-features = true }
|
||||
sp-consensus = { workspace = true, default-features = true }
|
||||
sp-consensus-babe = { workspace = true, default-features = true }
|
||||
sp-core = { workspace = true, default-features = true }
|
||||
sp-keyring = { workspace = true, default-features = true }
|
||||
sp-runtime = { workspace = true, default-features = true }
|
||||
sp-state-machine = { workspace = true, default-features = true }
|
||||
substrate-test-client = { workspace = true }
|
||||
# Bizinikiwi dependencies
|
||||
pezframe-system = { workspace = true, default-features = true }
|
||||
pezpallet-balances = { workspace = true, default-features = true }
|
||||
pezpallet-staking = { workspace = true, default-features = true }
|
||||
pezpallet-transaction-payment = { workspace = true, default-features = true }
|
||||
pezsc-chain-spec = { workspace = true, default-features = true }
|
||||
pezsc-cli = { workspace = true, default-features = true }
|
||||
pezsc-client-api = { workspace = true, default-features = true }
|
||||
pezsc-consensus = { workspace = true, default-features = true }
|
||||
pezsc-consensus-grandpa = { workspace = true, default-features = true }
|
||||
pezsc-network = { workspace = true, default-features = true }
|
||||
pezsc-service = { workspace = true }
|
||||
pezsc-tracing = { workspace = true, default-features = true }
|
||||
pezsp-arithmetic = { workspace = true, default-features = true }
|
||||
pezsp-authority-discovery = { workspace = true, default-features = true }
|
||||
pezsp-blockchain = { workspace = true, default-features = true }
|
||||
pezsp-consensus = { workspace = true, default-features = true }
|
||||
pezsp-consensus-babe = { workspace = true, default-features = true }
|
||||
pezsp-core = { workspace = true, default-features = true }
|
||||
pezsp-keyring = { workspace = true, default-features = true }
|
||||
pezsp-runtime = { workspace = true, default-features = true }
|
||||
pezsp-state-machine = { workspace = true, default-features = true }
|
||||
bizinikiwi-test-client = { workspace = true }
|
||||
|
||||
[dev-dependencies]
|
||||
pallet-balances = { workspace = true }
|
||||
pezpallet-balances = { workspace = true }
|
||||
tokio = { features = ["macros"], workspace = true, default-features = true }
|
||||
|
||||
[features]
|
||||
runtime-metrics = ["pezkuwi-test-runtime/runtime-metrics"]
|
||||
runtime-benchmarks = [
|
||||
"frame-system/runtime-benchmarks",
|
||||
"pallet-balances/runtime-benchmarks",
|
||||
"pallet-staking/runtime-benchmarks",
|
||||
"pallet-transaction-payment/runtime-benchmarks",
|
||||
"pezframe-system/runtime-benchmarks",
|
||||
"pezpallet-balances/runtime-benchmarks",
|
||||
"pezpallet-staking/runtime-benchmarks",
|
||||
"pezpallet-transaction-payment/runtime-benchmarks",
|
||||
"pezkuwi-node-primitives/runtime-benchmarks",
|
||||
"pezkuwi-node-subsystem/runtime-benchmarks",
|
||||
"pezkuwi-overseer/runtime-benchmarks",
|
||||
@@ -71,21 +71,21 @@ runtime-benchmarks = [
|
||||
"pezkuwi-service/runtime-benchmarks",
|
||||
"pezkuwi-test-runtime/runtime-benchmarks",
|
||||
"pezkuwi-teyrchain-primitives/runtime-benchmarks",
|
||||
"sc-chain-spec/runtime-benchmarks",
|
||||
"sc-cli/runtime-benchmarks",
|
||||
"sc-client-api/runtime-benchmarks",
|
||||
"sc-consensus-grandpa/runtime-benchmarks",
|
||||
"sc-consensus/runtime-benchmarks",
|
||||
"sc-network/runtime-benchmarks",
|
||||
"sc-service/runtime-benchmarks",
|
||||
"sc-tracing/runtime-benchmarks",
|
||||
"sp-authority-discovery/runtime-benchmarks",
|
||||
"sp-blockchain/runtime-benchmarks",
|
||||
"sp-consensus-babe/runtime-benchmarks",
|
||||
"sp-consensus/runtime-benchmarks",
|
||||
"sp-keyring/runtime-benchmarks",
|
||||
"sp-runtime/runtime-benchmarks",
|
||||
"sp-state-machine/runtime-benchmarks",
|
||||
"substrate-test-client/runtime-benchmarks",
|
||||
"pezsc-chain-spec/runtime-benchmarks",
|
||||
"pezsc-cli/runtime-benchmarks",
|
||||
"pezsc-client-api/runtime-benchmarks",
|
||||
"pezsc-consensus-grandpa/runtime-benchmarks",
|
||||
"pezsc-consensus/runtime-benchmarks",
|
||||
"pezsc-network/runtime-benchmarks",
|
||||
"pezsc-service/runtime-benchmarks",
|
||||
"pezsc-tracing/runtime-benchmarks",
|
||||
"pezsp-authority-discovery/runtime-benchmarks",
|
||||
"pezsp-blockchain/runtime-benchmarks",
|
||||
"pezsp-consensus-babe/runtime-benchmarks",
|
||||
"pezsp-consensus/runtime-benchmarks",
|
||||
"pezsp-keyring/runtime-benchmarks",
|
||||
"pezsp-runtime/runtime-benchmarks",
|
||||
"pezsp-state-machine/runtime-benchmarks",
|
||||
"bizinikiwi-test-client/runtime-benchmarks",
|
||||
"test-runtime-constants/runtime-benchmarks",
|
||||
]
|
||||
|
||||
@@ -16,26 +16,26 @@
|
||||
|
||||
//! Chain specifications for the test runtime.
|
||||
|
||||
use pallet_staking::Forcing;
|
||||
use pezpallet_staking::Forcing;
|
||||
use pezkuwi_primitives::{
|
||||
node_features, AccountId, AssignmentId, NodeFeatures, SchedulerParams, ValidatorId,
|
||||
MAX_CODE_SIZE, MAX_POV_SIZE,
|
||||
};
|
||||
use pezkuwi_service::chain_spec::Extensions;
|
||||
use pezkuwi_test_runtime::BABE_GENESIS_EPOCH_CONFIG;
|
||||
use sc_chain_spec::{ChainSpec, ChainType};
|
||||
use sc_consensus_grandpa::AuthorityId as GrandpaId;
|
||||
use sp_authority_discovery::AuthorityId as AuthorityDiscoveryId;
|
||||
use sp_consensus_babe::AuthorityId as BabeId;
|
||||
use sp_core::{crypto::get_public_from_string_or_panic, sr25519};
|
||||
use sp_keyring::Sr25519Keyring;
|
||||
use sp_runtime::Perbill;
|
||||
use pezsc_chain_spec::{ChainSpec, ChainType};
|
||||
use pezsc_consensus_grandpa::AuthorityId as GrandpaId;
|
||||
use pezsp_authority_discovery::AuthorityId as AuthorityDiscoveryId;
|
||||
use pezsp_consensus_babe::AuthorityId as BabeId;
|
||||
use pezsp_core::{crypto::get_public_from_string_or_panic, sr25519};
|
||||
use pezsp_keyring::Sr25519Keyring;
|
||||
use pezsp_runtime::Perbill;
|
||||
use test_runtime_constants::currency::DOTS;
|
||||
|
||||
const DEFAULT_PROTOCOL_ID: &str = "hez";
|
||||
|
||||
/// The `ChainSpec` parameterized for pezkuwi test runtime.
|
||||
pub type PezkuwiChainSpec = sc_service::GenericChainSpec<Extensions>;
|
||||
pub type PezkuwiChainSpec = pezsc_service::GenericChainSpec<Extensions>;
|
||||
|
||||
/// Returns the properties for the [`PezkuwiChainSpec`].
|
||||
pub fn pezkuwi_chain_spec_properties() -> serde_json::map::Map<String, serde_json::Value> {
|
||||
|
||||
@@ -34,33 +34,33 @@ use pezkuwi_test_runtime::{
|
||||
UncheckedExtrinsic, VERSION,
|
||||
};
|
||||
|
||||
use sc_chain_spec::ChainSpec;
|
||||
use sc_client_api::BlockchainEvents;
|
||||
use sc_network::{
|
||||
use pezsc_chain_spec::ChainSpec;
|
||||
use pezsc_client_api::BlockchainEvents;
|
||||
use pezsc_network::{
|
||||
config::{NetworkConfiguration, TransportConfig},
|
||||
multiaddr,
|
||||
service::traits::NetworkService,
|
||||
NetworkStateInfo,
|
||||
};
|
||||
use sc_service::{
|
||||
use pezsc_service::{
|
||||
config::{
|
||||
DatabaseSource, KeystoreConfig, MultiaddrWithPeerId, RpcBatchRequestConfig,
|
||||
WasmExecutionMethod, WasmtimeInstantiationStrategy,
|
||||
},
|
||||
BasePath, BlocksPruning, Configuration, Role, RpcHandlers, TaskManager,
|
||||
};
|
||||
use sp_arithmetic::traits::SaturatedConversion;
|
||||
use sp_blockchain::HeaderBackend;
|
||||
use sp_keyring::Sr25519Keyring;
|
||||
use sp_runtime::{codec::Encode, generic, traits::IdentifyAccount, MultiSigner};
|
||||
use sp_state_machine::BasicExternalities;
|
||||
use pezsp_arithmetic::traits::SaturatedConversion;
|
||||
use pezsp_blockchain::HeaderBackend;
|
||||
use pezsp_keyring::Sr25519Keyring;
|
||||
use pezsp_runtime::{codec::Encode, generic, traits::IdentifyAccount, MultiSigner};
|
||||
use pezsp_state_machine::BasicExternalities;
|
||||
use std::{
|
||||
collections::HashSet,
|
||||
net::{Ipv4Addr, SocketAddr},
|
||||
path::PathBuf,
|
||||
sync::Arc,
|
||||
};
|
||||
use substrate_test_client::{
|
||||
use bizinikiwi_test_client::{
|
||||
BlockchainEventsExt, RpcHandlersExt, RpcTransactionError, RpcTransactionOutput,
|
||||
};
|
||||
|
||||
@@ -68,10 +68,10 @@ use substrate_test_client::{
|
||||
pub type Client = FullClient;
|
||||
|
||||
pub use pezkuwi_service::{FullBackend, GetLastTimestamp};
|
||||
use sc_service::config::{ExecutorConfiguration, RpcConfiguration};
|
||||
use pezsc_service::config::{ExecutorConfiguration, RpcConfiguration};
|
||||
|
||||
/// Create a new full node.
|
||||
#[sc_tracing::logging::prefix_logs_with(custom_log_prefix.unwrap_or(config.network.node_name.as_str()))]
|
||||
#[pezsc_tracing::logging::prefix_logs_with(custom_log_prefix.unwrap_or(config.network.node_name.as_str()))]
|
||||
pub fn new_full<OverseerGenerator: OverseerGen>(
|
||||
config: Configuration,
|
||||
is_teyrchain_node: IsTeyrchainNode,
|
||||
@@ -103,10 +103,10 @@ pub fn new_full<OverseerGenerator: OverseerGen>(
|
||||
};
|
||||
|
||||
match config.network.network_backend {
|
||||
sc_network::config::NetworkBackendType::Libp2p =>
|
||||
pezkuwi_service::new_full::<_, sc_network::NetworkWorker<_, _>>(config, params),
|
||||
sc_network::config::NetworkBackendType::Litep2p =>
|
||||
pezkuwi_service::new_full::<_, sc_network::Litep2pNetworkBackend>(config, params),
|
||||
pezsc_network::config::NetworkBackendType::Libp2p =>
|
||||
pezkuwi_service::new_full::<_, pezsc_network::NetworkWorker<_, _>>(config, params),
|
||||
pezsc_network::config::NetworkBackendType::Litep2p =>
|
||||
pezkuwi_service::new_full::<_, pezsc_network::Litep2pNetworkBackend>(config, params),
|
||||
}
|
||||
}
|
||||
|
||||
@@ -226,7 +226,7 @@ pub fn node_config(
|
||||
/// Get the listen multiaddr from the network service.
|
||||
///
|
||||
/// The address is used to connect to the node.
|
||||
pub async fn get_listen_address(network: Arc<dyn NetworkService>) -> sc_network::Multiaddr {
|
||||
pub async fn get_listen_address(network: Arc<dyn NetworkService>) -> pezsc_network::Multiaddr {
|
||||
loop {
|
||||
// Litep2p provides instantly the listen address of the TCP protocol and
|
||||
// ditched the `/0` port used by the `node_config` function.
|
||||
@@ -433,16 +433,16 @@ pub fn construct_extrinsic(
|
||||
BlockHashCount::get().checked_next_power_of_two().map(|c| c / 2).unwrap_or(2) as u64;
|
||||
let tip = 0;
|
||||
let tx_ext: TxExtension = (
|
||||
frame_system::AuthorizeCall::<Runtime>::new(),
|
||||
frame_system::CheckNonZeroSender::<Runtime>::new(),
|
||||
frame_system::CheckSpecVersion::<Runtime>::new(),
|
||||
frame_system::CheckTxVersion::<Runtime>::new(),
|
||||
frame_system::CheckGenesis::<Runtime>::new(),
|
||||
frame_system::CheckEra::<Runtime>::from(generic::Era::mortal(period, current_block)),
|
||||
frame_system::CheckNonce::<Runtime>::from(nonce),
|
||||
frame_system::CheckWeight::<Runtime>::new(),
|
||||
pallet_transaction_payment::ChargeTransactionPayment::<Runtime>::from(tip),
|
||||
frame_system::WeightReclaim::<Runtime>::new(),
|
||||
pezframe_system::AuthorizeCall::<Runtime>::new(),
|
||||
pezframe_system::CheckNonZeroSender::<Runtime>::new(),
|
||||
pezframe_system::CheckSpecVersion::<Runtime>::new(),
|
||||
pezframe_system::CheckTxVersion::<Runtime>::new(),
|
||||
pezframe_system::CheckGenesis::<Runtime>::new(),
|
||||
pezframe_system::CheckEra::<Runtime>::from(generic::Era::mortal(period, current_block)),
|
||||
pezframe_system::CheckNonce::<Runtime>::from(nonce),
|
||||
pezframe_system::CheckWeight::<Runtime>::new(),
|
||||
pezpallet_transaction_payment::ChargeTransactionPayment::<Runtime>::from(tip),
|
||||
pezframe_system::WeightReclaim::<Runtime>::new(),
|
||||
)
|
||||
.into();
|
||||
let raw_payload = SignedPayload::from_raw(
|
||||
@@ -473,12 +473,12 @@ pub fn construct_extrinsic(
|
||||
/// Construct a transfer extrinsic.
|
||||
pub fn construct_transfer_extrinsic(
|
||||
client: &Client,
|
||||
origin: sp_keyring::Sr25519Keyring,
|
||||
dest: sp_keyring::Sr25519Keyring,
|
||||
origin: pezsp_keyring::Sr25519Keyring,
|
||||
dest: pezsp_keyring::Sr25519Keyring,
|
||||
value: Balance,
|
||||
) -> UncheckedExtrinsic {
|
||||
let function =
|
||||
pezkuwi_test_runtime::RuntimeCall::Balances(pallet_balances::Call::transfer_allow_death {
|
||||
pezkuwi_test_runtime::RuntimeCall::Balances(pezpallet_balances::Call::transfer_allow_death {
|
||||
dest: MultiSigner::from(dest.public()).into_account().into(),
|
||||
value,
|
||||
});
|
||||
|
||||
@@ -16,11 +16,11 @@
|
||||
|
||||
use futures::{future, pin_mut, select, FutureExt};
|
||||
use pezkuwi_test_service::*;
|
||||
use sp_keyring::Sr25519Keyring;
|
||||
use pezsp_keyring::Sr25519Keyring;
|
||||
|
||||
#[tokio::test(flavor = "multi_thread")]
|
||||
async fn ensure_test_service_build_blocks() {
|
||||
let mut builder = sc_cli::LoggerBuilder::new("");
|
||||
let mut builder = pezsc_cli::LoggerBuilder::new("");
|
||||
builder.with_colors(false);
|
||||
builder.init().expect("Sets up logger");
|
||||
let alice_config = node_config(
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
// along with Pezkuwi. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
use pezkuwi_test_service::*;
|
||||
use sp_keyring::Sr25519Keyring::{Alice, Bob, Charlie};
|
||||
use pezsp_keyring::Sr25519Keyring::{Alice, Bob, Charlie};
|
||||
|
||||
#[tokio::test(flavor = "multi_thread")]
|
||||
async fn call_function_actually_work() {
|
||||
@@ -25,7 +25,7 @@ async fn call_function_actually_work() {
|
||||
let alice = run_validator_node(alice_config, None).await;
|
||||
|
||||
let function =
|
||||
pezkuwi_test_runtime::RuntimeCall::Balances(pallet_balances::Call::transfer_allow_death {
|
||||
pezkuwi_test_runtime::RuntimeCall::Balances(pezpallet_balances::Call::transfer_allow_death {
|
||||
dest: Charlie.to_account_id().into(),
|
||||
value: 1,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user