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
@@ -6,6 +6,9 @@ authors.workspace = true
edition.workspace = true
license.workspace = true
publish = false
documentation = "https://docs.rs/pezcumulus-zombienet-sdk-helpers"
repository = { workspace = true }
homepage = { workspace = true }
[dependencies]
anyhow = { workspace = true, default-features = true }
@@ -3,7 +3,7 @@
use anyhow::anyhow;
use codec::{Compact, Decode};
use cumulus_primitives_core::{relay_chain, rpsr_digest::RPSR_CONSENSUS_ID};
use pezcumulus_primitives_core::{relay_chain, rpsr_digest::RPSR_CONSENSUS_ID};
use futures::stream::StreamExt;
use pezkuwi_primitives::{CandidateReceiptV2, Id as ParaId};
use std::{
@@ -70,7 +70,7 @@ fn find_event_and_decode_fields<T: Decode>(
let mut result = vec![];
for event in events.iter() {
let event = event?;
if event.pezpallet_name() == pallet && event.variant_name() == variant {
if event.pallet_name() == pallet && event.variant_name() == variant {
let field_bytes = event.field_bytes().to_vec();
result.push(T::decode(&mut &field_bytes[..])?);
}
@@ -84,7 +84,7 @@ async fn is_session_change(
let events = block.events().await?;
Ok(events.iter().any(|event| {
event.as_ref().is_ok_and(|event| {
event.pezpallet_name() == "Session" && event.variant_name() == "NewSession"
event.pallet_name() == "Session" && event.variant_name() == "NewSession"
})
}))
}
@@ -6,6 +6,9 @@ authors.workspace = true
edition.workspace = true
license.workspace = true
publish = false
documentation = "https://docs.rs/pezcumulus-zombienet-sdk-tests"
repository = { workspace = true }
homepage = { workspace = true }
[dependencies]
anyhow = { workspace = true }
@@ -6,7 +6,7 @@ use tokio::time::Duration;
use crate::utils::initialize_network;
use cumulus_zombienet_sdk_helpers::wait_for_nth_session_change;
use pezcumulus_zombienet_sdk_helpers::wait_for_nth_session_change;
use zombienet_orchestrator::network::node::LogLineCountOptions;
use zombienet_sdk::{
subxt::{OnlineClient, PolkadotConfig},
@@ -5,7 +5,7 @@ use anyhow::anyhow;
use crate::utils::initialize_network;
use cumulus_zombienet_sdk_helpers::{assert_finality_lag, assert_para_throughput, assign_cores};
use pezcumulus_zombienet_sdk_helpers::{assert_finality_lag, assert_para_throughput, assign_cores};
use pezkuwi_primitives::Id as ParaId;
use serde_json::json;
use zombienet_sdk::{
@@ -6,7 +6,7 @@ use std::{sync::Arc, time::Duration};
use crate::utils::{initialize_network, BEST_BLOCK_METRIC};
use cumulus_zombienet_sdk_helpers::{
use pezcumulus_zombienet_sdk_helpers::{
assert_para_is_registered, assert_para_throughput, assign_cores,
};
use pezkuwi_primitives::Id as ParaId;
@@ -6,7 +6,7 @@ use std::time::Duration;
use crate::utils::{initialize_network, BEST_BLOCK_METRIC};
use cumulus_zombienet_sdk_helpers::assign_cores;
use pezcumulus_zombienet_sdk_helpers::assign_cores;
use serde_json::json;
use zombienet_orchestrator::network::node::LogLineCountOptions;
use zombienet_sdk::{NetworkConfig, NetworkConfigBuilder};
@@ -5,7 +5,7 @@
// elastic scaling with RFC103 can achieve full throughput of 3 candidates per block.
use anyhow::anyhow;
use cumulus_zombienet_sdk_helpers::{assert_relay_parent_offset, assign_cores};
use pezcumulus_zombienet_sdk_helpers::{assert_relay_parent_offset, assign_cores};
use serde_json::json;
use zombienet_sdk::{
subxt::{OnlineClient, PolkadotConfig},
@@ -7,7 +7,7 @@ use std::time::Duration;
use crate::utils::initialize_network;
use cumulus_zombienet_sdk_helpers::{
use pezcumulus_zombienet_sdk_helpers::{
assert_para_throughput, assign_cores, runtime_upgrade, wait_for_upgrade,
};
use pezkuwi_primitives::Id as ParaId;
@@ -6,7 +6,7 @@ use tokio::time::Duration;
use crate::utils::{initialize_network, BEST_BLOCK_METRIC};
use cumulus_zombienet_sdk_helpers::assert_para_throughput;
use pezcumulus_zombienet_sdk_helpers::assert_para_throughput;
use pezkuwi_primitives::Id as ParaId;
use zombienet_orchestrator::network::node::LogLineCountOptions;
use zombienet_sdk::{
@@ -45,7 +45,7 @@
//!
//! 3. Generate the chain spec:
//! ```bash
//! target/release/chain-spec-builder create -r target/release/wbuild/pezcumulus-test-runtime/cumulus_test_runtime.wasm named-preset development
//! target/release/chain-spec-builder create -r target/release/wbuild/pezcumulus-test-runtime/pezcumulus_test_runtime.wasm named-preset development
//! ```
//!
//! 4. Replace the chain spec:
@@ -116,7 +116,7 @@ use anyhow::anyhow;
use pezkuwi_primitives::Id as ParaId;
use crate::utils::{initialize_network, BEST_BLOCK_METRIC};
use cumulus_zombienet_sdk_helpers::assert_para_is_registered;
use pezcumulus_zombienet_sdk_helpers::assert_para_is_registered;
use zombienet_sdk::{
subxt::{OnlineClient, PolkadotConfig},
NetworkConfig, NetworkConfigBuilder,
@@ -7,7 +7,7 @@ use std::{path::Path, str::FromStr};
use crate::utils::{initialize_network, BEST_BLOCK_METRIC};
use cumulus_zombienet_sdk_helpers::assert_para_throughput;
use pezcumulus_zombienet_sdk_helpers::assert_para_throughput;
use pezkuwi_primitives::Id as ParaId;
use pezsp_core::{hexdisplay::AsBytesRef, Bytes};
use zombienet_sdk::{
@@ -5,7 +5,7 @@ use anyhow::anyhow;
use crate::utils::{initialize_network, BEST_BLOCK_METRIC};
use cumulus_zombienet_sdk_helpers::{assert_para_is_registered, assert_para_throughput};
use pezcumulus_zombienet_sdk_helpers::{assert_para_is_registered, assert_para_throughput};
use pezkuwi_primitives::Id as ParaId;
use serde_json::json;
use std::{sync::Arc, time::Duration};
@@ -6,7 +6,7 @@ use std::time::Duration;
use crate::utils::{initialize_network, BEST_BLOCK_METRIC};
use cumulus_zombienet_sdk_helpers::assert_para_throughput;
use pezcumulus_zombienet_sdk_helpers::assert_para_throughput;
use pezkuwi_primitives::Id as ParaId;
use zombienet_orchestrator::network::node::LogLineCountOptions;
use zombienet_sdk::{
@@ -6,7 +6,7 @@ use std::time::Duration;
use crate::utils::initialize_network;
use cumulus_zombienet_sdk_helpers::{assert_para_throughput, wait_for_upgrade};
use pezcumulus_zombienet_sdk_helpers::{assert_para_throughput, wait_for_upgrade};
use pezkuwi_primitives::Id as ParaId;
use zombienet_configuration::types::AssetLocation;
use zombienet_sdk::{
@@ -5,7 +5,7 @@ use anyhow::anyhow;
use crate::utils::{initialize_network, BEST_BLOCK_METRIC};
use cumulus_zombienet_sdk_helpers::assert_para_throughput;
use pezcumulus_zombienet_sdk_helpers::assert_para_throughput;
use pezkuwi_primitives::Id as ParaId;
use zombienet_sdk::{
subxt::{OnlineClient, PolkadotConfig},
@@ -5,7 +5,7 @@ use anyhow::anyhow;
use tokio::time::Duration;
use crate::utils::{initialize_network, BEST_BLOCK_METRIC};
use cumulus_zombienet_sdk_helpers::submit_extrinsic_and_wait_for_finalization_success_with_timeout;
use pezcumulus_zombienet_sdk_helpers::submit_extrinsic_and_wait_for_finalization_success_with_timeout;
use zombienet_orchestrator::network::node::{LogLineCount, LogLineCountOptions};
use zombienet_sdk::{
subxt::{self, dynamic::Value, OnlineClient, PolkadotConfig},