chore: regenerate umbrella crate, fix feature propagation
This commit is contained in:
@@ -24,18 +24,21 @@ use pezkuwi_primitives::Block;
|
||||
use pezsp_runtime::BuildStorage;
|
||||
use std::sync::Arc;
|
||||
|
||||
pub use bizinikiwi_test_client::*;
|
||||
pub use block_builder::*;
|
||||
pub use pezkuwi_test_runtime as runtime;
|
||||
pub use pezkuwi_test_service::{
|
||||
construct_extrinsic, construct_transfer_extrinsic, Client, FullBackend,
|
||||
};
|
||||
pub use bizinikiwi_test_client::*;
|
||||
|
||||
/// Test client executor.
|
||||
pub type Executor = client::LocalCallExecutor<
|
||||
Block,
|
||||
FullBackend,
|
||||
WasmExecutor<(pezsp_io::BizinikiwiHostFunctions, pezframe_benchmarking::benchmarking::HostFunctions)>,
|
||||
WasmExecutor<(
|
||||
pezsp_io::BizinikiwiHostFunctions,
|
||||
pezframe_benchmarking::benchmarking::HostFunctions,
|
||||
)>,
|
||||
>;
|
||||
|
||||
/// Test client builder for Pezkuwi.
|
||||
|
||||
@@ -16,13 +16,13 @@
|
||||
|
||||
//! Chain specifications for the test runtime.
|
||||
|
||||
use pezpallet_staking::Forcing;
|
||||
use pezkuwi_primitives::{
|
||||
node_features, AccountId, AssignmentId, NodeFeatures, SchedulerParams, ValidatorId,
|
||||
MAX_CODE_SIZE, MAX_POV_SIZE,
|
||||
};
|
||||
use pezkuwi_service::chain_spec::Extensions;
|
||||
use pezkuwi_test_runtime::BABE_GENESIS_EPOCH_CONFIG;
|
||||
use pezpallet_staking::Forcing;
|
||||
use pezsc_chain_spec::{ChainSpec, ChainType};
|
||||
use pezsc_consensus_grandpa::AuthorityId as GrandpaId;
|
||||
use pezsp_authority_discovery::AuthorityId as AuthorityDiscoveryId;
|
||||
|
||||
@@ -22,9 +22,9 @@ pub mod chain_spec;
|
||||
|
||||
pub use chain_spec::*;
|
||||
use futures::{future::Future, stream::StreamExt};
|
||||
use pezkuwi_pez_node_primitives::{CollationGenerationConfig, CollatorFn};
|
||||
use pezkuwi_node_subsystem::messages::{CollationGenerationMessage, CollatorProtocolMessage};
|
||||
use pezkuwi_overseer::Handle;
|
||||
use pezkuwi_pez_node_primitives::{CollationGenerationConfig, CollatorFn};
|
||||
use pezkuwi_primitives::{Balance, CollatorPair, HeadData, Id as ParaId, ValidationCode};
|
||||
use pezkuwi_runtime_common::BlockHashCount;
|
||||
use pezkuwi_runtime_teyrchains::paras::{ParaGenesisArgs, ParaKind};
|
||||
@@ -34,6 +34,9 @@ use pezkuwi_test_runtime::{
|
||||
UncheckedExtrinsic, VERSION,
|
||||
};
|
||||
|
||||
use bizinikiwi_test_client::{
|
||||
BlockchainEventsExt, RpcHandlersExt, RpcTransactionError, RpcTransactionOutput,
|
||||
};
|
||||
use pezsc_chain_spec::ChainSpec;
|
||||
use pezsc_client_api::BlockchainEvents;
|
||||
use pezsc_network::{
|
||||
@@ -60,9 +63,6 @@ use std::{
|
||||
path::PathBuf,
|
||||
sync::Arc,
|
||||
};
|
||||
use bizinikiwi_test_client::{
|
||||
BlockchainEventsExt, RpcHandlersExt, RpcTransactionError, RpcTransactionOutput,
|
||||
};
|
||||
|
||||
/// The client type being used by the test service.
|
||||
pub type Client = FullClient;
|
||||
@@ -477,11 +477,12 @@ pub fn construct_transfer_extrinsic(
|
||||
dest: pezsp_keyring::Sr25519Keyring,
|
||||
value: Balance,
|
||||
) -> UncheckedExtrinsic {
|
||||
let function =
|
||||
pezkuwi_test_runtime::RuntimeCall::Balances(pezpallet_balances::Call::transfer_allow_death {
|
||||
let function = pezkuwi_test_runtime::RuntimeCall::Balances(
|
||||
pezpallet_balances::Call::transfer_allow_death {
|
||||
dest: MultiSigner::from(dest.public()).into_account().into(),
|
||||
value,
|
||||
});
|
||||
},
|
||||
);
|
||||
|
||||
construct_extrinsic(client, function, origin, 0)
|
||||
}
|
||||
|
||||
@@ -24,11 +24,12 @@ async fn call_function_actually_work() {
|
||||
|
||||
let alice = run_validator_node(alice_config, None).await;
|
||||
|
||||
let function =
|
||||
pezkuwi_test_runtime::RuntimeCall::Balances(pezpallet_balances::Call::transfer_allow_death {
|
||||
let function = pezkuwi_test_runtime::RuntimeCall::Balances(
|
||||
pezpallet_balances::Call::transfer_allow_death {
|
||||
dest: Charlie.to_account_id().into(),
|
||||
value: 1,
|
||||
});
|
||||
},
|
||||
);
|
||||
let output = alice.send_extrinsic(function, Bob).await.unwrap();
|
||||
|
||||
let res = output.result;
|
||||
|
||||
Reference in New Issue
Block a user