Skip to content

Commit

Permalink
Removed unnecessary type LaneId
Browse files Browse the repository at this point in the history
  • Loading branch information
bkontur committed Oct 4, 2024
1 parent 147707c commit 17f75c5
Show file tree
Hide file tree
Showing 17 changed files with 0 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ impl CliBridgeBase for BridgeHubKusamaToBridgeHubPolkadotMessagesCliBridge {

impl MessagesCliBridge for BridgeHubKusamaToBridgeHubPolkadotMessagesCliBridge {
type MessagesLane = BridgeHubKusamaMessagesToBridgeHubPolkadotMessageLane;
type LaneId = bp_messages::LegacyLaneId;
}

substrate_relay_helper::generate_receive_message_proof_call_builder!(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ impl CliBridgeBase for BridgeHubPolkadotToBridgeHubKusamaMessagesCliBridge {

impl MessagesCliBridge for BridgeHubPolkadotToBridgeHubKusamaMessagesCliBridge {
type MessagesLane = BridgeHubPolkadotMessagesToBridgeHubKusamaMessageLane;
type LaneId = bp_messages::LegacyLaneId;
}

substrate_relay_helper::generate_receive_message_proof_call_builder!(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,5 +73,4 @@ impl CliBridgeBase for BridgeHubKusamaToBridgeHubPolkadotCliBridge {
impl MessagesCliBridge for BridgeHubKusamaToBridgeHubPolkadotCliBridge {
type MessagesLane =
crate::bridges::kusama_polkadot::bridge_hub_kusama_messages_to_bridge_hub_polkadot::BridgeHubKusamaMessagesToBridgeHubPolkadotMessageLane;
type LaneId = bp_messages::LegacyLaneId;
}
Original file line number Diff line number Diff line change
Expand Up @@ -73,5 +73,4 @@ impl CliBridgeBase for BridgeHubPolkadotToBridgeHubKusamaCliBridge {
impl MessagesCliBridge for BridgeHubPolkadotToBridgeHubKusamaCliBridge {
type MessagesLane =
crate::bridges::kusama_polkadot::bridge_hub_polkadot_messages_to_bridge_hub_kusama::BridgeHubPolkadotMessagesToBridgeHubKusamaMessageLane;
type LaneId = bp_messages::LegacyLaneId;
}
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ impl CliBridgeBase for BridgeHubPolkadotToPolkadotBulletinMessagesCliBridge {

impl MessagesCliBridge for BridgeHubPolkadotToPolkadotBulletinMessagesCliBridge {
type MessagesLane = BridgeHubPolkadotMessagesToPolkadotBulletinMessageLane;
type LaneId = bp_messages::LegacyLaneId;
}

substrate_relay_helper::generate_receive_message_proof_call_builder!(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,5 +83,4 @@ impl RelayToRelayEquivocationDetectionCliBridge for PolkadotBulletinToBridgeHubP

impl MessagesCliBridge for PolkadotBulletinToBridgeHubPolkadotCliBridge {
type MessagesLane = crate::bridges::polkadot_bulletin::polkadot_bulletin_messages_to_bridge_hub_polkadot::PolkadotBulletinMessagesToBridgeHubPolkadotMessageLane;
type LaneId = bp_messages::LegacyLaneId;
}
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ impl CliBridgeBase for PolkadotBulletinToBridgeHubPolkadotMessagesCliBridge {

impl MessagesCliBridge for PolkadotBulletinToBridgeHubPolkadotMessagesCliBridge {
type MessagesLane = PolkadotBulletinMessagesToBridgeHubPolkadotMessageLane;
type LaneId = bp_messages::LegacyLaneId;
}

substrate_relay_helper::generate_receive_message_proof_call_builder!(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,6 @@ impl CliBridgeBase for PolkadotToPolkadotBulletinCliBridge {
impl MessagesCliBridge for PolkadotToPolkadotBulletinCliBridge {
type MessagesLane =
crate::bridges::polkadot_bulletin::bridge_hub_polkadot_messages_to_polkadot_bulletin::BridgeHubPolkadotMessagesToPolkadotBulletinMessageLane;
type LaneId = bp_messages::LegacyLaneId;

fn maybe_messages_limits() -> Option<MessagesRelayLimits> {
// Polkadot Bulletin chain is missing the `TransactionPayment` runtime API (as well as the
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ impl CliBridgeBase for BridgeHubRococoToRococoBulletinMessagesCliBridge {

impl MessagesCliBridge for BridgeHubRococoToRococoBulletinMessagesCliBridge {
type MessagesLane = BridgeHubRococoMessagesToRococoBulletinMessageLane;
type LaneId = bp_messages::LegacyLaneId;
}

substrate_relay_helper::generate_receive_message_proof_call_builder!(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,5 +84,4 @@ impl RelayToRelayEquivocationDetectionCliBridge for RococoBulletinToBridgeHubRoc

impl MessagesCliBridge for RococoBulletinToBridgeHubRococoCliBridge {
type MessagesLane = crate::bridges::rococo_bulletin::rococo_bulletin_messages_to_bridge_hub_rococo::RococoBulletinMessagesToBridgeHubRococoMessageLane;
type LaneId = bp_messages::LegacyLaneId;
}
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ impl CliBridgeBase for RococoBulletinToBridgeHubRococoMessagesCliBridge {

impl MessagesCliBridge for RococoBulletinToBridgeHubRococoMessagesCliBridge {
type MessagesLane = RococoBulletinMessagesToBridgeHubRococoMessageLane;
type LaneId = bp_messages::LegacyLaneId;
}

substrate_relay_helper::generate_receive_message_proof_call_builder!(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,6 @@ impl CliBridgeBase for RococoToRococoBulletinCliBridge {
impl MessagesCliBridge for RococoToRococoBulletinCliBridge {
type MessagesLane =
crate::bridges::rococo_bulletin::bridge_hub_rococo_messages_to_rococo_bulletin::BridgeHubRococoMessagesToRococoBulletinMessageLane;
type LaneId = bp_messages::LegacyLaneId;

fn maybe_messages_limits() -> Option<MessagesRelayLimits> {
// Rococo Bulletin chain is missing the `TransactionPayment` runtime API (as well as the
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ impl CliBridgeBase for BridgeHubRococoToBridgeHubWestendMessagesCliBridge {

impl MessagesCliBridge for BridgeHubRococoToBridgeHubWestendMessagesCliBridge {
type MessagesLane = BridgeHubRococoMessagesToBridgeHubWestendMessageLane;
type LaneId = bp_messages::LegacyLaneId;
}

substrate_relay_helper::generate_receive_message_proof_call_builder!(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ impl CliBridgeBase for BridgeHubWestendToBridgeHubRococoMessagesCliBridge {

impl MessagesCliBridge for BridgeHubWestendToBridgeHubRococoMessagesCliBridge {
type MessagesLane = BridgeHubWestendMessagesToBridgeHubRococoMessageLane;
type LaneId = bp_messages::LegacyLaneId;
}

substrate_relay_helper::generate_receive_message_proof_call_builder!(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,5 +74,4 @@ impl CliBridgeBase for BridgeHubRococoToBridgeHubWestendCliBridge {
impl MessagesCliBridge for BridgeHubRococoToBridgeHubWestendCliBridge {
type MessagesLane =
crate::bridges::rococo_westend::bridge_hub_rococo_messages_to_bridge_hub_westend::BridgeHubRococoMessagesToBridgeHubWestendMessageLane;
type LaneId = bp_messages::LegacyLaneId;
}
Original file line number Diff line number Diff line change
Expand Up @@ -74,5 +74,4 @@ impl CliBridgeBase for BridgeHubWestendToBridgeHubRococoCliBridge {
impl MessagesCliBridge for BridgeHubWestendToBridgeHubRococoCliBridge {
type MessagesLane =
crate::bridges::rococo_westend::bridge_hub_westend_messages_to_bridge_hub_rococo::BridgeHubWestendMessagesToBridgeHubRococoMessageLane;
type LaneId = bp_messages::LegacyLaneId;
}
4 changes: 0 additions & 4 deletions substrate-relay/src/cli/relay_headers_and_messages.rs
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,6 @@ impl Full2WayBridge for BridgeHubRococoBridgeHubWestendFull2WayBridge {
type Right = relay_bridge_hub_westend_client::BridgeHubWestend;
type L2R = BridgeHubRococoToBridgeHubWestendCliBridge;
type R2L = BridgeHubWestendToBridgeHubRococoCliBridge;
type LaneId = bp_messages::LegacyLaneId;

fn new(base: Self::Base) -> anyhow::Result<Self> {
Ok(Self { base })
Expand All @@ -158,7 +157,6 @@ impl Full2WayBridge for BridgeHubKusamaBridgeHubPolkadotFull2WayBridge {
type Right = relay_bridge_hub_polkadot_client::BridgeHubPolkadot;
type L2R = BridgeHubKusamaToBridgeHubPolkadotCliBridge;
type R2L = BridgeHubPolkadotToBridgeHubKusamaCliBridge;
type LaneId = bp_messages::LegacyLaneId;

fn new(base: Self::Base) -> anyhow::Result<Self> {
Ok(Self { base })
Expand All @@ -185,7 +183,6 @@ impl Full2WayBridge for PolkadotBulletinBridgeHubPolkadotFull2WayBridge {
type Right = relay_bridge_hub_polkadot_client::BridgeHubPolkadot;
type L2R = PolkadotBulletinToBridgeHubPolkadotCliBridge;
type R2L = PolkadotToPolkadotBulletinCliBridge;
type LaneId = bp_messages::LegacyLaneId;

fn new(base: Self::Base) -> anyhow::Result<Self> {
Ok(Self { base })
Expand All @@ -212,7 +209,6 @@ impl Full2WayBridge for RococoBulletinBridgeHubRococoFull2WayBridge {
type Right = BridgeHubRococoAsBridgeHubPolkadot;
type L2R = RococoBulletinToBridgeHubRococoCliBridge;
type R2L = RococoToRococoBulletinCliBridge;
type LaneId = bp_messages::LegacyLaneId;

fn new(base: Self::Base) -> anyhow::Result<Self> {
Ok(Self { base })
Expand Down

0 comments on commit 17f75c5

Please sign in to comment.