Skip to content

Commit

Permalink
BridgeHubRococoUniversalLocation -> UniversalLocation
Browse files Browse the repository at this point in the history
  • Loading branch information
svyatonik committed Dec 14, 2023
1 parent dff793d commit dfdda4c
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,6 @@ parameter_types! {
pub const RelayerStakeReserveId: [u8; 8] = *b"brdgrlrs";

pub storage DeliveryRewardInBalance: u64 = 1_000_000;

pub BridgeHubRococoUniversalLocation: InteriorMultiLocation = X2(
GlobalConsensus(Rococo),
Parachain(ParachainInfo::parachain_id().into()),
);
}

/// Add GRANDPA bridge pallet to track Westend relay chain.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@
//! are reusing Polkadot Bulletin chain primitives everywhere here.
use crate::{
bridge_common_config::{
BridgeGrandpaRococoBulletinInstance, BridgeHubRococo, BridgeHubRococoUniversalLocation,
},
weights, AccountId, BridgeRococoBulletinGrandpa, BridgeRococoBulletinMessages, Runtime,
RuntimeEvent, XcmRouter,
bridge_common_config::{BridgeGrandpaRococoBulletinInstance, BridgeHubRococo},
weights,
xcm_config::UniversalLocation,
AccountId, BridgeRococoBulletinGrandpa, BridgeRococoBulletinMessages, Runtime, RuntimeEvent,
XcmRouter,
};
use bp_messages::LaneId;
use bridge_runtime_common::{
Expand Down Expand Up @@ -59,7 +59,7 @@ parameter_types! {
pub const MaxUnrewardedRelayerEntriesAtInboundLane: bp_messages::MessageNonce =
bp_polkadot_bulletin::MAX_UNREWARDED_RELAYERS_IN_CONFIRMATION_TX;
/// Maximal number of unconfirmed messages at the Rococo Bridge Hub. It matches the maximal number of
/// unconfirmed messages that the single confirmation transaction at Rococo Bulletin Chain may process.
/// uncinfirmed messages that the single confirmation transaction at Rococo Bulletin Chain may process.

This comment has been minimized.

Copy link
@bkontur

bkontur Dec 14, 2023

Contributor

uncinfirmed ?

pub const MaxUnconfirmedMessagesAtInboundLane: bp_messages::MessageNonce =
bp_polkadot_bulletin::MAX_UNCONFIRMED_MESSAGES_IN_CONFIRMATION_TX;
/// Bridge specific chain (network) identifier of the Rococo Bulletin Chain.
Expand Down Expand Up @@ -107,7 +107,7 @@ pub type ToRococoBulletinMessagesDeliveryProof =
/// Dispatches received XCM messages from other bridge.
type FromRococoBulletinMessageBlobDispatcher = BridgeBlobDispatcher<
XcmRouter,
BridgeHubRococoUniversalLocation,
UniversalLocation,
BridgeRococoToRococoBulletinMessagesPalletInstance,
>;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,11 @@
use crate::{
bridge_common_config::{
BridgeHubRococo, BridgeHubRococoUniversalLocation, BridgeParachainWestendInstance,
DeliveryRewardInBalance,
BridgeHubRococo, BridgeParachainWestendInstance, DeliveryRewardInBalance,
},
weights, AccountId, BridgeWestendMessages, Runtime, RuntimeEvent, XcmRouter,
weights,
xcm_config::UniversalLocation,
AccountId, BridgeWestendMessages, Runtime, RuntimeEvent, XcmRouter,
};
use bp_messages::LaneId;
use bridge_runtime_common::{
Expand Down Expand Up @@ -104,11 +105,8 @@ pub type ToWestendBridgeHubMessagesDeliveryProof =
FromBridgedChainMessagesDeliveryProof<bp_bridge_hub_westend::Hash>;

/// Dispatches received XCM messages from other bridge
type FromWestendMessageBlobDispatcher = BridgeBlobDispatcher<
XcmRouter,
BridgeHubRococoUniversalLocation,
BridgeRococoToWestendMessagesPalletInstance,
>;
type FromWestendMessageBlobDispatcher =
BridgeBlobDispatcher<XcmRouter, UniversalLocation, BridgeRococoToWestendMessagesPalletInstance>;

/// Export XCM messages to be relayed to the other side
pub type ToBridgeHubWestendHaulBlobExporter = HaulBlobExporter<
Expand Down

0 comments on commit dfdda4c

Please sign in to comment.