snapshot before rebranding
This commit is contained in:
@@ -4,6 +4,11 @@ version = "0.1.0"
|
||||
authors.workspace = true
|
||||
edition.workspace = true
|
||||
publish = false
|
||||
description = "Pezkuwi SDK cumulus/teyrchain component: test client"
|
||||
documentation = "https://docs.rs/pezcumulus-test-client"
|
||||
repository = { workspace = true }
|
||||
homepage = { workspace = true }
|
||||
license = { workspace = true }
|
||||
|
||||
[lints]
|
||||
workspace = true
|
||||
@@ -49,30 +54,30 @@ pezcumulus-test-service = { workspace = true }
|
||||
|
||||
[features]
|
||||
runtime-benchmarks = [
|
||||
"pezcumulus-pezpallet-weight-reclaim/runtime-benchmarks",
|
||||
"pezcumulus-primitives-core/runtime-benchmarks",
|
||||
"pezcumulus-primitives-proof-size-hostfunction/runtime-benchmarks",
|
||||
"pezcumulus-primitives-teyrchain-inherent/runtime-benchmarks",
|
||||
"pezcumulus-test-relay-sproof-builder/runtime-benchmarks",
|
||||
"pezcumulus-test-runtime/runtime-benchmarks",
|
||||
"pezcumulus-test-service/runtime-benchmarks",
|
||||
"pezframe-system/runtime-benchmarks",
|
||||
"pezpallet-balances/runtime-benchmarks",
|
||||
"pezpallet-transaction-payment/runtime-benchmarks",
|
||||
"pezkuwi-primitives/runtime-benchmarks",
|
||||
"pezkuwi-teyrchain-primitives/runtime-benchmarks",
|
||||
"pezsc-block-builder/runtime-benchmarks",
|
||||
"pezsc-consensus-aura/runtime-benchmarks",
|
||||
"pezsc-consensus/runtime-benchmarks",
|
||||
"pezsc-executor/runtime-benchmarks",
|
||||
"pezsc-service/runtime-benchmarks",
|
||||
"pezsp-api/runtime-benchmarks",
|
||||
"pezsp-blockchain/runtime-benchmarks",
|
||||
"pezsp-consensus-aura/runtime-benchmarks",
|
||||
"pezsp-inherents/runtime-benchmarks",
|
||||
"pezsp-io/runtime-benchmarks",
|
||||
"pezsp-keyring/runtime-benchmarks",
|
||||
"pezsp-runtime/runtime-benchmarks",
|
||||
"pezsp-timestamp/runtime-benchmarks",
|
||||
"bizinikiwi-test-client/runtime-benchmarks",
|
||||
"pezcumulus-pezpallet-weight-reclaim/runtime-benchmarks",
|
||||
"pezcumulus-primitives-core/runtime-benchmarks",
|
||||
"pezcumulus-primitives-proof-size-hostfunction/runtime-benchmarks",
|
||||
"pezcumulus-primitives-teyrchain-inherent/runtime-benchmarks",
|
||||
"pezcumulus-test-relay-sproof-builder/runtime-benchmarks",
|
||||
"pezcumulus-test-runtime/runtime-benchmarks",
|
||||
"pezcumulus-test-service/runtime-benchmarks",
|
||||
"pezframe-system/runtime-benchmarks",
|
||||
"pezpallet-balances/runtime-benchmarks",
|
||||
"pezpallet-transaction-payment/runtime-benchmarks",
|
||||
"pezkuwi-primitives/runtime-benchmarks",
|
||||
"pezkuwi-teyrchain-primitives/runtime-benchmarks",
|
||||
"pezsc-block-builder/runtime-benchmarks",
|
||||
"pezsc-consensus-aura/runtime-benchmarks",
|
||||
"pezsc-consensus/runtime-benchmarks",
|
||||
"pezsc-executor/runtime-benchmarks",
|
||||
"pezsc-service/runtime-benchmarks",
|
||||
"pezsp-api/runtime-benchmarks",
|
||||
"pezsp-blockchain/runtime-benchmarks",
|
||||
"pezsp-consensus-aura/runtime-benchmarks",
|
||||
"pezsp-inherents/runtime-benchmarks",
|
||||
"pezsp-io/runtime-benchmarks",
|
||||
"pezsp-keyring/runtime-benchmarks",
|
||||
"pezsp-runtime/runtime-benchmarks",
|
||||
"pezsp-timestamp/runtime-benchmarks",
|
||||
"bizinikiwi-test-client/runtime-benchmarks",
|
||||
]
|
||||
|
||||
@@ -16,10 +16,10 @@
|
||||
|
||||
use crate::Client;
|
||||
use codec::Encode;
|
||||
use cumulus_primitives_core::{PersistedValidationData, TeyrchainBlockData};
|
||||
use cumulus_primitives_teyrchain_inherent::{TeyrchainInherentData, INHERENT_IDENTIFIER};
|
||||
use cumulus_test_relay_sproof_builder::RelayStateSproofBuilder;
|
||||
use cumulus_test_runtime::{Block, GetLastTimestamp, Hash, Header};
|
||||
use pezcumulus_primitives_core::{PersistedValidationData, TeyrchainBlockData};
|
||||
use pezcumulus_primitives_teyrchain_inherent::{TeyrchainInherentData, INHERENT_IDENTIFIER};
|
||||
use pezcumulus_test_relay_sproof_builder::RelayStateSproofBuilder;
|
||||
use pezcumulus_test_runtime::{Block, GetLastTimestamp, Hash, Header};
|
||||
use pezkuwi_primitives::{BlockNumber as PBlockNumber, Hash as PHash};
|
||||
use pezsc_block_builder::BlockBuilderBuilder;
|
||||
use pezsp_api::{ProofRecorder, ProofRecorderIgnoredNodes, ProvideRuntimeApi};
|
||||
|
||||
@@ -19,8 +19,8 @@
|
||||
mod block_builder;
|
||||
pub use block_builder::*;
|
||||
use codec::{Decode, Encode};
|
||||
pub use cumulus_test_runtime as runtime;
|
||||
use cumulus_test_runtime::AuraId;
|
||||
pub use pezcumulus_test_runtime as runtime;
|
||||
use pezcumulus_test_runtime::AuraId;
|
||||
pub use pezkuwi_teyrchain_primitives::primitives::{
|
||||
BlockData, HeadData, ValidationParams, ValidationResult,
|
||||
};
|
||||
@@ -46,7 +46,7 @@ use pezsp_runtime::{generic::Era, traits::Header, BuildStorage, MultiAddress, Sa
|
||||
use std::sync::Arc;
|
||||
pub use bizinikiwi_test_client::*;
|
||||
|
||||
pub type TeyrchainBlockData = cumulus_primitives_core::TeyrchainBlockData<Block>;
|
||||
pub type TeyrchainBlockData = pezcumulus_primitives_core::TeyrchainBlockData<Block>;
|
||||
|
||||
/// Test client database backend.
|
||||
pub type Backend = bizinikiwi_test_client::Backend<Block>;
|
||||
@@ -57,7 +57,7 @@ pub type Executor = client::LocalCallExecutor<
|
||||
Backend,
|
||||
WasmExecutor<(
|
||||
pezsp_io::BizinikiwiHostFunctions,
|
||||
cumulus_primitives_proof_size_hostfunction::storage_proof_size::HostFunctions,
|
||||
pezcumulus_primitives_proof_size_hostfunction::storage_proof_size::HostFunctions,
|
||||
)>,
|
||||
>;
|
||||
|
||||
@@ -74,17 +74,17 @@ pub type Client = client::Client<Backend, Executor, Block, runtime::RuntimeApi>;
|
||||
/// Parameters of test-client builder with test-runtime.
|
||||
#[derive(Default)]
|
||||
pub struct GenesisParameters {
|
||||
pub endowed_accounts: Vec<cumulus_test_runtime::AccountId>,
|
||||
pub endowed_accounts: Vec<pezcumulus_test_runtime::AccountId>,
|
||||
pub wasm: Option<Vec<u8>>,
|
||||
}
|
||||
|
||||
impl bizinikiwi_test_client::GenesisInit for GenesisParameters {
|
||||
fn genesis_storage(&self) -> Storage {
|
||||
cumulus_test_service::chain_spec::get_chain_spec_with_extra_endowed(
|
||||
pezcumulus_test_service::chain_spec::get_chain_spec_with_extra_endowed(
|
||||
None,
|
||||
self.endowed_accounts.clone(),
|
||||
self.wasm.as_deref().unwrap_or_else(|| {
|
||||
cumulus_test_runtime::WASM_BINARY.expect("WASM binary not compiled!")
|
||||
pezcumulus_test_runtime::WASM_BINARY.expect("WASM binary not compiled!")
|
||||
}),
|
||||
)
|
||||
.build_storage()
|
||||
@@ -205,7 +205,7 @@ pub fn validate_block(
|
||||
let heap_pages = HeapAllocStrategy::Static { extra_pages: 2048 };
|
||||
let executor = WasmExecutor::<(
|
||||
pezsp_io::BizinikiwiHostFunctions,
|
||||
cumulus_primitives_proof_size_hostfunction::storage_proof_size::HostFunctions,
|
||||
pezcumulus_primitives_proof_size_hostfunction::storage_proof_size::HostFunctions,
|
||||
)>::builder()
|
||||
.with_execution_method(WasmExecutionMethod::default())
|
||||
.with_max_runtime_instances(1)
|
||||
|
||||
Reference in New Issue
Block a user