Skip to content

Commit efdc1e9

Browse files
Snowbridge on Westend (#5074)
### Context Since Rococo is now deprecated, we need another testnet to detect bleeding-edge changes to Substrate, Polkadot, & BEEFY consensus protocols that could brick the bridge. It's the mirror PR of Snowfork#157 which has reviewed by Snowbridge team internally. Synced with @acatangiu about that in channel https://matrix.to/#/!gxqZwOyvhLstCgPJHO:matrix.parity.io/$N0CvTfDSl3cOQLEJeZBh-wlKJUXx7EDHAuNN5HuYHY4?via=matrix.parity.io&via=parity.io&via=matrix.org --------- Co-authored-by: Clara van Staden <claravanstaden64@gmail.com>
1 parent a986da2 commit efdc1e9

File tree

32 files changed

+1636
-40
lines changed

32 files changed

+1636
-40
lines changed

Cargo.lock

Lines changed: 28 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

cumulus/parachains/integration-tests/emulated/chains/parachains/bridges/bridge-hub-westend/src/genesis.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ use emulated_integration_tests_common::{
2323
use parachains_common::Balance;
2424

2525
pub const PARA_ID: u32 = 1002;
26+
pub const ASSETHUB_PARA_ID: u32 = 1000;
2627
pub const ED: Balance = testnet_parachains_constants::westend::currency::EXISTENTIAL_DEPOSIT;
2728

2829
pub fn genesis() -> Storage {
@@ -65,6 +66,11 @@ pub fn genesis() -> Storage {
6566
owner: Some(get_account_id_from_seed::<sr25519::Public>(accounts::BOB)),
6667
..Default::default()
6768
},
69+
ethereum_system: bridge_hub_westend_runtime::EthereumSystemConfig {
70+
para_id: PARA_ID.into(),
71+
asset_hub_para_id: ASSETHUB_PARA_ID.into(),
72+
..Default::default()
73+
},
6874
..Default::default()
6975
};
7076

cumulus/parachains/integration-tests/emulated/tests/bridges/bridge-hub-westend/Cargo.toml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,17 @@ workspace = true
1212

1313
[dependencies]
1414
hex-literal = { workspace = true, default-features = true }
15+
codec = { workspace = true }
16+
log = { workspace = true }
17+
scale-info = { workspace = true }
1518

1619
# Substrate
1720
frame-support = { workspace = true }
1821
pallet-assets = { workspace = true }
1922
pallet-asset-conversion = { workspace = true }
2023
pallet-balances = { workspace = true }
2124
pallet-message-queue = { workspace = true, default-features = true }
25+
sp-core = { workspace = true }
2226
sp-runtime = { workspace = true }
2327

2428
# Polkadot
@@ -34,3 +38,14 @@ cumulus-pallet-xcmp-queue = { workspace = true }
3438
emulated-integration-tests-common = { workspace = true }
3539
parachains-common = { workspace = true, default-features = true }
3640
rococo-westend-system-emulated-network = { workspace = true }
41+
testnet-parachains-constants = { workspace = true, features = ["westend"] }
42+
asset-hub-westend-runtime = { workspace = true }
43+
bridge-hub-westend-runtime = { workspace = true }
44+
45+
# Snowbridge
46+
snowbridge-core = { workspace = true }
47+
snowbridge-router-primitives = { workspace = true }
48+
snowbridge-pallet-system = { workspace = true }
49+
snowbridge-pallet-outbound-queue = { workspace = true }
50+
snowbridge-pallet-inbound-queue = { workspace = true }
51+
snowbridge-pallet-inbound-queue-fixtures = { workspace = true }

cumulus/parachains/integration-tests/emulated/tests/bridges/bridge-hub-westend/src/tests/mod.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,9 @@ use crate::imports::*;
1818
mod asset_transfers;
1919
mod claim_assets;
2020
mod send_xcm;
21+
mod snowbridge;
2122
mod teleport;
2223

23-
mod snowbridge {
24-
pub const CHAIN_ID: u64 = 11155111;
25-
pub const WETH: [u8; 20] = hex_literal::hex!("87d1f7fdfEe7f651FaBc8bFCB6E086C278b77A7d");
26-
}
27-
2824
pub(crate) fn asset_hub_rococo_location() -> Location {
2925
Location::new(2, [GlobalConsensus(Rococo), Parachain(AssetHubRococo::para_id().into())])
3026
}

0 commit comments

Comments
 (0)