chore: regenerate umbrella crate, fix feature propagation

This commit is contained in:
2025-12-16 11:28:32 +03:00
parent dd6d48f528
commit 620b0e3aa0
1358 changed files with 9464 additions and 7656 deletions
@@ -23,9 +23,9 @@ use crate::{
scale_info::TypeInfo,
traits::{self, AtLeast32BitUnsigned, BlockNumber, Hash as HashT, MaybeDisplay, Member},
};
use pezsp_core::U256;
#[cfg(feature = "serde")]
use serde::{Deserialize, Serialize};
use pezsp_core::U256;
/// Abstraction over a block header for a bizinikiwi chain.
#[derive(
@@ -35,9 +35,9 @@ use codec::{
Input,
};
use core::fmt;
use scale_info::{build::Fields, meta_type, Path, StaticTypeInfo, Type, TypeInfo, TypeParameter};
use pezsp_io::hashing::blake2_256;
use pezsp_weights::Weight;
use scale_info::{build::Fields, meta_type, Path, StaticTypeInfo, Type, TypeInfo, TypeParameter};
/// Type to represent the version of the [Extension](TransactionExtension) used in this extrinsic.
pub type ExtensionVersion = u8;
+2 -2
View File
@@ -53,12 +53,12 @@ pub use alloc::vec::Vec;
#[doc(hidden)]
pub use codec;
#[doc(hidden)]
pub use pezsp_std;
#[doc(hidden)]
pub use scale_info;
#[cfg(feature = "serde")]
#[doc(hidden)]
pub use serde;
#[doc(hidden)]
pub use pezsp_std;
#[doc(hidden)]
pub use paste;
@@ -327,7 +327,8 @@ impl Response {
/// Retrieve the headers for this response.
pub fn headers(&mut self) -> &Headers {
if self.headers.is_none() {
self.headers = Some(Headers { raw: pezsp_io::offchain::http_response_headers(self.id) });
self.headers =
Some(Headers { raw: pezsp_io::offchain::http_response_headers(self.id) });
}
self.headers.as_ref().expect("Headers were just set; qed")
}
@@ -406,8 +407,11 @@ impl Iterator for ResponseBody {
}
if self.filled_up_to.is_none() {
let result =
pezsp_io::offchain::http_response_read_body(self.id, &mut self.buffer, self.deadline);
let result = pezsp_io::offchain::http_response_read_body(
self.id,
&mut self.buffer,
self.deadline,
);
match result {
Err(e) => {
self.error = Some(e);
@@ -65,11 +65,11 @@ impl log::Log for RuntimeLogger {
#[cfg(test)]
mod tests {
use pezsp_api::ProvideRuntimeApi;
use std::env;
use bizinikiwi_test_runtime_client::{
runtime::TestAPI, DefaultTestClientBuilderExt, TestClientBuilder, TestClientBuilderExt,
};
use pezsp_api::ProvideRuntimeApi;
use std::env;
#[test]
fn ensure_runtime_logger_works() {
+1 -1
View File
@@ -24,9 +24,9 @@ use crate::{
traits::{self, BlakeTwo256, Dispatchable, LazyExtrinsic, OpaqueKeys},
DispatchResultWithInfo, KeyTypeId, OpaqueExtrinsic,
};
use serde::{de::Error as DeError, Deserialize, Deserializer, Serialize};
use pezsp_core::crypto::{key_types, ByteArray, CryptoType, Dummy};
pub use pezsp_core::{sr25519, H256};
use serde::{de::Error as DeError, Deserialize, Deserializer, Serialize};
use std::{cell::RefCell, fmt::Debug};
/// A dummy type which can be used instead of regular cryptographic primitives.
@@ -33,8 +33,6 @@ use codec::{
#[doc(hidden)]
pub use core::{fmt::Debug, marker::PhantomData};
use impl_trait_for_tuples::impl_for_tuples;
#[cfg(feature = "serde")]
use serde::{de::DeserializeOwned, Deserialize, Serialize};
use pezsp_application_crypto::AppCrypto;
pub use pezsp_arithmetic::traits::{
checked_pow, ensure_pow, AtLeast32Bit, AtLeast32BitUnsigned, Bounded, CheckedAdd, CheckedDiv,
@@ -50,6 +48,8 @@ pub use pezsp_core::{
ConstU128, ConstU16, ConstU32, ConstU64, ConstU8, ConstUint, Get, GetDefault, TryCollect,
TypedGet,
};
#[cfg(feature = "serde")]
use serde::{de::DeserializeOwned, Deserialize, Serialize};
#[cfg(feature = "std")]
use std::fmt::Display;
#[cfg(feature = "std")]
@@ -157,8 +157,9 @@ pub trait AppVerify {
}
impl<
S: Verify<Signer = <<T as AppCrypto>::Public as pezsp_application_crypto::AppPublic>::Generic>
+ From<T>,
S: Verify<
Signer = <<T as AppCrypto>::Public as pezsp_application_crypto::AppPublic>::Generic,
> + From<T>,
T: pezsp_application_crypto::Wraps<Inner = S>
+ pezsp_application_crypto::AppCrypto
+ pezsp_application_crypto::AppSignature
@@ -1279,8 +1280,8 @@ pub trait Header:
// via `HeaderFor` or `BlockNumberFor`.
//
// This is needed to fix the "cyclical" issue in loading Header/BlockNumber as part of a
// `pezpallet::call`. Essentially, `construct_runtime` aggregates all calls to create a `RuntimeCall`
// that is then used to define `UncheckedExtrinsic`.
// `pezpallet::call`. Essentially, `construct_runtime` aggregates all calls to create a
// `RuntimeCall` that is then used to define `UncheckedExtrinsic`.
// ```ignore
// pub type UncheckedExtrinsic =
// generic::UncheckedExtrinsic<Address, RuntimeCall, Signature, TxExtension>;
@@ -20,8 +20,8 @@
#![allow(deprecated)]
use scale_info::TypeInfo;
use pezsp_core::RuntimeDebug;
use scale_info::TypeInfo;
use crate::{
traits::{AsSystemOriginSigner, SignedExtension, ValidateResult},
@@ -22,8 +22,8 @@ use crate::{
RuntimeDebug,
};
use alloc::{vec, vec::Vec};
use scale_info::TypeInfo;
use pezsp_weights::Weight;
use scale_info::TypeInfo;
/// Priority for a transaction. Additive. Higher is better.
pub type TransactionPriority = u64;
@@ -31,8 +31,8 @@ use num_traits::{
CheckedAdd, CheckedDiv, CheckedMul, CheckedNeg, CheckedRem, CheckedShl, CheckedShr, CheckedSub,
Num, NumCast, PrimInt, Saturating, ToPrimitive,
};
use scale_info::{StaticTypeInfo, TypeInfo};
use pezsp_core::Get;
use scale_info::{StaticTypeInfo, TypeInfo};
#[cfg(feature = "serde")]
use serde::{Deserialize, Serialize};
@@ -523,9 +523,9 @@ impl<T: HasCompact, D: Get<T>> CompactAs for TypeWithDefault<T, D> {
#[cfg(test)]
mod tests {
use super::TypeWithDefault;
use scale_info::TypeInfo;
use pezsp_arithmetic::traits::{AtLeast16Bit, AtLeast32Bit, AtLeast8Bit};
use pezsp_core::Get;
use scale_info::TypeInfo;
#[test]
#[allow(dead_code)]