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 a1bce5ec4a
commit f2e8b2f043
32 changed files with 201 additions and 136 deletions
+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},
};