referrerpolicy=no-referrer-when-downgrade

coretime_rococo_emulated_chain/
lib.rs

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
16pub use coretime_rococo_runtime;
17
18pub mod genesis;
19
20// Substrate
21use frame_support::traits::OnInitialize;
22
23// Cumulus
24use emulated_integration_tests_common::{
25	impl_accounts_helpers_for_parachain, impl_assert_events_helpers_for_parachain,
26	impls::Parachain, xcm_emulator::decl_test_parachains,
27};
28
29// CoretimeRococo Parachain declaration
30decl_test_parachains! {
31	pub struct CoretimeRococo {
32		genesis = genesis::genesis(),
33		on_init = {
34			coretime_rococo_runtime::AuraExt::on_initialize(1);
35		},
36		runtime = coretime_rococo_runtime,
37		core = {
38			XcmpMessageHandler: coretime_rococo_runtime::XcmpQueue,
39			LocationToAccountId: coretime_rococo_runtime::xcm_config::LocationToAccountId,
40			ParachainInfo: coretime_rococo_runtime::ParachainInfo,
41			MessageOrigin: cumulus_primitives_core::AggregateMessageOrigin,
42		},
43		pallets = {
44			PolkadotXcm: coretime_rococo_runtime::PolkadotXcm,
45			Balances: coretime_rococo_runtime::Balances,
46			Broker: coretime_rococo_runtime::Broker,
47		}
48	},
49}
50
51// CoretimeRococo implementation
52impl_accounts_helpers_for_parachain!(CoretimeRococo);
53impl_assert_events_helpers_for_parachain!(CoretimeRococo);