referrerpolicy=no-referrer-when-downgrade

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