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

Commit

Permalink
fix damage fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
claravanstaden committed Jul 25, 2024
1 parent 72509fe commit e3a08af
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ use xcm_builder::{
SignedAccountId32AsNative, SignedToAccountId32, SovereignPaidRemoteExporter,
SovereignSignedViaLocation, StartsWith, StartsWithExplicitGlobalConsensus, TakeWeightCredit,
TrailingSetTopicAsId, UsingComponents, WeightInfoBounds, WithComputedOrigin, WithUniqueTopic,
XcmFeeManagerFromComponents, XcmFeeToAccount,
XcmFeeManagerFromComponents,
};
use xcm_executor::XcmExecutor;

Expand Down Expand Up @@ -364,7 +364,7 @@ impl xcm_executor::Config for XcmConfig {
// held). On Westend Asset Hub, we allow Rococo Asset Hub to act as reserve for any asset native
// // to the Rococo or Ethereum ecosystems.
type IsReserve = (
bridging::to_rococo::IsTrustedBridgedReserveLocationForConcreteAsset,
bridging::to_rococo::RococoOrEthereumAssetFromAssetHubRococo,
bridging::to_ethereum::IsTrustedBridgedReserveLocationForForeignAsset,
);
type IsTeleporter = TrustedTeleporters;
Expand Down Expand Up @@ -647,7 +647,7 @@ pub mod bridging {
pub mod to_ethereum {
use super::*;
use assets_common::matching::FromNetwork;
use sp_std::collections::btree_set::BTreeSet;
use alloc::collections::btree_set::BTreeSet;
use testnet_parachains_constants::westend::snowbridge::{
EthereumNetwork, INBOUND_QUEUE_PALLET_INDEX,
};
Expand All @@ -669,10 +669,10 @@ pub mod bridging {

/// Set up exporters configuration.
/// `Option<Asset>` represents static "base fee" which is used for total delivery fee calculation.
pub BridgeTable: sp_std::vec::Vec<NetworkExportTableItem> = sp_std::vec![
pub BridgeTable: alloc::vec::vec::Vec<NetworkExportTableItem> = alloc::vec::vec![
NetworkExportTableItem::new(
EthereumNetwork::get(),
Some(sp_std::vec![Junctions::Here]),
Some(alloc::vec::vec![Junctions::Here]),
SiblingBridgeHub::get(),
Some((
XcmBridgeHubRouterFeeAssetId::get(),
Expand All @@ -683,12 +683,12 @@ pub mod bridging {

/// Universal aliases
pub UniversalAliases: BTreeSet<(Location, Junction)> = BTreeSet::from_iter(
sp_std::vec![
alloc::vec![
(SiblingBridgeHubWithEthereumInboundQueueInstance::get(), GlobalConsensus(EthereumNetwork::get())),
]
);

pub EthereumBridgeTable: sp_std::vec::Vec<NetworkExportTableItem> = sp_std::vec::Vec::new().into_iter()
pub EthereumBridgeTable: alloc::vec::vec::Vec<NetworkExportTableItem> = alloc::vec::Vec::new().into_iter()
.chain(BridgeTable::get())
.collect();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ use xcm_builder::{
SendXcmFeeToAccount, SiblingParachainAsNative, SiblingParachainConvertsVia,
SignedAccountId32AsNative, SignedToAccountId32, SovereignSignedViaLocation, TakeWeightCredit,
TrailingSetTopicAsId, UsingComponents, WeightInfoBounds, WithComputedOrigin, WithUniqueTopic,
XcmFeeManagerFromComponents,
};
use xcm_executor::{
traits::{FeeManager, FeeReason, FeeReason::Export},
Expand Down Expand Up @@ -200,7 +199,6 @@ impl xcm_executor::Config for XcmConfig {
type PalletInstancesInfo = AllPalletsWithSystem;
type MaxAssetsIntoHolding = MaxAssetsIntoHolding;
type FeeManager = XcmFeeManagerFromComponentsBridgeHub<
WaivedLocations,
WaivedLocations,
(
XcmExportFeeToSibling<
Expand Down

0 comments on commit e3a08af

Please sign in to comment.