snapshot before rebranding

This commit is contained in:
2025-12-14 07:37:21 +03:00
parent 5520d491a5
commit 09735eb97a
1752 changed files with 58116 additions and 15986 deletions
@@ -8,6 +8,7 @@ homepage.workspace = true
repository.workspace = true
description = "CLI for benchmarking FRAME"
readme = "README.md"
documentation = "https://docs.rs/pezframe-benchmarking-cli"
[lints]
workspace = true
@@ -83,39 +84,39 @@ zagros-runtime = { workspace = true, default-features = true }
[features]
default = []
runtime-benchmarks = [
"pezcumulus-client-teyrchain-inherent/runtime-benchmarks",
"pezcumulus-primitives-proof-size-hostfunction/runtime-benchmarks",
"pezcumulus-test-runtime/runtime-benchmarks",
"pezframe-benchmarking/runtime-benchmarks",
"frame-storage-access-test-runtime/runtime-benchmarks",
"pezframe-support/runtime-benchmarks",
"pezframe-system/runtime-benchmarks",
"pezkuwi-primitives/runtime-benchmarks",
"pezkuwi-teyrchain-primitives/runtime-benchmarks",
"pezsc-block-builder/runtime-benchmarks",
"pezsc-chain-spec/runtime-benchmarks",
"pezsc-cli/runtime-benchmarks",
"pezsc-client-api/runtime-benchmarks",
"pezsc-client-db/runtime-benchmarks",
"pezsc-executor-wasmtime/runtime-benchmarks",
"pezsc-executor/runtime-benchmarks",
"pezsc-runtime-utilities/runtime-benchmarks",
"pezsc-service/runtime-benchmarks",
"pezsc-sysinfo/runtime-benchmarks",
"pezsp-api/runtime-benchmarks",
"pezsp-block-builder/runtime-benchmarks",
"pezsp-blockchain/runtime-benchmarks",
"pezsp-genesis-builder/runtime-benchmarks",
"pezsp-inherents/runtime-benchmarks",
"pezsp-io/runtime-benchmarks",
"pezsp-runtime-interface/runtime-benchmarks",
"pezsp-runtime/runtime-benchmarks",
"pezsp-state-machine/runtime-benchmarks",
"pezsp-timestamp/runtime-benchmarks",
"pezsp-transaction-pool/runtime-benchmarks",
"pezsp-trie/runtime-benchmarks",
"pezsp-version/runtime-benchmarks",
"bizinikiwi-test-runtime/runtime-benchmarks",
"zagros-runtime/runtime-benchmarks",
"pezcumulus-client-teyrchain-inherent/runtime-benchmarks",
"pezcumulus-primitives-proof-size-hostfunction/runtime-benchmarks",
"pezcumulus-test-runtime/runtime-benchmarks",
"pezframe-benchmarking/runtime-benchmarks",
"frame-storage-access-test-runtime/runtime-benchmarks",
"pezframe-support/runtime-benchmarks",
"pezframe-system/runtime-benchmarks",
"pezkuwi-primitives/runtime-benchmarks",
"pezkuwi-teyrchain-primitives/runtime-benchmarks",
"pezsc-block-builder/runtime-benchmarks",
"pezsc-chain-spec/runtime-benchmarks",
"pezsc-cli/runtime-benchmarks",
"pezsc-client-api/runtime-benchmarks",
"pezsc-client-db/runtime-benchmarks",
"pezsc-executor-wasmtime/runtime-benchmarks",
"pezsc-executor/runtime-benchmarks",
"pezsc-runtime-utilities/runtime-benchmarks",
"pezsc-service/runtime-benchmarks",
"pezsc-sysinfo/runtime-benchmarks",
"pezsp-api/runtime-benchmarks",
"pezsp-block-builder/runtime-benchmarks",
"pezsp-blockchain/runtime-benchmarks",
"pezsp-genesis-builder/runtime-benchmarks",
"pezsp-inherents/runtime-benchmarks",
"pezsp-io/runtime-benchmarks",
"pezsp-runtime-interface/runtime-benchmarks",
"pezsp-runtime/runtime-benchmarks",
"pezsp-state-machine/runtime-benchmarks",
"pezsp-timestamp/runtime-benchmarks",
"pezsp-transaction-pool/runtime-benchmarks",
"pezsp-trie/runtime-benchmarks",
"pezsp-version/runtime-benchmarks",
"bizinikiwi-test-runtime/runtime-benchmarks",
"zagros-runtime/runtime-benchmarks",
]
rocksdb = ["pezsc-cli/rocksdb", "pezsc-client-db/rocksdb"]
@@ -37,7 +37,7 @@ use crate::{
};
use clap::{error::ErrorKind, Args, CommandFactory, Parser};
use codec::{Decode, Encode};
use cumulus_client_teyrchain_inherent::MockValidationDataInherentDataProvider;
use pezcumulus_client_teyrchain_inherent::MockValidationDataInherentDataProvider;
use fake_runtime_api::RuntimeApi as FakeRuntimeApi;
use pezframe_support::Deserialize;
use genesis_state::WARN_SPEC_GENESIS_CTOR;
@@ -173,7 +173,7 @@ pub(crate) enum BenchmarkType {
/// Hostfunctions that are typically used by teyrchains.
pub type TeyrchainHostFunctions = (
cumulus_primitives_proof_size_hostfunction::storage_proof_size::HostFunctions,
pezcumulus_primitives_proof_size_hostfunction::storage_proof_size::HostFunctions,
pezsp_io::BizinikiwiHostFunctions,
);
@@ -239,9 +239,9 @@ fn create_inherent_data<Client: UsageProvider<Block> + HeaderBackend<Block>, Blo
/// Chains containing the `TeyrchainSystem` and `TeyrchainInfo` pallet are considered teyrchains.
/// Chains containing the `ParaInherent` pallet are considered relay chains.
fn identify_chain(metadata: &Metadata, para_id: Option<u32>) -> ChainType {
let teyrchain_info_exists = metadata.pezpallet_by_name("TeyrchainInfo").is_some();
let teyrchain_system_exists = metadata.pezpallet_by_name("TeyrchainSystem").is_some();
let para_inherent_exists = metadata.pezpallet_by_name("ParaInherent").is_some();
let teyrchain_info_exists = metadata.pallet_by_name("TeyrchainInfo").is_some();
let teyrchain_system_exists = metadata.pallet_by_name("TeyrchainSystem").is_some();
let para_inherent_exists = metadata.pallet_by_name("ParaInherent").is_some();
log::debug!("{} TeyrchainSystem", if teyrchain_system_exists { "" } else { "" });
log::debug!("{} TeyrchainInfo", if teyrchain_info_exists { "" } else { "" });
@@ -707,7 +707,7 @@ mod tests {
#[test]
fn test_chain_type_teyrchain() {
let executor: WasmExecutor<TeyrchainHostFunctions> = WasmExecutor::builder().build();
let code_bytes = cumulus_test_runtime::WASM_BINARY
let code_bytes = pezcumulus_test_runtime::WASM_BINARY
.expect("To run this test, build the wasm binary of pezcumulus-test-runtime")
.to_vec();
let opaque_metadata =
@@ -7,6 +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"
[lints]
workspace = true
@@ -25,9 +26,9 @@ num-format = { workspace = true }
[features]
runtime-benchmarks = [
"pezframe-election-provider-support/runtime-benchmarks",
"pezframe-support/runtime-benchmarks",
"pezframe-system/runtime-benchmarks",
"pezpallet-staking/runtime-benchmarks",
"pezsp-staking/runtime-benchmarks",
"pezframe-election-provider-support/runtime-benchmarks",
"pezframe-support/runtime-benchmarks",
"pezframe-system/runtime-benchmarks",
"pezpallet-staking/runtime-benchmarks",
"pezsp-staking/runtime-benchmarks",
]
@@ -8,6 +8,7 @@ homepage.workspace = true
repository.workspace = true
description = "Bag threshold generation script for pezpallet-bag-list and kitchensink-runtime."
publish = false
documentation = "https://docs.rs/node-runtime-generate-bags"
[lints]
workspace = true
@@ -21,6 +22,6 @@ clap = { features = ["derive"], workspace = true }
[features]
runtime-benchmarks = [
"generate-bags/runtime-benchmarks",
"kitchensink-runtime/runtime-benchmarks",
"generate-bags/runtime-benchmarks",
"kitchensink-runtime/runtime-benchmarks",
]
@@ -7,6 +7,8 @@ edition.workspace = true
repository.workspace = true
license.workspace = true
readme = "README.md"
documentation = "https://docs.rs/frame-omni-bencher"
homepage = { workspace = true }
[lints]
workspace = true
@@ -29,12 +31,12 @@ tempfile = { workspace = true }
[features]
runtime-benchmarks = [
"pezcumulus-primitives-proof-size-hostfunction/runtime-benchmarks",
"pezcumulus-test-runtime/runtime-benchmarks",
"pezframe-benchmarking-cli/runtime-benchmarks",
"pezsc-chain-spec/runtime-benchmarks",
"pezsc-cli/runtime-benchmarks",
"pezsp-genesis-builder/runtime-benchmarks",
"pezsp-runtime/runtime-benchmarks",
"pezsp-statement-store/runtime-benchmarks",
"pezcumulus-primitives-proof-size-hostfunction/runtime-benchmarks",
"pezcumulus-test-runtime/runtime-benchmarks",
"pezframe-benchmarking-cli/runtime-benchmarks",
"pezsc-chain-spec/runtime-benchmarks",
"pezsc-cli/runtime-benchmarks",
"pezsp-genesis-builder/runtime-benchmarks",
"pezsp-runtime/runtime-benchmarks",
"pezsp-statement-store/runtime-benchmarks",
]
@@ -119,7 +119,7 @@ pub struct V1BenchmarkCommand {
type HostFunctions = (
pezsp_statement_store::runtime_api::HostFunctions,
cumulus_primitives_proof_size_hostfunction::storage_proof_size::HostFunctions,
pezcumulus_primitives_proof_size_hostfunction::storage_proof_size::HostFunctions,
);
impl Command {
@@ -26,7 +26,7 @@ use std::{
fn benchmark_overhead_runtime_works() -> std::result::Result<(), String> {
let tmp_dir = tempfile::tempdir().expect("Should be able to create tmp dir.");
let base_path = tmp_dir.path();
let wasm = cumulus_test_runtime::WASM_BINARY.ok_or("WASM binary not available".to_string())?;
let wasm = pezcumulus_test_runtime::WASM_BINARY.ok_or("WASM binary not available".to_string())?;
let runtime_path = base_path.join("runtime.wasm");
let _ =
fs::write(&runtime_path, wasm).map_err(|e| format!("Unable to write runtime file: {}", e));
@@ -118,7 +118,7 @@ fn setup_chain_spec(tmp_dir: &Path, raw: bool) -> Result<(PathBuf, PathBuf), Str
let base_path = tmp_dir.to_path_buf();
let chain_spec_path = base_path.join("chain_spec.json");
let wasm = cumulus_test_runtime::WASM_BINARY.ok_or("WASM binary not available".to_string())?;
let wasm = pezcumulus_test_runtime::WASM_BINARY.ok_or("WASM binary not available".to_string())?;
let mut properties = pezsc_chain_spec::Properties::new();
properties.insert("tokenSymbol".into(), "UNIT".into());
@@ -7,6 +7,7 @@ license = "Apache-2.0"
homepage.workspace = true
repository.workspace = true
description = "An externalities provided environment that can load itself from remote nodes or cached files"
documentation = "https://docs.rs/frame-remote-externalities"
[lints]
workspace = true
@@ -29,8 +30,8 @@ pezsp-state-machine = { workspace = true, default-features = true }
spinners = { workspace = true }
bizinikiwi-rpc-client = { workspace = true, default-features = true }
tokio = { features = [
"macros",
"rt-multi-thread",
"macros",
"rt-multi-thread",
], workspace = true, default-features = true }
tokio-retry = { workspace = true }
@@ -40,8 +41,8 @@ pezsp-tracing = { workspace = true, default-features = true }
[features]
remote-test = []
runtime-benchmarks = [
"pezsp-io/runtime-benchmarks",
"pezsp-runtime/runtime-benchmarks",
"pezsp-state-machine/runtime-benchmarks",
"bizinikiwi-rpc-client/runtime-benchmarks",
"pezsp-io/runtime-benchmarks",
"pezsp-runtime/runtime-benchmarks",
"pezsp-state-machine/runtime-benchmarks",
"bizinikiwi-rpc-client/runtime-benchmarks",
]
@@ -7,6 +7,7 @@ license = "Apache-2.0"
homepage.workspace = true
repository.workspace = true
description = "Shared JSON-RPC client"
documentation = "https://docs.rs/bizinikiwi-rpc-client"
[lints]
workspace = true
@@ -25,13 +26,13 @@ pezsp-runtime = { workspace = true, default-features = true }
[dev-dependencies]
pezsp-core = { workspace = true, default-features = true }
tokio = { features = [
"macros",
"rt-multi-thread",
"sync",
"macros",
"rt-multi-thread",
"sync",
], workspace = true, default-features = true }
[features]
runtime-benchmarks = [
"pezsc-rpc-api/runtime-benchmarks",
"pezsp-runtime/runtime-benchmarks",
"pezsc-rpc-api/runtime-benchmarks",
"pezsp-runtime/runtime-benchmarks",
]
@@ -8,6 +8,7 @@ homepage.workspace = true
repository.workspace = true
description = "Node-specific RPC methods for interaction with state trie migration."
readme = "README.md"
documentation = "https://docs.rs/bizinikiwi-state-trie-migration-rpc"
[lints]
workspace = true
@@ -25,9 +26,9 @@ pezsp-trie = { workspace = true, default-features = true }
trie-db = { workspace = true, default-features = true }
jsonrpsee = { features = [
"client-core",
"macros",
"server-core",
"client-core",
"macros",
"server-core",
], workspace = true }
# Bizinikiwi Dependencies
@@ -37,9 +38,9 @@ pezsp-runtime = { workspace = true, default-features = true }
[features]
runtime-benchmarks = [
"pezsc-client-api/runtime-benchmarks",
"pezsc-rpc-api/runtime-benchmarks",
"pezsp-runtime/runtime-benchmarks",
"pezsp-state-machine/runtime-benchmarks",
"pezsp-trie/runtime-benchmarks",
"pezsc-client-api/runtime-benchmarks",
"pezsc-rpc-api/runtime-benchmarks",
"pezsp-runtime/runtime-benchmarks",
"pezsp-state-machine/runtime-benchmarks",
"pezsp-trie/runtime-benchmarks",
]
@@ -7,6 +7,7 @@ license = "Apache-2.0"
homepage.workspace = true
repository.workspace = true
description = "Bizinikiwi RPC for FRAME's support"
documentation = "https://docs.rs/bizinikiwi-frame-rpc-support"
[lints]
workspace = true
@@ -32,8 +33,8 @@ tokio = { workspace = true, default-features = true }
[features]
runtime-benchmarks = [
"pezframe-support/runtime-benchmarks",
"pezframe-system/runtime-benchmarks",
"pezsc-rpc-api/runtime-benchmarks",
"pezsp-runtime/runtime-benchmarks",
"pezframe-support/runtime-benchmarks",
"pezframe-system/runtime-benchmarks",
"pezsc-rpc-api/runtime-benchmarks",
"pezsp-runtime/runtime-benchmarks",
]
+13 -12
View File
@@ -8,6 +8,7 @@ homepage.workspace = true
repository.workspace = true
description = "FRAME's system exposed over Bizinikiwi RPC"
readme = "README.md"
documentation = "https://docs.rs/bizinikiwi-frame-rpc-system"
[lints]
workspace = true
@@ -21,9 +22,9 @@ docify = { workspace = true }
pezframe-system-rpc-runtime-api = { workspace = true, default-features = true }
futures = { workspace = true }
jsonrpsee = { features = [
"client-core",
"macros",
"server-core",
"client-core",
"macros",
"server-core",
], workspace = true }
log = { workspace = true, default-features = true }
pezsc-rpc-api = { workspace = true, default-features = true }
@@ -43,13 +44,13 @@ tokio = { workspace = true, default-features = true }
[features]
runtime-benchmarks = [
"pezframe-system-rpc-runtime-api/runtime-benchmarks",
"pezsc-rpc-api/runtime-benchmarks",
"pezsc-transaction-pool-api/runtime-benchmarks",
"pezsc-transaction-pool/runtime-benchmarks",
"pezsp-api/runtime-benchmarks",
"pezsp-block-builder/runtime-benchmarks",
"pezsp-blockchain/runtime-benchmarks",
"pezsp-runtime/runtime-benchmarks",
"bizinikiwi-test-runtime-client/runtime-benchmarks",
"pezframe-system-rpc-runtime-api/runtime-benchmarks",
"pezsc-rpc-api/runtime-benchmarks",
"pezsc-transaction-pool-api/runtime-benchmarks",
"pezsc-transaction-pool/runtime-benchmarks",
"pezsp-api/runtime-benchmarks",
"pezsp-block-builder/runtime-benchmarks",
"pezsp-blockchain/runtime-benchmarks",
"pezsp-runtime/runtime-benchmarks",
"bizinikiwi-test-runtime-client/runtime-benchmarks",
]
@@ -9,6 +9,7 @@ license = "Apache-2.0"
homepage.workspace = true
repository.workspace = true
publish = true
documentation = "https://docs.rs/frame-storage-access-test-runtime"
[lints]
workspace = true
@@ -28,18 +29,18 @@ bizinikiwi-wasm-builder = { optional = true, workspace = true, default-features
default = ["std"]
no_std = []
std = [
"codec/std",
"pezcumulus-pezpallet-teyrchain-system/std",
"pezsp-core/std",
"pezsp-runtime/std",
"pezsp-state-machine/std",
"pezsp-trie/std",
"bizinikiwi-wasm-builder",
"codec/std",
"pezcumulus-pezpallet-teyrchain-system/std",
"pezsp-core/std",
"pezsp-runtime/std",
"pezsp-state-machine/std",
"pezsp-trie/std",
"bizinikiwi-wasm-builder",
]
runtime-benchmarks = [
"pezcumulus-pezpallet-teyrchain-system/runtime-benchmarks",
"pezsp-runtime/runtime-benchmarks",
"pezsp-state-machine/runtime-benchmarks",
"pezsp-trie/runtime-benchmarks",
"bizinikiwi-wasm-builder?/runtime-benchmarks",
"pezcumulus-pezpallet-teyrchain-system/runtime-benchmarks",
"pezsp-runtime/runtime-benchmarks",
"pezsp-state-machine/runtime-benchmarks",
"pezsp-trie/runtime-benchmarks",
"bizinikiwi-wasm-builder?/runtime-benchmarks",
]
@@ -29,7 +29,7 @@ use pezsp_trie::StorageProof;
#[cfg(all(not(feature = "std"), feature = "runtime-benchmarks"))]
use {
cumulus_pallet_teyrchain_system::validate_block::{
pezcumulus_pallet_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 `cumulus_pallet_teyrchain_system::validate_block::implementation::validate_block`
/// Imitates `pezcumulus_pallet_teyrchain_system::validate_block::implementation::validate_block`
///
/// Only performs the storage access, this is used to benchmark the storage access cost.
#[doc(hidden)]