Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Commit

Permalink
Enable over-bridge-messaging in Rococo/Wococo runtime (#3377)
Browse files Browse the repository at this point in the history
* bridges in W<>R

* fix node compilation

* Update runtime/rococo/src/bridge_messages.rs

Co-authored-by: Hernando Castano <HCastano@users.noreply.github.com>

* Update runtime/rococo/src/bridge_messages.rs

Co-authored-by: Hernando Castano <HCastano@users.noreply.github.com>

* Update runtime/rococo/src/bridge_messages.rs

Co-authored-by: Hernando Castano <HCastano@users.noreply.github.com>

* Update runtime/rococo/src/bridge_messages.rs

Co-authored-by: Hernando Castano <HCastano@users.noreply.github.com>

* long line fix

* comment/remove -> comment/#[ignore]

* explicit instances

Co-authored-by: Hernando Castano <HCastano@users.noreply.github.com>
  • Loading branch information
svyatonik and HCastano authored Jul 6, 2021
1 parent b583753 commit ad6e755
Show file tree
Hide file tree
Showing 5 changed files with 754 additions and 0 deletions.
93 changes: 93 additions & 0 deletions Cargo.lock

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

16 changes: 16 additions & 0 deletions node/service/src/chain_spec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -988,6 +988,14 @@ fn rococo_staging_testnet_config_genesis(wasm_binary: &[u8]) -> rococo_runtime::
owner: Some(endowed_accounts[0].clone()),
..Default::default()
},
bridge_rococo_messages: rococo_runtime::BridgeRococoMessagesConfig {
owner: Some(endowed_accounts[0].clone()),
..Default::default()
},
bridge_wococo_messages: rococo_runtime::BridgeWococoMessagesConfig {
owner: Some(endowed_accounts[0].clone()),
..Default::default()
},
}
}

Expand Down Expand Up @@ -1524,6 +1532,14 @@ pub fn rococo_testnet_genesis(
owner: Some(root_key.clone()),
..Default::default()
},
bridge_rococo_messages: rococo_runtime::BridgeRococoMessagesConfig {
owner: Some(root_key.clone()),
..Default::default()
},
bridge_wococo_messages: rococo_runtime::BridgeWococoMessagesConfig {
owner: Some(root_key.clone()),
..Default::default()
},
}
}

Expand Down
10 changes: 10 additions & 0 deletions runtime/rococo/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,14 @@ xcm-builder = { package = "xcm-builder", path = "../../xcm/xcm-builder", default
pallet-xcm = { path = "../../xcm/pallet-xcm", default-features = false }

# Bridge Dependencies
bp-messages = { path = "../../bridges/primitives/messages", default-features = false }
bp-rococo = { path = "../../bridges/primitives/chain-rococo", default-features = false }
bp-runtime = { path = "../../bridges/primitives/runtime", default-features = false }
bp-wococo = { path = "../../bridges/primitives/chain-wococo", default-features = false }
bridge-runtime-common = { path = "../../bridges/bin/runtime-common", default-features = false }
pallet-bridge-dispatch = { path = "../../bridges/modules/dispatch", default-features = false }
pallet-bridge-grandpa = { path = "../../bridges/modules/grandpa", default-features = false }
pallet-bridge-messages = { path = "../../bridges/modules/messages", default-features = false }

[build-dependencies]
substrate-wasm-builder = { git = "https://github.com/paritytech/substrate", branch = "master" }
Expand All @@ -82,16 +87,21 @@ no_std = []
std = [
"authority-discovery-primitives/std",
"babe-primitives/std",
"bp-messages/std",
"bp-rococo/std",
"bp-runtime/std",
"bp-wococo/std",
"bridge-runtime-common/std",
"parity-scale-codec/std",
"frame-executive/std",
"pallet-authority-discovery/std",
"pallet-authorship/std",
"pallet-babe/std",
"beefy-primitives/std",
"pallet-balances/std",
"pallet-bridge-dispatch/std",
"pallet-bridge-grandpa/std",
"pallet-bridge-messages/std",
"pallet-collective/std",
"pallet-beefy/std",
"pallet-grandpa/std",
Expand Down
Loading

0 comments on commit ad6e755

Please sign in to comment.