|
| 1 | +// Copyright (C) Parity Technologies (UK) Ltd. |
| 2 | +// SPDX-License-Identifier: Apache-2.0 |
| 3 | + |
| 4 | +// Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | +// you may not use this file except in compliance with the License. |
| 6 | +// You may obtain a copy of the License at |
| 7 | +// |
| 8 | +// http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | +// |
| 10 | +// Unless required by applicable law or agreed to in writing, software |
| 11 | +// distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | +// See the License for the specific language governing permissions and |
| 14 | +// limitations under the License. |
| 15 | + |
| 16 | +pub use codec::Encode; |
| 17 | + |
| 18 | +// Substrate |
| 19 | +pub use frame_support::{ |
| 20 | + assert_err, assert_ok, |
| 21 | + pallet_prelude::Weight, |
| 22 | + sp_runtime::{AccountId32, DispatchError, DispatchResult}, |
| 23 | + traits::fungibles::Inspect, |
| 24 | +}; |
| 25 | + |
| 26 | +// Polkadot |
| 27 | +pub use xcm::{ |
| 28 | + prelude::{AccountId32 as AccountId32Junction, *}, |
| 29 | + v3::{Error, NetworkId::Rococo as RococoId}, |
| 30 | +}; |
| 31 | + |
| 32 | +// Cumulus |
| 33 | +pub use asset_test_utils::xcm_helpers; |
| 34 | +pub use emulated_integration_tests_common::{ |
| 35 | + test_parachain_is_trusted_teleporter, |
| 36 | + xcm_emulator::{ |
| 37 | + assert_expected_events, bx, helpers::weight_within_threshold, Chain, Parachain as Para, |
| 38 | + RelayChain as Relay, Test, TestArgs, TestContext, TestExt, |
| 39 | + }, |
| 40 | + xcm_helpers::{xcm_transact_paid_execution, xcm_transact_unpaid_execution}, |
| 41 | + PROOF_SIZE_THRESHOLD, REF_TIME_THRESHOLD, XCM_V3, |
| 42 | +}; |
| 43 | +pub use parachains_common::{AccountId, Balance}; |
| 44 | +pub use rococo_system_emulated_network::{ |
| 45 | + coretime_rococo_emulated_chain::{ |
| 46 | + genesis::ED as CORETIME_ROCOCO_ED, CoretimeRococoParaPallet as CoretimeRococoPallet, |
| 47 | + }, |
| 48 | + rococo_emulated_chain::{genesis::ED as ROCOCO_ED, RococoRelayPallet as RococoPallet}, |
| 49 | + CoretimeRococoPara as CoretimeRococo, CoretimeRococoParaReceiver as CoretimeRococoReceiver, |
| 50 | + CoretimeRococoParaSender as CoretimeRococoSender, PenpalAPara as PenpalA, |
| 51 | + RococoRelay as Rococo, RococoRelayReceiver as RococoReceiver, |
| 52 | + RococoRelaySender as RococoSender, |
| 53 | +}; |
| 54 | + |
| 55 | +// pub const ASSET_ID: u32 = 1; |
| 56 | +// pub const ASSET_MIN_BALANCE: u128 = 1000; |
| 57 | +pub type RelayToSystemParaTest = Test<Rococo, CoretimeRococo>; |
| 58 | +pub type RelayToParaTest = Test<Rococo, PenpalA>; |
| 59 | +pub type SystemParaToRelayTest = Test<CoretimeRococo, Rococo>; |
| 60 | +pub type SystemParaToParaTest = Test<CoretimeRococo, PenpalA>; |
| 61 | +pub type ParaToSystemParaTest = Test<PenpalA, CoretimeRococo>; |
| 62 | + |
| 63 | +#[cfg(test)] |
| 64 | +mod tests; |
0 commit comments