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
+2 -2
View File
@@ -25,8 +25,8 @@
//!
//! # Paged List Pezpallet
//!
//! A thin wrapper pezpallet around a [`paged_list::StoragePagedList`]. It provides an API for a single
//! paginated list. It can be instantiated multiple times to provide multiple lists.
//! A thin wrapper pezpallet around a [`paged_list::StoragePagedList`]. It provides an API for a
//! single paginated list. It can be instantiated multiple times to provide multiple lists.
//!
//! ## Overview
//!
+4 -1
View File
@@ -62,7 +62,10 @@ pub type MetaOf<T, I> =
/// Build genesis storage according to the mock runtime.
pub fn new_test_ext() -> TestState {
pezframe_system::GenesisConfig::<Test>::default().build_storage().unwrap().into()
pezframe_system::GenesisConfig::<Test>::default()
.build_storage()
.unwrap()
.into()
}
/// Run this closure in test externalities.
@@ -63,9 +63,9 @@ pub type ValueIndex = u32;
/// [`storage::append`](frame::deps::pezsp_io::storage::append). It allows to directly extend
/// the elements of `values` vector of the page without loading the whole vector from storage. A new
/// page is instantiated once [`Page::next`] overflows `ValuesPerNewPage`. Its vector will also be
/// created through [`storage::append`](frame::deps::pezsp_io::storage::append). **Draining** advances
/// the internal indices identical to Iteration. It additionally persists the increments to storage
/// and thereby 'drains' elements. Completely drained pages are deleted from storage.
/// created through [`storage::append`](frame::deps::pezsp_io::storage::append). **Draining**
/// advances the internal indices identical to Iteration. It additionally persists the increments to
/// storage and thereby 'drains' elements. Completely drained pages are deleted from storage.
///
/// # Further Observations
///
@@ -522,7 +522,8 @@ mod tests {
let as_vec = Vec::<u32>::decode(&mut &raw[..]).unwrap();
assert_eq!(as_vec.len(), 4, "Second page contains 4");
let meta = pezsp_io::storage::get(&meta_key::<Prefix>()).expect("Meta should be present");
let meta =
pezsp_io::storage::get(&meta_key::<Prefix>()).expect("Meta should be present");
let meta: StoragePagedListMeta<Prefix, u32, ValuesPerNewPage> =
Decode::decode(&mut &meta[..]).unwrap();
assert_eq!(meta.first_page, 0);