referrerpolicy=no-referrer-when-downgrade

collectives_westend_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 collectives_westend_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// CollectivesWestend Parachain declaration
30decl_test_parachains! {
31	pub struct CollectivesWestend {
32		genesis = genesis::genesis(),
33		on_init = {
34			collectives_westend_runtime::AuraExt::on_initialize(1);
35		},
36		runtime = collectives_westend_runtime,
37		core = {
38			XcmpMessageHandler: collectives_westend_runtime::XcmpQueue,
39			LocationToAccountId: collectives_westend_runtime::xcm_config::LocationToAccountId,
40			ParachainInfo: collectives_westend_runtime::ParachainInfo,
41			MessageOrigin: cumulus_primitives_core::AggregateMessageOrigin,
42		},
43		pallets = {
44			PolkadotXcm: collectives_westend_runtime::PolkadotXcm,
45			Balances: collectives_westend_runtime::Balances,
46			FellowshipTreasury: collectives_westend_runtime::FellowshipTreasury,
47			AssetRate: collectives_westend_runtime::AssetRate,
48		}
49	},
50}
51
52// AssetHubWestend implementation
53impl_accounts_helpers_for_parachain!(CollectivesWestend);
54impl_assert_events_helpers_for_parachain!(CollectivesWestend);