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:
@@ -17,7 +17,27 @@ codec = { features = ["derive"], workspace = true }
|
||||
scale-info = { features = ["derive"], workspace = true }
|
||||
serde_json = { features = ["alloc"], 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",
|
||||
@@ -63,6 +83,7 @@ std = [
|
||||
"codec/std",
|
||||
"pezcumulus-pezpallet-teyrchain-system/std",
|
||||
"pezkuwi-sdk/std",
|
||||
"pezsp-runtime/std",
|
||||
"scale-info/std",
|
||||
"serde_json/std",
|
||||
"bizinikiwi-wasm-builder",
|
||||
@@ -70,6 +91,7 @@ std = [
|
||||
runtime-benchmarks = [
|
||||
"pezcumulus-pezpallet-teyrchain-system/runtime-benchmarks",
|
||||
"pezkuwi-sdk/runtime-benchmarks",
|
||||
"pezsp-runtime/runtime-benchmarks",
|
||||
"bizinikiwi-wasm-builder?/runtime-benchmarks",
|
||||
]
|
||||
|
||||
|
||||
+1
-1
@@ -67,7 +67,7 @@ pub fn get_preset(id: &PresetId) -> Option<Vec<u8>> {
|
||||
yap_teyrchain_genesis(
|
||||
Sr25519Keyring::Alice.to_account_id(),
|
||||
authorities,
|
||||
Sr25519Keyring::well_known().map(|x| x.to_account_id()).collect(),
|
||||
Sr25519Keyring::well_known().map(|x: Sr25519Keyring| x.to_account_id()).collect(),
|
||||
ENDOWMENT,
|
||||
DEFAULT_PARA_ID,
|
||||
)
|
||||
|
||||
@@ -18,7 +18,7 @@ use tokio::{
|
||||
use zombienet_sdk::subxt::{
|
||||
self,
|
||||
blocks::Block,
|
||||
config::{bizinikiwi::DigestItem, polkadot::PolkadotExtrinsicParamsBuilder},
|
||||
config::{polkadot::PolkadotExtrinsicParamsBuilder, substrate::DigestItem},
|
||||
dynamic::Value,
|
||||
events::Events,
|
||||
ext::scale_value::value,
|
||||
@@ -70,7 +70,7 @@ fn find_event_and_decode_fields<T: Decode>(
|
||||
let mut result = vec![];
|
||||
for event in events.iter() {
|
||||
let event = event?;
|
||||
if event.pezpallet_name() == pezpallet && event.variant_name() == variant {
|
||||
if event.pallet_name() == pezpallet && event.variant_name() == variant {
|
||||
let field_bytes = event.field_bytes().to_vec();
|
||||
result.push(T::decode(&mut &field_bytes[..])?);
|
||||
}
|
||||
@@ -84,7 +84,7 @@ async fn is_session_change(
|
||||
let events = block.events().await?;
|
||||
Ok(events.iter().any(|event| {
|
||||
event.as_ref().is_ok_and(|event| {
|
||||
event.pezpallet_name() == "Session" && event.variant_name() == "NewSession"
|
||||
event.pallet_name() == "Session" && event.variant_name() == "NewSession"
|
||||
})
|
||||
}))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user