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

Commit

Permalink
extracted parachain IDs to the primitives
Browse files Browse the repository at this point in the history
  • Loading branch information
svyatonik committed Oct 5, 2022
1 parent ecf9100 commit 8ab776a
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 2 deletions.
3 changes: 3 additions & 0 deletions primitives/chain-bridge-hub-rococo/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ pub type WeightToFee = frame_support::weights::IdentityFee<Balance>;
/// The address format for describing accounts.
pub type Address = MultiAddress<AccountId, ()>;

/// Identifier of BridgeHubRococo in the Rococo relay chain.
pub const BRIDGE_HUB_ROCOCO_PARACHAIN_ID: u32 = 1013;

parameter_types! {
pub const SS58Prefix: u16 = 42;
}
Expand Down
3 changes: 3 additions & 0 deletions primitives/chain-bridge-hub-wococo/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,7 @@ use bp_runtime::decl_bridge_finality_runtime_apis;

pub type BridgeHubWococo = bp_bridge_hub_rococo::BridgeHubRococo;

/// Identifier of BridgeHubWococo in the Wococo relay chain.
pub const BRIDGE_HUB_WOCOCO_PARACHAIN_ID: u32 = 1013;

decl_bridge_finality_runtime_apis!(wococo);
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ impl SubstrateParachainsPipeline for BridgeHubRococoToBridgeHubWococo {
type SubmitParachainHeadsCallBuilder = BridgeHubRococoToBridgeHubWococoCallBuilder;
type TransactionSignScheme = relay_bridge_hub_wococo_client::BridgeHubWococo;

const SOURCE_PARACHAIN_PARA_ID: u32 = 1013;
const SOURCE_PARACHAIN_PARA_ID: u32 = bp_bridge_hub_rococo::BRIDGE_HUB_ROCOCO_PARACHAIN_ID;
}

pub struct BridgeHubRococoToBridgeHubWococoCallBuilder;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ impl SubstrateParachainsPipeline for BridgeHubWococoToBridgeHubRococo {
type SubmitParachainHeadsCallBuilder = BridgeHubWococoToBridgeHubRococoCallBuilder;
type TransactionSignScheme = relay_bridge_hub_rococo_client::BridgeHubRococo;

const SOURCE_PARACHAIN_PARA_ID: u32 = 1013;
const SOURCE_PARACHAIN_PARA_ID: u32 = bp_bridge_hub_wococo::BRIDGE_HUB_WOCOCO_PARACHAIN_ID;
}

pub struct BridgeHubWococoToBridgeHubRococoCallBuilder;
Expand Down

0 comments on commit 8ab776a

Please sign in to comment.