@@ -93,8 +93,8 @@ use pallet_xcm::{EnsureXcm, IsVoiceOfBody};
93
93
use polkadot_runtime_common:: { BlockHashCount , SlowAdjustingFeeUpdate } ;
94
94
#[ cfg( feature = "runtime-benchmarks" ) ]
95
95
use 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 ,
98
98
} ;
99
99
use xcm:: {
100
100
latest:: prelude:: { AssetId , BodyId } ,
@@ -1535,7 +1535,7 @@ impl_runtime_apis! {
1535
1535
}
1536
1536
1537
1537
fn set_up_complex_asset_transfer(
1538
- ) -> Option <( xcm :: v4 :: Assets , u32 , Location , Box <dyn FnOnce ( ) >) > {
1538
+ ) -> Option <( XcmAssets , u32 , Location , Box <dyn FnOnce ( ) >) > {
1539
1539
// Transfer to Relay some local AH asset (local-reserve-transfer) while paying
1540
1540
// fees using teleported native token.
1541
1541
// (We don't care that Relay doesn't accept incoming unknown AH local asset)
@@ -1566,7 +1566,7 @@ impl_runtime_apis! {
1566
1566
) ;
1567
1567
let transfer_asset: Asset = ( asset_location, asset_amount) . into( ) ;
1568
1568
1569
- let assets: xcm :: v4 :: Assets = vec![ fee_asset. clone( ) , transfer_asset] . into( ) ;
1569
+ let assets: XcmAssets = vec![ fee_asset. clone( ) , transfer_asset] . into( ) ;
1570
1570
let fee_index = if assets. get( 0 ) . unwrap( ) . eq( & fee_asset) { 0 } else { 1 } ;
1571
1571
1572
1572
// verify transferred successfully
@@ -1634,7 +1634,7 @@ impl_runtime_apis! {
1634
1634
fn valid_destination( ) -> Result <Location , BenchmarkError > {
1635
1635
Ok ( TokenLocation :: get( ) )
1636
1636
}
1637
- fn worst_case_holding( depositable_count: u32 ) -> xcm :: v4 :: Assets {
1637
+ fn worst_case_holding( depositable_count: u32 ) -> XcmAssets {
1638
1638
// A mix of fungible, non-fungible, and concrete assets.
1639
1639
let holding_non_fungibles = MaxAssetsIntoHolding :: get( ) / 2 - depositable_count;
1640
1640
let holding_fungibles = holding_non_fungibles. saturating_sub( 2 ) ; // -2 for two `iter::once` bellow
@@ -1695,7 +1695,7 @@ impl_runtime_apis! {
1695
1695
( 0u64 , Response :: Version ( Default :: default ( ) ) )
1696
1696
}
1697
1697
1698
- fn worst_case_asset_exchange( ) -> Result <( xcm :: v4 :: Assets , xcm :: v4 :: Assets ) , BenchmarkError > {
1698
+ fn worst_case_asset_exchange( ) -> Result <( XcmAssets , XcmAssets ) , BenchmarkError > {
1699
1699
Err ( BenchmarkError :: Skip )
1700
1700
}
1701
1701
@@ -1714,9 +1714,9 @@ impl_runtime_apis! {
1714
1714
Ok ( TokenLocation :: get( ) )
1715
1715
}
1716
1716
1717
- fn claimable_asset( ) -> Result <( Location , Location , xcm :: v4 :: Assets ) , BenchmarkError > {
1717
+ fn claimable_asset( ) -> Result <( Location , Location , XcmAssets ) , BenchmarkError > {
1718
1718
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( ) ;
1720
1720
let ticket = Location { parents: 0 , interior: Here } ;
1721
1721
Ok ( ( origin, ticket, assets) )
1722
1722
}
0 commit comments