@@ -93,8 +93,8 @@ use pallet_xcm::{EnsureXcm, IsVoiceOfBody};
9393use polkadot_runtime_common:: { BlockHashCount , SlowAdjustingFeeUpdate } ;
9494#[ cfg( feature = "runtime-benchmarks" ) ]
9595use xcm:: latest:: prelude:: {
96- Asset , Fungible , Here , InteriorLocation , Junction , Junction :: * , Location , NetworkId ,
97- NonFungible , Parent , ParentThen , Response , XCM_VERSION ,
96+ Asset , Assets as XcmAssets , Fungible , Here , InteriorLocation , Junction , Junction :: * , Location ,
97+ NetworkId , NonFungible , Parent , ParentThen , Response , XCM_VERSION ,
9898} ;
9999use xcm:: {
100100 latest:: prelude:: { AssetId , BodyId } ,
@@ -1535,7 +1535,7 @@ impl_runtime_apis! {
15351535 }
15361536
15371537 fn set_up_complex_asset_transfer(
1538- ) -> Option <( xcm :: v4 :: Assets , u32 , Location , Box <dyn FnOnce ( ) >) > {
1538+ ) -> Option <( XcmAssets , u32 , Location , Box <dyn FnOnce ( ) >) > {
15391539 // Transfer to Relay some local AH asset (local-reserve-transfer) while paying
15401540 // fees using teleported native token.
15411541 // (We don't care that Relay doesn't accept incoming unknown AH local asset)
@@ -1566,7 +1566,7 @@ impl_runtime_apis! {
15661566 ) ;
15671567 let transfer_asset: Asset = ( asset_location, asset_amount) . into( ) ;
15681568
1569- let assets: xcm :: v4 :: Assets = vec![ fee_asset. clone( ) , transfer_asset] . into( ) ;
1569+ let assets: XcmAssets = vec![ fee_asset. clone( ) , transfer_asset] . into( ) ;
15701570 let fee_index = if assets. get( 0 ) . unwrap( ) . eq( & fee_asset) { 0 } else { 1 } ;
15711571
15721572 // verify transferred successfully
@@ -1634,7 +1634,7 @@ impl_runtime_apis! {
16341634 fn valid_destination( ) -> Result <Location , BenchmarkError > {
16351635 Ok ( TokenLocation :: get( ) )
16361636 }
1637- fn worst_case_holding( depositable_count: u32 ) -> xcm :: v4 :: Assets {
1637+ fn worst_case_holding( depositable_count: u32 ) -> XcmAssets {
16381638 // A mix of fungible, non-fungible, and concrete assets.
16391639 let holding_non_fungibles = MaxAssetsIntoHolding :: get( ) / 2 - depositable_count;
16401640 let holding_fungibles = holding_non_fungibles. saturating_sub( 2 ) ; // -2 for two `iter::once` bellow
@@ -1695,7 +1695,7 @@ impl_runtime_apis! {
16951695 ( 0u64 , Response :: Version ( Default :: default ( ) ) )
16961696 }
16971697
1698- fn worst_case_asset_exchange( ) -> Result <( xcm :: v4 :: Assets , xcm :: v4 :: Assets ) , BenchmarkError > {
1698+ fn worst_case_asset_exchange( ) -> Result <( XcmAssets , XcmAssets ) , BenchmarkError > {
16991699 Err ( BenchmarkError :: Skip )
17001700 }
17011701
@@ -1714,9 +1714,9 @@ impl_runtime_apis! {
17141714 Ok ( TokenLocation :: get( ) )
17151715 }
17161716
1717- fn claimable_asset( ) -> Result <( Location , Location , xcm :: v4 :: Assets ) , BenchmarkError > {
1717+ fn claimable_asset( ) -> Result <( Location , Location , XcmAssets ) , BenchmarkError > {
17181718 let origin = TokenLocation :: get( ) ;
1719- let assets: xcm :: v4 :: Assets = ( TokenLocation :: get( ) , 1_000 * UNITS ) . into( ) ;
1719+ let assets: XcmAssets = ( TokenLocation :: get( ) , 1_000 * UNITS ) . into( ) ;
17201720 let ticket = Location { parents: 0 , interior: Here } ;
17211721 Ok ( ( origin, ticket, assets) )
17221722 }
0 commit comments