fix: resolve pezsp_runtime visibility issues across workspace

- Add direct pezsp-runtime dependency to crates requiring pezsp_runtime types
- Update imports to use pezkuwi_sdk:: prefix for primitive crates
- Fix subxt_client.rs substitute_type paths to match rebranded metadata
- Update umbrella crate with additional feature exports
- Fix pezstaging-node-cli, pez-minimal-template-node, teyrchain templates
- Delete stale sqlx query cache files (require regeneration with running chain)
This commit is contained in:
2025-12-19 03:17:14 +03:00
parent 549c23d4b6
commit cb4117a15d
32 changed files with 201 additions and 136 deletions
+5 -2
View File
@@ -24,7 +24,10 @@ jsonrpsee = { features = ["server"], workspace = true }
log = { workspace = true, default-features = true }
serde = { features = ["derive"], workspace = true, default-features = true }
pezkuwi-sdk = { workspace = true, features = ["node", "pezkuwi-primitives"] }
# Direct dependency needed (not through umbrella due to macro visibility issues)
pezsp-runtime = { workspace = true }
pezkuwi-sdk = { workspace = true, features = ["node", "pezkuwi-primitives", "pezsp-keystore", "pezsp-timestamp"] }
teyrchain-template-runtime = { workspace = true }
@@ -36,7 +39,7 @@ pezkuwi-sdk = { workspace = true, features = ["bizinikiwi-build-script-utils"] }
[features]
default = ["std"]
std = ["log/std", "pezkuwi-sdk/std", "teyrchain-template-runtime/std"]
std = ["log/std", "pezkuwi-sdk/std", "pezsp-runtime/std", "teyrchain-template-runtime/std"]
runtime-benchmarks = [
"pezkuwi-sdk/runtime-benchmarks",
"teyrchain-template-runtime/runtime-benchmarks",
+1
View File
@@ -1,6 +1,7 @@
use pezkuwi_sdk::*;
use log::info;
use pezsp_runtime;
use pezcumulus_client_service::storage_proof_size::HostFunctions as ReclaimHostFunctions;
use pezframe_benchmarking_cli::{BenchmarkCmd, BIZINIKIWI_REFERENCE_HARDWARE};
use pezsc_cli::{
+3 -3
View File
@@ -41,8 +41,8 @@ use pezsc_network::{NetworkBackend, NetworkBlock};
use pezsc_service::{Configuration, PartialComponents, TFullBackend, TFullClient, TaskManager};
use pezsc_telemetry::{Telemetry, TelemetryHandle, TelemetryWorker, TelemetryWorkerHandle};
use pezsc_transaction_pool_api::OffchainTransactionPoolFactory;
use pezsp_api::ProvideRuntimeApi;
use pezsp_keystore::KeystorePtr;
use pezkuwi_sdk::pezsp_api::ProvideRuntimeApi;
use pezkuwi_sdk::pezsp_keystore::KeystorePtr;
use prometheus_endpoint::Registry;
#[docify::export(wasm_executor)]
@@ -161,7 +161,7 @@ fn build_import_queue(
client,
block_import,
move |_, _| async move {
let timestamp = pezsp_timestamp::InherentDataProvider::from_system_time();
let timestamp = pezkuwi_sdk::pezsp_timestamp::InherentDataProvider::from_system_time();
Ok(timestamp)
},
&task_manager.spawn_essential_handle(),
+21
View File
@@ -30,7 +30,26 @@ smallvec = { workspace = true, default-features = true }
# Local
pezpallet-teyrchain-template = { workspace = true }
# Direct dependency needed for runtime (not through umbrella due to macro visibility issues)
pezsp-runtime = { workspace = true }
pezkuwi-sdk = { workspace = true, default-features = false, features = [
# Primitives needed for runtime
"pezsp-core",
"pezsp-consensus-aura",
"pezsp-version",
"pezsp-genesis-builder",
"pezsp-keyring",
"pezsp-api",
"pezsp-block-builder",
"pezsp-inherents",
"pezsp-transaction-pool",
"pezsp-offchain",
"pezsp-session",
"pezframe-support",
"pezframe-system",
"pezframe-executive",
"pezpallet-aura",
"pezpallet-authorship",
"pezpallet-balances",
@@ -78,6 +97,7 @@ std = [
"log/std",
"pezpallet-teyrchain-template/std",
"pezkuwi-sdk/std",
"pezsp-runtime/std",
"scale-info/std",
"serde_json/std",
"bizinikiwi-wasm-builder",
@@ -87,6 +107,7 @@ runtime-benchmarks = [
"hex-literal",
"pezpallet-teyrchain-template/runtime-benchmarks",
"pezkuwi-sdk/runtime-benchmarks",
"pezsp-runtime/runtime-benchmarks",
"bizinikiwi-wasm-builder?/runtime-benchmarks",
]
try-runtime = [
@@ -49,7 +49,7 @@ fn testnet_genesis(
session: SessionConfig {
keys: invulnerables
.into_iter()
.map(|(acc, aura)| {
.map(|(acc, aura): (AccountId, AuraId)| {
(
acc.clone(), // account id
acc, // validator id
@@ -70,7 +70,7 @@ fn local_testnet_genesis() -> Value {
(Sr25519Keyring::Alice.to_account_id(), Sr25519Keyring::Alice.public().into()),
(Sr25519Keyring::Bob.to_account_id(), Sr25519Keyring::Bob.public().into()),
],
Sr25519Keyring::well_known().map(|k| k.to_account_id()).collect(),
Sr25519Keyring::well_known().map(|k: Sr25519Keyring| k.to_account_id()).collect(),
Sr25519Keyring::Alice.to_account_id(),
TEYRCHAIN_ID.into(),
)
@@ -83,7 +83,7 @@ fn development_config_genesis() -> Value {
(Sr25519Keyring::Alice.to_account_id(), Sr25519Keyring::Alice.public().into()),
(Sr25519Keyring::Bob.to_account_id(), Sr25519Keyring::Bob.public().into()),
],
Sr25519Keyring::well_known().map(|k| k.to_account_id()).collect(),
Sr25519Keyring::well_known().map(|k: Sr25519Keyring| k.to_account_id()).collect(),
Sr25519Keyring::Alice.to_account_id(),
TEYRCHAIN_ID.into(),
)
+2 -2
View File
@@ -137,8 +137,8 @@ impl WeightToFeePolynomial for WeightToFee {
/// to even the core data structures.
pub mod opaque {
use super::*;
pub use pezkuwi_sdk::pezsp_runtime::OpaqueExtrinsic as UncheckedExtrinsic;
use pezkuwi_sdk::pezsp_runtime::{
pub use pezsp_runtime::OpaqueExtrinsic as UncheckedExtrinsic;
use pezsp_runtime::{
generic,
traits::{BlakeTwo256, Hash as HashT},
};