fix: Add workspace dependencies for vendored pezkuwi-subxt and zombienet-sdk
- Add all missing workspace dependencies required by vendor crates - Include external crates: scale-*, sp-core, sc-chain-spec, kube, etc. - Include subxt dependencies: smoldot, web-time, wasm-bindgen, etc. - Regenerate umbrella crate with updated dependencies - Apply zepter std feature propagation fixes to vendor crates - Apply rustfmt formatting to vendor and pezframe files
This commit is contained in:
@@ -64,12 +64,7 @@ impl RuntimeMetadataV14 {
|
||||
let pezpallets = registry.map_into_portable(pezpallets);
|
||||
let extrinsic = extrinsic.into_portable(&mut registry);
|
||||
let ty = registry.register_type(&runtime_type);
|
||||
Self {
|
||||
types: registry.into(),
|
||||
pezpallets,
|
||||
extrinsic,
|
||||
ty,
|
||||
}
|
||||
Self { types: registry.into(), pezpallets, extrinsic, ty }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -298,11 +293,7 @@ impl IntoPortable for StorageEntryType {
|
||||
fn into_portable(self, registry: &mut Registry) -> Self::Output {
|
||||
match self {
|
||||
Self::Plain(plain) => StorageEntryType::Plain(registry.register_type(&plain)),
|
||||
Self::Map {
|
||||
hashers,
|
||||
key,
|
||||
value,
|
||||
} => StorageEntryType::Map {
|
||||
Self::Map { hashers, key, value } => StorageEntryType::Map {
|
||||
hashers,
|
||||
key: registry.register_type(&key),
|
||||
value: registry.register_type(&value),
|
||||
@@ -328,9 +319,7 @@ impl IntoPortable for PezpalletCallMetadata {
|
||||
type Output = PezpalletCallMetadata<PortableForm>;
|
||||
|
||||
fn into_portable(self, registry: &mut Registry) -> Self::Output {
|
||||
PezpalletCallMetadata {
|
||||
ty: registry.register_type(&self.ty),
|
||||
}
|
||||
PezpalletCallMetadata { ty: registry.register_type(&self.ty) }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -353,9 +342,7 @@ impl IntoPortable for PezpalletEventMetadata {
|
||||
type Output = PezpalletEventMetadata<PortableForm>;
|
||||
|
||||
fn into_portable(self, registry: &mut Registry) -> Self::Output {
|
||||
PezpalletEventMetadata {
|
||||
ty: registry.register_type(&self.ty),
|
||||
}
|
||||
PezpalletEventMetadata { ty: registry.register_type(&self.ty) }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -411,9 +398,7 @@ impl IntoPortable for PezpalletErrorMetadata {
|
||||
type Output = PezpalletErrorMetadata<PortableForm>;
|
||||
|
||||
fn into_portable(self, registry: &mut Registry) -> Self::Output {
|
||||
PezpalletErrorMetadata {
|
||||
ty: registry.register_type(&self.ty),
|
||||
}
|
||||
PezpalletErrorMetadata { ty: registry.register_type(&self.ty) }
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -27,9 +27,9 @@ use scale_info::{
|
||||
};
|
||||
|
||||
pub use super::v14::{
|
||||
PezpalletCallMetadata, PezpalletConstantMetadata, PezpalletErrorMetadata, PezpalletEventMetadata,
|
||||
PezpalletStorageMetadata, StorageEntryMetadata, StorageEntryModifier, StorageEntryType,
|
||||
StorageHasher,
|
||||
PezpalletCallMetadata, PezpalletConstantMetadata, PezpalletErrorMetadata,
|
||||
PezpalletEventMetadata, PezpalletStorageMetadata, StorageEntryMetadata, StorageEntryModifier,
|
||||
StorageEntryType, StorageHasher,
|
||||
};
|
||||
|
||||
/// Latest runtime metadata
|
||||
@@ -82,15 +82,7 @@ impl RuntimeMetadataV15 {
|
||||
let outer_enums = outer_enums.into_portable(&mut registry);
|
||||
let custom = custom.into_portable(&mut registry);
|
||||
|
||||
Self {
|
||||
types: registry.into(),
|
||||
pezpallets,
|
||||
extrinsic,
|
||||
ty,
|
||||
apis,
|
||||
outer_enums,
|
||||
custom,
|
||||
}
|
||||
Self { types: registry.into(), pezpallets, extrinsic, ty, apis, outer_enums, custom }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -343,10 +335,7 @@ impl IntoPortable for CustomValueMetadata {
|
||||
type Output = CustomValueMetadata<PortableForm>;
|
||||
|
||||
fn into_portable(self, registry: &mut Registry) -> Self::Output {
|
||||
CustomValueMetadata {
|
||||
ty: registry.register_type(&self.ty),
|
||||
value: self.value,
|
||||
}
|
||||
CustomValueMetadata { ty: registry.register_type(&self.ty), value: self.value }
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -27,7 +27,7 @@ use scale_info::{
|
||||
};
|
||||
|
||||
// These types have not changed, so we re-export from our v14/v15 definitions:
|
||||
pub use super::v14::{StorageEntryModifier, StorageEntryType, StorageHasher, StorageEntryMetadata};
|
||||
pub use super::v14::{StorageEntryMetadata, StorageEntryModifier, StorageEntryType, StorageHasher};
|
||||
pub use super::v15::{CustomMetadata, CustomValueMetadata, OuterEnums};
|
||||
|
||||
/// The metadata for a method or function parameter. This is identical to
|
||||
@@ -80,14 +80,7 @@ impl RuntimeMetadataV16 {
|
||||
let outer_enums = outer_enums.into_portable(&mut registry);
|
||||
let custom = custom.into_portable(&mut registry);
|
||||
|
||||
Self {
|
||||
types: registry.into(),
|
||||
pezpallets,
|
||||
extrinsic,
|
||||
apis,
|
||||
outer_enums,
|
||||
custom,
|
||||
}
|
||||
Self { types: registry.into(), pezpallets, extrinsic, apis, outer_enums, custom }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -528,7 +521,7 @@ impl IntoPortable for ItemDeprecationInfo {
|
||||
let note = note.into_portable(registry);
|
||||
let since = since.map(|x| x.into_portable(registry));
|
||||
ItemDeprecationInfo::Deprecated { note, since }
|
||||
}
|
||||
},
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -565,10 +558,7 @@ impl IntoPortable for EnumDeprecationInfo {
|
||||
type Output = EnumDeprecationInfo<PortableForm>;
|
||||
|
||||
fn into_portable(self, registry: &mut Registry) -> Self::Output {
|
||||
let entries = self
|
||||
.0
|
||||
.into_iter()
|
||||
.map(|(k, entry)| (k, entry.into_portable(registry)));
|
||||
let entries = self.0.into_iter().map(|(k, entry)| (k, entry.into_portable(registry)));
|
||||
EnumDeprecationInfo(entries.collect())
|
||||
}
|
||||
}
|
||||
@@ -606,7 +596,7 @@ impl IntoPortable for VariantDeprecationInfo {
|
||||
let note = note.into_portable(registry);
|
||||
let since = since.map(|x| x.into_portable(registry));
|
||||
VariantDeprecationInfo::Deprecated { note, since }
|
||||
}
|
||||
},
|
||||
Self::DeprecatedWithoutNote => VariantDeprecationInfo::DeprecatedWithoutNote,
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user