mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-30 23:21:02 +00:00
* Adjustments for the xcm messages sending logic Signed-off-by: Serban Iorga <serban@parity.io> * Deduplicate XCM destination Signed-off-by: Serban Iorga <serban@parity.io> * [send_message] small changes Signed-off-by: Serban Iorga <serban@parity.io> * Define CustomNetworkId Right now we use some associations between Rialto, RialtoParachain and Millau chains and chains defined in the NetworkId enum. But if we are not carreful we might do mistakes like: In Millau: pub const ThisNetwork: NetworkId = Kusama; pub const RialtoNetwork: NetworkId = Polkadot; In Rialto: pub const ThisNetwork: NetworkId = Kusama; pub const MillauNetwork: NetworkId = Polkadot; We're introducing CustomNetworkId to have a centralized mapping between NetworkId chains and our custom chains. Signed-off-by: Serban Iorga <serban@parity.io> * Revert "Deduplicate XCM destination" This reverts commit 3a0a950e1d7484e3ecac45f5c00b152f0485cd11. Signed-off-by: Serban Iorga <serban@parity.io>
This commit is contained in:
committed by
Bastian Köcher
parent
050b12f3aa
commit
e0b42dfae7
@@ -27,7 +27,10 @@ use super::{
|
||||
use bp_messages::LaneId;
|
||||
use bp_millau::WeightToFee;
|
||||
use bp_rialto_parachain::RIALTO_PARACHAIN_ID;
|
||||
use bridge_runtime_common::messages::source::{XcmBridge, XcmBridgeAdapter};
|
||||
use bridge_runtime_common::{
|
||||
messages::source::{XcmBridge, XcmBridgeAdapter},
|
||||
CustomNetworkId,
|
||||
};
|
||||
use frame_support::{
|
||||
parameter_types,
|
||||
traits::{Everything, Nothing},
|
||||
@@ -45,12 +48,12 @@ parameter_types! {
|
||||
/// chain, we make it synonymous with it and thus it is the `Here` location, which means "equivalent to
|
||||
/// the context".
|
||||
pub const TokenLocation: MultiLocation = Here.into_location();
|
||||
/// The Millau network ID, associated with Kusama.
|
||||
pub const ThisNetwork: NetworkId = Kusama;
|
||||
/// The Rialto network ID, associated with Polkadot.
|
||||
pub const RialtoNetwork: NetworkId = Polkadot;
|
||||
/// The RialtoParachain network ID, associated with Westend.
|
||||
pub const RialtoParachainNetwork: NetworkId = Westend;
|
||||
/// The Millau network ID.
|
||||
pub const ThisNetwork: NetworkId = CustomNetworkId::Millau.as_network_id();
|
||||
/// The Rialto network ID.
|
||||
pub const RialtoNetwork: NetworkId = CustomNetworkId::Rialto.as_network_id();
|
||||
/// The RialtoParachain network ID.
|
||||
pub const RialtoParachainNetwork: NetworkId = CustomNetworkId::RialtoParachain.as_network_id();
|
||||
|
||||
/// Our XCM location ancestry - i.e. our location within the Consensus Universe.
|
||||
///
|
||||
|
||||
Reference in New Issue
Block a user