xcm-emulator tests: remove dependency on polkadot-service full-node (#3323)

Don't bring the full polkadot node (with all its dependencies) in
`emulated-integration-tests-common` crate and deps.
This commit is contained in:
Adrian Catangiu
2024-02-15 12:13:19 +02:00
committed by GitHub
parent 5cfc05d518
commit f60486047f
5 changed files with 19 additions and 9 deletions
@@ -20,6 +20,7 @@ pub mod xcm_helpers;
pub use xcm_emulator;
// Substrate
use beefy_primitives::ecdsa_crypto::AuthorityId as BeefyId;
use grandpa::AuthorityId as GrandpaId;
use sp_authority_discovery::AuthorityId as AuthorityDiscoveryId;
use sp_consensus_babe::AuthorityId as BabeId;
@@ -36,7 +37,6 @@ use polkadot_runtime_parachains::configuration::HostConfiguration;
// Cumulus
use parachains_common::{AccountId, AuraId};
use polkadot_primitives::{AssignmentId, ValidatorId};
use polkadot_service::chain_spec::get_authority_keys_from_seed_no_beefy;
pub const XCM_V2: u32 = 2;
pub const XCM_V3: u32 = 3;
@@ -152,7 +152,18 @@ pub mod validators {
ValidatorId,
AssignmentId,
AuthorityDiscoveryId,
BeefyId,
)> {
vec![get_authority_keys_from_seed_no_beefy("Alice")]
let seed = "Alice";
vec![(
get_account_id_from_seed::<sr25519::Public>(&format!("{}//stash", seed)),
get_account_id_from_seed::<sr25519::Public>(seed),
get_from_seed::<BabeId>(seed),
get_from_seed::<GrandpaId>(seed),
get_from_seed::<ValidatorId>(seed),
get_from_seed::<AssignmentId>(seed),
get_from_seed::<AuthorityDiscoveryId>(seed),
get_from_seed::<BeefyId>(seed),
)]
}
}