git.delta.rocks / unique-network / refs/commits / cedfd3e08c96

difftreelog

fix(common) xcm config review

Yaroslav Bolyukin2023-03-24parent: #3c1f2fe.patch.diff
in: master

1 file changed

modifiedruntime/common/config/xcm/mod.rsdiffbeforeafterboth
54parameter_types! {54parameter_types! {
55 pub const RelayLocation: MultiLocation = MultiLocation::parent();55 pub const RelayLocation: MultiLocation = MultiLocation::parent();
56 pub RelayOrigin: RuntimeOrigin = cumulus_pallet_xcm::Origin::Relay.into();56 pub RelayOrigin: RuntimeOrigin = cumulus_pallet_xcm::Origin::Relay.into();
57 pub Ancestry: MultiLocation = Parachain(ParachainInfo::parachain_id().into()).into();57 pub UniversalLocation: InteriorMultiLocation = X2(GlobalConsensus(RelayNetwork::get()), Parachain(ParachainInfo::get().into()));
58 pub UniversalLocation: InteriorMultiLocation = Parachain(ParachainInfo::get().into()).into();
59 pub SelfLocation: MultiLocation = MultiLocation::new(1, X1(Parachain(ParachainInfo::get().into())));58 pub SelfLocation: MultiLocation = MultiLocation::new(1, X1(Parachain(ParachainInfo::get().into())));
6059
61 // One XCM operation is 1_000_000 weight - almost certainly a conservative estimate.60 // One XCM operation is 1_000_000 weight - almost certainly a conservative estimate.
82/// queues.81/// queues.
83pub type XcmRouter = (82pub type XcmRouter = (
84 // Two routers - use UMP to communicate with the relay chain:83 // Two routers - use UMP to communicate with the relay chain:
85 cumulus_primitives_utility::ParentAsUmp<ParachainSystem, (), ()>,84 cumulus_primitives_utility::ParentAsUmp<ParachainSystem, PolkadotXcm, ()>,
86 // ..and XCMP to communicate with the sibling chains.85 // ..and XCMP to communicate with the sibling chains.
87 XcmpQueue,86 XcmpQueue,
88);87);
225 type ResponseHandler = PolkadotXcm;224 type ResponseHandler = PolkadotXcm;
226 type SubscriptionService = PolkadotXcm;225 type SubscriptionService = PolkadotXcm;
227 type PalletInstancesInfo = AllPalletsWithSystem;226 type PalletInstancesInfo = AllPalletsWithSystem;
228 type MaxAssetsIntoHolding = ConstU32<64>;227 type MaxAssetsIntoHolding = ConstU32<8>;
229228
230 type AssetTrap = PolkadotXcm;229 type AssetTrap = PolkadotXcm;
231 type AssetClaims = PolkadotXcm;230 type AssetClaims = PolkadotXcm;
232 type AssetLocker = ();231 type AssetLocker = ();
233 type AssetExchanger = ();232 type AssetExchanger = ();
234 type FeeManager = ();233 type FeeManager = ();
235 type MessageExporter = ();234 type MessageExporter = ();
236 type UniversalAliases = Nothing; // ?235 type UniversalAliases = Nothing;
237 type CallDispatcher = RuntimeCall;236 type CallDispatcher = RuntimeCall;
238 type SafeCallFilter = Nothing; // ? Only non-recursive calls may go here, but do we need this?237 type SafeCallFilter = Nothing; // ? Only non-recursive calls may go here, but do we need this?
239}238}
259 type AdvertisedXcmVersion = pallet_xcm::CurrentXcmVersion;258 type AdvertisedXcmVersion = pallet_xcm::CurrentXcmVersion;
260 type UniversalLocation = UniversalLocation;259 type UniversalLocation = UniversalLocation;
261 type Currency = Balances;260 type Currency = Balances;
262 type CurrencyMatcher = (); // ?261 type CurrencyMatcher = ();
263 type TrustedLockers = ();262 type TrustedLockers = ();
264 type SovereignAccountOf = ();263 type SovereignAccountOf = LocationToAccountId;
265 type MaxLockers = ConstU32<8>;264 type MaxLockers = ConstU32<8>;
266 type WeightInfo = crate::weights::xcm::SubstrateWeight<Runtime>;265 type WeightInfo = crate::weights::xcm::SubstrateWeight<Runtime>;
267 #[cfg(feature = "runtime-benchmarks")]266 #[cfg(feature = "runtime-benchmarks")]