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
@@ -445,6 +445,9 @@ mod mock {
}
pub fn new_test_ext() -> pezsp_io::TestExternalities {
pezframe_system::GenesisConfig::<Test>::default().build_storage().unwrap().into()
pezframe_system::GenesisConfig::<Test>::default()
.build_storage()
.unwrap()
.into()
}
}
@@ -15,7 +15,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//! End-to-end testing pezpallet for PoV benchmarking. Should only be deployed in a testing runtime.
//! End-to-end testing pezpallet for PoV benchmarking. Should only be deployed in a testing
//! runtime.
#![cfg_attr(not(feature = "std"), no_std)]
@@ -39,7 +40,8 @@ pub mod pezpallet {
#[pezpallet::config]
pub trait Config: pezframe_system::Config {
#[allow(deprecated)]
type RuntimeEvent: From<Event<Self>> + IsType<<Self as pezframe_system::Config>::RuntimeEvent>;
type RuntimeEvent: From<Event<Self>>
+ IsType<<Self as pezframe_system::Config>::RuntimeEvent>;
}
#[pezpallet::storage]
+1 -1
View File
@@ -39,9 +39,9 @@ pub mod v1;
pub mod __private {
pub use alloc::{boxed::Box, str, vec, vec::Vec};
pub use codec;
pub use pezframe_support::{storage, traits};
pub use log;
pub use paste;
pub use pezframe_support::{storage, traits};
pub use pezsp_core::defer;
pub use pezsp_io::storage::root as storage_root;
pub use pezsp_runtime::{traits::Zero, StateVersion};
@@ -351,7 +351,10 @@ mod benchmarks {
Pezpallet::<Test>::test_benchmark_override_benchmark(),
Err(BenchmarkError::Override(_)),
));
assert_eq!(Pezpallet::<Test>::test_benchmark_skip_benchmark(), Err(BenchmarkError::Skip),);
assert_eq!(
Pezpallet::<Test>::test_benchmark_skip_benchmark(),
Err(BenchmarkError::Skip),
);
});
}
@@ -367,7 +370,10 @@ mod benchmarks {
assert_eq!(Value::<Test>::get(), None);
// It resets when the error happens in the call:
assert_err!(Pezpallet::<Test>::test_benchmark_modify_in_call_then_error(), "Should error");
assert_err!(
Pezpallet::<Test>::test_benchmark_modify_in_call_then_error(),
"Should error"
);
assert_eq!(Value::<Test>::get(), None);
// It resets when the error happens in the verify:
@@ -18,10 +18,9 @@
//! Interfaces, types and utils for benchmarking a FRAME runtime.
use alloc::vec::Vec;
use codec::{Decode, Encode};
use pezframe_support::{dispatch::DispatchErrorWithPostInfo, pezpallet_prelude::*, traits::StorageInfo};
use scale_info::TypeInfo;
#[cfg(feature = "std")]
use serde::{Deserialize, Serialize};
use pezframe_support::{
dispatch::DispatchErrorWithPostInfo, pezpallet_prelude::*, traits::StorageInfo,
};
use pezsp_io::hashing::blake2_256;
use pezsp_runtime::{
traits::TrailingZeroInput, transaction_validity::TransactionValidityError, DispatchError,
@@ -31,6 +30,9 @@ use pezsp_runtime_interface::pass_by::{
PassFatPointerAndRead,
};
use pezsp_storage::TrackedStorageKey;
use scale_info::TypeInfo;
#[cfg(feature = "std")]
use serde::{Deserialize, Serialize};
/// An alphabet of possible parameters to use for benchmarking.
#[cfg_attr(feature = "std", derive(Serialize, Deserialize))]
+5 -4
View File
@@ -188,7 +188,8 @@ macro_rules! benchmarks {
/// Same as [`benchmarks`] but for instantiable module.
///
/// NOTE: For pezpallet declared with [`pezframe_support::pezpallet`], use [`benchmarks_instance_pallet`].
/// NOTE: For pezpallet declared with [`pezframe_support::pezpallet`], use
/// [`benchmarks_instance_pallet`].
#[macro_export]
macro_rules! benchmarks_instance {
(
@@ -1799,9 +1800,9 @@ pub fn show_benchmark_debug_info(
///
/// At the end of `dispatch_benchmark`, you should return this batches object.
///
/// In the case where you have multiple instances of a pezpallet that you need to separately benchmark,
/// the name of your module struct will be used as a suffix to your outputted weight file. For
/// example:
/// In the case where you have multiple instances of a pezpallet that you need to separately
/// benchmark, the name of your module struct will be used as a suffix to your outputted weight
/// file. For example:
///
/// ```ignore
/// add_benchmark!(params, batches, pezpallet_balances, Balances); // pezpallet_balances.rs