From b55c51de0f4db486bf783b409526515ad93a94f2 Mon Sep 17 00:00:00 2001 From: Frank Bell Date: Fri, 9 Aug 2024 12:15:14 +0100 Subject: [PATCH] refactor(asset-hub): change aura to sr25519 Eliminates the workarounds needed for asset hub on polkadot (ed25519). --- chain-spec-generator/src/system_parachains_specs.rs | 12 ++++++------ system-parachains/asset-hub-paseo/src/lib.rs | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/chain-spec-generator/src/system_parachains_specs.rs b/chain-spec-generator/src/system_parachains_specs.rs index 5d778e0..0fc5c8c 100644 --- a/chain-spec-generator/src/system_parachains_specs.rs +++ b/chain-spec-generator/src/system_parachains_specs.rs @@ -17,7 +17,7 @@ use crate::common::{get_account_id_from_seed, get_from_seed, testnet_accounts}; use cumulus_primitives_core::ParaId; -use parachains_common::{AccountId, AssetHubPolkadotAuraId, AuraId, Balance}; +use parachains_common::{AccountId, AuraId, Balance}; use sc_chain_spec::{ChainSpec, ChainSpecExtension, ChainSpecGroup, ChainType}; use serde::{Deserialize, Serialize}; use sp_core::sr25519; @@ -52,15 +52,15 @@ pub fn invulnerables() -> Vec<(AccountId, AuraId)> { } /// Invulnerable Collators for the particular case of AssetHubPolkadot -pub fn invulnerables_asset_hub_paseo() -> Vec<(AccountId, AssetHubPolkadotAuraId)> { +pub fn invulnerables_asset_hub_paseo() -> Vec<(AccountId, AuraId)> { vec![ ( get_account_id_from_seed::("Alice"), - get_from_seed::("Alice"), + get_from_seed::("Alice"), ), ( get_account_id_from_seed::("Bob"), - get_from_seed::("Bob"), + get_from_seed::("Bob"), ), ] } @@ -69,7 +69,7 @@ pub fn invulnerables_asset_hub_paseo() -> Vec<(AccountId, AssetHubPolkadotAuraId /// /// The input must be a tuple of individual keys (a single arg for now since we have just one key). pub fn asset_hub_paseo_session_keys( - keys: AssetHubPolkadotAuraId, + keys: AuraId, ) -> asset_hub_paseo_runtime::SessionKeys { asset_hub_paseo_runtime::SessionKeys { aura: keys } } @@ -83,7 +83,7 @@ pub fn bridge_hub_paseo_session_keys(keys: AuraId) -> bridge_hub_paseo_runtime:: // AssetHubPaseo fn asset_hub_paseo_genesis( - invulnerables: Vec<(AccountId, AssetHubPolkadotAuraId)>, + invulnerables: Vec<(AccountId, AuraId)>, endowed_accounts: Vec, id: ParaId, ) -> serde_json::Value { diff --git a/system-parachains/asset-hub-paseo/src/lib.rs b/system-parachains/asset-hub-paseo/src/lib.rs index d773848..620d0af 100644 --- a/system-parachains/asset-hub-paseo/src/lib.rs +++ b/system-parachains/asset-hub-paseo/src/lib.rs @@ -106,7 +106,7 @@ use frame_system::{ }; use pallet_nfts::PalletFeatures; use parachains_common::{ - message_queue::*, AccountId, AssetHubPolkadotAuraId as AuraId, AssetIdForTrustBackedAssets, + message_queue::*, AccountId, AuraId, AssetIdForTrustBackedAssets, Balance, BlockNumber, Hash, Header, Nonce, Signature, };