snowbridge_pallet_system_v2/
benchmarking.rsuse super::*;
#[allow(unused)]
use crate::Pallet as SnowbridgeControl;
use frame_benchmarking::v2::*;
use xcm::prelude::*;
#[benchmarks]
mod benchmarks {
use super::*;
#[benchmark]
fn register_token() -> Result<(), BenchmarkError> {
let origin_location = Location::new(1, [Parachain(1000), PalletInstance(80)]);
let origin = <T as Config>::Helper::make_xcm_origin(origin_location.clone());
let creator = Box::new(VersionedLocation::from(origin_location.clone()));
let relay_token_asset_id: Location = Location::parent();
let asset = Box::new(VersionedLocation::from(relay_token_asset_id));
let asset_metadata = AssetMetadata {
name: "wnd".as_bytes().to_vec().try_into().unwrap(),
symbol: "wnd".as_bytes().to_vec().try_into().unwrap(),
decimals: 12,
};
#[extrinsic_call]
_(origin as T::RuntimeOrigin, creator, asset, asset_metadata);
Ok(())
}
impl_benchmark_test_suite!(
SnowbridgeControl,
crate::mock::new_test_ext(true),
crate::mock::Test
);
}