snapshot before rebranding

This commit is contained in:
2025-12-14 07:37:21 +03:00
parent ef79d9968f
commit 6588d9a1f2
1752 changed files with 58116 additions and 15986 deletions
+3 -2
View File
@@ -9,6 +9,7 @@ repository.workspace = true
edition.workspace = true
publish = false
build = "build.rs"
documentation = "https://docs.rs/minimal-template-node"
[lints]
workspace = true
@@ -33,6 +34,6 @@ pezkuwi-sdk = { workspace = true, features = ["bizinikiwi-build-script-utils"] }
default = ["std"]
std = ["minimal-template-runtime/std", "pezkuwi-sdk/std"]
runtime-benchmarks = [
"minimal-template-runtime/runtime-benchmarks",
"pezkuwi-sdk/runtime-benchmarks",
"minimal-template-runtime/runtime-benchmarks",
"pezkuwi-sdk/runtime-benchmarks",
]
@@ -8,6 +8,7 @@ homepage.workspace = true
repository.workspace = true
edition.workspace = true
publish = false
documentation = "https://docs.rs/pezpallet-minimal-template"
[lints]
workspace = true
@@ -18,8 +19,8 @@ targets = ["x86_64-unknown-linux-gnu"]
[dependencies]
codec = { features = ["derive"], workspace = true }
pezkuwi-sdk = { workspace = true, default-features = false, features = [
"experimental",
"runtime",
"experimental",
"runtime",
] }
scale-info = { features = ["derive"], workspace = true }
+16 -15
View File
@@ -8,6 +8,7 @@ homepage.workspace = true
repository.workspace = true
edition.workspace = true
publish = false
documentation = "https://docs.rs/minimal-template-runtime"
[lints]
workspace = true
@@ -15,16 +16,16 @@ workspace = true
[dependencies]
codec = { workspace = true }
pezkuwi-sdk = { workspace = true, features = [
"pezpallet-balances",
"pezpallet-sudo",
"pezpallet-timestamp",
"pezpallet-transaction-payment",
"pezpallet-transaction-payment-rpc-runtime-api",
"runtime",
"pezpallet-balances",
"pezpallet-sudo",
"pezpallet-timestamp",
"pezpallet-transaction-payment",
"pezpallet-transaction-payment-rpc-runtime-api",
"runtime",
] }
scale-info = { workspace = true }
serde_json = { workspace = true, default-features = false, features = [
"alloc",
"alloc",
] }
# local pallet templates
@@ -32,19 +33,19 @@ pezpallet-minimal-template = { workspace = true }
[build-dependencies]
pezkuwi-sdk = { optional = true, workspace = true, features = [
"bizinikiwi-wasm-builder",
"bizinikiwi-wasm-builder",
] }
[features]
default = ["std"]
std = [
"codec/std",
"pezpallet-minimal-template/std",
"pezkuwi-sdk/std",
"scale-info/std",
"serde_json/std",
"codec/std",
"pezpallet-minimal-template/std",
"pezkuwi-sdk/std",
"scale-info/std",
"serde_json/std",
]
runtime-benchmarks = [
"pezpallet-minimal-template/runtime-benchmarks",
"pezkuwi-sdk/runtime-benchmarks",
"pezpallet-minimal-template/runtime-benchmarks",
"pezkuwi-sdk/runtime-benchmarks",
]
@@ -1,14 +1,14 @@
[toolchain]
channel = "stable"
components = [
"cargo",
"clippy",
"rust-analyzer",
"rust-src",
"rust-std",
"rustc",
"rustc-dev",
"rustfmt",
"cargo",
"clippy",
"rust-analyzer",
"rust-src",
"rust-std",
"rustc",
"rustc-dev",
"rustfmt",
]
targets = ["wasm32-unknown-unknown"]
profile = "minimal"
+34 -33
View File
@@ -10,6 +10,7 @@ edition.workspace = true
publish = false
build = "build.rs"
documentation = "https://docs.rs/solochain-template-node"
[package.metadata.docs.rs]
targets = ["x86_64-unknown-linux-gnu"]
@@ -71,41 +72,41 @@ default = ["std"]
std = ["solochain-template-runtime/std"]
# Dependencies that are only required if runtime benchmarking should be build.
runtime-benchmarks = [
"pezframe-benchmarking-cli/runtime-benchmarks",
"pezframe-metadata-hash-extension/runtime-benchmarks",
"pezframe-system/runtime-benchmarks",
"pezpallet-transaction-payment-rpc/runtime-benchmarks",
"pezpallet-transaction-payment/runtime-benchmarks",
"pezsc-basic-authorship/runtime-benchmarks",
"pezsc-cli/runtime-benchmarks",
"pezsc-client-api/runtime-benchmarks",
"pezsc-consensus-aura/runtime-benchmarks",
"pezsc-consensus-grandpa/runtime-benchmarks",
"pezsc-consensus/runtime-benchmarks",
"pezsc-executor/runtime-benchmarks",
"pezsc-network/runtime-benchmarks",
"pezsc-offchain/runtime-benchmarks",
"pezsc-service/runtime-benchmarks",
"pezsc-transaction-pool-api/runtime-benchmarks",
"pezsc-transaction-pool/runtime-benchmarks",
"solochain-template-runtime/runtime-benchmarks",
"pezsp-api/runtime-benchmarks",
"pezsp-block-builder/runtime-benchmarks",
"pezsp-blockchain/runtime-benchmarks",
"pezsp-consensus-aura/runtime-benchmarks",
"pezsp-genesis-builder/runtime-benchmarks",
"pezsp-inherents/runtime-benchmarks",
"pezsp-io/runtime-benchmarks",
"pezsp-keyring/runtime-benchmarks",
"pezsp-runtime/runtime-benchmarks",
"pezsp-timestamp/runtime-benchmarks",
"bizinikiwi-frame-rpc-system/runtime-benchmarks",
"pezframe-benchmarking-cli/runtime-benchmarks",
"pezframe-metadata-hash-extension/runtime-benchmarks",
"pezframe-system/runtime-benchmarks",
"pezpallet-transaction-payment-rpc/runtime-benchmarks",
"pezpallet-transaction-payment/runtime-benchmarks",
"pezsc-basic-authorship/runtime-benchmarks",
"pezsc-cli/runtime-benchmarks",
"pezsc-client-api/runtime-benchmarks",
"pezsc-consensus-aura/runtime-benchmarks",
"pezsc-consensus-grandpa/runtime-benchmarks",
"pezsc-consensus/runtime-benchmarks",
"pezsc-executor/runtime-benchmarks",
"pezsc-network/runtime-benchmarks",
"pezsc-offchain/runtime-benchmarks",
"pezsc-service/runtime-benchmarks",
"pezsc-transaction-pool-api/runtime-benchmarks",
"pezsc-transaction-pool/runtime-benchmarks",
"solochain-template-runtime/runtime-benchmarks",
"pezsp-api/runtime-benchmarks",
"pezsp-block-builder/runtime-benchmarks",
"pezsp-blockchain/runtime-benchmarks",
"pezsp-consensus-aura/runtime-benchmarks",
"pezsp-genesis-builder/runtime-benchmarks",
"pezsp-inherents/runtime-benchmarks",
"pezsp-io/runtime-benchmarks",
"pezsp-keyring/runtime-benchmarks",
"pezsp-runtime/runtime-benchmarks",
"pezsp-timestamp/runtime-benchmarks",
"bizinikiwi-frame-rpc-system/runtime-benchmarks",
]
# Enable features that allow the runtime to be tried and debugged. Name might be subject to change
# in the near future.
try-runtime = [
"pezframe-system/try-runtime",
"pezpallet-transaction-payment/try-runtime",
"solochain-template-runtime/try-runtime",
"pezsp-runtime/try-runtime",
"pezframe-system/try-runtime",
"pezpallet-transaction-payment/try-runtime",
"solochain-template-runtime/try-runtime",
"pezsp-runtime/try-runtime",
]
+17 -16
View File
@@ -8,6 +8,7 @@ homepage.workspace = true
repository.workspace = true
edition.workspace = true
publish = false
documentation = "https://docs.rs/pezpallet-template"
[package.metadata.docs.rs]
targets = ["x86_64-unknown-linux-gnu"]
@@ -32,24 +33,24 @@ pezsp-runtime = { workspace = true, default-features = true }
[features]
default = ["std"]
std = [
"codec/std",
"pezframe-benchmarking?/std",
"pezframe-support/std",
"pezframe-system/std",
"scale-info/std",
"pezsp-core/std",
"pezsp-io/std",
"pezsp-runtime/std",
"codec/std",
"pezframe-benchmarking?/std",
"pezframe-support/std",
"pezframe-system/std",
"scale-info/std",
"pezsp-core/std",
"pezsp-io/std",
"pezsp-runtime/std",
]
runtime-benchmarks = [
"pezframe-benchmarking/runtime-benchmarks",
"pezframe-support/runtime-benchmarks",
"pezframe-system/runtime-benchmarks",
"pezsp-io/runtime-benchmarks",
"pezsp-runtime/runtime-benchmarks",
"pezframe-benchmarking/runtime-benchmarks",
"pezframe-support/runtime-benchmarks",
"pezframe-system/runtime-benchmarks",
"pezsp-io/runtime-benchmarks",
"pezsp-runtime/runtime-benchmarks",
]
try-runtime = [
"pezframe-support/try-runtime",
"pezframe-system/try-runtime",
"pezsp-runtime/try-runtime",
"pezframe-support/try-runtime",
"pezframe-system/try-runtime",
"pezsp-runtime/try-runtime",
]
+77 -76
View File
@@ -8,6 +8,7 @@ homepage.workspace = true
repository.workspace = true
edition.workspace = true
publish = false
documentation = "https://docs.rs/solochain-template-runtime"
[package.metadata.docs.rs]
targets = ["x86_64-unknown-linux-gnu"]
@@ -19,7 +20,7 @@ workspace = true
codec = { features = ["derive"], workspace = true }
scale-info = { features = ["derive", "serde"], workspace = true }
serde_json = { workspace = true, default-features = false, features = [
"alloc",
"alloc",
] }
# frame
@@ -70,85 +71,85 @@ bizinikiwi-wasm-builder = { optional = true, workspace = true, default-features
[features]
default = ["std"]
std = [
"codec/std",
"pezframe-benchmarking?/std",
"pezframe-executive/std",
"pezframe-metadata-hash-extension/std",
"pezframe-support/std",
"pezframe-system-benchmarking?/std",
"pezframe-system-rpc-runtime-api/std",
"pezframe-system/std",
"pezframe-try-runtime?/std",
"pezpallet-aura/std",
"pezpallet-balances/std",
"pezpallet-grandpa/std",
"pezpallet-sudo/std",
"pezpallet-template/std",
"pezpallet-timestamp/std",
"pezpallet-transaction-payment-rpc-runtime-api/std",
"pezpallet-transaction-payment/std",
"scale-info/std",
"serde_json/std",
"pezsp-api/std",
"pezsp-block-builder/std",
"pezsp-consensus-aura/std",
"pezsp-consensus-grandpa/std",
"pezsp-core/std",
"pezsp-genesis-builder/std",
"pezsp-inherents/std",
"pezsp-keyring/std",
"pezsp-offchain/std",
"pezsp-runtime/std",
"pezsp-session/std",
"pezsp-storage/std",
"pezsp-transaction-pool/std",
"pezsp-version/std",
"bizinikiwi-wasm-builder",
"codec/std",
"pezframe-benchmarking?/std",
"pezframe-executive/std",
"pezframe-metadata-hash-extension/std",
"pezframe-support/std",
"pezframe-system-benchmarking?/std",
"pezframe-system-rpc-runtime-api/std",
"pezframe-system/std",
"pezframe-try-runtime?/std",
"pezpallet-aura/std",
"pezpallet-balances/std",
"pezpallet-grandpa/std",
"pezpallet-sudo/std",
"pezpallet-template/std",
"pezpallet-timestamp/std",
"pezpallet-transaction-payment-rpc-runtime-api/std",
"pezpallet-transaction-payment/std",
"scale-info/std",
"serde_json/std",
"pezsp-api/std",
"pezsp-block-builder/std",
"pezsp-consensus-aura/std",
"pezsp-consensus-grandpa/std",
"pezsp-core/std",
"pezsp-genesis-builder/std",
"pezsp-inherents/std",
"pezsp-keyring/std",
"pezsp-offchain/std",
"pezsp-runtime/std",
"pezsp-session/std",
"pezsp-storage/std",
"pezsp-transaction-pool/std",
"pezsp-version/std",
"bizinikiwi-wasm-builder",
]
runtime-benchmarks = [
"pezframe-benchmarking/runtime-benchmarks",
"pezframe-executive/runtime-benchmarks",
"pezframe-metadata-hash-extension/runtime-benchmarks",
"pezframe-support/runtime-benchmarks",
"pezframe-system-benchmarking/runtime-benchmarks",
"pezframe-system-rpc-runtime-api/runtime-benchmarks",
"pezframe-system/runtime-benchmarks",
"pezframe-try-runtime?/runtime-benchmarks",
"pezpallet-aura/runtime-benchmarks",
"pezpallet-balances/runtime-benchmarks",
"pezpallet-grandpa/runtime-benchmarks",
"pezpallet-sudo/runtime-benchmarks",
"pezpallet-template/runtime-benchmarks",
"pezpallet-timestamp/runtime-benchmarks",
"pezpallet-transaction-payment-rpc-runtime-api/runtime-benchmarks",
"pezpallet-transaction-payment/runtime-benchmarks",
"pezsp-api/runtime-benchmarks",
"pezsp-block-builder/runtime-benchmarks",
"pezsp-consensus-aura/runtime-benchmarks",
"pezsp-consensus-grandpa/runtime-benchmarks",
"pezsp-genesis-builder/runtime-benchmarks",
"pezsp-inherents/runtime-benchmarks",
"pezsp-keyring/runtime-benchmarks",
"pezsp-offchain/runtime-benchmarks",
"pezsp-runtime/runtime-benchmarks",
"pezsp-session/runtime-benchmarks",
"pezsp-transaction-pool/runtime-benchmarks",
"pezsp-version/runtime-benchmarks",
"bizinikiwi-wasm-builder?/runtime-benchmarks",
"pezframe-benchmarking/runtime-benchmarks",
"pezframe-executive/runtime-benchmarks",
"pezframe-metadata-hash-extension/runtime-benchmarks",
"pezframe-support/runtime-benchmarks",
"pezframe-system-benchmarking/runtime-benchmarks",
"pezframe-system-rpc-runtime-api/runtime-benchmarks",
"pezframe-system/runtime-benchmarks",
"pezframe-try-runtime?/runtime-benchmarks",
"pezpallet-aura/runtime-benchmarks",
"pezpallet-balances/runtime-benchmarks",
"pezpallet-grandpa/runtime-benchmarks",
"pezpallet-sudo/runtime-benchmarks",
"pezpallet-template/runtime-benchmarks",
"pezpallet-timestamp/runtime-benchmarks",
"pezpallet-transaction-payment-rpc-runtime-api/runtime-benchmarks",
"pezpallet-transaction-payment/runtime-benchmarks",
"pezsp-api/runtime-benchmarks",
"pezsp-block-builder/runtime-benchmarks",
"pezsp-consensus-aura/runtime-benchmarks",
"pezsp-consensus-grandpa/runtime-benchmarks",
"pezsp-genesis-builder/runtime-benchmarks",
"pezsp-inherents/runtime-benchmarks",
"pezsp-keyring/runtime-benchmarks",
"pezsp-offchain/runtime-benchmarks",
"pezsp-runtime/runtime-benchmarks",
"pezsp-session/runtime-benchmarks",
"pezsp-transaction-pool/runtime-benchmarks",
"pezsp-version/runtime-benchmarks",
"bizinikiwi-wasm-builder?/runtime-benchmarks",
]
try-runtime = [
"pezframe-executive/try-runtime",
"pezframe-support/try-runtime",
"pezframe-system/try-runtime",
"pezframe-try-runtime/try-runtime",
"pezpallet-aura/try-runtime",
"pezpallet-balances/try-runtime",
"pezpallet-grandpa/try-runtime",
"pezpallet-sudo/try-runtime",
"pezpallet-template/try-runtime",
"pezpallet-timestamp/try-runtime",
"pezpallet-transaction-payment/try-runtime",
"pezsp-runtime/try-runtime",
"pezframe-executive/try-runtime",
"pezframe-support/try-runtime",
"pezframe-system/try-runtime",
"pezframe-try-runtime/try-runtime",
"pezpallet-aura/try-runtime",
"pezpallet-balances/try-runtime",
"pezpallet-grandpa/try-runtime",
"pezpallet-sudo/try-runtime",
"pezpallet-template/try-runtime",
"pezpallet-timestamp/try-runtime",
"pezpallet-transaction-payment/try-runtime",
"pezsp-runtime/try-runtime",
]
# Enable the metadata hash generation.
+1
View File
@@ -8,6 +8,7 @@ homepage.workspace = true
repository.workspace = true
edition.workspace = true
publish = false
documentation = "https://docs.rs/teyrchain-template"
[dependencies]
docify = { workspace = true }
+5 -4
View File
@@ -9,6 +9,7 @@ repository.workspace = true
edition.workspace = true
publish = false
build = "build.rs"
documentation = "https://docs.rs/teyrchain-template-node"
[lints]
workspace = true
@@ -37,10 +38,10 @@ pezkuwi-sdk = { workspace = true, features = ["bizinikiwi-build-script-utils"] }
default = ["std"]
std = ["log/std", "pezkuwi-sdk/std", "teyrchain-template-runtime/std"]
runtime-benchmarks = [
"pezkuwi-sdk/runtime-benchmarks",
"teyrchain-template-runtime/runtime-benchmarks",
"pezkuwi-sdk/runtime-benchmarks",
"teyrchain-template-runtime/runtime-benchmarks",
]
try-runtime = [
"pezkuwi-sdk/try-runtime",
"teyrchain-template-runtime/try-runtime",
"pezkuwi-sdk/try-runtime",
"teyrchain-template-runtime/try-runtime",
]
+4 -4
View File
@@ -32,16 +32,16 @@ pub enum Subcommand {
Revert(pezsc_cli::RevertCmd),
/// Remove the whole chain.
PurgeChain(cumulus_client_cli::PurgeChainCmd),
PurgeChain(pezcumulus_client_cli::PurgeChainCmd),
/// Export the genesis head data of the teyrchain.
///
/// Head data is the encoded block header.
#[command(alias = "export-genesis-state")]
ExportGenesisHead(cumulus_client_cli::ExportGenesisHeadCommand),
ExportGenesisHead(pezcumulus_client_cli::ExportGenesisHeadCommand),
/// Export the genesis wasm of the teyrchain.
ExportGenesisWasm(cumulus_client_cli::ExportGenesisWasmCommand),
ExportGenesisWasm(pezcumulus_client_cli::ExportGenesisWasmCommand),
/// Sub-commands concerned with benchmarking.
/// The pallet benchmarking moved to the `pallet` sub-command.
@@ -73,7 +73,7 @@ pub struct Cli {
pub subcommand: Option<Subcommand>,
#[command(flatten)]
pub run: cumulus_client_cli::RunCmd,
pub run: pezcumulus_client_cli::RunCmd,
/// Disable automatic hardware benchmarks.
///
+1 -1
View File
@@ -1,6 +1,6 @@
use pezkuwi_sdk::*;
use cumulus_client_service::storage_proof_size::HostFunctions as ReclaimHostFunctions;
use pezcumulus_client_service::storage_proof_size::HostFunctions as ReclaimHostFunctions;
use pezframe_benchmarking_cli::{BenchmarkCmd, BIZINIKIWI_REFERENCE_HARDWARE};
use log::info;
use pezsc_cli::{
+12 -12
View File
@@ -10,26 +10,26 @@ use teyrchain_template_runtime::{
};
use codec::Encode;
use pezkuwi_sdk::{cumulus_client_service::TeyrchainTracingExecuteBlock, *};
use pezkuwi_sdk::{pezcumulus_client_service::TeyrchainTracingExecuteBlock, *};
// Pezcumulus Imports
use cumulus_client_bootnodes::{start_bootnode_tasks, StartBootnodeTasksParams};
use cumulus_client_cli::CollatorOptions;
use cumulus_client_collator::service::CollatorService;
use pezcumulus_client_bootnodes::{start_bootnode_tasks, StartBootnodeTasksParams};
use pezcumulus_client_cli::CollatorOptions;
use pezcumulus_client_collator::service::CollatorService;
#[docify::export(lookahead_collator)]
use cumulus_client_consensus_aura::collators::lookahead::{self as aura, Params as AuraParams};
use cumulus_client_consensus_common::TeyrchainBlockImport as TTeyrchainBlockImport;
use cumulus_client_service::{
use pezcumulus_client_consensus_aura::collators::lookahead::{self as aura, Params as AuraParams};
use pezcumulus_client_consensus_common::TeyrchainBlockImport as TTeyrchainBlockImport;
use pezcumulus_client_service::{
build_network, build_relay_chain_interface, prepare_node_config, start_relay_chain_tasks,
BuildNetworkParams, CollatorSybilResistance, DARecoveryProfile, StartRelayChainTasksParams,
TeyrchainHostFunctions,
};
#[docify::export(cumulus_primitives)]
use cumulus_primitives_core::{
#[docify::export(pezcumulus_primitives)]
use pezcumulus_primitives_core::{
relay_chain::{CollatorPair, ValidationCode},
GetTeyrchainInfo, ParaId,
};
use cumulus_relay_chain_interface::{OverseerHandle, RelayChainInterface};
use pezcumulus_relay_chain_interface::{OverseerHandle, RelayChainInterface};
// Bizinikiwi Imports
use pezframe_benchmarking_cli::BIZINIKIWI_REFERENCE_HARDWARE;
@@ -151,7 +151,7 @@ fn build_import_queue(
telemetry: Option<TelemetryHandle>,
task_manager: &TaskManager,
) -> pezsc_consensus::DefaultImportQueue<Block> {
cumulus_client_consensus_aura::equivocation_import_queue::fully_verifying_import_queue::<
pezcumulus_client_consensus_aura::equivocation_import_queue::fully_verifying_import_queue::<
pezsp_consensus_aura::sr25519::AuthorityPair,
_,
_,
@@ -281,7 +281,7 @@ pub async fn start_teyrchain_node(
let para_id = client
.runtime_api()
.teyrchain_id(best_hash)
.map_err(|_| "Failed to retrieve teyrchain id from runtime. Make sure you implement `cumulus_primitives_core::GetParachaiNidentity` runtime API.")?;
.map_err(|_| "Failed to retrieve teyrchain id from runtime. Make sure you implement `pezcumulus_primitives_core::GetParachaiNidentity` runtime API.")?;
// NOTE: because we use Aura here explicitly, we can use `CollatorSybilResistance::Resistant`
// when starting the network.
@@ -8,6 +8,7 @@ homepage.workspace = true
repository.workspace = true
edition.workspace = true
publish = false
documentation = "https://docs.rs/pezpallet-teyrchain-template"
[lints]
workspace = true
@@ -20,8 +21,8 @@ codec = { features = ["derive"], workspace = true }
scale-info = { features = ["derive"], workspace = true }
frame = { workspace = true, default-features = false, features = [
"experimental",
"runtime",
"experimental",
"runtime",
] }
[features]
+45 -44
View File
@@ -8,6 +8,7 @@ homepage.workspace = true
repository.workspace = true
edition.workspace = true
publish = false
documentation = "https://docs.rs/teyrchain-template-runtime"
[package.metadata.docs.rs]
targets = ["x86_64-unknown-linux-gnu"]
@@ -22,7 +23,7 @@ hex-literal = { optional = true, workspace = true, default-features = true }
log = { workspace = true }
scale-info = { features = ["derive"], workspace = true }
serde_json = { workspace = true, default-features = false, features = [
"alloc",
"alloc",
] }
smallvec = { workspace = true, default-features = true }
@@ -30,36 +31,36 @@ smallvec = { workspace = true, default-features = true }
pezpallet-teyrchain-template = { workspace = true }
pezkuwi-sdk = { workspace = true, default-features = false, features = [
"pezpallet-aura",
"pezpallet-authorship",
"pezpallet-balances",
"pezpallet-message-queue",
"pezpallet-session",
"pezpallet-sudo",
"pezpallet-timestamp",
"pezpallet-transaction-payment",
"pezpallet-transaction-payment-rpc-runtime-api",
"pezpallet-aura",
"pezpallet-authorship",
"pezpallet-balances",
"pezpallet-message-queue",
"pezpallet-session",
"pezpallet-sudo",
"pezpallet-timestamp",
"pezpallet-transaction-payment",
"pezpallet-transaction-payment-rpc-runtime-api",
"pezpallet-xcm",
"pezkuwi-runtime-common",
"pezkuwi-teyrchain-primitives",
"pezstaging-xcm",
"pezstaging-xcm-builder",
"pezstaging-xcm-executor",
"pezpallet-xcm",
"pezkuwi-runtime-common",
"pezkuwi-teyrchain-primitives",
"pezstaging-xcm",
"pezstaging-xcm-builder",
"pezstaging-xcm-executor",
"pezcumulus-pezpallet-aura-ext",
"pezcumulus-pezpallet-session-benchmarking",
"pezcumulus-pezpallet-weight-reclaim",
"pezcumulus-pezpallet-xcm",
"pezcumulus-pezpallet-xcmp-queue",
"pezcumulus-primitives-aura",
"pezcumulus-primitives-core",
"pezcumulus-primitives-utility",
"pezpallet-collator-selection",
"pezstaging-teyrchain-info",
"teyrchains-common",
"pezcumulus-pezpallet-aura-ext",
"pezcumulus-pezpallet-session-benchmarking",
"pezcumulus-pezpallet-weight-reclaim",
"pezcumulus-pezpallet-xcm",
"pezcumulus-pezpallet-xcmp-queue",
"pezcumulus-primitives-aura",
"pezcumulus-primitives-core",
"pezcumulus-primitives-utility",
"pezpallet-collator-selection",
"pezstaging-teyrchain-info",
"teyrchains-common",
"runtime",
"runtime",
] }
# Pezcumulus
@@ -72,26 +73,26 @@ bizinikiwi-wasm-builder = { optional = true, workspace = true, default-features
[features]
default = ["std"]
std = [
"codec/std",
"pezcumulus-pezpallet-teyrchain-system/std",
"log/std",
"pezpallet-teyrchain-template/std",
"pezkuwi-sdk/std",
"scale-info/std",
"serde_json/std",
"bizinikiwi-wasm-builder",
"codec/std",
"pezcumulus-pezpallet-teyrchain-system/std",
"log/std",
"pezpallet-teyrchain-template/std",
"pezkuwi-sdk/std",
"scale-info/std",
"serde_json/std",
"bizinikiwi-wasm-builder",
]
runtime-benchmarks = [
"pezcumulus-pezpallet-teyrchain-system/runtime-benchmarks",
"hex-literal",
"pezpallet-teyrchain-template/runtime-benchmarks",
"pezkuwi-sdk/runtime-benchmarks",
"bizinikiwi-wasm-builder?/runtime-benchmarks",
"pezcumulus-pezpallet-teyrchain-system/runtime-benchmarks",
"hex-literal",
"pezpallet-teyrchain-template/runtime-benchmarks",
"pezkuwi-sdk/runtime-benchmarks",
"bizinikiwi-wasm-builder?/runtime-benchmarks",
]
try-runtime = [
"pezcumulus-pezpallet-teyrchain-system/try-runtime",
"pezpallet-teyrchain-template/try-runtime",
"pezkuwi-sdk/try-runtime",
"pezcumulus-pezpallet-teyrchain-system/try-runtime",
"pezpallet-teyrchain-template/try-runtime",
"pezkuwi-sdk/try-runtime",
]
# Enable the metadata hash generation.
+12 -12
View File
@@ -28,7 +28,7 @@ use alloc::vec::Vec;
use pezkuwi_sdk::{pezstaging_teyrchain_info as teyrchain_info, *};
use cumulus_primitives_core::ParaId;
use pezcumulus_primitives_core::ParaId;
use pezframe_support::{
genesis_builder_helper::{build_state, get_preset},
weights::Weight,
@@ -61,7 +61,7 @@ impl Runtime {
#[docify::export]
fn impl_can_build_upon(
included_hash: <Block as BlockT>::Hash,
slot: cumulus_primitives_aura::Slot,
slot: pezcumulus_primitives_aura::Slot,
) -> bool {
ConsensusHook::can_build_upon(included_hash, slot)
}
@@ -78,16 +78,16 @@ impl_runtime_apis! {
}
}
impl cumulus_primitives_core::RelayParentOffsetApi<Block> for Runtime {
impl pezcumulus_primitives_core::RelayParentOffsetApi<Block> for Runtime {
fn relay_parent_offset() -> u32 {
0
}
}
impl cumulus_primitives_aura::AuraUnincludedSegmentApi<Block> for Runtime {
impl pezcumulus_primitives_aura::AuraUnincludedSegmentApi<Block> for Runtime {
fn can_build_upon(
included_hash: <Block as BlockT>::Hash,
slot: cumulus_primitives_aura::Slot,
slot: pezcumulus_primitives_aura::Slot,
) -> bool {
Runtime::impl_can_build_upon(included_hash, slot)
}
@@ -226,8 +226,8 @@ impl_runtime_apis! {
}
}
impl cumulus_primitives_core::CollectCollationInfo<Block> for Runtime {
fn collect_collation_info(header: &<Block as BlockT>::Header) -> cumulus_primitives_core::CollationInfo {
impl pezcumulus_primitives_core::CollectCollationInfo<Block> for Runtime {
fn collect_collation_info(header: &<Block as BlockT>::Header) -> pezcumulus_primitives_core::CollationInfo {
TeyrchainSystem::collect_collation_info(header)
}
}
@@ -262,7 +262,7 @@ impl_runtime_apis! {
use pezframe_benchmarking::BenchmarkList;
use pezkuwi_sdk::pezframe_support::traits::StorageInfoTrait;
use pezframe_system_benchmarking::Pallet as SystemBench;
use cumulus_pallet_session_benchmarking::Pallet as SessionBench;
use pezcumulus_pallet_session_benchmarking::Pallet as SessionBench;
use super::*;
let mut list = Vec::<BenchmarkList>::new();
@@ -287,12 +287,12 @@ impl_runtime_apis! {
}
fn verify_set_code() {
System::assert_last_event(cumulus_pallet_teyrchain_system::Event::<Runtime>::ValidationFunctionStored.into());
System::assert_last_event(pezcumulus_pallet_teyrchain_system::Event::<Runtime>::ValidationFunctionStored.into());
}
}
use cumulus_pallet_session_benchmarking::Pallet as SessionBench;
impl cumulus_pallet_session_benchmarking::Config for Runtime {}
use pezcumulus_pallet_session_benchmarking::Pallet as SessionBench;
impl pezcumulus_pallet_session_benchmarking::Config for Runtime {}
use pezkuwi_sdk::pezframe_support::traits::WhitelistedStorageKeys;
let whitelist = AllPalletsWithSystem::whitelisted_storage_keys();
@@ -320,7 +320,7 @@ impl_runtime_apis! {
}
}
impl cumulus_primitives_core::GetTeyrchainInfo<Block> for Runtime {
impl pezcumulus_primitives_core::GetTeyrchainInfo<Block> for Runtime {
fn teyrchain_id() -> ParaId {
teyrchain_info::Pallet::<Runtime>::teyrchain_id()
}
@@ -31,7 +31,7 @@ pezkuwi_sdk::pezframe_benchmarking::define_benchmarks!(
[pezpallet_message_queue, MessageQueue]
[pezpallet_sudo, Sudo]
[pezpallet_collator_selection, CollatorSelection]
[cumulus_pallet_teyrchain_system, TeyrchainSystem]
[cumulus_pallet_xcmp_queue, XcmpQueue]
[cumulus_pallet_weight_reclaim, WeightReclaim]
[pezcumulus_pallet_teyrchain_system, TeyrchainSystem]
[pezcumulus_pallet_xcmp_queue, XcmpQueue]
[pezcumulus_pallet_weight_reclaim, WeightReclaim]
);
@@ -30,8 +30,8 @@ use pezkuwi_sdk::{pezstaging_teyrchain_info as teyrchain_info, pezstaging_xcm as
use pezkuwi_sdk::{pezstaging_xcm_builder as xcm_builder, pezstaging_xcm_executor as xcm_executor};
// Bizinikiwi and Pezkuwi dependencies
use cumulus_pallet_teyrchain_system::RelayNumberMonotonicallyIncreases;
use cumulus_primitives_core::{AggregateMessageOrigin, ParaId};
use pezcumulus_pallet_teyrchain_system::RelayNumberMonotonicallyIncreases;
use pezcumulus_primitives_core::{AggregateMessageOrigin, ParaId};
use pezframe_support::{
derive_impl,
dispatch::DispatchClass,
@@ -131,13 +131,13 @@ impl pezframe_system::Config for Runtime {
/// This is used as an identifier of the chain. 42 is the generic bizinikiwi prefix.
type SS58Prefix = SS58Prefix;
/// The action to take on a Runtime Upgrade
type OnSetCode = cumulus_pallet_teyrchain_system::TeyrchainSetCode<Self>;
type OnSetCode = pezcumulus_pallet_teyrchain_system::TeyrchainSetCode<Self>;
type MaxConsumers = pezframe_support::traits::ConstU32<16>;
type SingleBlockMigrations = SingleBlockMigrations;
}
/// Configure the palelt weight reclaim tx.
impl cumulus_pallet_weight_reclaim::Config for Runtime {
impl pezcumulus_pallet_weight_reclaim::Config for Runtime {
type WeightInfo = ();
}
@@ -204,7 +204,7 @@ parameter_types! {
pub const RelayOrigin: AggregateMessageOrigin = AggregateMessageOrigin::Parent;
}
impl cumulus_pallet_teyrchain_system::Config for Runtime {
impl pezcumulus_pallet_teyrchain_system::Config for Runtime {
type WeightInfo = ();
type RuntimeEvent = RuntimeEvent;
type OnSystemEvent = ();
@@ -230,7 +230,7 @@ impl pezpallet_message_queue::Config for Runtime {
type WeightInfo = ();
#[cfg(feature = "runtime-benchmarks")]
type MessageProcessor = pezpallet_message_queue::mock_helpers::NoopMessageProcessor<
cumulus_primitives_core::AggregateMessageOrigin,
pezcumulus_primitives_core::AggregateMessageOrigin,
>;
#[cfg(not(feature = "runtime-benchmarks"))]
type MessageProcessor = xcm_builder::ProcessXcmMessage<
@@ -248,7 +248,7 @@ impl pezpallet_message_queue::Config for Runtime {
type IdleMaxServiceWeight = ();
}
impl cumulus_pallet_aura_ext::Config for Runtime {}
impl pezcumulus_pallet_aura_ext::Config for Runtime {}
parameter_types! {
/// The asset ID for the asset that we use to pay for message delivery fees.
@@ -266,7 +266,7 @@ pub type PriceForSiblingTeyrchainDelivery =
pub type PriceForParentDelivery =
ExponentialPrice<FeeAssetId, ToParentBaseDeliveryFee, TransactionByteFee, TeyrchainSystem>;
impl cumulus_pallet_xcmp_queue::Config for Runtime {
impl pezcumulus_pallet_xcmp_queue::Config for Runtime {
type RuntimeEvent = RuntimeEvent;
type ChannelInfo = TeyrchainSystem;
type VersionWrapper = ();
@@ -35,7 +35,7 @@ use xcm_executor::XcmExecutor;
parameter_types! {
pub const RelayLocation: Location = Location::parent();
pub const RelayNetwork: Option<NetworkId> = None;
pub RelayChainOrigin: RuntimeOrigin = cumulus_pallet_xcm::Origin::Relay.into();
pub RelayChainOrigin: RuntimeOrigin = pezcumulus_pallet_xcm::Origin::Relay.into();
// For the real deployment, it is recommended to set `RelayNetwork` according to the relay chain
// and prepend `UniversalLocation` with `GlobalConsensus(RelayNetwork::get())`.
pub UniversalLocation: InteriorLocation = Teyrchain(TeyrchainInfo::teyrchain_id().into()).into();
@@ -80,7 +80,7 @@ pub type XcmOriginToTransactDispatchOrigin = (
RelayChainAsNative<RelayChainOrigin, RuntimeOrigin>,
// Native converter for sibling Teyrchains; will convert to a `SiblingPara` origin when
// recognized.
SiblingTeyrchainAsNative<cumulus_pallet_xcm::Origin, RuntimeOrigin>,
SiblingTeyrchainAsNative<pezcumulus_pallet_xcm::Origin, RuntimeOrigin>,
// Native signed account converter; this just converts an `AccountId32` origin into a normal
// `RuntimeOrigin::Signed` origin of the same 32-byte value.
SignedAccountId32AsNative<RelayNetwork, RuntimeOrigin>,
@@ -164,7 +164,7 @@ pub type LocalOriginToLocation = SignedToAccountId32<RuntimeOrigin, AccountId, R
/// queues.
pub type XcmRouter = WithUniqueTopic<(
// Two routers - use UMP to communicate with the relay chain:
cumulus_primitives_utility::ParentAsUmp<TeyrchainSystem, PezkuwiXcm, PriceForParentDelivery>,
pezcumulus_primitives_utility::ParentAsUmp<TeyrchainSystem, PezkuwiXcm, PriceForParentDelivery>,
// ..and XCMP to communicate with the sibling chains.
XcmpQueue,
)>;
@@ -201,7 +201,7 @@ impl pezpallet_xcm::Config for Runtime {
type AuthorizedAliasConsideration = Disabled;
}
impl cumulus_pallet_xcm::Config for Runtime {
impl pezcumulus_pallet_xcm::Config for Runtime {
type RuntimeEvent = RuntimeEvent;
type XcmExecutor = XcmExecutor<XcmConfig>;
}
@@ -7,7 +7,7 @@ use alloc::{vec, vec::Vec};
use pezkuwi_sdk::{pezstaging_xcm as xcm, *};
use cumulus_primitives_core::ParaId;
use pezcumulus_primitives_core::ParaId;
use pezframe_support::build_struct_json_patch;
use serde_json::Value;
use pezsp_genesis_builder::PresetId;
+10 -10
View File
@@ -75,7 +75,7 @@ pub type BlockId = generic::BlockId<Block>;
/// The extension to the basic transaction logic.
#[docify::export(template_signed_extra)]
pub type TxExtension = cumulus_pallet_weight_reclaim::StorageWeightReclaim<
pub type TxExtension = pezcumulus_pallet_weight_reclaim::StorageWeightReclaim<
Runtime,
(
pezframe_system::AuthorizeCall<Runtime>,
@@ -213,7 +213,7 @@ const NORMAL_DISPATCH_RATIO: Perbill = Perbill::from_percent(75);
/// We allow for 2 seconds of compute with a 6 second average block time.
const MAXIMUM_BLOCK_WEIGHT: Weight = Weight::from_parts(
WEIGHT_REF_TIME_PER_SECOND.saturating_mul(2),
cumulus_primitives_core::relay_chain::MAX_POV_SIZE as u64,
pezcumulus_primitives_core::relay_chain::MAX_POV_SIZE as u64,
);
#[docify::export]
@@ -231,7 +231,7 @@ pub(crate) use async_backing_params::*;
#[docify::export]
/// Aura consensus hook
type ConsensusHook = cumulus_pallet_aura_ext::FixedVelocityConsensusHook<
type ConsensusHook = pezcumulus_pallet_aura_ext::FixedVelocityConsensusHook<
Runtime,
RELAY_CHAIN_SLOT_DURATION_MILLIS,
BLOCK_PROCESSING_VELOCITY,
@@ -265,13 +265,13 @@ mod runtime {
#[runtime::pezpallet_index(0)]
pub type System = pezframe_system;
#[runtime::pezpallet_index(1)]
pub type TeyrchainSystem = cumulus_pallet_teyrchain_system;
pub type TeyrchainSystem = pezcumulus_pallet_teyrchain_system;
#[runtime::pezpallet_index(2)]
pub type Timestamp = pezpallet_timestamp;
#[runtime::pezpallet_index(3)]
pub type TeyrchainInfo = teyrchain_info;
#[runtime::pezpallet_index(4)]
pub type WeightReclaim = cumulus_pallet_weight_reclaim;
pub type WeightReclaim = pezcumulus_pallet_weight_reclaim;
// Monetary stuff.
#[runtime::pezpallet_index(10)]
@@ -293,15 +293,15 @@ mod runtime {
#[runtime::pezpallet_index(23)]
pub type Aura = pezpallet_aura;
#[runtime::pezpallet_index(24)]
pub type AuraExt = cumulus_pallet_aura_ext;
pub type AuraExt = pezcumulus_pallet_aura_ext;
// XCM helpers.
#[runtime::pezpallet_index(30)]
pub type XcmpQueue = cumulus_pallet_xcmp_queue;
pub type XcmpQueue = pezcumulus_pallet_xcmp_queue;
#[runtime::pezpallet_index(31)]
pub type PezkuwiXcm = pezpallet_xcm;
#[runtime::pezpallet_index(32)]
pub type CumulusXcm = cumulus_pallet_xcm;
pub type CumulusXcm = pezcumulus_pallet_xcm;
#[runtime::pezpallet_index(33)]
pub type MessageQueue = pezpallet_message_queue;
@@ -311,7 +311,7 @@ mod runtime {
}
#[docify::export(register_validate_block)]
cumulus_pallet_teyrchain_system::register_validate_block! {
pezcumulus_pallet_teyrchain_system::register_validate_block! {
Runtime = Runtime,
BlockExecutor = cumulus_pallet_aura_ext::BlockExecutor::<Runtime, Executive>,
BlockExecutor = pezcumulus_pallet_aura_ext::BlockExecutor::<Runtime, Executive>,
}
+1
View File
@@ -8,6 +8,7 @@ homepage.workspace = true
repository.workspace = true
edition.workspace = true
publish = false
documentation = "https://docs.rs/template-zombienet-tests"
[dependencies]
anyhow = { workspace = true }