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

Commit

Permalink
use PANGOLIN_PANGOLIN_PARACHAIN_LANE from bridge_runtime_common (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
jiguantong authored Sep 29, 2022
1 parent 686a9f2 commit b6c913d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
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
5 changes: 2 additions & 3 deletions runtime/pangolin-parachain/src/pallets/helixbridge.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,8 @@ use crate::*;
use bp_message_dispatch::CallOrigin;
use bp_messages::{LaneId, MessageNonce};
use bp_runtime::{messages::DispatchFeePayment, ChainId, PANGOLIN_CHAIN_ID};
use bridges_message::pangolin::{
ToPangolinMessagePayload, PANGOLIN_PANGOLIN_PARACHAIN_LANE, PANGOLIN_S2S_BACKING_PALLET_INDEX,
};
use bridge_runtime_common::lanes::PANGOLIN_PANGOLIN_PARACHAIN_LANE;
use bridges_message::pangolin::{ToPangolinMessagePayload, PANGOLIN_S2S_BACKING_PALLET_INDEX};
use dp_common_runtime::helixbridge::{CallParams, Config, CreatePayload, LatestMessageNoncer};
use frame_support::RuntimeDebug;
use pallet_bridge_messages::{outbound_lane, Instance1 as WithPangolinMessages};
Expand Down

0 comments on commit b6c913d

Please sign in to comment.