Skip to content
This repository has been archived by the owner on Feb 3, 2024. It is now read-only.

use PANGOLIN_PANGOLIN_PARACHAIN_LANE from bridge_runtime_common #151

Merged
merged 2 commits into from
Sep 29, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions runtime/pangolin-parachain/src/bridges_message/pangolin.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,10 @@ use sp_std::ops::RangeInclusive;
use crate::*;
use bp_messages::{source_chain::*, target_chain::*, *};
use bp_runtime::*;
use bridge_runtime_common::messages::{self, source::*, target::*, BalanceOf, *};
use bridge_runtime_common::{
lanes::PANGOLIN_PANGOLIN_PARACHAIN_LANE,
messages::{self, source::*, target::*, BalanceOf, *},
};
use dp_common_runtime::FromThisChainMessageVerifier;
use pallet_bridge_messages::EXPECTED_DEFAULT_MESSAGE_LENGTH;

Expand Down Expand Up @@ -40,9 +43,6 @@ pub type FromPangolinMessageDispatch =
pub const INITIAL_PANGOLIN_TO_PANGOLIN_PARACHAIN_CONVERSION_RATE: FixedU128 =
FixedU128::from_inner(FixedU128::DIV);

/// Identifier of bridge between pangolin and pangolin parachain.
pub const PANGOLIN_PANGOLIN_PARACHAIN_LANE: [u8; 4] = *b"pali";

frame_support::parameter_types! {
/// PangolinParachain to Pangolin conversion rate. Initially we trate both tokens as equal.
pub storage PangolinToPangolinParachainConversionRate: FixedU128 = INITIAL_PANGOLIN_TO_PANGOLIN_PARACHAIN_CONVERSION_RATE;
Expand Down