This repository has been archived by the owner on Oct 22, 2024. It is now read-only.
forked from paritytech/polkadot-sdk
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ea4085a
commit 5d52794
Showing
62 changed files
with
3,719 additions
and
226 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 26 additions & 0 deletions
26
...arachains/integration-tests/emulated/chains/parachains/assets/asset-hub-wococo/Cargo.toml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
[package] | ||
name = "asset-hub-wococo-emulated-chain" | ||
version = "0.0.0" | ||
authors.workspace = true | ||
edition.workspace = true | ||
license = "Apache-2.0" | ||
description = "Asset Hub Wococo emulated chain" | ||
publish = false | ||
|
||
[dependencies] | ||
serde_json = "1.0.104" | ||
|
||
# Substrate | ||
sp-core = { path = "../../../../../../../../substrate/primitives/core", default-features = false } | ||
sp-runtime = { path = "../../../../../../../../substrate/primitives/runtime", default-features = false } | ||
frame-support = { path = "../../../../../../../../substrate/frame/support", default-features = false } | ||
|
||
# Polakadot | ||
parachains-common = { path = "../../../../../../../parachains/common" } | ||
|
||
# Cumulus | ||
cumulus-primitives-core = { path = "../../../../../../../primitives/core", default-features = false } | ||
emulated-integration-tests-common = { path = "../../../../common", default-features = false } | ||
asset-hub-rococo-runtime = { path = "../../../../../../runtimes/assets/asset-hub-rococo" } | ||
wococo-emulated-chain = { path = "../../../relays/wococo" } | ||
asset-hub-rococo-emulated-chain = { path = "../asset-hub-rococo" } |
54 changes: 54 additions & 0 deletions
54
...arachains/integration-tests/emulated/chains/parachains/assets/asset-hub-wococo/src/lib.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
// Copyright (C) Parity Technologies (UK) Ltd. | ||
// SPDX-License-Identifier: Apache-2.0 | ||
|
||
// Licensed under the Apache License, Version 2.0 (the "License"); | ||
// you may not use this file except in compliance with the License. | ||
// You may obtain a copy of the License at | ||
// | ||
// http://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, software | ||
// distributed under the License is distributed on an "AS IS" BASIS, | ||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
// See the License for the specific language governing permissions and | ||
// limitations under the License. | ||
|
||
// Substrate | ||
use frame_support::traits::OnInitialize; | ||
|
||
// Cumulus | ||
use emulated_integration_tests_common::{ | ||
impl_accounts_helpers_for_parachain, impl_assert_events_helpers_for_parachain, | ||
impl_assets_helpers_for_parachain, xcm_emulator::decl_test_parachains, | ||
}; | ||
use wococo_emulated_chain::Wococo; | ||
|
||
// AssetHubWococo Parachain declaration | ||
decl_test_parachains! { | ||
pub struct AssetHubWococo { | ||
genesis = asset_hub_rococo_emulated_chain::genesis::genesis(), | ||
on_init = { | ||
asset_hub_rococo_runtime::AuraExt::on_initialize(1); | ||
}, | ||
runtime = asset_hub_rococo_runtime, | ||
core = { | ||
XcmpMessageHandler: asset_hub_rococo_runtime::XcmpQueue, | ||
LocationToAccountId: asset_hub_rococo_runtime::xcm_config::LocationToAccountId, | ||
ParachainInfo: asset_hub_rococo_runtime::ParachainInfo, | ||
MessageOrigin: cumulus_primitives_core::AggregateMessageOrigin, | ||
}, | ||
pallets = { | ||
PolkadotXcm: asset_hub_rococo_runtime::PolkadotXcm, | ||
Assets: asset_hub_rococo_runtime::Assets, | ||
ForeignAssets: asset_hub_rococo_runtime::ForeignAssets, | ||
PoolAssets: asset_hub_rococo_runtime::PoolAssets, | ||
AssetConversion: asset_hub_rococo_runtime::AssetConversion, | ||
Balances: asset_hub_rococo_runtime::Balances, | ||
} | ||
}, | ||
} | ||
|
||
// AssetHubWococo implementation | ||
impl_accounts_helpers_for_parachain!(AssetHubWococo); | ||
impl_assert_events_helpers_for_parachain!(AssetHubWococo, false); | ||
impl_assets_helpers_for_parachain!(AssetHubWococo, Wococo); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
...achains/integration-tests/emulated/chains/parachains/bridges/bridge-hub-wococo/Cargo.toml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
[package] | ||
name = "bridge-hub-wococo-emulated-chain" | ||
version = "0.0.0" | ||
authors.workspace = true | ||
edition.workspace = true | ||
license = "Apache-2.0" | ||
description = "Bridge Hub Wococo emulated chain" | ||
publish = false | ||
|
||
[dependencies] | ||
serde_json = "1.0.104" | ||
|
||
# Substrate | ||
sp-core = { path = "../../../../../../../../substrate/primitives/core", default-features = false } | ||
sp-runtime = { path = "../../../../../../../../substrate/primitives/runtime", default-features = false } | ||
frame-support = { path = "../../../../../../../../substrate/frame/support", default-features = false } | ||
|
||
# Polakadot | ||
parachains-common = { path = "../../../../../../../parachains/common" } | ||
|
||
# Cumulus | ||
cumulus-primitives-core = { path = "../../../../../../../primitives/core", default-features = false } | ||
emulated-integration-tests-common = { path = "../../../../common", default-features = false } | ||
bridge-hub-rococo-runtime = { path = "../../../../../../runtimes/bridge-hubs/bridge-hub-rococo" } | ||
bridge-hub-rococo-emulated-chain = { path = "../bridge-hub-rococo" } |
48 changes: 48 additions & 0 deletions
48
...achains/integration-tests/emulated/chains/parachains/bridges/bridge-hub-wococo/src/lib.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
// Copyright (C) Parity Technologies (UK) Ltd. | ||
// SPDX-License-Identifier: Apache-2.0 | ||
|
||
// Licensed under the Apache License, Version 2.0 (the "License"); | ||
// you may not use this file except in compliance with the License. | ||
// You may obtain a copy of the License at | ||
// | ||
// http://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, software | ||
// distributed under the License is distributed on an "AS IS" BASIS, | ||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
// See the License for the specific language governing permissions and | ||
// limitations under the License. | ||
|
||
// Substrate | ||
use frame_support::traits::OnInitialize; | ||
|
||
// Cumulus | ||
use emulated_integration_tests_common::{ | ||
impl_accounts_helpers_for_parachain, impl_assert_events_helpers_for_parachain, | ||
xcm_emulator::decl_test_parachains, | ||
}; | ||
|
||
// BridgeHubWococo Parachain declaration | ||
decl_test_parachains! { | ||
pub struct BridgeHubWococo { | ||
genesis = bridge_hub_rococo_emulated_chain::genesis::genesis(), | ||
on_init = { | ||
bridge_hub_rococo_runtime::AuraExt::on_initialize(1); | ||
}, | ||
runtime = bridge_hub_rococo_runtime, | ||
core = { | ||
XcmpMessageHandler: bridge_hub_rococo_runtime::XcmpQueue, | ||
LocationToAccountId: bridge_hub_rococo_runtime::xcm_config::LocationToAccountId, | ||
ParachainInfo: bridge_hub_rococo_runtime::ParachainInfo, | ||
MessageOrigin: cumulus_primitives_core::AggregateMessageOrigin, | ||
}, | ||
pallets = { | ||
PolkadotXcm: bridge_hub_rococo_runtime::PolkadotXcm, | ||
Balances: bridge_hub_rococo_runtime::Balances, | ||
} | ||
}, | ||
} | ||
|
||
// BridgeHubWococo implementation | ||
impl_accounts_helpers_for_parachain!(BridgeHubWococo); | ||
impl_assert_events_helpers_for_parachain!(BridgeHubWococo, false); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 30 additions & 0 deletions
30
cumulus/parachains/integration-tests/emulated/chains/relays/wococo/Cargo.toml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
[package] | ||
name = "wococo-emulated-chain" | ||
version = "0.0.0" | ||
authors.workspace = true | ||
edition.workspace = true | ||
license = "Apache-2.0" | ||
description = "Wococo emulated chain" | ||
publish = false | ||
|
||
[dependencies] | ||
serde_json = "1.0.104" | ||
|
||
# Substrate | ||
sp-core = { path = "../../../../../../../substrate/primitives/core", default-features = false } | ||
sp-runtime = { path = "../../../../../../../substrate/primitives/runtime", default-features = false } | ||
sp-authority-discovery = { path = "../../../../../../../substrate/primitives/authority-discovery", default-features = false } | ||
sp-consensus-babe = { path = "../../../../../../../substrate/primitives/consensus/babe", default-features = false } | ||
beefy-primitives = { package = "sp-consensus-beefy", path = "../../../../../../../substrate/primitives/consensus/beefy" } | ||
grandpa = { package = "sc-consensus-grandpa", path = "../../../../../../../substrate/client/consensus/grandpa", default-features = false } | ||
pallet-im-online = { path = "../../../../../../../substrate/frame/im-online", default-features = false } | ||
|
||
# Polkadot | ||
polkadot-primitives = { path = "../../../../../../../polkadot/primitives", default-features = false } | ||
rococo-runtime-constants = { path = "../../../../../../../polkadot/runtime/rococo/constants", default-features = false } | ||
rococo-runtime = { path = "../../../../../../../polkadot/runtime/rococo" } | ||
|
||
# Cumulus | ||
parachains-common = { path = "../../../../../../parachains/common" } | ||
emulated-integration-tests-common = { path = "../../../common", default-features = false } | ||
rococo-emulated-chain = { path = "../rococo" } |
46 changes: 46 additions & 0 deletions
46
cumulus/parachains/integration-tests/emulated/chains/relays/wococo/src/lib.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
// Copyright (C) Parity Technologies (UK) Ltd. | ||
// SPDX-License-Identifier: Apache-2.0 | ||
|
||
// Licensed under the Apache License, Version 2.0 (the "License"); | ||
// you may not use this file except in compliance with the License. | ||
// You may obtain a copy of the License at | ||
// | ||
// http://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, software | ||
// distributed under the License is distributed on an "AS IS" BASIS, | ||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
// See the License for the specific language governing permissions and | ||
// limitations under the License. | ||
|
||
// Cumulus | ||
use emulated_integration_tests_common::{ | ||
impl_accounts_helpers_for_relay_chain, impl_assert_events_helpers_for_relay_chain, | ||
impl_hrmp_channels_helpers_for_relay_chain, impl_send_transact_helpers_for_relay_chain, | ||
xcm_emulator::decl_test_relay_chains, | ||
}; | ||
|
||
// Wococo declaration | ||
decl_test_relay_chains! { | ||
#[api_version(8)] | ||
pub struct Wococo { | ||
genesis = rococo_emulated_chain::genesis::genesis(), | ||
on_init = (), | ||
runtime = rococo_runtime, | ||
core = { | ||
SovereignAccountOf: rococo_runtime::xcm_config::LocationConverter, | ||
}, | ||
pallets = { | ||
XcmPallet: rococo_runtime::XcmPallet, | ||
Sudo: rococo_runtime::Sudo, | ||
Balances: rococo_runtime::Balances, | ||
Hrmp: rococo_runtime::Hrmp, | ||
} | ||
}, | ||
} | ||
|
||
// Wococo implementation | ||
impl_accounts_helpers_for_relay_chain!(Wococo); | ||
impl_assert_events_helpers_for_relay_chain!(Wococo); | ||
impl_hrmp_channels_helpers_for_relay_chain!(Wococo); | ||
impl_send_transact_helpers_for_relay_chain!(Wococo); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
cumulus/parachains/integration-tests/emulated/networks/rococo-wococo-system/Cargo.toml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
[package] | ||
name = "rococo-wococo-system-emulated-network" | ||
version = "0.0.0" | ||
authors.workspace = true | ||
edition.workspace = true | ||
license = "Apache-2.0" | ||
description = "Rococo<>Wococo emulated bridged network" | ||
publish = false | ||
|
||
[dependencies] | ||
# Cumulus | ||
emulated-integration-tests-common = { path = "../../common", default-features = false } | ||
rococo-emulated-chain = { path = "../../chains/relays/rococo" } | ||
wococo-emulated-chain = { path = "../../chains/relays/wococo" } | ||
asset-hub-rococo-emulated-chain = { path = "../../chains/parachains/assets/asset-hub-rococo" } | ||
asset-hub-wococo-emulated-chain = { path = "../../chains/parachains/assets/asset-hub-wococo" } | ||
bridge-hub-rococo-emulated-chain = { path = "../../chains/parachains/bridges/bridge-hub-rococo" } | ||
bridge-hub-wococo-emulated-chain = { path = "../../chains/parachains/bridges/bridge-hub-wococo" } | ||
penpal-emulated-chain = { path = "../../chains/parachains/testing/penpal" } |
Oops, something went wrong.