mirror of
https://github.com/pezkuwichain/pezkuwi-runtime-templates.git
synced 2026-07-23 17:15:42 +00:00
Update documentation and templates for Pezkuwi branding
This commit is contained in:
@@ -26,9 +26,9 @@ parity-scale-codec = { workspace = true }
|
||||
pezframe-support = { workspace = true }
|
||||
pezframe-system = { workspace = true }
|
||||
|
||||
sp-consensus-aura = { workspace = true }
|
||||
sp-runtime = { workspace = true }
|
||||
sp-state-machine = { workspace = true }
|
||||
pezsp-consensus-aura = { workspace = true }
|
||||
pezsp-runtime = { workspace = true }
|
||||
pezsp-state-machine = { workspace = true }
|
||||
|
||||
pezpallet-balances = { workspace = true }
|
||||
pezpallet-collator-selection = { workspace = true }
|
||||
@@ -39,10 +39,10 @@ pezpallet-timestamp = { workspace = true }
|
||||
pezpallet-utility = { workspace = true }
|
||||
pezpallet-whitelist = { workspace = true }
|
||||
|
||||
cumulus-pezpallet-teyrchain-system = { workspace = true }
|
||||
cumulus-primitives-core = { workspace = true }
|
||||
cumulus-primitives-teyrchain-inherent = { workspace = true }
|
||||
cumulus-test-relay-sproof-builder = { workspace = true }
|
||||
pezcumulus-pezpallet-teyrchain-system = { workspace = true }
|
||||
pezcumulus-primitives-core = { workspace = true }
|
||||
pezcumulus-primitives-teyrchain-inherent = { workspace = true }
|
||||
pezcumulus-test-relay-sproof-builder = { workspace = true }
|
||||
|
||||
[features]
|
||||
default = [ "std", "try-runtime" ]
|
||||
@@ -57,8 +57,8 @@ std = [
|
||||
"pezpallet-utility/std",
|
||||
"pezpallet-whitelist/std",
|
||||
"parity-scale-codec/std",
|
||||
"sp-consensus-aura/std",
|
||||
"sp-runtime/std",
|
||||
"pezsp-consensus-aura/std",
|
||||
"pezsp-runtime/std",
|
||||
]
|
||||
fuzzing = []
|
||||
tanssi = []
|
||||
@@ -73,7 +73,7 @@ try-runtime = [
|
||||
"pezpallet-timestamp/try-runtime",
|
||||
"pezpallet-utility/try-runtime",
|
||||
"pezpallet-whitelist/try-runtime",
|
||||
"sp-runtime/try-runtime",
|
||||
"pezsp-runtime/try-runtime",
|
||||
]
|
||||
|
||||
[lints]
|
||||
|
||||
@@ -19,23 +19,23 @@ use generic_runtime_template::{
|
||||
use pezpallet_balances::{Holds, TotalIssuance};
|
||||
use teyrchains_common::AccountId;
|
||||
use parity_scale_codec::{DecodeLimit, Encode};
|
||||
use sp_consensus_aura::{Slot, AURA_ENGINE_ID};
|
||||
use sp_runtime::{
|
||||
use pezsp_consensus_aura::{Slot, AURA_ENGINE_ID};
|
||||
use pezsp_runtime::{
|
||||
testing::H256,
|
||||
traits::{Dispatchable, Header},
|
||||
Digest, DigestItem, Storage,
|
||||
};
|
||||
use sp_state_machine::BasicExternalities;
|
||||
use pezsp_state_machine::BasicExternalities;
|
||||
|
||||
fn generate_genesis(accounts: &[AccountId]) -> Storage {
|
||||
use generic_runtime_template::{BalancesConfig, RuntimeGenesisConfig};
|
||||
#[cfg(not(feature = "tanssi"))]
|
||||
use generic_runtime_template::{CollatorSelectionConfig, SessionConfig, SessionKeys};
|
||||
#[cfg(not(feature = "tanssi"))]
|
||||
use sp_consensus_aura::sr25519::AuthorityId as AuraId;
|
||||
use pezsp_consensus_aura::sr25519::AuthorityId as AuraId;
|
||||
#[cfg(not(feature = "tanssi"))]
|
||||
use sp_runtime::app_crypto::ByteArray;
|
||||
use sp_runtime::BuildStorage;
|
||||
use pezsp_runtime::app_crypto::ByteArray;
|
||||
use pezsp_runtime::BuildStorage;
|
||||
|
||||
// Configure endowed accounts with initial balance of 1 << 60.
|
||||
let balances = accounts.iter().cloned().map(|k| (k, 1 << 60)).collect();
|
||||
@@ -171,9 +171,9 @@ fn initialize_block(block: u32) {
|
||||
.unwrap();
|
||||
|
||||
let teyrchain_validation_data = {
|
||||
use cumulus_primitives_core::{relay_chain::HeadData, PersistedValidationData};
|
||||
use cumulus_primitives_teyrchain_inherent::TeyrChainInherentData;
|
||||
use cumulus_test_relay_sproof_builder::RelayStateSproofBuilder;
|
||||
use pezcumulus_primitives_core::{relay_chain::HeadData, PersistedValidationData};
|
||||
use pezcumulus_primitives_teyrchain_inherent::TeyrChainInherentData;
|
||||
use pezcumulus_test_relay_sproof_builder::RelayStateSproofBuilder;
|
||||
|
||||
let parent_head = HeadData(prev_header.clone().unwrap_or(parent_header.clone()).encode());
|
||||
let sproof_builder = RelayStateSproofBuilder {
|
||||
@@ -196,7 +196,7 @@ fn initialize_block(block: u32) {
|
||||
downward_messages: Default::default(),
|
||||
horizontal_messages: Default::default(),
|
||||
};
|
||||
cumulus_pezpallet_teyrchain_system::Call::set_validation_data { data }
|
||||
pezcumulus_pezpallet_teyrchain_system::Call::set_validation_data { data }
|
||||
};
|
||||
|
||||
Executive::apply_extrinsic(UncheckedExtrinsic::new_bare(RuntimeCall::TeyrChainSystem(
|
||||
|
||||
Reference in New Issue
Block a user