git.delta.rocks / unique-network / refs/commits / 8a829ea38883

difftreelog

fix use xcm::v2 in storages

Daniel Shiposha2023-01-25parent: #b486d20.patch.diff
in: master

2 files changed

modifiedpallets/configuration/src/lib.rsdiffbeforeafterboth
116116
117 #[pallet::storage]117 #[pallet::storage]
118 pub type XcmAllowedLocationsOverride<T: Config> = StorageValue<118 pub type XcmAllowedLocationsOverride<T: Config> = StorageValue<
119 Value = BoundedVec<MultiLocation, T::MaxXcmAllowedLocations>,119 Value = BoundedVec<xcm::v2::MultiLocation, T::MaxXcmAllowedLocations>,
120 QueryKind = OptionQuery,120 QueryKind = OptionQuery,
121 >;121 >;
122122
modifiedpallets/foreign-assets/src/lib.rsdiffbeforeafterboth
250 #[pallet::storage]250 #[pallet::storage]
251 #[pallet::getter(fn foreign_asset_locations)]251 #[pallet::getter(fn foreign_asset_locations)]
252 pub type ForeignAssetLocations<T: Config> =252 pub type ForeignAssetLocations<T: Config> =
253 StorageMap<_, Twox64Concat, ForeignAssetId, MultiLocation, OptionQuery>;253 StorageMap<_, Twox64Concat, ForeignAssetId, xcm::v2::MultiLocation, OptionQuery>;
254254
255 /// The storages for CurrencyIds.255 /// The storages for CurrencyIds.
256 ///256 ///
257 /// LocationToCurrencyIds: map MultiLocation => Option<ForeignAssetId>257 /// LocationToCurrencyIds: map MultiLocation => Option<ForeignAssetId>
258 #[pallet::storage]258 #[pallet::storage]
259 #[pallet::getter(fn location_to_currency_ids)]259 #[pallet::getter(fn location_to_currency_ids)]
260 pub type LocationToCurrencyIds<T: Config> =260 pub type LocationToCurrencyIds<T: Config> =
261 StorageMap<_, Twox64Concat, MultiLocation, ForeignAssetId, OptionQuery>;261 StorageMap<_, Twox64Concat, xcm::v2::MultiLocation, ForeignAssetId, OptionQuery>;
262262
263 /// The storages for AssetMetadatas.263 /// The storages for AssetMetadatas.
264 ///264 ///