Refactoring Checkpoint: (WIP)

This commit is contained in:
2025-12-14 10:29:31 +03:00
parent 09735eb97a
commit c89d7cac55
1424 changed files with 6415 additions and 6064 deletions
@@ -1,5 +1,5 @@
[package]
name = "generate-bags"
name = "pez-generate-bags"
version = "28.0.0"
authors.workspace = true
edition.workspace = true
@@ -7,7 +7,7 @@ license = "Apache-2.0"
homepage.workspace = true
repository.workspace = true
description = "Bag threshold generation script for pezpallet-bag-list"
documentation = "https://docs.rs/generate-bags"
documentation = "https://docs.rs/pez-generate-bags"
[lints]
workspace = true
@@ -1,27 +1,27 @@
[package]
name = "node-runtime-generate-bags"
name = "node-runtime-pez-generate-bags"
version = "3.0.0"
authors.workspace = true
edition.workspace = true
license = "Apache-2.0"
homepage.workspace = true
repository.workspace = true
description = "Bag threshold generation script for pezpallet-bag-list and kitchensink-runtime."
description = "Bag threshold generation script for pezpallet-bag-list and pez-kitchensink-runtime."
publish = false
documentation = "https://docs.rs/node-runtime-generate-bags"
documentation = "https://docs.rs/node-runtime-pez-generate-bags"
[lints]
workspace = true
[dependencies]
generate-bags = { workspace = true, default-features = true }
kitchensink-runtime = { workspace = true }
pez-generate-bags = { workspace = true, default-features = true }
pez-kitchensink-runtime = { workspace = true }
# third-party
clap = { features = ["derive"], workspace = true }
[features]
runtime-benchmarks = [
"generate-bags/runtime-benchmarks",
"kitchensink-runtime/runtime-benchmarks",
"pez-generate-bags/runtime-benchmarks",
"pez-kitchensink-runtime/runtime-benchmarks",
]
@@ -18,7 +18,7 @@
//! Make the set of bag thresholds to be used with pezpallet-bags-list.
use clap::Parser;
use generate_bags::generate_thresholds;
use pez_generate_bags::generate_thresholds;
use std::path::PathBuf;
#[derive(Debug, Parser)]
@@ -43,7 +43,7 @@ struct Opt {
fn main() -> Result<(), std::io::Error> {
let Opt { n_bags, output, total_issuance, minimum_balance } = Opt::parse();
generate_thresholds::<kitchensink_runtime::Runtime>(
generate_thresholds::<pez_kitchensink_runtime::Runtime>(
n_bags,
&output,
total_issuance,
@@ -37,12 +37,12 @@
//!
//! 2. Write a little program to generate the definitions. This program exists only to hook together
//! the runtime definitions with the various calculations here. Take a look at
//! _utils/pezframe/generate_bags/node-runtime_ for an example.
//! _utils/pezframe/pez_generate_bags/node-runtime_ for an example.
//!
//! 3. Run that program:
//!
//! ```sh,notrust
//! $ cargo run -p node-runtime-generate-bags -- --total-issuance 1234 --minimum-balance 1
//! $ cargo run -p node-runtime-pez-generate-bags -- --total-issuance 1234 --minimum-balance 1
//! output.rs ```
//!
//! 4. Update the runtime definition.
@@ -29,7 +29,7 @@ use pezsp_trie::StorageProof;
#[cfg(all(not(feature = "std"), feature = "runtime-benchmarks"))]
use {
pezcumulus_pallet_teyrchain_system::validate_block::{
pezcumulus_pezpallet_teyrchain_system::validate_block::{
trie_cache::CacheProvider, trie_recorder::SizeOnlyRecorderProvider,
},
pezsp_core::storage::StateVersion,
@@ -103,7 +103,7 @@ impl<B: traits::Block> StorageAccessParams<B> {
}
}
/// Imitates `pezcumulus_pallet_teyrchain_system::validate_block::implementation::validate_block`
/// Imitates `pezcumulus_pezpallet_teyrchain_system::validate_block::implementation::validate_block`
///
/// Only performs the storage access, this is used to benchmark the storage access cost.
#[doc(hidden)]