Refactoring Checkpoint: (WIP)

This commit is contained in:
2025-12-14 10:29:31 +03:00
parent 09735eb97a
commit c89d7cac55
1424 changed files with 6415 additions and 6064 deletions
+6 -6
View File
@@ -15,7 +15,7 @@ workspace = true
[dependencies]
# Bizinikiwi Client
mmr-gadget = { workspace = true, default-features = true }
pezmmr-gadget = { workspace = true, default-features = true }
pezsc-authority-discovery = { workspace = true, default-features = true }
pezsc-basic-authorship = { workspace = true, default-features = true }
pezsc-chain-spec = { workspace = true, default-features = true }
@@ -91,7 +91,7 @@ thiserror = { workspace = true }
pezkuwi-core-primitives = { workspace = true, default-features = true }
pezkuwi-node-core-teyrchains-inherent = { workspace = true, default-features = true }
pezkuwi-node-network-protocol = { workspace = true, default-features = true }
pezkuwi-node-primitives = { workspace = true, default-features = true }
pezkuwi-pez-node-primitives = { workspace = true, default-features = true }
pezkuwi-node-subsystem = { workspace = true, default-features = true }
pezkuwi-node-subsystem-types = { workspace = true, default-features = true }
pezkuwi-node-subsystem-util = { workspace = true, default-features = true }
@@ -135,7 +135,7 @@ pezkuwi-node-core-runtime-api = { optional = true, workspace = true, default-fea
pezkuwi-statement-distribution = { optional = true, workspace = true, default-features = true }
xcm = { workspace = true, default-features = true }
xcm-runtime-apis = { workspace = true, default-features = true }
xcm-runtime-pezapis = { workspace = true, default-features = true }
[dev-dependencies]
assert_matches = { workspace = true }
@@ -203,7 +203,7 @@ runtime-benchmarks = [
"pezframe-system-rpc-runtime-api/runtime-benchmarks",
"pezframe-system/runtime-benchmarks",
"gum/runtime-benchmarks",
"mmr-gadget/runtime-benchmarks",
"pezmmr-gadget/runtime-benchmarks",
"pezpallet-transaction-payment-rpc-runtime-api/runtime-benchmarks",
"pezpallet-transaction-payment/runtime-benchmarks",
"pezkuwi-approval-distribution?/runtime-benchmarks",
@@ -232,7 +232,7 @@ runtime-benchmarks = [
"pezkuwi-node-core-runtime-api?/runtime-benchmarks",
"pezkuwi-node-core-teyrchains-inherent/runtime-benchmarks",
"pezkuwi-node-network-protocol/runtime-benchmarks",
"pezkuwi-node-primitives/runtime-benchmarks",
"pezkuwi-pez-node-primitives/runtime-benchmarks",
"pezkuwi-node-subsystem-test-helpers/runtime-benchmarks",
"pezkuwi-node-subsystem-types/runtime-benchmarks",
"pezkuwi-node-subsystem-util/runtime-benchmarks",
@@ -283,7 +283,7 @@ runtime-benchmarks = [
"pezsp-timestamp/runtime-benchmarks",
"pezsp-transaction-pool/runtime-benchmarks",
"pezsp-version/runtime-benchmarks",
"xcm-runtime-apis/runtime-benchmarks",
"xcm-runtime-pezapis/runtime-benchmarks",
"xcm/runtime-benchmarks",
"zagros-runtime-constants?/runtime-benchmarks",
"zagros-runtime?/runtime-benchmarks",
+2 -2
View File
@@ -31,7 +31,7 @@ use crate::{
};
use pezframe_benchmarking_cli::BIZINIKIWI_REFERENCE_HARDWARE;
use gum::info;
use mmr_gadget::MmrGadget;
use pezmmr_gadget::MmrGadget;
use pezkuwi_availability_recovery::FETCH_CHUNKS_THRESHOLD;
use pezkuwi_node_core_approval_voting::Config as ApprovalVotingConfig;
use pezkuwi_node_core_av_store::Config as AvailabilityConfig;
@@ -780,7 +780,7 @@ where
// When offchain indexing is enabled, MMR gadget should also run.
if is_offchain_indexing_enabled {
task_manager.spawn_essential_handle().spawn_blocking(
"mmr-gadget",
"pezmmr-gadget",
None,
MmrGadget::start(
client.clone(),
+8 -8
View File
@@ -427,30 +427,30 @@ pezsp_api::impl_runtime_apis! {
}
}
impl xcm_runtime_apis::fees::XcmPaymentApi<Block> for Runtime {
fn query_acceptable_payment_assets(_: xcm::Version) -> Result<Vec<VersionedAssetId>, xcm_runtime_apis::fees::Error> {
impl xcm_runtime_pezapis::fees::XcmPaymentApi<Block> for Runtime {
fn query_acceptable_payment_assets(_: xcm::Version) -> Result<Vec<VersionedAssetId>, xcm_runtime_pezapis::fees::Error> {
unimplemented!()
}
fn query_weight_to_asset_fee(_: Weight, _: VersionedAssetId) -> Result<u128, xcm_runtime_apis::fees::Error> {
fn query_weight_to_asset_fee(_: Weight, _: VersionedAssetId) -> Result<u128, xcm_runtime_pezapis::fees::Error> {
unimplemented!()
}
fn query_xcm_weight(_: VersionedXcm<()>) -> Result<Weight, xcm_runtime_apis::fees::Error> {
fn query_xcm_weight(_: VersionedXcm<()>) -> Result<Weight, xcm_runtime_pezapis::fees::Error> {
unimplemented!()
}
fn query_delivery_fees(_: VersionedLocation, _: VersionedXcm<()>, _: VersionedAssetId) -> Result<VersionedAssets, xcm_runtime_apis::fees::Error> {
fn query_delivery_fees(_: VersionedLocation, _: VersionedXcm<()>, _: VersionedAssetId) -> Result<VersionedAssets, xcm_runtime_pezapis::fees::Error> {
unimplemented!()
}
}
impl xcm_runtime_apis::dry_run::DryRunApi<Block, (), (), ()> for Runtime {
fn dry_run_call(_: (), _: (), _: XcmVersion) -> Result<xcm_runtime_apis::dry_run::CallDryRunEffects<()>, xcm_runtime_apis::dry_run::Error> {
impl xcm_runtime_pezapis::dry_run::DryRunApi<Block, (), (), ()> for Runtime {
fn dry_run_call(_: (), _: (), _: XcmVersion) -> Result<xcm_runtime_pezapis::dry_run::CallDryRunEffects<()>, xcm_runtime_pezapis::dry_run::Error> {
unimplemented!()
}
fn dry_run_xcm(_: VersionedLocation, _: VersionedXcm<()>) -> Result<xcm_runtime_apis::dry_run::XcmDryRunEffects<()>, xcm_runtime_apis::dry_run::Error> {
fn dry_run_xcm(_: VersionedLocation, _: VersionedXcm<()>) -> Result<xcm_runtime_pezapis::dry_run::XcmDryRunEffects<()>, xcm_runtime_pezapis::dry_run::Error> {
unimplemented!()
}
}
@@ -37,7 +37,7 @@
use super::{HeaderProvider, HeaderProviderProvider};
use futures::channel::oneshot;
use pezkuwi_node_primitives::MAX_FINALITY_LAG as PRIMITIVES_MAX_FINALITY_LAG;
use pezkuwi_pez_node_primitives::MAX_FINALITY_LAG as PRIMITIVES_MAX_FINALITY_LAG;
use pezkuwi_node_subsystem::messages::{
ApprovalVotingParallelMessage, ChainSelectionMessage, DisputeCoordinatorMessage,
HighestApprovedAncestorBlock,
+1 -1
View File
@@ -17,7 +17,7 @@
use super::{relay_chain_selection::*, *};
use futures::channel::oneshot::Receiver;
use pezkuwi_node_primitives::approval::v2::VrfSignature;
use pezkuwi_pez_node_primitives::approval::v2::VrfSignature;
use pezkuwi_node_subsystem::messages::{AllMessages, BlockDescription};
use pezkuwi_node_subsystem_util::TimeoutExt;
use pezkuwi_overseer::{HighPriority, PriorityLevel};