Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Snowbridge on Westend #5074

Merged
merged 42 commits into from
Aug 7, 2024
Merged
Show file tree
Hide file tree
Changes from 39 commits
Commits
Show all changes
42 commits
Select commit Hold shift + click to select a range
f498694
Enable bridge config on westend
yrong Jul 11, 2024
9270db6
Update bridge config for asset hub westend
yrong Jul 11, 2024
384a135
Use BridgeHubMessageRouter
yrong Jul 11, 2024
d3b7f7d
Add unit tests
yrong Jul 11, 2024
e05b800
Update asset hub config
yrong Jul 12, 2024
e5a36b4
Add emulated test
yrong Jul 12, 2024
483afd8
Remove dead
yrong Jul 19, 2024
a69a0b0
Fix taplo
yrong Jul 19, 2024
2aca822
Fix test
yrong Jul 19, 2024
8ac0585
Fix comment
yrong Jul 19, 2024
66d7cab
Merge branch 'master' into snowbridge-on-westend
yrong Jul 19, 2024
ee8e08e
Merge branch 'master' into snowbridge-on-westend
claravanstaden Jul 22, 2024
fe42504
Merge branch 'master' into snowbridge-on-westend
yrong Jul 23, 2024
43b52d2
Enable fast runtime by default
yrong Jul 23, 2024
d5fd8c3
Merge branch 'master' into snowbridge-on-westend
yrong Jul 23, 2024
9566f98
Merge branch 'snowbridge-on-westend' of https://github.com/Snowfork/p…
yrong Jul 23, 2024
55c1373
Add genesis config for EthereumSystem
yrong Jul 24, 2024
162ade4
Merge branch 'master' into snowbridge-on-westend
yrong Jul 24, 2024
a5b7451
Merge branch 'master' into snowbridge-on-westend
claravanstaden Jul 25, 2024
ae7c612
Add prdoc
yrong Jul 26, 2024
2173cde
Merge branch 'snowbridge-on-westend' of https://github.com/Snowfork/p…
yrong Jul 26, 2024
91adaaf
Merge branch 'master' into snowbridge-on-westend
yrong Jul 26, 2024
a14deec
Enable meta-hash extension
yrong Jul 28, 2024
af21e84
Merge branch 'master' into snowbridge-on-westend
yrong Jul 28, 2024
6db9e76
Fix test to construct extrinsic
yrong Jul 29, 2024
7284c26
Fix missing license
yrong Jul 29, 2024
a427bb7
Merge branch 'master' into snowbridge-on-westend
yrong Jul 29, 2024
f3424b7
Update prdoc for SemVer
yrong Jul 30, 2024
7099350
Merge branch 'snowbridge-on-westend' of https://github.com/Snowfork/p…
yrong Jul 30, 2024
d6b377c
Merge branch 'master' into snowbridge-on-westend
yrong Jul 30, 2024
e017d40
Update prdoc
yrong Jul 30, 2024
f4c57c7
Merge branch 'snowbridge-on-westend' of https://github.com/Snowfork/p…
yrong Jul 30, 2024
586b957
Fix test
yrong Jul 31, 2024
65f4255
Revert the format
yrong Jul 31, 2024
7ba6fec
Fix test
yrong Jul 31, 2024
52c3e29
Merge branch 'master' into snowbridge-on-westend
yrong Jul 31, 2024
a0e79ca
Merge branch 'master' into snowbridge-on-westend
yrong Jul 31, 2024
0d5ffbe
Merge branch 'master' into snowbridge-on-westend
yrong Aug 5, 2024
3188e7a
Merge branch 'master' into snowbridge-on-westend
yrong Aug 5, 2024
909c40c
Fix is_waived
yrong Aug 7, 2024
60a0a64
Merge branch 'master' into snowbridge-on-westend
yrong Aug 7, 2024
d52473d
Merge branch 'master' into snowbridge-on-westend
yrong Aug 7, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading