Skip to content

Commit

Permalink
Snowbridge on Westend (paritytech#5074)
Browse files Browse the repository at this point in the history
### 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 <[email protected]>
  • Loading branch information
yrong and claravanstaden authored Aug 7, 2024
1 parent a986da2 commit efdc1e9
Show file tree
Hide file tree
Showing 32 changed files with 1,636 additions and 40 deletions.
28 changes: 28 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ use emulated_integration_tests_common::{
use parachains_common::Balance;

pub const PARA_ID: u32 = 1002;
pub const ASSETHUB_PARA_ID: u32 = 1000;
pub const ED: Balance = testnet_parachains_constants::westend::currency::EXISTENTIAL_DEPOSIT;

pub fn genesis() -> Storage {
Expand Down Expand Up @@ -65,6 +66,11 @@ pub fn genesis() -> Storage {
owner: Some(get_account_id_from_seed::<sr25519::Public>(accounts::BOB)),
..Default::default()
},
ethereum_system: bridge_hub_westend_runtime::EthereumSystemConfig {
para_id: PARA_ID.into(),
asset_hub_para_id: ASSETHUB_PARA_ID.into(),
..Default::default()
},
..Default::default()
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,17 @@ workspace = true

[dependencies]
hex-literal = { workspace = true, default-features = true }
codec = { workspace = true }
log = { workspace = true }
scale-info = { workspace = true }

# Substrate
frame-support = { workspace = true }
pallet-assets = { workspace = true }
pallet-asset-conversion = { workspace = true }
pallet-balances = { workspace = true }
pallet-message-queue = { workspace = true, default-features = true }
sp-core = { workspace = true }
sp-runtime = { workspace = true }

# Polkadot
Expand All @@ -34,3 +38,14 @@ cumulus-pallet-xcmp-queue = { workspace = true }
emulated-integration-tests-common = { workspace = true }
parachains-common = { workspace = true, default-features = true }
rococo-westend-system-emulated-network = { workspace = true }
testnet-parachains-constants = { workspace = true, features = ["westend"] }
asset-hub-westend-runtime = { workspace = true }
bridge-hub-westend-runtime = { workspace = true }

# Snowbridge
snowbridge-core = { workspace = true }
snowbridge-router-primitives = { workspace = true }
snowbridge-pallet-system = { workspace = true }
snowbridge-pallet-outbound-queue = { workspace = true }
snowbridge-pallet-inbound-queue = { workspace = true }
snowbridge-pallet-inbound-queue-fixtures = { workspace = true }
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,9 @@ use crate::imports::*;
mod asset_transfers;
mod claim_assets;
mod send_xcm;
mod snowbridge;
mod teleport;

mod snowbridge {
pub const CHAIN_ID: u64 = 11155111;
pub const WETH: [u8; 20] = hex_literal::hex!("87d1f7fdfEe7f651FaBc8bFCB6E086C278b77A7d");
}

pub(crate) fn asset_hub_rococo_location() -> Location {
Location::new(2, [GlobalConsensus(Rococo), Parachain(AssetHubRococo::para_id().into())])
}
Expand Down
Loading

0 comments on commit efdc1e9

Please sign in to comment.