mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-30 04:41:03 +00:00
improve deps for xcm-emulator (#2925)
* improve deps for xcm-emulator * ".git/.scripts/commands/fmt/fmt.sh" --------- Co-authored-by: command-bot <>
This commit is contained in:
Generated
+1
-1
@@ -16597,7 +16597,6 @@ dependencies = [
|
|||||||
"cumulus-primitives-core",
|
"cumulus-primitives-core",
|
||||||
"cumulus-primitives-parachain-inherent",
|
"cumulus-primitives-parachain-inherent",
|
||||||
"cumulus-test-relay-sproof-builder",
|
"cumulus-test-relay-sproof-builder",
|
||||||
"cumulus-test-service",
|
|
||||||
"frame-support",
|
"frame-support",
|
||||||
"frame-system",
|
"frame-system",
|
||||||
"log",
|
"log",
|
||||||
@@ -16613,6 +16612,7 @@ dependencies = [
|
|||||||
"sp-arithmetic",
|
"sp-arithmetic",
|
||||||
"sp-core",
|
"sp-core",
|
||||||
"sp-io",
|
"sp-io",
|
||||||
|
"sp-runtime",
|
||||||
"sp-std",
|
"sp-std",
|
||||||
"sp-trie",
|
"sp-trie",
|
||||||
"xcm",
|
"xcm",
|
||||||
|
|||||||
@@ -20,6 +20,7 @@ sp-core = { git = "https://github.com/paritytech/substrate", branch = "master" }
|
|||||||
sp-std = { git = "https://github.com/paritytech/substrate", branch = "master" }
|
sp-std = { git = "https://github.com/paritytech/substrate", branch = "master" }
|
||||||
sp-arithmetic = { git = "https://github.com/paritytech/substrate", branch = "master" }
|
sp-arithmetic = { git = "https://github.com/paritytech/substrate", branch = "master" }
|
||||||
sp-trie = { git = "https://github.com/paritytech/substrate", branch = "master" }
|
sp-trie = { git = "https://github.com/paritytech/substrate", branch = "master" }
|
||||||
|
sp-runtime = { git = "https://github.com/paritytech/substrate", branch = "master" }
|
||||||
pallet-balances = { git = "https://github.com/paritytech/substrate", branch = "master" }
|
pallet-balances = { git = "https://github.com/paritytech/substrate", branch = "master" }
|
||||||
pallet-message-queue = { git = "https://github.com/paritytech/substrate", branch = "master" }
|
pallet-message-queue = { git = "https://github.com/paritytech/substrate", branch = "master" }
|
||||||
|
|
||||||
@@ -28,7 +29,6 @@ cumulus-primitives-core = { path = "../../primitives/core"}
|
|||||||
cumulus-pallet-xcmp-queue = { path = "../../pallets/xcmp-queue" }
|
cumulus-pallet-xcmp-queue = { path = "../../pallets/xcmp-queue" }
|
||||||
cumulus-pallet-dmp-queue = { path = "../../pallets/dmp-queue" }
|
cumulus-pallet-dmp-queue = { path = "../../pallets/dmp-queue" }
|
||||||
cumulus-pallet-parachain-system = { path = "../../pallets/parachain-system" }
|
cumulus-pallet-parachain-system = { path = "../../pallets/parachain-system" }
|
||||||
cumulus-test-service = { path = "../../test/service" }
|
|
||||||
parachain-info = { path = "../../parachains/pallets/parachain-info" }
|
parachain-info = { path = "../../parachains/pallets/parachain-info" }
|
||||||
cumulus-primitives-parachain-inherent = { path = "../../primitives/parachain-inherent" }
|
cumulus-primitives-parachain-inherent = { path = "../../primitives/parachain-inherent" }
|
||||||
cumulus-test-relay-sproof-builder = { path = "../../test/relay-sproof-builder" }
|
cumulus-test-relay-sproof-builder = { path = "../../test/relay-sproof-builder" }
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ pub use frame_support::{
|
|||||||
pub use frame_system::AccountInfo;
|
pub use frame_system::AccountInfo;
|
||||||
pub use pallet_balances::AccountData;
|
pub use pallet_balances::AccountData;
|
||||||
pub use sp_arithmetic::traits::Bounded;
|
pub use sp_arithmetic::traits::Bounded;
|
||||||
pub use sp_core::{storage::Storage, H256};
|
pub use sp_core::{storage::Storage, Pair, H256};
|
||||||
pub use sp_io;
|
pub use sp_io;
|
||||||
pub use sp_std::{cell::RefCell, collections::vec_deque::VecDeque, fmt::Debug};
|
pub use sp_std::{cell::RefCell, collections::vec_deque::VecDeque, fmt::Debug};
|
||||||
pub use sp_trie::StorageProof;
|
pub use sp_trie::StorageProof;
|
||||||
@@ -43,7 +43,6 @@ pub use cumulus_primitives_core::{
|
|||||||
};
|
};
|
||||||
pub use cumulus_primitives_parachain_inherent::ParachainInherentData;
|
pub use cumulus_primitives_parachain_inherent::ParachainInherentData;
|
||||||
pub use cumulus_test_relay_sproof_builder::RelayStateSproofBuilder;
|
pub use cumulus_test_relay_sproof_builder::RelayStateSproofBuilder;
|
||||||
pub use cumulus_test_service::get_account_id_from_seed;
|
|
||||||
pub use pallet_message_queue;
|
pub use pallet_message_queue;
|
||||||
pub use parachain_info;
|
pub use parachain_info;
|
||||||
pub use parachains_common::{AccountId, BlockNumber};
|
pub use parachains_common::{AccountId, BlockNumber};
|
||||||
@@ -251,6 +250,19 @@ impl fmt::Display for BridgeMessageDispatchError {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// Helper function to generate an account ID from seed.
|
||||||
|
pub fn get_account_id_from_seed<TPublic: sp_core::Public>(seed: &str) -> AccountId
|
||||||
|
where
|
||||||
|
sp_runtime::MultiSigner:
|
||||||
|
From<<<TPublic as sp_runtime::CryptoType>::Pair as sp_core::Pair>::Public>,
|
||||||
|
{
|
||||||
|
use sp_runtime::traits::IdentifyAccount;
|
||||||
|
let pubkey = TPublic::Pair::from_string(&format!("//{}", seed), None)
|
||||||
|
.expect("static values are valid; qed")
|
||||||
|
.public();
|
||||||
|
sp_runtime::MultiSigner::from(pubkey).into_account()
|
||||||
|
}
|
||||||
|
|
||||||
// Relay Chain Implementation
|
// Relay Chain Implementation
|
||||||
#[macro_export]
|
#[macro_export]
|
||||||
macro_rules! decl_test_relay_chains {
|
macro_rules! decl_test_relay_chains {
|
||||||
|
|||||||
Reference in New Issue
Block a user