Skip to content

Commit

Permalink
Remove Woococo related stuff (paritytech#2692)
Browse files Browse the repository at this point in the history
* Remove Woococo related stuff

* More removes

* Compilation

* Added equvocation for Ro/We

* We need chain-westend primitives
  • Loading branch information
bkontur authored and serban300 committed Apr 9, 2024
1 parent 0b6ee5e commit 1ee0e1f
Show file tree
Hide file tree
Showing 37 changed files with 48 additions and 1,299 deletions.
3 changes: 0 additions & 3 deletions bridges/primitives/chain-asset-hub-rococo/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,6 @@ pub use bp_xcm_bridge_hub_router::XcmBridgeHubRouterCall;
#[allow(clippy::large_enum_variant)]
#[derive(Encode, Decode, Debug, PartialEq, Eq, Clone, TypeInfo)]
pub enum Call {
/// `ToWococoXcmRouter` bridge pallet.
#[codec(index = 43)]
ToWococoXcmRouter(XcmBridgeHubRouterCall),
/// `ToWestendXcmRouter` bridge pallet.
#[codec(index = 45)]
ToWestendXcmRouter(XcmBridgeHubRouterCall),
Expand Down
26 changes: 0 additions & 26 deletions bridges/primitives/chain-asset-hub-wococo/Cargo.toml

This file was deleted.

48 changes: 0 additions & 48 deletions bridges/primitives/chain-asset-hub-wococo/src/lib.rs

This file was deleted.

2 changes: 1 addition & 1 deletion bridges/primitives/chain-bridge-hub-kusama/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "bp-bridge-hub-kusama"
description = "Primitives of BridgeHubRococo parachain runtime."
description = "Primitives of BridgeHubKusama parachain runtime."
version = "0.1.0"
authors.workspace = true
edition.workspace = true
Expand Down
2 changes: 1 addition & 1 deletion bridges/primitives/chain-bridge-hub-polkadot/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "bp-bridge-hub-polkadot"
description = "Primitives of BridgeHubWococo parachain runtime."
description = "Primitives of BridgeHubPolkadot parachain runtime."
version = "0.1.0"
authors.workspace = true
edition.workspace = true
Expand Down
3 changes: 0 additions & 3 deletions bridges/primitives/chain-bridge-hub-rococo/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,6 @@ pub const WITH_BRIDGE_HUB_ROCOCO_MESSAGES_PALLET_NAME: &str = "BridgeRococoMessa
/// chains.
pub const WITH_BRIDGE_HUB_ROCOCO_RELAYERS_PALLET_NAME: &str = "BridgeRelayers";

/// Pallet index of `BridgeWococoMessages: pallet_bridge_messages::<Instance1>`.
pub const WITH_BRIDGE_ROCOCO_TO_WOCOCO_MESSAGES_PALLET_INDEX: u8 = 46;

/// Pallet index of `BridgeWestendMessages: pallet_bridge_messages::<Instance3>`.
pub const WITH_BRIDGE_ROCOCO_TO_WESTEND_MESSAGES_PALLET_INDEX: u8 = 51;

Expand Down
34 changes: 0 additions & 34 deletions bridges/primitives/chain-bridge-hub-wococo/Cargo.toml

This file was deleted.

90 changes: 0 additions & 90 deletions bridges/primitives/chain-bridge-hub-wococo/src/lib.rs

This file was deleted.

34 changes: 0 additions & 34 deletions bridges/primitives/chain-wococo/Cargo.toml

This file was deleted.

68 changes: 0 additions & 68 deletions bridges/primitives/chain-wococo/src/lib.rs

This file was deleted.

2 changes: 1 addition & 1 deletion bridges/primitives/runtime/src/extensions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ pub type BridgeRejectObsoleteHeadersAndMessages = GenericSignedExtensionSchema<(
/// wildcard/placeholder, which relies on the scale encoding for `()` or `((), ())`, or `((), (),
/// ())` is the same. So runtime can contains any kind of tuple:
/// `(BridgeRefundBridgeHubRococoMessages)`
/// `(BridgeRefundBridgeHubRococoMessages, BridgeRefundBridgeHubWococoMessages)`
/// `(BridgeRefundBridgeHubRococoMessages, BridgeRefundBridgeHubWestendMessages)`
/// `(BridgeRefundParachainMessages1, ..., BridgeRefundParachainMessagesN)`
pub type RefundBridgedParachainMessagesSchema = GenericSignedExtensionSchema<(), ()>;

Expand Down
6 changes: 0 additions & 6 deletions bridges/primitives/runtime/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -79,15 +79,9 @@ pub const ASSET_HUB_WESTEND_CHAIN_ID: ChainId = *b"ahwe";
/// Rococo chain id.
pub const ROCOCO_CHAIN_ID: ChainId = *b"roco";

/// Wococo chain id.
pub const WOCOCO_CHAIN_ID: ChainId = *b"woco";

/// BridgeHubRococo chain id.
pub const BRIDGE_HUB_ROCOCO_CHAIN_ID: ChainId = *b"bhro";

/// BridgeHubWococo chain id.
pub const BRIDGE_HUB_WOCOCO_CHAIN_ID: ChainId = *b"bhwo";

/// BridgeHubWestend chain id.
pub const BRIDGE_HUB_WESTEND_CHAIN_ID: ChainId = *b"bhwd";

Expand Down
2 changes: 0 additions & 2 deletions bridges/relays/bin-substrate/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -35,15 +35,13 @@ relay-bridge-hub-kusama-client = { path = "../client-bridge-hub-kusama" }
relay-bridge-hub-polkadot-client = { path = "../client-bridge-hub-polkadot" }
relay-bridge-hub-rococo-client = { path = "../client-bridge-hub-rococo" }
relay-bridge-hub-westend-client = { path = "../client-bridge-hub-westend" }
relay-bridge-hub-wococo-client = { path = "../client-bridge-hub-wococo" }
relay-kusama-client = { path = "../client-kusama" }
relay-polkadot-client = { path = "../client-polkadot" }
relay-polkadot-bulletin-client = { path = "../client-polkadot-bulletin" }
relay-rococo-client = { path = "../client-rococo" }
relay-substrate-client = { path = "../client-substrate" }
relay-utils = { path = "../utils" }
relay-westend-client = { path = "../client-westend" }
relay-wococo-client = { path = "../client-wococo" }
substrate-relay-helper = { path = "../lib-substrate-relay" }

# Substrate Dependencies
Expand Down
1 change: 0 additions & 1 deletion bridges/relays/bin-substrate/src/bridges/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,3 @@
pub mod kusama_polkadot;
pub mod polkadot_bulletin;
pub mod rococo_westend;
pub mod rococo_wococo;
Loading

0 comments on commit 1ee0e1f

Please sign in to comment.