git.delta.rocks / unique-network / refs/commits / 67ee4bedd37d

difftreelog

fix benchmarks+try-runtime

Daniel Shiposha2024-05-24parent: #8c2fbfd.patch.diff
in: master

6 files changed

modifiednode/cli/src/command.rsdiffbeforeafterboth
--- a/node/cli/src/command.rs
+++ b/node/cli/src/command.rs
@@ -352,11 +352,14 @@
 			use frame_benchmarking_cli::{BenchmarkCmd, SUBSTRATE_REFERENCE_HARDWARE};
 			use polkadot_cli::Block;
 
+			type Header = <Block as sp_runtime::traits::Block>::Header;
+			type Hasher = <Header as sp_runtime::traits::Header>::Hashing;
+
 			let runner = cli.create_runner(cmd)?;
 			// Switch on the concrete benchmark sub-command-
 			match cmd {
 				BenchmarkCmd::Pallet(cmd) => {
-					runner.sync_run(|config| cmd.run::<Block, ParachainHostFunctions>(config))
+					runner.sync_run(|config| cmd.run::<Hasher, ParachainHostFunctions>(config))
 				}
 				BenchmarkCmd::Block(cmd) => runner.sync_run(|config| {
 					let partials = new_partial::<
modifiedpallets/foreign-assets/src/benchmarking.rsdiffbeforeafterboth
--- a/pallets/foreign-assets/src/benchmarking.rs
+++ b/pallets/foreign-assets/src/benchmarking.rs
@@ -32,8 +32,7 @@
 
 	#[benchmark]
 	fn force_register_foreign_asset() -> Result<(), BenchmarkError> {
-		let location =
-			Location::from((Parachain(1000), PalletInstance(42), GeneralIndex(1)).into());
+		let asset_id: AssetId = (Parachain(1000), PalletInstance(42), GeneralIndex(1)).into();
 		let name = create_u16_data::<MAX_COLLECTION_NAME_LENGTH>();
 		let token_prefix = create_data::<MAX_TOKEN_PREFIX_LENGTH>();
 		let mode = ForeignCollectionMode::NFT;
@@ -41,7 +40,7 @@
 		#[extrinsic_call]
 		_(
 			RawOrigin::Root,
-			Box::new(location.into()),
+			Box::new(asset_id.into()),
 			name,
 			token_prefix,
 			mode,
modifiedruntime/common/config/governance/fellowship.rsdiffbeforeafterboth
before · runtime/common/config/governance/fellowship.rs
1use pallet_gov_origins::Origin as GovOrigins;2use pallet_ranked_collective::{Config as RankedConfig, Rank, TallyOf};3use sp_runtime::traits::ReplaceWithDefault;45use super::*;6use crate::{7	FellowshipReferenda, Preimage, Runtime, RuntimeCall, RuntimeEvent, Scheduler, Treasury,8};910pub const FELLOWSHIP_MODULE_ID: PalletId = PalletId(*b"flowship");11pub const DEMOCRACY_TRACK_ID: u16 = 10;1213parameter_types! {14	pub FellowshipAccountId: <Runtime as frame_system::Config>::AccountId = FELLOWSHIP_MODULE_ID.into_account_truncating();15	pub AlarmInterval: BlockNumber = 1;16	pub SubmissionDeposit: Balance = 1000;17}1819#[cfg(not(feature = "gov-test-timings"))]20use crate::governance_timings::fellowship as fellowship_timings;2122#[cfg(feature = "gov-test-timings")]23pub mod fellowship_timings {24	use super::*;2526	parameter_types! {27		pub UndecidingTimeout: BlockNumber = 35;28	}2930	pub mod track {31		use super::*;3233		pub mod democracy_proposals {34			use super::*;3536			pub const PREPARE_PERIOD: BlockNumber = 3;37			pub const DECISION_PERIOD: BlockNumber = 35;38			pub const CONFIRM_PERIOD: BlockNumber = 3;39			pub const MIN_ENACTMENT_PERIOD: BlockNumber = 1;40		}41	}42}4344impl pallet_referenda::Config for Runtime {45	type WeightInfo = pallet_referenda::weights::SubstrateWeight<Self>;46	type RuntimeCall = RuntimeCall;47	type RuntimeEvent = RuntimeEvent;48	type Scheduler = Scheduler;49	type Currency = Balances;50	type SubmitOrigin = pallet_ranked_collective::EnsureMember<Runtime, (), 1>;51	type CancelOrigin = RootOrAllTechnicalCommittee;52	type KillOrigin = RootOrAllTechnicalCommittee;53	type Slash = Treasury;54	type Votes = pallet_ranked_collective::Votes;55	type Tally = pallet_ranked_collective::TallyOf<Runtime>;56	type SubmissionDeposit = SubmissionDeposit;57	type MaxQueued = ConstU32<100>;58	type UndecidingTimeout = fellowship_timings::UndecidingTimeout;59	type AlarmInterval = AlarmInterval;60	type Tracks = TracksInfo;61	type Preimages = Preimage;62}6364impl RankedConfig for Runtime {65	type WeightInfo = pallet_ranked_collective::weights::SubstrateWeight<Self>;66	type RuntimeEvent = RuntimeEvent;67	type AddOrigin = FellowshipAddOrigin<Self::AccountId>;68	type RemoveOrigin = FellowshipPromoteDemoteOrigin<Self::AccountId>;69	type ExchangeOrigin = FellowshipPromoteDemoteOrigin<Self::AccountId>;70	type MemberSwappedHandler = ();71	type PromoteOrigin = FellowshipPromoteDemoteOrigin<Self::AccountId>;72	type DemoteOrigin = FellowshipPromoteDemoteOrigin<Self::AccountId>;73	type Polls = FellowshipReferenda;74	type MinRankOfClass = ClassToRankMapper<Self, ()>;75	type VoteWeight = pallet_ranked_collective::Geometric;76}7778pub struct EnsureFellowshipProposition;79impl<O> EnsureOrigin<O> for EnsureFellowshipProposition80where81	O: Into<Result<GovOrigins, O>> + From<GovOrigins>,82{83	type Success = AccountId;8485	fn try_origin(o: O) -> Result<Self::Success, O> {86		o.into().and_then(|o| match o {87			GovOrigins::FellowshipProposition => Ok(FellowshipAccountId::get()),88			o => Err(O::from(o)),89		})90	}9192	#[cfg(feature = "runtime-benchmarks")]93	fn try_successful_origin() -> Result<O, ()> {94		Ok(O::from(GovOrigins::FellowshipProposition))95	}96}9798pub type FellowshipAddOrigin<AccountId> = EitherOf<99	EnsureRoot<AccountId>,100	EitherOf<101		MapSuccess<TechnicalCommitteeMember, ReplaceWithDefault<()>>,102		MapSuccess<CouncilMember, ReplaceWithDefault<()>>,103	>,104>;105106pub type FellowshipPromoteDemoteOrigin<AccountId> = EitherOf<107	MapSuccess<EnsureRoot<AccountId>, Replace<ConstU16<65535>>>,108	MapSuccess<MoreThanHalfCouncil, Replace<ConstU16<9>>>,109>;110111pub struct TracksInfo;112impl pallet_referenda::TracksInfo<Balance, BlockNumber> for TracksInfo {113	type Id = u16;114	type RuntimeOrigin = <RuntimeOrigin as frame_support::traits::OriginTrait>::PalletsOrigin;115	fn tracks() -> &'static [(Self::Id, pallet_referenda::TrackInfo<Balance, BlockNumber>)] {116		static DATA: [(u16, pallet_referenda::TrackInfo<Balance, BlockNumber>); 1] = [(117			DEMOCRACY_TRACK_ID,118			pallet_referenda::TrackInfo {119				name: "democracy_proposals",120				max_deciding: 10,121				decision_deposit: 10 * UNIQUE,122				prepare_period: fellowship_timings::track::democracy_proposals::PREPARE_PERIOD,123				decision_period: fellowship_timings::track::democracy_proposals::DECISION_PERIOD,124				confirm_period: fellowship_timings::track::democracy_proposals::CONFIRM_PERIOD,125				min_enactment_period:126					fellowship_timings::track::democracy_proposals::MIN_ENACTMENT_PERIOD,127				min_approval: pallet_referenda::Curve::LinearDecreasing {128					length: Perbill::from_percent(100),129					floor: Perbill::from_percent(50),130					ceil: Perbill::from_percent(100),131				},132				min_support: pallet_referenda::Curve::LinearDecreasing {133					length: Perbill::from_percent(100),134					floor: Perbill::from_percent(0),135					ceil: Perbill::from_percent(50),136				},137			},138		)];139		&DATA[..]140	}141	fn track_for(id: &Self::RuntimeOrigin) -> Result<Self::Id, ()> {142		#[cfg(feature = "runtime-benchmarks")]143		{144			// For benchmarks, we enable a root origin.145			// It is important that this is not available in production!146			let root: Self::RuntimeOrigin = frame_system::RawOrigin::Root.into();147			if &root == id {148				return Ok(9);149			}150		}151152		match GovOrigins::try_from(id.clone()) {153			Ok(_) => Ok(DEMOCRACY_TRACK_ID),154			_ => Err(()),155		}156	}157}158159pallet_referenda::impl_tracksinfo_get!(TracksInfo, Balance, BlockNumber);160161pub struct ClassToRankMapper<T, I>(PhantomData<(T, I)>);162163//TODO: Remove the type when it appears in the release.164pub type ClassOf<T, I = ()> = <<T as RankedConfig<I>>::Polls as Polling<TallyOf<T, I>>>::Class;165166impl<T, I> Convert<ClassOf<T, I>, Rank> for ClassToRankMapper<T, I>167where168	T: RankedConfig<I>,169	ClassOf<T, I>: Into<Rank>,170{171	fn convert(track_id: ClassOf<T, I>) -> Rank {172		match track_id.into() {173			DEMOCRACY_TRACK_ID => 3,174			other => other,175		}176	}177}
after · runtime/common/config/governance/fellowship.rs
1use pallet_gov_origins::Origin as GovOrigins;2use pallet_ranked_collective::{Config as RankedConfig, Rank, TallyOf};3use sp_runtime::traits::ReplaceWithDefault;45use super::*;6use crate::{7	FellowshipReferenda, Preimage, Runtime, RuntimeCall, RuntimeEvent, Scheduler, Treasury,8};910pub const FELLOWSHIP_MODULE_ID: PalletId = PalletId(*b"flowship");11pub const DEMOCRACY_TRACK_ID: u16 = 10;1213parameter_types! {14	pub FellowshipAccountId: <Runtime as frame_system::Config>::AccountId = FELLOWSHIP_MODULE_ID.into_account_truncating();15	pub AlarmInterval: BlockNumber = 1;16	pub SubmissionDeposit: Balance = 1000;17}1819#[cfg(not(feature = "gov-test-timings"))]20use crate::governance_timings::fellowship as fellowship_timings;2122#[cfg(feature = "gov-test-timings")]23pub mod fellowship_timings {24	use super::*;2526	parameter_types! {27		pub UndecidingTimeout: BlockNumber = 35;28	}2930	pub mod track {31		use super::*;3233		pub mod democracy_proposals {34			use super::*;3536			pub const PREPARE_PERIOD: BlockNumber = 3;37			pub const DECISION_PERIOD: BlockNumber = 35;38			pub const CONFIRM_PERIOD: BlockNumber = 3;39			pub const MIN_ENACTMENT_PERIOD: BlockNumber = 1;40		}41	}42}4344impl pallet_referenda::Config for Runtime {45	type WeightInfo = pallet_referenda::weights::SubstrateWeight<Self>;46	type RuntimeCall = RuntimeCall;47	type RuntimeEvent = RuntimeEvent;48	type Scheduler = Scheduler;49	type Currency = Balances;50	type SubmitOrigin = pallet_ranked_collective::EnsureMember<Runtime, (), 1>;51	type CancelOrigin = RootOrAllTechnicalCommittee;52	type KillOrigin = RootOrAllTechnicalCommittee;53	type Slash = Treasury;54	type Votes = pallet_ranked_collective::Votes;55	type Tally = pallet_ranked_collective::TallyOf<Runtime>;56	type SubmissionDeposit = SubmissionDeposit;57	type MaxQueued = ConstU32<100>;58	type UndecidingTimeout = fellowship_timings::UndecidingTimeout;59	type AlarmInterval = AlarmInterval;60	type Tracks = TracksInfo;61	type Preimages = Preimage;62}6364impl RankedConfig for Runtime {65	type WeightInfo = pallet_ranked_collective::weights::SubstrateWeight<Self>;66	type RuntimeEvent = RuntimeEvent;67	type AddOrigin = FellowshipAddOrigin<Self::AccountId>;68	type RemoveOrigin = FellowshipPromoteDemoteOrigin<Self::AccountId>;69	type ExchangeOrigin = FellowshipPromoteDemoteOrigin<Self::AccountId>;70	type MemberSwappedHandler = ();71	type PromoteOrigin = FellowshipPromoteDemoteOrigin<Self::AccountId>;72	type DemoteOrigin = FellowshipPromoteDemoteOrigin<Self::AccountId>;73	type Polls = FellowshipReferenda;74	type MinRankOfClass = ClassToRankMapper<Self, ()>;75	type VoteWeight = pallet_ranked_collective::Geometric;7677	#[cfg(feature = "runtime-benchmarks")]78	type BenchmarkSetup = ();79}8081pub struct EnsureFellowshipProposition;82impl<O> EnsureOrigin<O> for EnsureFellowshipProposition83where84	O: Into<Result<GovOrigins, O>> + From<GovOrigins>,85{86	type Success = AccountId;8788	fn try_origin(o: O) -> Result<Self::Success, O> {89		o.into().and_then(|o| match o {90			GovOrigins::FellowshipProposition => Ok(FellowshipAccountId::get()),91			o => Err(O::from(o)),92		})93	}9495	#[cfg(feature = "runtime-benchmarks")]96	fn try_successful_origin() -> Result<O, ()> {97		Ok(O::from(GovOrigins::FellowshipProposition))98	}99}100101pub type FellowshipAddOrigin<AccountId> = EitherOf<102	EnsureRoot<AccountId>,103	EitherOf<104		MapSuccess<TechnicalCommitteeMember, ReplaceWithDefault<()>>,105		MapSuccess<CouncilMember, ReplaceWithDefault<()>>,106	>,107>;108109pub type FellowshipPromoteDemoteOrigin<AccountId> = EitherOf<110	MapSuccess<EnsureRoot<AccountId>, Replace<ConstU16<65535>>>,111	MapSuccess<MoreThanHalfCouncil, Replace<ConstU16<9>>>,112>;113114pub struct TracksInfo;115impl pallet_referenda::TracksInfo<Balance, BlockNumber> for TracksInfo {116	type Id = u16;117	type RuntimeOrigin = <RuntimeOrigin as frame_support::traits::OriginTrait>::PalletsOrigin;118	fn tracks() -> &'static [(Self::Id, pallet_referenda::TrackInfo<Balance, BlockNumber>)] {119		static DATA: [(u16, pallet_referenda::TrackInfo<Balance, BlockNumber>); 1] = [(120			DEMOCRACY_TRACK_ID,121			pallet_referenda::TrackInfo {122				name: "democracy_proposals",123				max_deciding: 10,124				decision_deposit: 10 * UNIQUE,125				prepare_period: fellowship_timings::track::democracy_proposals::PREPARE_PERIOD,126				decision_period: fellowship_timings::track::democracy_proposals::DECISION_PERIOD,127				confirm_period: fellowship_timings::track::democracy_proposals::CONFIRM_PERIOD,128				min_enactment_period:129					fellowship_timings::track::democracy_proposals::MIN_ENACTMENT_PERIOD,130				min_approval: pallet_referenda::Curve::LinearDecreasing {131					length: Perbill::from_percent(100),132					floor: Perbill::from_percent(50),133					ceil: Perbill::from_percent(100),134				},135				min_support: pallet_referenda::Curve::LinearDecreasing {136					length: Perbill::from_percent(100),137					floor: Perbill::from_percent(0),138					ceil: Perbill::from_percent(50),139				},140			},141		)];142		&DATA[..]143	}144	fn track_for(id: &Self::RuntimeOrigin) -> Result<Self::Id, ()> {145		#[cfg(feature = "runtime-benchmarks")]146		{147			// For benchmarks, we enable a root origin.148			// It is important that this is not available in production!149			let root: Self::RuntimeOrigin = frame_system::RawOrigin::Root.into();150			if &root == id {151				return Ok(9);152			}153		}154155		match GovOrigins::try_from(id.clone()) {156			Ok(_) => Ok(DEMOCRACY_TRACK_ID),157			_ => Err(()),158		}159	}160}161162pallet_referenda::impl_tracksinfo_get!(TracksInfo, Balance, BlockNumber);163164pub struct ClassToRankMapper<T, I>(PhantomData<(T, I)>);165166//TODO: Remove the type when it appears in the release.167pub type ClassOf<T, I = ()> = <<T as RankedConfig<I>>::Polls as Polling<TallyOf<T, I>>>::Class;168169impl<T, I> Convert<ClassOf<T, I>, Rank> for ClassToRankMapper<T, I>170where171	T: RankedConfig<I>,172	ClassOf<T, I>: Into<Rank>,173{174	fn convert(track_id: ClassOf<T, I>) -> Rank {175		match track_id.into() {176			DEMOCRACY_TRACK_ID => 3,177			other => other,178		}179	}180}
modifiedruntime/common/config/xcm.rsdiffbeforeafterboth
--- a/runtime/common/config/xcm.rs
+++ b/runtime/common/config/xcm.rs
@@ -194,11 +194,6 @@
 	type TransactionalProcessor = FrameTransactionalProcessor;
 }
 
-#[cfg(feature = "runtime-benchmarks")]
-parameter_types! {
-	pub ReachableDest: Option<Location> = Some(Parent.into());
-}
-
 impl pallet_xcm::Config for Runtime {
 	type RuntimeEvent = RuntimeEvent;
 	type SendXcmOrigin = EnsureXcmOrigin<RuntimeOrigin, ()>;
@@ -223,10 +218,21 @@
 	type AdminOrigin = EnsureRoot<AccountId>;
 	type MaxRemoteLockConsumers = ConstU32<0>;
 	type RemoteLockConsumerIdentifier = ();
-	#[cfg(feature = "runtime-benchmarks")]
-	type ReachableDest = ReachableDest;
 }
 
+#[cfg(feature = "runtime-benchmarks")]
+impl pallet_xcm::benchmarking::Config for Runtime {
+	type DeliveryHelper = ();
+
+	fn reachable_dest() -> Option<Location> {
+		Some(Parent.into())
+	}
+
+	fn get_asset() -> Asset {
+		(Location::here(), 1_000_000_000_000_000_000u128).into()
+	}
+}
+
 impl cumulus_pallet_xcm::Config for Runtime {
 	type RuntimeEvent = RuntimeEvent;
 	type XcmExecutor = XcmExecutor<XcmExecutorConfig<Self>>;
modifiedruntime/common/runtime_apis.rsdiffbeforeafterboth
--- a/runtime/common/runtime_apis.rs
+++ b/runtime/common/runtime_apis.rs
@@ -535,9 +535,10 @@
 				) {
 					use frame_benchmarking::{list_benchmark, Benchmarking, BenchmarkList};
 					use frame_support::traits::StorageInfoTrait;
+					use pallet_xcm::benchmarking::Pallet as PalletXcmBenchmarks;
 
 					let mut list = Vec::<BenchmarkList>::new();
-					list_benchmark!(list, extra, pallet_xcm, PolkadotXcm);
+					list_benchmark!(list, extra, pallet_xcm, PalletXcmBenchmarks::<Runtime>);
 
 					list_benchmark!(list, extra, pallet_evm_migration, EvmMigration);
 					list_benchmark!(list, extra, pallet_common, Common);
@@ -578,6 +579,7 @@
 				) -> Result<Vec<frame_benchmarking::BenchmarkBatch>, sp_runtime::RuntimeString> {
 					use frame_benchmarking::{Benchmarking, BenchmarkBatch, add_benchmark};
 					use sp_storage::TrackedStorageKey;
+					use pallet_xcm::benchmarking::Pallet as PalletXcmBenchmarks;
 
 					let allowlist: Vec<TrackedStorageKey> = vec![
 						// Total Issuance
@@ -601,8 +603,9 @@
 
 					let mut batches = Vec::<BenchmarkBatch>::new();
 					let params = (&config, &allowlist);
-					add_benchmark!(params, batches, pallet_xcm, PolkadotXcm);
 
+					add_benchmark!(params, batches, pallet_xcm, PalletXcmBenchmarks::<Runtime>);
+
 					add_benchmark!(params, batches, pallet_evm_migration, EvmMigration);
 					add_benchmark!(params, batches, pallet_common, Common);
 					add_benchmark!(params, batches, pallet_unique, Unique);
modifiedruntime/common/weights/xcm.rsdiffbeforeafterboth
--- a/runtime/common/weights/xcm.rs
+++ b/runtime/common/weights/xcm.rs
@@ -2,8 +2,8 @@
 
 //! Autogenerated weights for pallet_xcm
 //!
-//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 29.0.0
-//! DATE: 2023-11-29, STEPS: `50`, REPEAT: 80, LOW RANGE: `[]`, HIGH RANGE: `[]`
+//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 35.0.1
+//! DATE: 2024-05-24, STEPS: `50`, REPEAT: 80, LOW RANGE: `[]`, HIGH RANGE: `[]`
 //! WORST CASE MAP SIZE: `1000000`
 //! EXECUTION: , WASM-EXECUTION: Compiled, CHAIN: None, DB CACHE: 1024
 
@@ -35,61 +35,57 @@
 /// Weights for pallet_xcm using the Substrate node and recommended hardware.
 pub struct SubstrateWeight<T>(PhantomData<T>);
 impl<T: frame_system::Config> pallet_xcm::WeightInfo for SubstrateWeight<T> {
-	/// Storage: `PolkadotXcm::SupportedVersion` (r:1 w:0)
-	/// Proof: `PolkadotXcm::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`)
-	/// Storage: `PolkadotXcm::VersionDiscoveryQueue` (r:1 w:1)
-	/// Proof: `PolkadotXcm::VersionDiscoveryQueue` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
-	/// Storage: `PolkadotXcm::SafeXcmVersion` (r:1 w:0)
-	/// Proof: `PolkadotXcm::SafeXcmVersion` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
-	/// Storage: `ParachainSystem::HostConfiguration` (r:1 w:0)
-	/// Proof: `ParachainSystem::HostConfiguration` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
-	/// Storage: `ParachainSystem::PendingUpwardMessages` (r:1 w:1)
-	/// Proof: `ParachainSystem::PendingUpwardMessages` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
+	/// Storage: `Benchmark::Override` (r:0 w:0)
+	/// Proof: `Benchmark::Override` (`max_values`: None, `max_size`: None, mode: `Measured`)
 	fn send() -> Weight {
 		// Proof Size summary in bytes:
-		//  Measured:  `278`
-		//  Estimated: `3743`
-		// Minimum execution time: 22_693_000 picoseconds.
-		Weight::from_parts(23_155_000, 3743)
-			.saturating_add(T::DbWeight::get().reads(5_u64))
-			.saturating_add(T::DbWeight::get().writes(2_u64))
+		//  Measured:  `0`
+		//  Estimated: `0`
+		// Minimum execution time: 18_446_744_073_709_551_000 picoseconds.
+		Weight::from_parts(18_446_744_073_709_551_000, 0)
 	}
-	/// Storage: `ParachainInfo::ParachainId` (r:1 w:0)
-	/// Proof: `ParachainInfo::ParachainId` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
+	/// Storage: `Benchmark::Override` (r:0 w:0)
+	/// Proof: `Benchmark::Override` (`max_values`: None, `max_size`: None, mode: `Measured`)
 	fn teleport_assets() -> Weight {
 		// Proof Size summary in bytes:
-		//  Measured:  `169`
-		//  Estimated: `1489`
-		// Minimum execution time: 21_165_000 picoseconds.
-		Weight::from_parts(21_568_000, 1489)
-			.saturating_add(T::DbWeight::get().reads(1_u64))
+		//  Measured:  `0`
+		//  Estimated: `0`
+		// Minimum execution time: 18_446_744_073_709_551_000 picoseconds.
+		Weight::from_parts(18_446_744_073_709_551_000, 0)
 	}
-	/// Storage: `ParachainInfo::ParachainId` (r:1 w:0)
-	/// Proof: `ParachainInfo::ParachainId` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
+	/// Storage: `Benchmark::Override` (r:0 w:0)
+	/// Proof: `Benchmark::Override` (`max_values`: None, `max_size`: None, mode: `Measured`)
 	fn reserve_transfer_assets() -> Weight {
 		// Proof Size summary in bytes:
-		//  Measured:  `169`
-		//  Estimated: `1489`
-		// Minimum execution time: 20_929_000 picoseconds.
-		Weight::from_parts(21_295_000, 1489)
-			.saturating_add(T::DbWeight::get().reads(1_u64))
+		//  Measured:  `0`
+		//  Estimated: `0`
+		// Minimum execution time: 18_446_744_073_709_551_000 picoseconds.
+		Weight::from_parts(18_446_744_073_709_551_000, 0)
 	}
+	/// Storage: `Benchmark::Override` (r:0 w:0)
+	/// Proof: `Benchmark::Override` (`max_values`: None, `max_size`: None, mode: `Measured`)
+	fn transfer_assets() -> Weight {
+		// Proof Size summary in bytes:
+		//  Measured:  `0`
+		//  Estimated: `0`
+		// Minimum execution time: 18_446_744_073_709_551_000 picoseconds.
+		Weight::from_parts(18_446_744_073_709_551_000, 0)
+	}
 	fn execute() -> Weight {
 		// Proof Size summary in bytes:
 		//  Measured:  `0`
 		//  Estimated: `0`
-		// Minimum execution time: 7_580_000 picoseconds.
-		Weight::from_parts(7_829_000, 0)
+		// Minimum execution time: 3_230_000 picoseconds.
+		Weight::from_parts(3_390_000, 0)
 	}
-	/// Storage: `PolkadotXcm::SupportedVersion` (r:0 w:1)
-	/// Proof: `PolkadotXcm::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`)
+	/// Storage: `Benchmark::Override` (r:0 w:0)
+	/// Proof: `Benchmark::Override` (`max_values`: None, `max_size`: None, mode: `Measured`)
 	fn force_xcm_version() -> Weight {
 		// Proof Size summary in bytes:
 		//  Measured:  `0`
 		//  Estimated: `0`
-		// Minimum execution time: 7_503_000 picoseconds.
-		Weight::from_parts(7_703_000, 0)
-			.saturating_add(T::DbWeight::get().writes(1_u64))
+		// Minimum execution time: 18_446_744_073_709_551_000 picoseconds.
+		Weight::from_parts(18_446_744_073_709_551_000, 0)
 	}
 	/// Storage: `PolkadotXcm::SafeXcmVersion` (r:0 w:1)
 	/// Proof: `PolkadotXcm::SafeXcmVersion` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
@@ -97,57 +93,27 @@
 		// Proof Size summary in bytes:
 		//  Measured:  `0`
 		//  Estimated: `0`
-		// Minimum execution time: 2_505_000 picoseconds.
-		Weight::from_parts(2_619_000, 0)
+		// Minimum execution time: 1_020_000 picoseconds.
+		Weight::from_parts(1_120_000, 0)
 			.saturating_add(T::DbWeight::get().writes(1_u64))
 	}
-	/// Storage: `PolkadotXcm::VersionNotifiers` (r:1 w:1)
-	/// Proof: `PolkadotXcm::VersionNotifiers` (`max_values`: None, `max_size`: None, mode: `Measured`)
-	/// Storage: `PolkadotXcm::QueryCounter` (r:1 w:1)
-	/// Proof: `PolkadotXcm::QueryCounter` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
-	/// Storage: `PolkadotXcm::SupportedVersion` (r:1 w:0)
-	/// Proof: `PolkadotXcm::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`)
-	/// Storage: `PolkadotXcm::VersionDiscoveryQueue` (r:1 w:1)
-	/// Proof: `PolkadotXcm::VersionDiscoveryQueue` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
-	/// Storage: `PolkadotXcm::SafeXcmVersion` (r:1 w:0)
-	/// Proof: `PolkadotXcm::SafeXcmVersion` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
-	/// Storage: `ParachainSystem::HostConfiguration` (r:1 w:0)
-	/// Proof: `ParachainSystem::HostConfiguration` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
-	/// Storage: `ParachainSystem::PendingUpwardMessages` (r:1 w:1)
-	/// Proof: `ParachainSystem::PendingUpwardMessages` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
-	/// Storage: `PolkadotXcm::Queries` (r:0 w:1)
-	/// Proof: `PolkadotXcm::Queries` (`max_values`: None, `max_size`: None, mode: `Measured`)
+	/// Storage: `Benchmark::Override` (r:0 w:0)
+	/// Proof: `Benchmark::Override` (`max_values`: None, `max_size`: None, mode: `Measured`)
 	fn force_subscribe_version_notify() -> Weight {
 		// Proof Size summary in bytes:
-		//  Measured:  `278`
-		//  Estimated: `3743`
-		// Minimum execution time: 26_213_000 picoseconds.
-		Weight::from_parts(26_652_000, 3743)
-			.saturating_add(T::DbWeight::get().reads(7_u64))
-			.saturating_add(T::DbWeight::get().writes(5_u64))
+		//  Measured:  `0`
+		//  Estimated: `0`
+		// Minimum execution time: 18_446_744_073_709_551_000 picoseconds.
+		Weight::from_parts(18_446_744_073_709_551_000, 0)
 	}
-	/// Storage: `PolkadotXcm::VersionNotifiers` (r:1 w:1)
-	/// Proof: `PolkadotXcm::VersionNotifiers` (`max_values`: None, `max_size`: None, mode: `Measured`)
-	/// Storage: `PolkadotXcm::SupportedVersion` (r:1 w:0)
-	/// Proof: `PolkadotXcm::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`)
-	/// Storage: `PolkadotXcm::VersionDiscoveryQueue` (r:1 w:1)
-	/// Proof: `PolkadotXcm::VersionDiscoveryQueue` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
-	/// Storage: `PolkadotXcm::SafeXcmVersion` (r:1 w:0)
-	/// Proof: `PolkadotXcm::SafeXcmVersion` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
-	/// Storage: `ParachainSystem::HostConfiguration` (r:1 w:0)
-	/// Proof: `ParachainSystem::HostConfiguration` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
-	/// Storage: `ParachainSystem::PendingUpwardMessages` (r:1 w:1)
-	/// Proof: `ParachainSystem::PendingUpwardMessages` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
-	/// Storage: `PolkadotXcm::Queries` (r:0 w:1)
-	/// Proof: `PolkadotXcm::Queries` (`max_values`: None, `max_size`: None, mode: `Measured`)
+	/// Storage: `Benchmark::Override` (r:0 w:0)
+	/// Proof: `Benchmark::Override` (`max_values`: None, `max_size`: None, mode: `Measured`)
 	fn force_unsubscribe_version_notify() -> Weight {
 		// Proof Size summary in bytes:
-		//  Measured:  `461`
-		//  Estimated: `3926`
-		// Minimum execution time: 27_648_000 picoseconds.
-		Weight::from_parts(28_084_000, 3926)
-			.saturating_add(T::DbWeight::get().reads(6_u64))
-			.saturating_add(T::DbWeight::get().writes(4_u64))
+		//  Measured:  `0`
+		//  Estimated: `0`
+		// Minimum execution time: 18_446_744_073_709_551_000 picoseconds.
+		Weight::from_parts(18_446_744_073_709_551_000, 0)
 	}
 	/// Storage: `PolkadotXcm::XcmExecutionSuspended` (r:0 w:1)
 	/// Proof: `PolkadotXcm::XcmExecutionSuspended` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
@@ -155,124 +121,118 @@
 		// Proof Size summary in bytes:
 		//  Measured:  `0`
 		//  Estimated: `0`
-		// Minimum execution time: 2_529_000 picoseconds.
-		Weight::from_parts(2_650_000, 0)
+		// Minimum execution time: 1_050_000 picoseconds.
+		Weight::from_parts(1_150_000, 0)
 			.saturating_add(T::DbWeight::get().writes(1_u64))
 	}
-	/// Storage: `PolkadotXcm::SupportedVersion` (r:4 w:2)
+	/// Storage: `PolkadotXcm::SupportedVersion` (r:5 w:2)
 	/// Proof: `PolkadotXcm::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`)
 	fn migrate_supported_version() -> Weight {
 		// Proof Size summary in bytes:
-		//  Measured:  `196`
-		//  Estimated: `11086`
-		// Minimum execution time: 15_973_000 picoseconds.
-		Weight::from_parts(16_358_000, 11086)
-			.saturating_add(T::DbWeight::get().reads(4_u64))
+		//  Measured:  `192`
+		//  Estimated: `13557`
+		// Minimum execution time: 13_400_000 picoseconds.
+		Weight::from_parts(13_670_000, 13557)
+			.saturating_add(T::DbWeight::get().reads(5_u64))
 			.saturating_add(T::DbWeight::get().writes(2_u64))
 	}
-	/// Storage: `PolkadotXcm::VersionNotifiers` (r:4 w:2)
+	/// Storage: `PolkadotXcm::VersionNotifiers` (r:5 w:2)
 	/// Proof: `PolkadotXcm::VersionNotifiers` (`max_values`: None, `max_size`: None, mode: `Measured`)
 	fn migrate_version_notifiers() -> Weight {
 		// Proof Size summary in bytes:
-		//  Measured:  `200`
-		//  Estimated: `11090`
-		// Minimum execution time: 16_027_000 picoseconds.
-		Weight::from_parts(16_585_000, 11090)
-			.saturating_add(T::DbWeight::get().reads(4_u64))
+		//  Measured:  `196`
+		//  Estimated: `13561`
+		// Minimum execution time: 13_160_000 picoseconds.
+		Weight::from_parts(13_650_000, 13561)
+			.saturating_add(T::DbWeight::get().reads(5_u64))
 			.saturating_add(T::DbWeight::get().writes(2_u64))
 	}
-	/// Storage: `PolkadotXcm::VersionNotifyTargets` (r:5 w:0)
-	/// Proof: `PolkadotXcm::VersionNotifyTargets` (`max_values`: None, `max_size`: None, mode: `Measured`)
+	/// Storage: `Benchmark::Override` (r:0 w:0)
+	/// Proof: `Benchmark::Override` (`max_values`: None, `max_size`: None, mode: `Measured`)
 	fn already_notified_target() -> Weight {
 		// Proof Size summary in bytes:
-		//  Measured:  `207`
-		//  Estimated: `13572`
-		// Minimum execution time: 16_817_000 picoseconds.
-		Weight::from_parts(17_137_000, 13572)
-			.saturating_add(T::DbWeight::get().reads(5_u64))
+		//  Measured:  `0`
+		//  Estimated: `0`
+		// Minimum execution time: 25_000_000 picoseconds.
+		Weight::from_parts(25_000_000, 0)
 	}
-	/// Storage: `PolkadotXcm::VersionNotifyTargets` (r:2 w:1)
-	/// Proof: `PolkadotXcm::VersionNotifyTargets` (`max_values`: None, `max_size`: None, mode: `Measured`)
-	/// Storage: `PolkadotXcm::SupportedVersion` (r:1 w:0)
-	/// Proof: `PolkadotXcm::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`)
-	/// Storage: `PolkadotXcm::VersionDiscoveryQueue` (r:1 w:1)
-	/// Proof: `PolkadotXcm::VersionDiscoveryQueue` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
-	/// Storage: `PolkadotXcm::SafeXcmVersion` (r:1 w:0)
-	/// Proof: `PolkadotXcm::SafeXcmVersion` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
-	/// Storage: `ParachainSystem::HostConfiguration` (r:1 w:0)
-	/// Proof: `ParachainSystem::HostConfiguration` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
-	/// Storage: `ParachainSystem::PendingUpwardMessages` (r:1 w:1)
-	/// Proof: `ParachainSystem::PendingUpwardMessages` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
+	/// Storage: `Benchmark::Override` (r:0 w:0)
+	/// Proof: `Benchmark::Override` (`max_values`: None, `max_size`: None, mode: `Measured`)
 	fn notify_current_targets() -> Weight {
 		// Proof Size summary in bytes:
-		//  Measured:  `345`
-		//  Estimated: `6285`
-		// Minimum execution time: 24_551_000 picoseconds.
-		Weight::from_parts(24_975_000, 6285)
-			.saturating_add(T::DbWeight::get().reads(7_u64))
-			.saturating_add(T::DbWeight::get().writes(3_u64))
+		//  Measured:  `0`
+		//  Estimated: `0`
+		// Minimum execution time: 325_000_000 picoseconds.
+		Weight::from_parts(325_000_000, 0)
 	}
-	/// Storage: `PolkadotXcm::VersionNotifyTargets` (r:3 w:0)
+	/// Storage: `PolkadotXcm::VersionNotifyTargets` (r:4 w:0)
 	/// Proof: `PolkadotXcm::VersionNotifyTargets` (`max_values`: None, `max_size`: None, mode: `Measured`)
 	fn notify_target_migration_fail() -> Weight {
 		// Proof Size summary in bytes:
 		//  Measured:  `239`
-		//  Estimated: `8654`
-		// Minimum execution time: 8_412_000 picoseconds.
-		Weight::from_parts(8_710_000, 8654)
-			.saturating_add(T::DbWeight::get().reads(3_u64))
+		//  Estimated: `11129`
+		// Minimum execution time: 8_250_000 picoseconds.
+		Weight::from_parts(8_780_000, 11129)
+			.saturating_add(T::DbWeight::get().reads(4_u64))
 	}
-	/// Storage: `PolkadotXcm::VersionNotifyTargets` (r:4 w:2)
+	/// Storage: `PolkadotXcm::VersionNotifyTargets` (r:5 w:2)
 	/// Proof: `PolkadotXcm::VersionNotifyTargets` (`max_values`: None, `max_size`: None, mode: `Measured`)
 	fn migrate_version_notify_targets() -> Weight {
 		// Proof Size summary in bytes:
-		//  Measured:  `207`
-		//  Estimated: `11097`
-		// Minimum execution time: 16_427_000 picoseconds.
-		Weight::from_parts(16_774_000, 11097)
-			.saturating_add(T::DbWeight::get().reads(4_u64))
+		//  Measured:  `203`
+		//  Estimated: `13568`
+		// Minimum execution time: 13_240_000 picoseconds.
+		Weight::from_parts(13_650_000, 13568)
+			.saturating_add(T::DbWeight::get().reads(5_u64))
 			.saturating_add(T::DbWeight::get().writes(2_u64))
 	}
-	/// Storage: `PolkadotXcm::VersionNotifyTargets` (r:4 w:2)
-	/// Proof: `PolkadotXcm::VersionNotifyTargets` (`max_values`: None, `max_size`: None, mode: `Measured`)
-	/// Storage: `PolkadotXcm::SupportedVersion` (r:1 w:0)
-	/// Proof: `PolkadotXcm::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`)
-	/// Storage: `PolkadotXcm::VersionDiscoveryQueue` (r:1 w:1)
-	/// Proof: `PolkadotXcm::VersionDiscoveryQueue` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
-	/// Storage: `PolkadotXcm::SafeXcmVersion` (r:1 w:0)
-	/// Proof: `PolkadotXcm::SafeXcmVersion` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
-	/// Storage: `ParachainSystem::HostConfiguration` (r:1 w:0)
-	/// Proof: `ParachainSystem::HostConfiguration` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
-	/// Storage: `ParachainSystem::PendingUpwardMessages` (r:1 w:1)
-	/// Proof: `ParachainSystem::PendingUpwardMessages` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
+	/// Storage: `Benchmark::Override` (r:0 w:0)
+	/// Proof: `Benchmark::Override` (`max_values`: None, `max_size`: None, mode: `Measured`)
 	fn migrate_and_notify_old_targets() -> Weight {
 		// Proof Size summary in bytes:
-		//  Measured:  `349`
-		//  Estimated: `11239`
-		// Minimum execution time: 30_394_000 picoseconds.
-		Weight::from_parts(30_868_000, 11239)
-			.saturating_add(T::DbWeight::get().reads(9_u64))
-			.saturating_add(T::DbWeight::get().writes(4_u64))
+		//  Measured:  `0`
+		//  Estimated: `0`
+		// Minimum execution time: 325_000_000 picoseconds.
+		Weight::from_parts(325_000_000, 0)
 	}
-
-	fn transfer_assets() -> Weight {
-        // TODO!
-		Self::send()
-    }
-
+	/// Storage: `PolkadotXcm::QueryCounter` (r:1 w:1)
+	/// Proof: `PolkadotXcm::QueryCounter` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
+	/// Storage: `PolkadotXcm::Queries` (r:0 w:1)
+	/// Proof: `PolkadotXcm::Queries` (`max_values`: None, `max_size`: None, mode: `Measured`)
 	fn new_query() -> Weight {
-        // TODO!
-		Self::send()
-    }
-
+		// Proof Size summary in bytes:
+		//  Measured:  `136`
+		//  Estimated: `1621`
+		// Minimum execution time: 3_440_000 picoseconds.
+		Weight::from_parts(3_560_000, 1621)
+			.saturating_add(T::DbWeight::get().reads(1_u64))
+			.saturating_add(T::DbWeight::get().writes(2_u64))
+	}
+	/// Storage: `PolkadotXcm::Queries` (r:1 w:1)
+	/// Proof: `PolkadotXcm::Queries` (`max_values`: None, `max_size`: None, mode: `Measured`)
 	fn take_response() -> Weight {
-        // TODO!
-		Self::send()
-    }
-
+		// Proof Size summary in bytes:
+		//  Measured:  `7773`
+		//  Estimated: `11238`
+		// Minimum execution time: 19_230_000 picoseconds.
+		Weight::from_parts(19_550_000, 11238)
+			.saturating_add(T::DbWeight::get().reads(1_u64))
+			.saturating_add(T::DbWeight::get().writes(1_u64))
+	}
+	/// Storage: `PolkadotXcm::AssetTraps` (r:1 w:1)
+	/// Proof: `PolkadotXcm::AssetTraps` (`max_values`: None, `max_size`: None, mode: `Measured`)
+	/// Storage: `ForeignAssets::ForeignAssetToCollection` (r:1 w:0)
+	/// Proof: `ForeignAssets::ForeignAssetToCollection` (`max_values`: None, `max_size`: Some(614), added: 3089, mode: `MaxEncodedLen`)
+	/// Storage: `ParachainInfo::ParachainId` (r:1 w:0)
+	/// Proof: `ParachainInfo::ParachainId` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
 	fn claim_assets() -> Weight {
-        // TODO!
-		Self::send()
-    }
+		// Proof Size summary in bytes:
+		//  Measured:  `366`
+		//  Estimated: `4079`
+		// Minimum execution time: 25_540_000 picoseconds.
+		Weight::from_parts(26_250_000, 4079)
+			.saturating_add(T::DbWeight::get().reads(3_u64))
+			.saturating_add(T::DbWeight::get().writes(1_u64))
+	}
 }