bridge_hub_rococo_integration_tests/
lib.rs1#[cfg(test)]
17mod imports {
18 pub(crate) use codec::Encode;
20 pub(crate) use frame_support::{assert_err, assert_ok, pallet_prelude::DispatchResult};
21 pub(crate) use sp_runtime::DispatchError;
22
23 pub(crate) use xcm::{
25 latest::{ParentThen, ROCOCO_GENESIS_HASH, WESTEND_GENESIS_HASH},
26 prelude::{AccountId32 as AccountId32Junction, *},
27 };
28 pub(crate) use xcm_builder::ExternalConsensusLocationsConverterFor;
29 pub(crate) use xcm_executor::traits::TransferType;
30
31 pub(crate) use emulated_integration_tests_common::{
33 accounts::ALICE,
34 impls::Inspect,
35 test_dry_run_transfer_across_pk_bridge, test_parachain_is_trusted_teleporter,
36 test_parachain_is_trusted_teleporter_for_relay, test_relay_is_trusted_teleporter,
37 xcm_emulator::{
38 assert_expected_events, bx, Chain, Parachain as Para, RelayChain as Relay, TestExt,
39 },
40 xcm_helpers::xcm_transact_paid_execution,
41 ASSETS_PALLET_ID, USDT_ID,
42 };
43 pub(crate) use parachains_common::AccountId;
44 pub(crate) use rococo_westend_system_emulated_network::{
45 asset_hub_rococo_emulated_chain::{
46 asset_hub_rococo_runtime::xcm_config::TreasuryAccount,
47 genesis::ED as ASSET_HUB_ROCOCO_ED, AssetHubRococoParaPallet as AssetHubRococoPallet,
48 },
49 asset_hub_westend_emulated_chain::{
50 genesis::{AssetHubWestendAssetOwner, ED as ASSET_HUB_WESTEND_ED},
51 AssetHubWestendParaPallet as AssetHubWestendPallet,
52 },
53 bridge_hub_rococo_emulated_chain::{
54 genesis::ED as BRIDGE_HUB_ROCOCO_ED, BridgeHubRococoExistentialDeposit,
55 BridgeHubRococoParaPallet as BridgeHubRococoPallet,
56 },
57 penpal_emulated_chain::{
58 penpal_runtime::xcm_config::{
59 CustomizableAssetFromSystemAssetHub as PenpalCustomizableAssetFromSystemAssetHub,
60 UniversalLocation as PenpalUniversalLocation,
61 },
62 PenpalAParaPallet as PenpalAPallet, PenpalAssetOwner,
63 },
64 rococo_emulated_chain::{genesis::ED as ROCOCO_ED, RococoRelayPallet as RococoPallet},
65 AssetHubRococoPara as AssetHubRococo, AssetHubRococoParaReceiver as AssetHubRococoReceiver,
66 AssetHubRococoParaSender as AssetHubRococoSender, AssetHubWestendPara as AssetHubWestend,
67 AssetHubWestendParaReceiver as AssetHubWestendReceiver,
68 AssetHubWestendParaSender as AssetHubWestendSender, BridgeHubRococoPara as BridgeHubRococo,
69 BridgeHubRococoParaReceiver as BridgeHubRococoReceiver,
70 BridgeHubRococoParaSender as BridgeHubRococoSender,
71 BridgeHubWestendPara as BridgeHubWestend, PenpalAPara as PenpalA,
72 PenpalAParaSender as PenpalASender, RococoRelay as Rococo,
73 RococoRelayReceiver as RococoReceiver, RococoRelaySender as RococoSender,
74 };
75
76 pub(crate) const ASSET_ID: u32 = 1;
77 pub(crate) const ASSET_MIN_BALANCE: u128 = 1000;
78}
79
80#[cfg(test)]
81mod tests;