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,7 +23,9 @@ use crate::*;
use alloc::{vec, vec::Vec};
use pezframe_benchmarking::v2::*;
use pezframe_support::traits::{Get, OnFinalize, OnInitialize};
use pezframe_system::{pezpallet_prelude::BlockNumberFor, EventRecord, Pezpallet as System, RawOrigin};
use pezframe_system::{
pezpallet_prelude::BlockNumberFor, EventRecord, Pezpallet as System, RawOrigin,
};
use pezsp_runtime::traits::{Bounded, CheckedDiv, One, Zero};
use pezsp_transaction_storage_proof::TransactionStorageProof;
@@ -111,11 +113,15 @@ fn assert_last_event<T: Config>(generic_event: <T as Config>::RuntimeEvent) {
pub fn run_to_block<T: Config>(n: pezframe_system::pezpallet_prelude::BlockNumberFor<T>) {
while pezframe_system::Pezpallet::<T>::block_number() < n {
crate::Pezpallet::<T>::on_finalize(pezframe_system::Pezpallet::<T>::block_number());
pezframe_system::Pezpallet::<T>::on_finalize(pezframe_system::Pezpallet::<T>::block_number());
pezframe_system::Pezpallet::<T>::on_finalize(
pezframe_system::Pezpallet::<T>::block_number(),
);
pezframe_system::Pezpallet::<T>::set_block_number(
pezframe_system::Pezpallet::<T>::block_number() + One::one(),
);
pezframe_system::Pezpallet::<T>::on_initialize(pezframe_system::Pezpallet::<T>::block_number());
pezframe_system::Pezpallet::<T>::on_initialize(
pezframe_system::Pezpallet::<T>::block_number(),
);
crate::Pezpallet::<T>::on_initialize(pezframe_system::Pezpallet::<T>::block_number());
}
}
@@ -113,7 +113,8 @@ pub mod pezpallet {
pub trait Config: pezframe_system::Config {
/// The overarching event type.
#[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>;
/// A dispatchable call.
type RuntimeCall: Parameter
+ Dispatchable<RuntimeOrigin = Self::RuntimeOrigin>
@@ -234,7 +235,8 @@ pub mod pezpallet {
// Chunk data and compute storage root
let chunk_count = num_chunks(data.len() as u32);
let chunks = data.chunks(CHUNK_SIZE).map(|c| c.to_vec()).collect();
let root = pezsp_io::trie::blake2_256_ordered_root(chunks, pezsp_runtime::StateVersion::V1);
let root =
pezsp_io::trie::blake2_256_ordered_root(chunks, pezsp_runtime::StateVersion::V1);
let content_hash = pezsp_io::hashing::blake2_256(&data);
let extrinsic_index =
@@ -368,8 +370,8 @@ pub mod pezpallet {
/// Storage fee per transaction.
pub type EntryFee<T: Config> = StorageValue<_, BalanceOf<T>>;
/// Storage period for data in blocks. Should match `pezsp_storage_proof::DEFAULT_STORAGE_PERIOD`
/// for block authoring.
/// Storage period for data in blocks. Should match
/// `pezsp_storage_proof::DEFAULT_STORAGE_PERIOD` for block authoring.
#[pezpallet::storage]
pub type StoragePeriod<T: Config> = StorageValue<_, BlockNumberFor<T>, ValueQuery>;