diff --git a/cumulus/parachains/runtimes/assets/asset-hub-rococo/src/weights/pallet_assets_foreign.rs b/cumulus/parachains/runtimes/assets/asset-hub-rococo/src/weights/pallet_assets_foreign.rs index 8f817e96f206f..9f65aec9327e4 100644 --- a/cumulus/parachains/runtimes/assets/asset-hub-rococo/src/weights/pallet_assets_foreign.rs +++ b/cumulus/parachains/runtimes/assets/asset-hub-rococo/src/weights/pallet_assets_foreign.rs @@ -643,25 +643,11 @@ impl pallet_assets::WeightInfo for WeightInfo { // Minimum execution time: 9_596_000 picoseconds. Weight::from_parts(10_031_000, 0) } - fn get_name() -> Weight { - // Proof Size summary in bytes: - // Measured: `344` - // Estimated: `0` - // Minimum execution time: 10_390_000 picoseconds. - Weight::from_parts(10_914_000, 0) - } - fn get_symbol() -> Weight { - // Proof Size summary in bytes: - // Measured: `344` - // Estimated: `0` - // Minimum execution time: 10_587_000 picoseconds. - Weight::from_parts(11_121_000, 0) - } - fn get_decimals() -> Weight { + fn get_metadata() -> Weight { // Proof Size summary in bytes: // Measured: `344` // Estimated: `0` // Minimum execution time: 10_591_000 picoseconds. - Weight::from_parts(11_015_000, 0) + Weight::from_parts(11_121_000, 0) } } diff --git a/cumulus/parachains/runtimes/assets/asset-hub-rococo/src/weights/pallet_assets_local.rs b/cumulus/parachains/runtimes/assets/asset-hub-rococo/src/weights/pallet_assets_local.rs index a14afce22a881..a2cc639b68a63 100644 --- a/cumulus/parachains/runtimes/assets/asset-hub-rococo/src/weights/pallet_assets_local.rs +++ b/cumulus/parachains/runtimes/assets/asset-hub-rococo/src/weights/pallet_assets_local.rs @@ -639,25 +639,11 @@ impl pallet_assets::WeightInfo for WeightInfo { // Minimum execution time: 9_596_000 picoseconds. Weight::from_parts(10_031_000, 0) } - fn get_name() -> Weight { - // Proof Size summary in bytes: - // Measured: `344` - // Estimated: `0` - // Minimum execution time: 10_390_000 picoseconds. - Weight::from_parts(10_914_000, 0) - } - fn get_symbol() -> Weight { - // Proof Size summary in bytes: - // Measured: `344` - // Estimated: `0` - // Minimum execution time: 10_587_000 picoseconds. - Weight::from_parts(11_121_000, 0) - } - fn get_decimals() -> Weight { + fn get_metadata() -> Weight { // Proof Size summary in bytes: // Measured: `344` // Estimated: `0` // Minimum execution time: 10_591_000 picoseconds. - Weight::from_parts(11_015_000, 0) + Weight::from_parts(11_121_000, 0) } } diff --git a/cumulus/parachains/runtimes/assets/asset-hub-rococo/src/weights/pallet_assets_pool.rs b/cumulus/parachains/runtimes/assets/asset-hub-rococo/src/weights/pallet_assets_pool.rs index 354831cb497dc..3a98faf63258d 100644 --- a/cumulus/parachains/runtimes/assets/asset-hub-rococo/src/weights/pallet_assets_pool.rs +++ b/cumulus/parachains/runtimes/assets/asset-hub-rococo/src/weights/pallet_assets_pool.rs @@ -633,25 +633,11 @@ impl pallet_assets::WeightInfo for WeightInfo { // Minimum execution time: 9_596_000 picoseconds. Weight::from_parts(10_031_000, 0) } - fn get_name() -> Weight { - // Proof Size summary in bytes: - // Measured: `344` - // Estimated: `0` - // Minimum execution time: 10_390_000 picoseconds. - Weight::from_parts(10_914_000, 0) - } - fn get_symbol() -> Weight { - // Proof Size summary in bytes: - // Measured: `344` - // Estimated: `0` - // Minimum execution time: 10_587_000 picoseconds. - Weight::from_parts(11_121_000, 0) - } - fn get_decimals() -> Weight { + fn get_metadata() -> Weight { // Proof Size summary in bytes: // Measured: `344` // Estimated: `0` // Minimum execution time: 10_591_000 picoseconds. - Weight::from_parts(11_015_000, 0) + Weight::from_parts(11_121_000, 0) } } diff --git a/cumulus/parachains/runtimes/assets/asset-hub-westend/src/weights/pallet_assets_foreign.rs b/cumulus/parachains/runtimes/assets/asset-hub-westend/src/weights/pallet_assets_foreign.rs index 7897ceed09ea5..f15e2ceb61527 100644 --- a/cumulus/parachains/runtimes/assets/asset-hub-westend/src/weights/pallet_assets_foreign.rs +++ b/cumulus/parachains/runtimes/assets/asset-hub-westend/src/weights/pallet_assets_foreign.rs @@ -16,9 +16,9 @@ //! Autogenerated weights for `pallet_assets` //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 -//! DATE: 2025-12-24, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2026-02-11, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` -//! HOSTNAME: `1ad128e84c6f`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz` +//! HOSTNAME: `0855fd8aeaa3`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz` //! WASM-EXECUTION: `Compiled`, CHAIN: `None`, DB CACHE: 1024 // Executed Command: @@ -62,8 +62,8 @@ impl pallet_assets::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `1348` // Estimated: `4273` - // Minimum execution time: 62_012_000 picoseconds. - Weight::from_parts(67_369_000, 0) + // Minimum execution time: 59_584_000 picoseconds. + Weight::from_parts(62_777_000, 0) .saturating_add(Weight::from_parts(0, 4273)) .saturating_add(T::DbWeight::get().reads(4)) .saturating_add(T::DbWeight::get().writes(2)) @@ -76,8 +76,8 @@ impl pallet_assets::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `4` // Estimated: `4273` - // Minimum execution time: 17_025_000 picoseconds. - Weight::from_parts(18_562_000, 0) + // Minimum execution time: 14_724_000 picoseconds. + Weight::from_parts(15_329_000, 0) .saturating_add(Weight::from_parts(0, 4273)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(1)) @@ -90,8 +90,8 @@ impl pallet_assets::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `360` // Estimated: `4273` - // Minimum execution time: 28_762_000 picoseconds. - Weight::from_parts(29_866_000, 0) + // Minimum execution time: 27_139_000 picoseconds. + Weight::from_parts(28_917_000, 0) .saturating_add(Weight::from_parts(0, 4273)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(1)) @@ -111,13 +111,13 @@ impl pallet_assets::WeightInfo for WeightInfo { /// The range of component `c` is `[0, 1000]`. fn destroy_accounts(c: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `68635 + c * (424 ±0)` + // Measured: `68668 + c * (424 ±0)` // Estimated: `4273 + c * (3207 ±0)` - // Minimum execution time: 23_400_000 picoseconds. - Weight::from_parts(23_918_000, 0) + // Minimum execution time: 20_782_000 picoseconds. + Weight::from_parts(21_584_000, 0) .saturating_add(Weight::from_parts(0, 4273)) - // Standard Error: 40_830 - .saturating_add(Weight::from_parts(46_080_612, 0).saturating_mul(c.into())) + // Standard Error: 96_300 + .saturating_add(Weight::from_parts(42_841_666, 0).saturating_mul(c.into())) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().reads((4_u64).saturating_mul(c.into()))) .saturating_add(T::DbWeight::get().writes(1)) @@ -135,11 +135,11 @@ impl pallet_assets::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `413 + a * (86 ±0)` // Estimated: `4273 + a * (3221 ±0)` - // Minimum execution time: 25_836_000 picoseconds. - Weight::from_parts(26_811_000, 0) + // Minimum execution time: 22_370_000 picoseconds. + Weight::from_parts(23_188_000, 0) .saturating_add(Weight::from_parts(0, 4273)) - // Standard Error: 31_359 - .saturating_add(Weight::from_parts(25_818_865, 0).saturating_mul(a.into())) + // Standard Error: 37_125 + .saturating_add(Weight::from_parts(23_404_063, 0).saturating_mul(a.into())) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(a.into()))) .saturating_add(T::DbWeight::get().writes(1)) @@ -156,8 +156,8 @@ impl pallet_assets::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `242` // Estimated: `4273` - // Minimum execution time: 23_915_000 picoseconds. - Weight::from_parts(24_792_000, 0) + // Minimum execution time: 19_731_000 picoseconds. + Weight::from_parts(20_321_000, 0) .saturating_add(Weight::from_parts(0, 4273)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(2)) @@ -170,8 +170,8 @@ impl pallet_assets::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `242` // Estimated: `4273` - // Minimum execution time: 37_316_000 picoseconds. - Weight::from_parts(38_771_000, 0) + // Minimum execution time: 31_339_000 picoseconds. + Weight::from_parts(32_986_000, 0) .saturating_add(Weight::from_parts(0, 4273)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(2)) @@ -188,8 +188,8 @@ impl pallet_assets::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `430` // Estimated: `4273` - // Minimum execution time: 77_083_000 picoseconds. - Weight::from_parts(81_771_000, 0) + // Minimum execution time: 71_271_000 picoseconds. + Weight::from_parts(74_620_000, 0) .saturating_add(Weight::from_parts(0, 4273)) .saturating_add(T::DbWeight::get().reads(4)) .saturating_add(T::DbWeight::get().writes(4)) @@ -208,8 +208,8 @@ impl pallet_assets::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `1752` // Estimated: `7404` - // Minimum execution time: 107_946_000 picoseconds. - Weight::from_parts(112_113_000, 0) + // Minimum execution time: 98_412_000 picoseconds. + Weight::from_parts(100_816_000, 0) .saturating_add(Weight::from_parts(0, 7404)) .saturating_add(T::DbWeight::get().reads(6)) .saturating_add(T::DbWeight::get().writes(6)) @@ -226,8 +226,8 @@ impl pallet_assets::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `1752` // Estimated: `7404` - // Minimum execution time: 85_466_000 picoseconds. - Weight::from_parts(88_733_000, 0) + // Minimum execution time: 79_734_000 picoseconds. + Weight::from_parts(82_459_000, 0) .saturating_add(Weight::from_parts(0, 7404)) .saturating_add(T::DbWeight::get().reads(5)) .saturating_add(T::DbWeight::get().writes(4)) @@ -246,8 +246,8 @@ impl pallet_assets::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `1752` // Estimated: `7404` - // Minimum execution time: 107_196_000 picoseconds. - Weight::from_parts(110_898_000, 0) + // Minimum execution time: 101_289_000 picoseconds. + Weight::from_parts(105_933_000, 0) .saturating_add(Weight::from_parts(0, 7404)) .saturating_add(T::DbWeight::get().reads(6)) .saturating_add(T::DbWeight::get().writes(6)) @@ -260,8 +260,8 @@ impl pallet_assets::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `350` // Estimated: `4273` - // Minimum execution time: 30_625_000 picoseconds. - Weight::from_parts(32_482_000, 0) + // Minimum execution time: 24_420_000 picoseconds. + Weight::from_parts(25_826_000, 0) .saturating_add(Weight::from_parts(0, 4273)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(1)) @@ -274,8 +274,8 @@ impl pallet_assets::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `350` // Estimated: `4273` - // Minimum execution time: 30_649_000 picoseconds. - Weight::from_parts(32_249_000, 0) + // Minimum execution time: 24_438_000 picoseconds. + Weight::from_parts(25_840_000, 0) .saturating_add(Weight::from_parts(0, 4273)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(1)) @@ -286,8 +286,8 @@ impl pallet_assets::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `276` // Estimated: `4273` - // Minimum execution time: 20_339_000 picoseconds. - Weight::from_parts(21_946_000, 0) + // Minimum execution time: 18_003_000 picoseconds. + Weight::from_parts(18_679_000, 0) .saturating_add(Weight::from_parts(0, 4273)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) @@ -298,8 +298,8 @@ impl pallet_assets::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `276` // Estimated: `4273` - // Minimum execution time: 19_813_000 picoseconds. - Weight::from_parts(21_255_000, 0) + // Minimum execution time: 17_822_000 picoseconds. + Weight::from_parts(18_390_000, 0) .saturating_add(Weight::from_parts(0, 4273)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) @@ -312,8 +312,8 @@ impl pallet_assets::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `242` // Estimated: `4273` - // Minimum execution time: 22_825_000 picoseconds. - Weight::from_parts(23_896_000, 0) + // Minimum execution time: 19_406_000 picoseconds. + Weight::from_parts(20_707_000, 0) .saturating_add(Weight::from_parts(0, 4273)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(1)) @@ -324,8 +324,8 @@ impl pallet_assets::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `242` // Estimated: `4273` - // Minimum execution time: 19_693_000 picoseconds. - Weight::from_parts(21_208_000, 0) + // Minimum execution time: 16_940_000 picoseconds. + Weight::from_parts(18_452_000, 0) .saturating_add(Weight::from_parts(0, 4273)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) @@ -341,11 +341,11 @@ impl pallet_assets::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `242` // Estimated: `4273` - // Minimum execution time: 20_530_000 picoseconds. - Weight::from_parts(22_865_922, 0) + // Minimum execution time: 18_753_000 picoseconds. + Weight::from_parts(20_523_011, 0) .saturating_add(Weight::from_parts(0, 4273)) - // Standard Error: 14_472 - .saturating_add(Weight::from_parts(682_835, 0).saturating_mul(n.into())) + // Standard Error: 8_765 + .saturating_add(Weight::from_parts(454_824, 0).saturating_mul(n.into())) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) } @@ -363,8 +363,8 @@ impl pallet_assets::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `242` // Estimated: `4273` - // Minimum execution time: 45_661_000 picoseconds. - Weight::from_parts(55_804_037, 0) + // Minimum execution time: 39_968_000 picoseconds. + Weight::from_parts(47_253_215, 0) .saturating_add(Weight::from_parts(0, 4273)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(1)) @@ -377,8 +377,8 @@ impl pallet_assets::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `406` // Estimated: `4273` - // Minimum execution time: 46_847_000 picoseconds. - Weight::from_parts(49_276_000, 0) + // Minimum execution time: 43_532_000 picoseconds. + Weight::from_parts(45_842_000, 0) .saturating_add(Weight::from_parts(0, 4273)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(1)) @@ -393,15 +393,17 @@ impl pallet_assets::WeightInfo for WeightInfo { /// The range of component `s` is `[0, 50]`. /// The range of component `n` is `[0, 50]`. /// The range of component `s` is `[0, 50]`. - fn force_set_metadata(n: u32, _s: u32, ) -> Weight { + fn force_set_metadata(n: u32, s: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `81` // Estimated: `4273` - // Minimum execution time: 19_328_000 picoseconds. - Weight::from_parts(21_195_675, 0) + // Minimum execution time: 16_624_000 picoseconds. + Weight::from_parts(17_729_669, 0) .saturating_add(Weight::from_parts(0, 4273)) - // Standard Error: 1_392 - .saturating_add(Weight::from_parts(6_716, 0).saturating_mul(n.into())) + // Standard Error: 1_092 + .saturating_add(Weight::from_parts(6_120, 0).saturating_mul(n.into())) + // Standard Error: 1_092 + .saturating_add(Weight::from_parts(5_451, 0).saturating_mul(s.into())) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(1)) } @@ -413,8 +415,8 @@ impl pallet_assets::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `406` // Estimated: `4273` - // Minimum execution time: 45_087_000 picoseconds. - Weight::from_parts(47_268_000, 0) + // Minimum execution time: 41_784_000 picoseconds. + Weight::from_parts(42_986_000, 0) .saturating_add(Weight::from_parts(0, 4273)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(1)) @@ -425,8 +427,8 @@ impl pallet_assets::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `242` // Estimated: `4273` - // Minimum execution time: 18_867_000 picoseconds. - Weight::from_parts(20_198_000, 0) + // Minimum execution time: 15_346_000 picoseconds. + Weight::from_parts(16_320_000, 0) .saturating_add(Weight::from_parts(0, 4273)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) @@ -439,8 +441,8 @@ impl pallet_assets::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `276` // Estimated: `4273` - // Minimum execution time: 48_541_000 picoseconds. - Weight::from_parts(51_815_000, 0) + // Minimum execution time: 42_979_000 picoseconds. + Weight::from_parts(44_376_000, 0) .saturating_add(Weight::from_parts(0, 4273)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(2)) @@ -461,8 +463,8 @@ impl pallet_assets::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `1790` // Estimated: `7404` - // Minimum execution time: 138_168_000 picoseconds. - Weight::from_parts(141_909_000, 0) + // Minimum execution time: 131_934_000 picoseconds. + Weight::from_parts(137_154_000, 0) .saturating_add(Weight::from_parts(0, 7404)) .saturating_add(T::DbWeight::get().reads(7)) .saturating_add(T::DbWeight::get().writes(7)) @@ -475,8 +477,8 @@ impl pallet_assets::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `446` // Estimated: `4273` - // Minimum execution time: 55_517_000 picoseconds. - Weight::from_parts(57_986_000, 0) + // Minimum execution time: 47_232_000 picoseconds. + Weight::from_parts(49_272_000, 0) .saturating_add(Weight::from_parts(0, 4273)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(2)) @@ -489,8 +491,8 @@ impl pallet_assets::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `446` // Estimated: `4273` - // Minimum execution time: 56_263_000 picoseconds. - Weight::from_parts(58_380_000, 0) + // Minimum execution time: 46_957_000 picoseconds. + Weight::from_parts(48_346_000, 0) .saturating_add(Weight::from_parts(0, 4273)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(2)) @@ -501,8 +503,8 @@ impl pallet_assets::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `242` // Estimated: `4273` - // Minimum execution time: 19_701_000 picoseconds. - Weight::from_parts(21_024_000, 0) + // Minimum execution time: 17_541_000 picoseconds. + Weight::from_parts(18_277_000, 0) .saturating_add(Weight::from_parts(0, 4273)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) @@ -517,8 +519,8 @@ impl pallet_assets::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `1549` // Estimated: `4273` - // Minimum execution time: 61_407_000 picoseconds. - Weight::from_parts(63_081_000, 0) + // Minimum execution time: 58_211_000 picoseconds. + Weight::from_parts(60_186_000, 0) .saturating_add(Weight::from_parts(0, 4273)) .saturating_add(T::DbWeight::get().reads(3)) .saturating_add(T::DbWeight::get().writes(3)) @@ -531,8 +533,8 @@ impl pallet_assets::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `242` // Estimated: `4273` - // Minimum execution time: 48_496_000 picoseconds. - Weight::from_parts(50_343_000, 0) + // Minimum execution time: 41_622_000 picoseconds. + Weight::from_parts(43_046_000, 0) .saturating_add(Weight::from_parts(0, 4273)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(2)) @@ -551,8 +553,8 @@ impl pallet_assets::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `1755` // Estimated: `4273` - // Minimum execution time: 80_393_000 picoseconds. - Weight::from_parts(83_061_000, 0) + // Minimum execution time: 74_419_000 picoseconds. + Weight::from_parts(77_715_000, 0) .saturating_add(Weight::from_parts(0, 4273)) .saturating_add(T::DbWeight::get().reads(5)) .saturating_add(T::DbWeight::get().writes(5)) @@ -569,8 +571,8 @@ impl pallet_assets::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `481` // Estimated: `4273` - // Minimum execution time: 69_254_000 picoseconds. - Weight::from_parts(71_611_000, 0) + // Minimum execution time: 64_008_000 picoseconds. + Weight::from_parts(66_457_000, 0) .saturating_add(Weight::from_parts(0, 4273)) .saturating_add(T::DbWeight::get().reads(4)) .saturating_add(T::DbWeight::get().writes(4)) @@ -583,8 +585,8 @@ impl pallet_assets::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `350` // Estimated: `4273` - // Minimum execution time: 29_869_000 picoseconds. - Weight::from_parts(31_565_000, 0) + // Minimum execution time: 23_822_000 picoseconds. + Weight::from_parts(24_526_000, 0) .saturating_add(Weight::from_parts(0, 4273)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(1)) @@ -603,8 +605,8 @@ impl pallet_assets::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `1752` // Estimated: `7404` - // Minimum execution time: 127_031_000 picoseconds. - Weight::from_parts(131_516_000, 0) + // Minimum execution time: 118_962_000 picoseconds. + Weight::from_parts(123_414_000, 0) .saturating_add(Weight::from_parts(0, 7404)) .saturating_add(T::DbWeight::get().reads(6)) .saturating_add(T::DbWeight::get().writes(6)) @@ -615,8 +617,8 @@ impl pallet_assets::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `276` // Estimated: `4273` - // Minimum execution time: 7_644_000 picoseconds. - Weight::from_parts(8_239_000, 0) + // Minimum execution time: 7_387_000 picoseconds. + Weight::from_parts(7_839_000, 0) .saturating_add(Weight::from_parts(0, 4273)) .saturating_add(T::DbWeight::get().reads(1)) } @@ -626,8 +628,8 @@ impl pallet_assets::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `150` // Estimated: `4197` - // Minimum execution time: 9_608_000 picoseconds. - Weight::from_parts(10_545_000, 0) + // Minimum execution time: 9_156_000 picoseconds. + Weight::from_parts(9_759_000, 0) .saturating_add(Weight::from_parts(0, 4197)) .saturating_add(T::DbWeight::get().reads(1)) } @@ -637,8 +639,8 @@ impl pallet_assets::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `245` // Estimated: `4211` - // Minimum execution time: 13_507_000 picoseconds. - Weight::from_parts(15_042_000, 0) + // Minimum execution time: 13_442_000 picoseconds. + Weight::from_parts(14_180_000, 0) .saturating_add(Weight::from_parts(0, 4211)) .saturating_add(T::DbWeight::get().reads(1)) } @@ -650,31 +652,21 @@ impl pallet_assets::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `81` // Estimated: `4273` - // Minimum execution time: 15_092_000 picoseconds. - Weight::from_parts(16_045_000, 0) + // Minimum execution time: 12_621_000 picoseconds. + Weight::from_parts(13_500_000, 0) .saturating_add(Weight::from_parts(0, 4273)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) } - fn get_name() -> Weight { - // Proof Size summary in bytes: - // Measured: `344` - // Estimated: `0` - // Minimum execution time: 10_390_000 picoseconds. - Weight::from_parts(10_914_000, 0) - } - fn get_symbol() -> Weight { - // Proof Size summary in bytes: - // Measured: `344` - // Estimated: `0` - // Minimum execution time: 10_587_000 picoseconds. - Weight::from_parts(11_121_000, 0) - } - fn get_decimals() -> Weight { + /// Storage: `ForeignAssets::Metadata` (r:1 w:0) + /// Proof: `ForeignAssets::Metadata` (`max_values`: None, `max_size`: Some(738), added: 3213, mode: `MaxEncodedLen`) + fn get_metadata() -> Weight { // Proof Size summary in bytes: - // Measured: `344` - // Estimated: `0` - // Minimum execution time: 10_591_000 picoseconds. - Weight::from_parts(11_015_000, 0) + // Measured: `206` + // Estimated: `4203` + // Minimum execution time: 7_850_000 picoseconds. + Weight::from_parts(8_412_000, 0) + .saturating_add(Weight::from_parts(0, 4203)) + .saturating_add(T::DbWeight::get().reads(1)) } } diff --git a/cumulus/parachains/runtimes/assets/asset-hub-westend/src/weights/pallet_assets_local.rs b/cumulus/parachains/runtimes/assets/asset-hub-westend/src/weights/pallet_assets_local.rs index b4011b74d295a..21cfc5947fda3 100644 --- a/cumulus/parachains/runtimes/assets/asset-hub-westend/src/weights/pallet_assets_local.rs +++ b/cumulus/parachains/runtimes/assets/asset-hub-westend/src/weights/pallet_assets_local.rs @@ -16,9 +16,9 @@ //! Autogenerated weights for `pallet_assets` //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 -//! DATE: 2025-12-24, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2026-02-11, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` -//! HOSTNAME: `1ad128e84c6f`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz` +//! HOSTNAME: `0855fd8aeaa3`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz` //! WASM-EXECUTION: `Compiled`, CHAIN: `None`, DB CACHE: 1024 // Executed Command: @@ -60,8 +60,8 @@ impl pallet_assets::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `1317` // Estimated: `3675` - // Minimum execution time: 51_156_000 picoseconds. - Weight::from_parts(53_203_000, 0) + // Minimum execution time: 48_929_000 picoseconds. + Weight::from_parts(51_295_000, 0) .saturating_add(Weight::from_parts(0, 3675)) .saturating_add(T::DbWeight::get().reads(3)) .saturating_add(T::DbWeight::get().writes(2)) @@ -74,8 +74,8 @@ impl pallet_assets::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `76` // Estimated: `3675` - // Minimum execution time: 18_152_000 picoseconds. - Weight::from_parts(19_084_000, 0) + // Minimum execution time: 15_738_000 picoseconds. + Weight::from_parts(16_370_000, 0) .saturating_add(Weight::from_parts(0, 3675)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(1)) @@ -88,8 +88,8 @@ impl pallet_assets::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `394` // Estimated: `3675` - // Minimum execution time: 29_974_000 picoseconds. - Weight::from_parts(31_532_000, 0) + // Minimum execution time: 27_623_000 picoseconds. + Weight::from_parts(28_815_000, 0) .saturating_add(Weight::from_parts(0, 3675)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(1)) @@ -109,13 +109,13 @@ impl pallet_assets::WeightInfo for WeightInfo { /// The range of component `c` is `[0, 1000]`. fn destroy_accounts(c: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `68631 + c * (424 ±0)` + // Measured: `68664 + c * (424 ±0)` // Estimated: `3675 + c * (2609 ±0)` - // Minimum execution time: 23_900_000 picoseconds. - Weight::from_parts(24_220_000, 0) + // Minimum execution time: 20_308_000 picoseconds. + Weight::from_parts(20_969_000, 0) .saturating_add(Weight::from_parts(0, 3675)) - // Standard Error: 57_773 - .saturating_add(Weight::from_parts(43_709_731, 0).saturating_mul(c.into())) + // Standard Error: 41_832 + .saturating_add(Weight::from_parts(40_952_678, 0).saturating_mul(c.into())) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().reads((4_u64).saturating_mul(c.into()))) .saturating_add(T::DbWeight::get().writes(1)) @@ -133,11 +133,11 @@ impl pallet_assets::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `485 + a * (86 ±0)` // Estimated: `3675 + a * (2623 ±0)` - // Minimum execution time: 29_583_000 picoseconds. - Weight::from_parts(30_387_000, 0) + // Minimum execution time: 22_100_000 picoseconds. + Weight::from_parts(23_205_000, 0) .saturating_add(Weight::from_parts(0, 3675)) - // Standard Error: 13_887 - .saturating_add(Weight::from_parts(22_627_454, 0).saturating_mul(a.into())) + // Standard Error: 15_712 + .saturating_add(Weight::from_parts(20_800_601, 0).saturating_mul(a.into())) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(a.into()))) .saturating_add(T::DbWeight::get().writes(1)) @@ -154,8 +154,8 @@ impl pallet_assets::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `314` // Estimated: `3675` - // Minimum execution time: 22_410_000 picoseconds. - Weight::from_parts(23_666_000, 0) + // Minimum execution time: 18_580_000 picoseconds. + Weight::from_parts(19_420_000, 0) .saturating_add(Weight::from_parts(0, 3675)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(2)) @@ -168,8 +168,8 @@ impl pallet_assets::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `314` // Estimated: `3675` - // Minimum execution time: 35_426_000 picoseconds. - Weight::from_parts(37_139_000, 0) + // Minimum execution time: 30_804_000 picoseconds. + Weight::from_parts(31_662_000, 0) .saturating_add(Weight::from_parts(0, 3675)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(2)) @@ -186,8 +186,8 @@ impl pallet_assets::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `426` // Estimated: `3675` - // Minimum execution time: 69_545_000 picoseconds. - Weight::from_parts(71_574_000, 0) + // Minimum execution time: 63_884_000 picoseconds. + Weight::from_parts(67_308_000, 0) .saturating_add(Weight::from_parts(0, 3675)) .saturating_add(T::DbWeight::get().reads(4)) .saturating_add(T::DbWeight::get().writes(4)) @@ -206,8 +206,8 @@ impl pallet_assets::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `1748` // Estimated: `6208` - // Minimum execution time: 95_914_000 picoseconds. - Weight::from_parts(98_304_000, 0) + // Minimum execution time: 91_064_000 picoseconds. + Weight::from_parts(93_625_000, 0) .saturating_add(Weight::from_parts(0, 6208)) .saturating_add(T::DbWeight::get().reads(6)) .saturating_add(T::DbWeight::get().writes(6)) @@ -224,8 +224,8 @@ impl pallet_assets::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `1748` // Estimated: `6208` - // Minimum execution time: 76_715_000 picoseconds. - Weight::from_parts(81_974_000, 0) + // Minimum execution time: 71_385_000 picoseconds. + Weight::from_parts(74_930_000, 0) .saturating_add(Weight::from_parts(0, 6208)) .saturating_add(T::DbWeight::get().reads(5)) .saturating_add(T::DbWeight::get().writes(4)) @@ -244,8 +244,8 @@ impl pallet_assets::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `1748` // Estimated: `6208` - // Minimum execution time: 95_473_000 picoseconds. - Weight::from_parts(98_663_000, 0) + // Minimum execution time: 91_533_000 picoseconds. + Weight::from_parts(94_322_000, 0) .saturating_add(Weight::from_parts(0, 6208)) .saturating_add(T::DbWeight::get().reads(6)) .saturating_add(T::DbWeight::get().writes(6)) @@ -258,8 +258,8 @@ impl pallet_assets::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `422` // Estimated: `3675` - // Minimum execution time: 30_011_000 picoseconds. - Weight::from_parts(31_178_000, 0) + // Minimum execution time: 27_538_000 picoseconds. + Weight::from_parts(28_801_000, 0) .saturating_add(Weight::from_parts(0, 3675)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(1)) @@ -272,8 +272,8 @@ impl pallet_assets::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `422` // Estimated: `3675` - // Minimum execution time: 30_044_000 picoseconds. - Weight::from_parts(31_253_000, 0) + // Minimum execution time: 26_971_000 picoseconds. + Weight::from_parts(28_843_000, 0) .saturating_add(Weight::from_parts(0, 3675)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(1)) @@ -284,8 +284,8 @@ impl pallet_assets::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `348` // Estimated: `3675` - // Minimum execution time: 23_625_000 picoseconds. - Weight::from_parts(24_590_000, 0) + // Minimum execution time: 16_677_000 picoseconds. + Weight::from_parts(17_523_000, 0) .saturating_add(Weight::from_parts(0, 3675)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) @@ -296,8 +296,8 @@ impl pallet_assets::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `348` // Estimated: `3675` - // Minimum execution time: 22_889_000 picoseconds. - Weight::from_parts(24_438_000, 0) + // Minimum execution time: 16_623_000 picoseconds. + Weight::from_parts(17_300_000, 0) .saturating_add(Weight::from_parts(0, 3675)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) @@ -310,8 +310,8 @@ impl pallet_assets::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `314` // Estimated: `3675` - // Minimum execution time: 21_633_000 picoseconds. - Weight::from_parts(22_761_000, 0) + // Minimum execution time: 17_568_000 picoseconds. + Weight::from_parts(18_397_000, 0) .saturating_add(Weight::from_parts(0, 3675)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(1)) @@ -322,8 +322,8 @@ impl pallet_assets::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `314` // Estimated: `3675` - // Minimum execution time: 19_460_000 picoseconds. - Weight::from_parts(20_530_000, 0) + // Minimum execution time: 15_577_000 picoseconds. + Weight::from_parts(16_542_000, 0) .saturating_add(Weight::from_parts(0, 3675)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) @@ -339,11 +339,11 @@ impl pallet_assets::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `314` // Estimated: `3675` - // Minimum execution time: 22_807_000 picoseconds. - Weight::from_parts(25_136_204, 0) + // Minimum execution time: 16_640_000 picoseconds. + Weight::from_parts(18_031_974, 0) .saturating_add(Weight::from_parts(0, 3675)) - // Standard Error: 21_027 - .saturating_add(Weight::from_parts(71_155, 0).saturating_mul(n.into())) + // Standard Error: 8_238 + .saturating_add(Weight::from_parts(57_789, 0).saturating_mul(n.into())) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) } @@ -361,13 +361,13 @@ impl pallet_assets::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `314` // Estimated: `3675` - // Minimum execution time: 43_683_000 picoseconds. - Weight::from_parts(46_622_482, 0) + // Minimum execution time: 35_408_000 picoseconds. + Weight::from_parts(34_841_997, 0) .saturating_add(Weight::from_parts(0, 3675)) - // Standard Error: 4_967 - .saturating_add(Weight::from_parts(174_999, 0).saturating_mul(n.into())) - // Standard Error: 4_967 - .saturating_add(Weight::from_parts(15_530, 0).saturating_mul(s.into())) + // Standard Error: 3_579 + .saturating_add(Weight::from_parts(205_682, 0).saturating_mul(n.into())) + // Standard Error: 3_579 + .saturating_add(Weight::from_parts(27_265, 0).saturating_mul(s.into())) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(1)) } @@ -379,8 +379,8 @@ impl pallet_assets::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `478` // Estimated: `3675` - // Minimum execution time: 50_357_000 picoseconds. - Weight::from_parts(53_182_000, 0) + // Minimum execution time: 47_060_000 picoseconds. + Weight::from_parts(49_054_000, 0) .saturating_add(Weight::from_parts(0, 3675)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(1)) @@ -395,13 +395,17 @@ impl pallet_assets::WeightInfo for WeightInfo { /// The range of component `s` is `[0, 50]`. /// The range of component `n` is `[0, 50]`. /// The range of component `s` is `[0, 50]`. - fn force_set_metadata(_n: u32, _s: u32, ) -> Weight { + fn force_set_metadata(n: u32, s: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `153` // Estimated: `3675` - // Minimum execution time: 19_136_000 picoseconds. - Weight::from_parts(21_454_280, 0) + // Minimum execution time: 16_171_000 picoseconds. + Weight::from_parts(17_594_465, 0) .saturating_add(Weight::from_parts(0, 3675)) + // Standard Error: 1_085 + .saturating_add(Weight::from_parts(3_883, 0).saturating_mul(n.into())) + // Standard Error: 1_085 + .saturating_add(Weight::from_parts(2_082, 0).saturating_mul(s.into())) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(1)) } @@ -413,8 +417,8 @@ impl pallet_assets::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `478` // Estimated: `3675` - // Minimum execution time: 50_490_000 picoseconds. - Weight::from_parts(52_302_000, 0) + // Minimum execution time: 46_682_000 picoseconds. + Weight::from_parts(47_870_000, 0) .saturating_add(Weight::from_parts(0, 3675)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(1)) @@ -425,8 +429,8 @@ impl pallet_assets::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `314` // Estimated: `3675` - // Minimum execution time: 18_539_000 picoseconds. - Weight::from_parts(19_837_000, 0) + // Minimum execution time: 15_778_000 picoseconds. + Weight::from_parts(16_779_000, 0) .saturating_add(Weight::from_parts(0, 3675)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) @@ -439,8 +443,8 @@ impl pallet_assets::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `348` // Estimated: `3675` - // Minimum execution time: 57_581_000 picoseconds. - Weight::from_parts(60_845_000, 0) + // Minimum execution time: 49_809_000 picoseconds. + Weight::from_parts(51_133_000, 0) .saturating_add(Weight::from_parts(0, 3675)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(2)) @@ -461,8 +465,8 @@ impl pallet_assets::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `1786` // Estimated: `6208` - // Minimum execution time: 131_345_000 picoseconds. - Weight::from_parts(135_920_000, 0) + // Minimum execution time: 128_509_000 picoseconds. + Weight::from_parts(130_762_000, 0) .saturating_add(Weight::from_parts(0, 6208)) .saturating_add(T::DbWeight::get().reads(7)) .saturating_add(T::DbWeight::get().writes(7)) @@ -475,8 +479,8 @@ impl pallet_assets::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `518` // Estimated: `3675` - // Minimum execution time: 59_008_000 picoseconds. - Weight::from_parts(62_566_000, 0) + // Minimum execution time: 56_523_000 picoseconds. + Weight::from_parts(59_545_000, 0) .saturating_add(Weight::from_parts(0, 3675)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(2)) @@ -489,8 +493,8 @@ impl pallet_assets::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `518` // Estimated: `3675` - // Minimum execution time: 60_765_000 picoseconds. - Weight::from_parts(63_196_000, 0) + // Minimum execution time: 56_236_000 picoseconds. + Weight::from_parts(57_936_000, 0) .saturating_add(Weight::from_parts(0, 3675)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(2)) @@ -501,8 +505,8 @@ impl pallet_assets::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `314` // Estimated: `3675` - // Minimum execution time: 20_121_000 picoseconds. - Weight::from_parts(20_817_000, 0) + // Minimum execution time: 16_486_000 picoseconds. + Weight::from_parts(18_014_000, 0) .saturating_add(Weight::from_parts(0, 3675)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) @@ -517,8 +521,8 @@ impl pallet_assets::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `1621` // Estimated: `3675` - // Minimum execution time: 68_161_000 picoseconds. - Weight::from_parts(70_497_000, 0) + // Minimum execution time: 63_069_000 picoseconds. + Weight::from_parts(64_933_000, 0) .saturating_add(Weight::from_parts(0, 3675)) .saturating_add(T::DbWeight::get().reads(3)) .saturating_add(T::DbWeight::get().writes(3)) @@ -531,8 +535,8 @@ impl pallet_assets::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `314` // Estimated: `3675` - // Minimum execution time: 56_063_000 picoseconds. - Weight::from_parts(59_147_000, 0) + // Minimum execution time: 46_938_000 picoseconds. + Weight::from_parts(49_543_000, 0) .saturating_add(Weight::from_parts(0, 3675)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(2)) @@ -551,8 +555,8 @@ impl pallet_assets::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `1751` // Estimated: `3675` - // Minimum execution time: 79_643_000 picoseconds. - Weight::from_parts(81_502_000, 0) + // Minimum execution time: 72_211_000 picoseconds. + Weight::from_parts(75_565_000, 0) .saturating_add(Weight::from_parts(0, 3675)) .saturating_add(T::DbWeight::get().reads(5)) .saturating_add(T::DbWeight::get().writes(5)) @@ -569,8 +573,8 @@ impl pallet_assets::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `477` // Estimated: `3675` - // Minimum execution time: 68_575_000 picoseconds. - Weight::from_parts(72_237_000, 0) + // Minimum execution time: 62_995_000 picoseconds. + Weight::from_parts(66_220_000, 0) .saturating_add(Weight::from_parts(0, 3675)) .saturating_add(T::DbWeight::get().reads(4)) .saturating_add(T::DbWeight::get().writes(4)) @@ -583,8 +587,8 @@ impl pallet_assets::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `422` // Estimated: `3675` - // Minimum execution time: 30_316_000 picoseconds. - Weight::from_parts(31_369_000, 0) + // Minimum execution time: 27_541_000 picoseconds. + Weight::from_parts(29_204_000, 0) .saturating_add(Weight::from_parts(0, 3675)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(1)) @@ -603,8 +607,8 @@ impl pallet_assets::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `1748` // Estimated: `6208` - // Minimum execution time: 114_181_000 picoseconds. - Weight::from_parts(116_905_000, 0) + // Minimum execution time: 107_324_000 picoseconds. + Weight::from_parts(114_404_000, 0) .saturating_add(Weight::from_parts(0, 6208)) .saturating_add(T::DbWeight::get().reads(6)) .saturating_add(T::DbWeight::get().writes(6)) @@ -615,8 +619,8 @@ impl pallet_assets::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `348` // Estimated: `3675` - // Minimum execution time: 12_302_000 picoseconds. - Weight::from_parts(13_097_000, 0) + // Minimum execution time: 8_597_000 picoseconds. + Weight::from_parts(8_810_000, 0) .saturating_add(Weight::from_parts(0, 3675)) .saturating_add(T::DbWeight::get().reads(1)) } @@ -626,8 +630,8 @@ impl pallet_assets::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `222` // Estimated: `3599` - // Minimum execution time: 10_346_000 picoseconds. - Weight::from_parts(11_276_000, 0) + // Minimum execution time: 9_847_000 picoseconds. + Weight::from_parts(10_504_000, 0) .saturating_add(Weight::from_parts(0, 3599)) .saturating_add(T::DbWeight::get().reads(1)) } @@ -637,8 +641,8 @@ impl pallet_assets::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `317` // Estimated: `3613` - // Minimum execution time: 13_889_000 picoseconds. - Weight::from_parts(14_959_000, 0) + // Minimum execution time: 13_274_000 picoseconds. + Weight::from_parts(14_222_000, 0) .saturating_add(Weight::from_parts(0, 3613)) .saturating_add(T::DbWeight::get().reads(1)) } @@ -650,31 +654,21 @@ impl pallet_assets::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `153` // Estimated: `3675` - // Minimum execution time: 11_948_000 picoseconds. - Weight::from_parts(12_815_000, 0) + // Minimum execution time: 10_322_000 picoseconds. + Weight::from_parts(10_726_000, 0) .saturating_add(Weight::from_parts(0, 3675)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) } - fn get_name() -> Weight { - // Proof Size summary in bytes: - // Measured: `344` - // Estimated: `0` - // Minimum execution time: 10_390_000 picoseconds. - Weight::from_parts(10_914_000, 0) - } - fn get_symbol() -> Weight { - // Proof Size summary in bytes: - // Measured: `344` - // Estimated: `0` - // Minimum execution time: 10_587_000 picoseconds. - Weight::from_parts(11_121_000, 0) - } - fn get_decimals() -> Weight { + /// Storage: `Assets::Metadata` (r:1 w:0) + /// Proof: `Assets::Metadata` (`max_values`: None, `max_size`: Some(140), added: 2615, mode: `MaxEncodedLen`) + fn get_metadata() -> Weight { // Proof Size summary in bytes: - // Measured: `344` - // Estimated: `0` - // Minimum execution time: 10_591_000 picoseconds. - Weight::from_parts(11_015_000, 0) + // Measured: `278` + // Estimated: `3605` + // Minimum execution time: 8_633_000 picoseconds. + Weight::from_parts(9_424_000, 0) + .saturating_add(Weight::from_parts(0, 3605)) + .saturating_add(T::DbWeight::get().reads(1)) } } diff --git a/cumulus/parachains/runtimes/assets/asset-hub-westend/src/weights/pallet_assets_pool.rs b/cumulus/parachains/runtimes/assets/asset-hub-westend/src/weights/pallet_assets_pool.rs index 13aa120c63b3f..c11d396571de5 100644 --- a/cumulus/parachains/runtimes/assets/asset-hub-westend/src/weights/pallet_assets_pool.rs +++ b/cumulus/parachains/runtimes/assets/asset-hub-westend/src/weights/pallet_assets_pool.rs @@ -16,9 +16,9 @@ //! Autogenerated weights for `pallet_assets` //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 -//! DATE: 2025-12-24, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2026-02-11, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` -//! HOSTNAME: `1ad128e84c6f`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz` +//! HOSTNAME: `0855fd8aeaa3`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz` //! WASM-EXECUTION: `Compiled`, CHAIN: `None`, DB CACHE: 1024 // Executed Command: @@ -58,8 +58,8 @@ impl pallet_assets::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `109` // Estimated: `3675` - // Minimum execution time: 19_699_000 picoseconds. - Weight::from_parts(21_939_000, 0) + // Minimum execution time: 17_464_000 picoseconds. + Weight::from_parts(18_589_000, 0) .saturating_add(Weight::from_parts(0, 3675)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(1)) @@ -72,8 +72,8 @@ impl pallet_assets::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `109` // Estimated: `3675` - // Minimum execution time: 18_840_000 picoseconds. - Weight::from_parts(19_875_000, 0) + // Minimum execution time: 15_922_000 picoseconds. + Weight::from_parts(16_973_000, 0) .saturating_add(Weight::from_parts(0, 3675)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(1)) @@ -86,8 +86,8 @@ impl pallet_assets::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `723` // Estimated: `3675` - // Minimum execution time: 31_405_000 picoseconds. - Weight::from_parts(33_397_000, 0) + // Minimum execution time: 28_885_000 picoseconds. + Weight::from_parts(30_870_000, 0) .saturating_add(Weight::from_parts(0, 3675)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(1)) @@ -107,13 +107,13 @@ impl pallet_assets::WeightInfo for WeightInfo { /// The range of component `c` is `[0, 1000]`. fn destroy_accounts(c: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `68736 + c * (424 ±0)` + // Measured: `68769 + c * (424 ±0)` // Estimated: `3675 + c * (2609 ±0)` - // Minimum execution time: 25_461_000 picoseconds. - Weight::from_parts(26_497_000, 0) + // Minimum execution time: 22_370_000 picoseconds. + Weight::from_parts(22_960_000, 0) .saturating_add(Weight::from_parts(0, 3675)) - // Standard Error: 42_329 - .saturating_add(Weight::from_parts(44_790_090, 0).saturating_mul(c.into())) + // Standard Error: 43_268 + .saturating_add(Weight::from_parts(41_472_320, 0).saturating_mul(c.into())) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().reads((4_u64).saturating_mul(c.into()))) .saturating_add(T::DbWeight::get().writes(1)) @@ -131,11 +131,11 @@ impl pallet_assets::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `518 + a * (86 ±0)` // Estimated: `3675 + a * (2623 ±0)` - // Minimum execution time: 30_257_000 picoseconds. - Weight::from_parts(31_316_000, 0) + // Minimum execution time: 25_065_000 picoseconds. + Weight::from_parts(25_411_000, 0) .saturating_add(Weight::from_parts(0, 3675)) - // Standard Error: 12_956 - .saturating_add(Weight::from_parts(9_550_623, 0).saturating_mul(a.into())) + // Standard Error: 11_191 + .saturating_add(Weight::from_parts(9_066_440, 0).saturating_mul(a.into())) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(a.into()))) .saturating_add(T::DbWeight::get().writes(1)) @@ -152,8 +152,8 @@ impl pallet_assets::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `347` // Estimated: `3675` - // Minimum execution time: 22_576_000 picoseconds. - Weight::from_parts(23_853_000, 0) + // Minimum execution time: 20_125_000 picoseconds. + Weight::from_parts(20_945_000, 0) .saturating_add(Weight::from_parts(0, 3675)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(2)) @@ -166,8 +166,8 @@ impl pallet_assets::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `347` // Estimated: `3675` - // Minimum execution time: 35_092_000 picoseconds. - Weight::from_parts(36_742_000, 0) + // Minimum execution time: 31_122_000 picoseconds. + Weight::from_parts(32_954_000, 0) .saturating_add(Weight::from_parts(0, 3675)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(2)) @@ -184,8 +184,8 @@ impl pallet_assets::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `531` // Estimated: `3675` - // Minimum execution time: 70_703_000 picoseconds. - Weight::from_parts(75_978_000, 0) + // Minimum execution time: 67_820_000 picoseconds. + Weight::from_parts(70_706_000, 0) .saturating_add(Weight::from_parts(0, 3675)) .saturating_add(T::DbWeight::get().reads(4)) .saturating_add(T::DbWeight::get().writes(4)) @@ -204,8 +204,8 @@ impl pallet_assets::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `1853` // Estimated: `6208` - // Minimum execution time: 100_956_000 picoseconds. - Weight::from_parts(103_860_000, 0) + // Minimum execution time: 94_173_000 picoseconds. + Weight::from_parts(98_157_000, 0) .saturating_add(Weight::from_parts(0, 6208)) .saturating_add(T::DbWeight::get().reads(6)) .saturating_add(T::DbWeight::get().writes(6)) @@ -222,8 +222,8 @@ impl pallet_assets::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `1853` // Estimated: `6208` - // Minimum execution time: 81_644_000 picoseconds. - Weight::from_parts(85_141_000, 0) + // Minimum execution time: 76_182_000 picoseconds. + Weight::from_parts(80_451_000, 0) .saturating_add(Weight::from_parts(0, 6208)) .saturating_add(T::DbWeight::get().reads(5)) .saturating_add(T::DbWeight::get().writes(4)) @@ -242,8 +242,8 @@ impl pallet_assets::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `1853` // Estimated: `6208` - // Minimum execution time: 101_175_000 picoseconds. - Weight::from_parts(105_271_000, 0) + // Minimum execution time: 97_966_000 picoseconds. + Weight::from_parts(117_390_000, 0) .saturating_add(Weight::from_parts(0, 6208)) .saturating_add(T::DbWeight::get().reads(6)) .saturating_add(T::DbWeight::get().writes(6)) @@ -256,8 +256,8 @@ impl pallet_assets::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `455` // Estimated: `3675` - // Minimum execution time: 29_395_000 picoseconds. - Weight::from_parts(31_485_000, 0) + // Minimum execution time: 28_148_000 picoseconds. + Weight::from_parts(29_146_000, 0) .saturating_add(Weight::from_parts(0, 3675)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(1)) @@ -270,8 +270,8 @@ impl pallet_assets::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `455` // Estimated: `3675` - // Minimum execution time: 30_401_000 picoseconds. - Weight::from_parts(32_166_000, 0) + // Minimum execution time: 27_512_000 picoseconds. + Weight::from_parts(28_756_000, 0) .saturating_add(Weight::from_parts(0, 3675)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(1)) @@ -282,8 +282,8 @@ impl pallet_assets::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `381` // Estimated: `3675` - // Minimum execution time: 23_330_000 picoseconds. - Weight::from_parts(24_227_000, 0) + // Minimum execution time: 17_635_000 picoseconds. + Weight::from_parts(18_690_000, 0) .saturating_add(Weight::from_parts(0, 3675)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) @@ -294,8 +294,8 @@ impl pallet_assets::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `381` // Estimated: `3675` - // Minimum execution time: 22_866_000 picoseconds. - Weight::from_parts(24_718_000, 0) + // Minimum execution time: 17_670_000 picoseconds. + Weight::from_parts(18_523_000, 0) .saturating_add(Weight::from_parts(0, 3675)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) @@ -308,8 +308,8 @@ impl pallet_assets::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `347` // Estimated: `3675` - // Minimum execution time: 21_161_000 picoseconds. - Weight::from_parts(22_760_000, 0) + // Minimum execution time: 18_860_000 picoseconds. + Weight::from_parts(19_794_000, 0) .saturating_add(Weight::from_parts(0, 3675)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(1)) @@ -320,8 +320,8 @@ impl pallet_assets::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `347` // Estimated: `3675` - // Minimum execution time: 19_674_000 picoseconds. - Weight::from_parts(20_500_000, 0) + // Minimum execution time: 16_372_000 picoseconds. + Weight::from_parts(17_567_000, 0) .saturating_add(Weight::from_parts(0, 3675)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) @@ -337,11 +337,11 @@ impl pallet_assets::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `347` // Estimated: `3675` - // Minimum execution time: 23_280_000 picoseconds. - Weight::from_parts(25_795_182, 0) + // Minimum execution time: 17_021_000 picoseconds. + Weight::from_parts(19_080_884, 0) .saturating_add(Weight::from_parts(0, 3675)) - // Standard Error: 13_748 - .saturating_add(Weight::from_parts(198_975, 0).saturating_mul(n.into())) + // Standard Error: 9_240 + .saturating_add(Weight::from_parts(184_743, 0).saturating_mul(n.into())) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) } @@ -355,13 +355,15 @@ impl pallet_assets::WeightInfo for WeightInfo { /// The range of component `s` is `[0, 50]`. /// The range of component `n` is `[0, 50]`. /// The range of component `s` is `[0, 50]`. - fn set_metadata(_n: u32, _s: u32, ) -> Weight { + fn set_metadata(_n: u32, s: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `347` // Estimated: `3675` - // Minimum execution time: 26_160_000 picoseconds. - Weight::from_parts(30_367_654, 0) + // Minimum execution time: 20_387_000 picoseconds. + Weight::from_parts(22_338_844, 0) .saturating_add(Weight::from_parts(0, 3675)) + // Standard Error: 1_167 + .saturating_add(Weight::from_parts(3_998, 0).saturating_mul(s.into())) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(1)) } @@ -373,8 +375,8 @@ impl pallet_assets::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `511` // Estimated: `3675` - // Minimum execution time: 27_684_000 picoseconds. - Weight::from_parts(29_279_000, 0) + // Minimum execution time: 27_024_000 picoseconds. + Weight::from_parts(28_068_000, 0) .saturating_add(Weight::from_parts(0, 3675)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(1)) @@ -389,15 +391,17 @@ impl pallet_assets::WeightInfo for WeightInfo { /// The range of component `s` is `[0, 50]`. /// The range of component `n` is `[0, 50]`. /// The range of component `s` is `[0, 50]`. - fn force_set_metadata(_n: u32, s: u32, ) -> Weight { + fn force_set_metadata(n: u32, s: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `186` // Estimated: `3675` - // Minimum execution time: 20_106_000 picoseconds. - Weight::from_parts(22_544_982, 0) + // Minimum execution time: 16_831_000 picoseconds. + Weight::from_parts(17_688_163, 0) .saturating_add(Weight::from_parts(0, 3675)) - // Standard Error: 1_608 - .saturating_add(Weight::from_parts(2_283, 0).saturating_mul(s.into())) + // Standard Error: 829 + .saturating_add(Weight::from_parts(9_938, 0).saturating_mul(n.into())) + // Standard Error: 829 + .saturating_add(Weight::from_parts(10_278, 0).saturating_mul(s.into())) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(1)) } @@ -409,8 +413,8 @@ impl pallet_assets::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `511` // Estimated: `3675` - // Minimum execution time: 27_120_000 picoseconds. - Weight::from_parts(29_650_000, 0) + // Minimum execution time: 25_335_000 picoseconds. + Weight::from_parts(26_508_000, 0) .saturating_add(Weight::from_parts(0, 3675)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(1)) @@ -421,8 +425,8 @@ impl pallet_assets::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `347` // Estimated: `3675` - // Minimum execution time: 18_984_000 picoseconds. - Weight::from_parts(20_430_000, 0) + // Minimum execution time: 15_896_000 picoseconds. + Weight::from_parts(16_626_000, 0) .saturating_add(Weight::from_parts(0, 3675)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) @@ -435,8 +439,8 @@ impl pallet_assets::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `381` // Estimated: `3675` - // Minimum execution time: 32_757_000 picoseconds. - Weight::from_parts(35_053_000, 0) + // Minimum execution time: 26_804_000 picoseconds. + Weight::from_parts(28_011_000, 0) .saturating_add(Weight::from_parts(0, 3675)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(2)) @@ -457,8 +461,8 @@ impl pallet_assets::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `1891` // Estimated: `6208` - // Minimum execution time: 119_424_000 picoseconds. - Weight::from_parts(123_694_000, 0) + // Minimum execution time: 113_097_000 picoseconds. + Weight::from_parts(117_279_000, 0) .saturating_add(Weight::from_parts(0, 6208)) .saturating_add(T::DbWeight::get().reads(7)) .saturating_add(T::DbWeight::get().writes(7)) @@ -471,8 +475,8 @@ impl pallet_assets::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `551` // Estimated: `3675` - // Minimum execution time: 37_592_000 picoseconds. - Weight::from_parts(40_120_000, 0) + // Minimum execution time: 34_523_000 picoseconds. + Weight::from_parts(36_615_000, 0) .saturating_add(Weight::from_parts(0, 3675)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(2)) @@ -485,8 +489,8 @@ impl pallet_assets::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `551` // Estimated: `3675` - // Minimum execution time: 37_693_000 picoseconds. - Weight::from_parts(39_844_000, 0) + // Minimum execution time: 35_296_000 picoseconds. + Weight::from_parts(36_560_000, 0) .saturating_add(Weight::from_parts(0, 3675)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(2)) @@ -497,8 +501,8 @@ impl pallet_assets::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `347` // Estimated: `3675` - // Minimum execution time: 20_555_000 picoseconds. - Weight::from_parts(21_793_000, 0) + // Minimum execution time: 17_645_000 picoseconds. + Weight::from_parts(18_262_000, 0) .saturating_add(Weight::from_parts(0, 3675)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) @@ -511,8 +515,8 @@ impl pallet_assets::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `347` // Estimated: `3675` - // Minimum execution time: 28_320_000 picoseconds. - Weight::from_parts(29_814_000, 0) + // Minimum execution time: 24_255_000 picoseconds. + Weight::from_parts(25_893_000, 0) .saturating_add(Weight::from_parts(0, 3675)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(2)) @@ -525,8 +529,8 @@ impl pallet_assets::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `347` // Estimated: `3675` - // Minimum execution time: 32_047_000 picoseconds. - Weight::from_parts(33_548_000, 0) + // Minimum execution time: 25_222_000 picoseconds. + Weight::from_parts(26_047_000, 0) .saturating_add(Weight::from_parts(0, 3675)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(2)) @@ -543,8 +547,8 @@ impl pallet_assets::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `549` // Estimated: `3675` - // Minimum execution time: 47_443_000 picoseconds. - Weight::from_parts(49_335_000, 0) + // Minimum execution time: 44_311_000 picoseconds. + Weight::from_parts(46_063_000, 0) .saturating_add(Weight::from_parts(0, 3675)) .saturating_add(T::DbWeight::get().reads(4)) .saturating_add(T::DbWeight::get().writes(4)) @@ -561,8 +565,8 @@ impl pallet_assets::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `582` // Estimated: `3675` - // Minimum execution time: 48_332_000 picoseconds. - Weight::from_parts(49_995_000, 0) + // Minimum execution time: 45_759_000 picoseconds. + Weight::from_parts(47_530_000, 0) .saturating_add(Weight::from_parts(0, 3675)) .saturating_add(T::DbWeight::get().reads(4)) .saturating_add(T::DbWeight::get().writes(4)) @@ -575,8 +579,8 @@ impl pallet_assets::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `455` // Estimated: `3675` - // Minimum execution time: 30_107_000 picoseconds. - Weight::from_parts(32_175_000, 0) + // Minimum execution time: 27_572_000 picoseconds. + Weight::from_parts(29_544_000, 0) .saturating_add(Weight::from_parts(0, 3675)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(1)) @@ -595,8 +599,8 @@ impl pallet_assets::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `1853` // Estimated: `6208` - // Minimum execution time: 122_359_000 picoseconds. - Weight::from_parts(128_443_000, 0) + // Minimum execution time: 113_160_000 picoseconds. + Weight::from_parts(118_580_000, 0) .saturating_add(Weight::from_parts(0, 6208)) .saturating_add(T::DbWeight::get().reads(6)) .saturating_add(T::DbWeight::get().writes(6)) @@ -607,8 +611,8 @@ impl pallet_assets::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `381` // Estimated: `3675` - // Minimum execution time: 11_610_000 picoseconds. - Weight::from_parts(12_414_000, 0) + // Minimum execution time: 8_005_000 picoseconds. + Weight::from_parts(8_691_000, 0) .saturating_add(Weight::from_parts(0, 3675)) .saturating_add(T::DbWeight::get().reads(1)) } @@ -618,8 +622,8 @@ impl pallet_assets::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `255` // Estimated: `3599` - // Minimum execution time: 10_667_000 picoseconds. - Weight::from_parts(12_012_000, 0) + // Minimum execution time: 9_809_000 picoseconds. + Weight::from_parts(10_517_000, 0) .saturating_add(Weight::from_parts(0, 3599)) .saturating_add(T::DbWeight::get().reads(1)) } @@ -629,8 +633,8 @@ impl pallet_assets::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `350` // Estimated: `3613` - // Minimum execution time: 14_770_000 picoseconds. - Weight::from_parts(15_786_000, 0) + // Minimum execution time: 14_367_000 picoseconds. + Weight::from_parts(15_237_000, 0) .saturating_add(Weight::from_parts(0, 3613)) .saturating_add(T::DbWeight::get().reads(1)) } @@ -642,31 +646,21 @@ impl pallet_assets::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `186` // Estimated: `3675` - // Minimum execution time: 13_262_000 picoseconds. - Weight::from_parts(14_340_000, 0) + // Minimum execution time: 11_164_000 picoseconds. + Weight::from_parts(11_917_000, 0) .saturating_add(Weight::from_parts(0, 3675)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) } - fn get_name() -> Weight { - // Proof Size summary in bytes: - // Measured: `344` - // Estimated: `0` - // Minimum execution time: 10_390_000 picoseconds. - Weight::from_parts(10_914_000, 0) - } - fn get_symbol() -> Weight { - // Proof Size summary in bytes: - // Measured: `344` - // Estimated: `0` - // Minimum execution time: 10_587_000 picoseconds. - Weight::from_parts(11_121_000, 0) - } - fn get_decimals() -> Weight { + /// Storage: `PoolAssets::Metadata` (r:1 w:0) + /// Proof: `PoolAssets::Metadata` (`max_values`: None, `max_size`: Some(140), added: 2615, mode: `MaxEncodedLen`) + fn get_metadata() -> Weight { // Proof Size summary in bytes: - // Measured: `344` - // Estimated: `0` - // Minimum execution time: 10_591_000 picoseconds. - Weight::from_parts(11_015_000, 0) + // Measured: `311` + // Estimated: `3605` + // Minimum execution time: 8_516_000 picoseconds. + Weight::from_parts(9_173_000, 0) + .saturating_add(Weight::from_parts(0, 3605)) + .saturating_add(T::DbWeight::get().reads(1)) } } diff --git a/prdoc/pr_11037.prdoc b/prdoc/pr_11037.prdoc new file mode 100644 index 0000000000000..abb6b7cd4d8fb --- /dev/null +++ b/prdoc/pr_11037.prdoc @@ -0,0 +1,46 @@ +title: Consolidate pallet-assets metadata benchmarks into single get_metadata benchmark +doc: +- audience: Runtime Dev + description: |- + ## Summary + + Consolidates the three identical `get_name`, `get_symbol`, and `get_decimals` benchmarks into a single `get_metadata` benchmark. This addresses the follow-up from #10971 where it was noted that these benchmarks perform the same operation (`Pallet::get_metadata()`). + + ## Changes + + ### Benchmarks + - **`substrate/frame/assets/src/benchmarking.rs`** + - Replaced `get_name`, `get_symbol`, `get_decimals` with single `get_metadata` benchmark + - Updated verification to check all three metadata fields (name, symbol, decimals) + + ### Weight Functions + - **`substrate/frame/assets/src/weights.rs`** + - Replaced `get_name()`, `get_symbol()`, `get_decimals()` with single `get_metadata()` in `WeightInfo` trait + - Updated implementations for `SubstrateWeight` and `()` + + ### Precompile + - **`substrate/frame/assets/precompiles/src/lib.rs`** + - Updated `name()`, `symbol()`, and `decimals()` methods to all charge `get_metadata()` weight + + ### Cumulus Runtimes + Updated weight implementations in: + - `asset-hub-rococo`: `pallet_assets_foreign.rs`, `pallet_assets_local.rs`, `pallet_assets_pool.rs` + - `asset-hub-westend`: `pallet_assets_foreign.rs`, `pallet_assets_local.rs`, `pallet_assets_pool.rs` + + ## Rationale + + All three original benchmarks were measuring the exact same operation - a single metadata storage read. Consolidating them: + 1. Reduces code duplication + 2. Simplifies the `WeightInfo` trait + 3. Accurately reflects that `name()`, `symbol()`, and `decimals()` have identical costs + + Closes follow-up from https://github.com/paritytech/polkadot-sdk/pull/10971#discussion_r2782977769 +crates: +- name: asset-hub-rococo-runtime + bump: patch +- name: asset-hub-westend-runtime + bump: patch +- name: pallet-assets-precompiles + bump: patch +- name: pallet-assets + bump: patch diff --git a/substrate/frame/assets/precompiles/src/lib.rs b/substrate/frame/assets/precompiles/src/lib.rs index 10f7cf7fae315..ecb3c4efea6fe 100644 --- a/substrate/frame/assets/precompiles/src/lib.rs +++ b/substrate/frame/assets/precompiles/src/lib.rs @@ -333,7 +333,7 @@ where asset_id: >::AssetId, env: &mut impl Ext, ) -> Result, Error> { - env.charge(>::WeightInfo::get_name())?; + env.charge(>::WeightInfo::get_metadata())?; let metadata = pallet_assets::Pallet::::get_metadata(asset_id) .ok_or(Error::Revert(Revert { reason: "Metadata not found".into() }))?; @@ -349,7 +349,7 @@ where asset_id: >::AssetId, env: &mut impl Ext, ) -> Result, Error> { - env.charge(>::WeightInfo::get_symbol())?; + env.charge(>::WeightInfo::get_metadata())?; let metadata = pallet_assets::Pallet::::get_metadata(asset_id) .ok_or(Error::Revert(Revert { reason: "Metadata not found".into() }))?; @@ -365,7 +365,7 @@ where asset_id: >::AssetId, env: &mut impl Ext, ) -> Result, Error> { - env.charge(>::WeightInfo::get_decimals())?; + env.charge(>::WeightInfo::get_metadata())?; let metadata = pallet_assets::Pallet::::get_metadata(asset_id) .ok_or(Error::Revert(Revert { reason: "Metadata not found".into() }))?; diff --git a/substrate/frame/assets/src/benchmarking.rs b/substrate/frame/assets/src/benchmarking.rs index 054f4696eb1d6..f09cf0dac004d 100644 --- a/substrate/frame/assets/src/benchmarking.rs +++ b/substrate/frame/assets/src/benchmarking.rs @@ -641,49 +641,22 @@ benchmarks_instance_pallet! { assert_eq!(Reserves::::get(id)[0], reserve); } - get_name { + get_metadata { let (asset_id, caller, _) = create_default_asset::(true); T::Currency::make_free_balance_be(&caller, DepositBalanceOf::::max_value()); let name_bytes = vec![0u8; T::StringLimit::get() as usize]; let symbol_bytes = vec![0u8; T::StringLimit::get() as usize]; let origin = SystemOrigin::Signed(caller).into(); - Assets::::set_metadata(origin, asset_id.clone(), name_bytes.clone(), symbol_bytes, 12)?; + Assets::::set_metadata(origin, asset_id.clone(), name_bytes.clone(), symbol_bytes.clone(), 12)?; }: { let _ = Pallet::::get_metadata(asset_id.clone().into()); } verify { let metadata = Pallet::::get_metadata(asset_id.into()); assert!(metadata.is_some()); - assert_eq!(metadata.unwrap().name.to_vec(), name_bytes); - } - - get_symbol { - let (asset_id, caller, _) = create_default_asset::(true); - T::Currency::make_free_balance_be(&caller, DepositBalanceOf::::max_value()); - let name_bytes = vec![0u8; T::StringLimit::get() as usize]; - let symbol_bytes = vec![0u8; T::StringLimit::get() as usize]; - let origin = SystemOrigin::Signed(caller).into(); - Assets::::set_metadata(origin, asset_id.clone(), name_bytes, symbol_bytes.clone(), 12)?; - }: { - let _ = Pallet::::get_metadata(asset_id.clone().into()); - } verify { - let metadata = Pallet::::get_metadata(asset_id.into()); - assert!(metadata.is_some()); - assert_eq!(metadata.unwrap().symbol.to_vec(), symbol_bytes); - } - - get_decimals { - let (asset_id, caller, _) = create_default_asset::(true); - T::Currency::make_free_balance_be(&caller, DepositBalanceOf::::max_value()); - let name_bytes = vec![0u8; T::StringLimit::get() as usize]; - let symbol_bytes = vec![0u8; T::StringLimit::get() as usize]; - let origin = SystemOrigin::Signed(caller).into(); - Assets::::set_metadata(origin, asset_id.clone(), name_bytes, symbol_bytes, 12)?; - }: { - let _ = Pallet::::get_metadata(asset_id.clone().into()); - } verify { - let metadata = Pallet::::get_metadata(asset_id.into()); - assert!(metadata.is_some()); - assert_eq!(metadata.unwrap().decimals, 12); + let metadata = metadata.unwrap(); + assert_eq!(metadata.name.to_vec(), name_bytes); + assert_eq!(metadata.symbol.to_vec(), symbol_bytes); + assert_eq!(metadata.decimals, 12); } impl_benchmark_test_suite!(Assets, crate::mock::new_test_ext(), crate::mock::Test) diff --git a/substrate/frame/assets/src/weights.rs b/substrate/frame/assets/src/weights.rs index 43307873a2bfe..f69645d3495ce 100644 --- a/substrate/frame/assets/src/weights.rs +++ b/substrate/frame/assets/src/weights.rs @@ -35,9 +35,9 @@ //! Autogenerated weights for `pallet_assets` //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 -//! DATE: 2026-02-03, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2026-02-10, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` -//! HOSTNAME: `b21f801dcd0f`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz` +//! HOSTNAME: `675bd5accea3`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz` //! WASM-EXECUTION: `Compiled`, CHAIN: `None`, DB CACHE: `1024` // Executed Command: @@ -109,632 +109,1078 @@ pub trait WeightInfo { fn balance() -> Weight; fn allowance() -> Weight; fn migration_v2_foreign_asset_set_reserve_weight() -> Weight; - fn get_name() -> Weight; - fn get_symbol() -> Weight; - fn get_decimals() -> Weight; + fn get_metadata() -> Weight; } /// Weights for `pallet_assets` using the Substrate node and recommended hardware. pub struct SubstrateWeight(PhantomData); impl WeightInfo for SubstrateWeight { + /// Storage: `Assets::Asset` (r:1 w:1) + /// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`) + /// Storage: `Assets::NextAssetId` (r:1 w:0) + /// Proof: `Assets::NextAssetId` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) + /// Storage: `System::Account` (r:1 w:1) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) fn create() -> Weight { // Proof Size summary in bytes: // Measured: `359` - // Estimated: `0` - // Minimum execution time: 37_906_000 picoseconds. - Weight::from_parts(39_021_000, 0) - } + // Estimated: `3675` + // Minimum execution time: 37_320_000 picoseconds. + Weight::from_parts(38_406_000, 3675) + .saturating_add(T::DbWeight::get().reads(3_u64)) + .saturating_add(T::DbWeight::get().writes(2_u64)) + } + /// Storage: `Assets::Asset` (r:1 w:1) + /// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`) + /// Storage: `Assets::NextAssetId` (r:1 w:0) + /// Proof: `Assets::NextAssetId` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) fn force_create() -> Weight { // Proof Size summary in bytes: // Measured: `219` - // Estimated: `0` - // Minimum execution time: 15_275_000 picoseconds. - Weight::from_parts(16_190_000, 0) - } + // Estimated: `3675` + // Minimum execution time: 15_517_000 picoseconds. + Weight::from_parts(16_256_000, 3675) + .saturating_add(T::DbWeight::get().reads(2_u64)) + .saturating_add(T::DbWeight::get().writes(1_u64)) + } + /// Storage: `Assets::Asset` (r:1 w:1) + /// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`) fn start_destroy() -> Weight { // Proof Size summary in bytes: // Measured: `451` - // Estimated: `0` - // Minimum execution time: 18_715_000 picoseconds. - Weight::from_parts(19_343_000, 0) - } + // Estimated: `3675` + // Minimum execution time: 18_207_000 picoseconds. + Weight::from_parts(19_253_000, 3675) + .saturating_add(T::DbWeight::get().reads(1_u64)) + .saturating_add(T::DbWeight::get().writes(1_u64)) + } + /// Storage: `Assets::Asset` (r:1 w:1) + /// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`) + /// Storage: `Assets::Account` (r:1001 w:1000) + /// Proof: `Assets::Account` (`max_values`: None, `max_size`: Some(134), added: 2609, mode: `MaxEncodedLen`) + /// Storage: `System::Account` (r:1000 w:1000) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) /// The range of component `c` is `[0, 1000]`. fn destroy_accounts(c: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `169 + c * (208 ±0)` - // Estimated: `0` - // Minimum execution time: 23_225_000 picoseconds. - Weight::from_parts(24_036_000, 0) - // Standard Error: 16_243 - .saturating_add(Weight::from_parts(16_075_928, 0).saturating_mul(c.into())) - } + // Estimated: `3675 + c * (2609 ±0)` + // Minimum execution time: 20_177_000 picoseconds. + Weight::from_parts(20_589_000, 3675) + // Standard Error: 25_894 + .saturating_add(Weight::from_parts(16_635_717, 0).saturating_mul(c.into())) + .saturating_add(T::DbWeight::get().reads(2_u64)) + .saturating_add(T::DbWeight::get().reads((2_u64).saturating_mul(c.into()))) + .saturating_add(T::DbWeight::get().writes(1_u64)) + .saturating_add(T::DbWeight::get().writes((2_u64).saturating_mul(c.into()))) + .saturating_add(Weight::from_parts(0, 2609).saturating_mul(c.into())) + } + /// Storage: `Assets::Asset` (r:1 w:1) + /// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`) + /// Storage: `Assets::Approvals` (r:1001 w:1000) + /// Proof: `Assets::Approvals` (`max_values`: None, `max_size`: Some(148), added: 2623, mode: `MaxEncodedLen`) /// The range of component `a` is `[0, 1000]`. fn destroy_approvals(a: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `588 + a * (86 ±0)` - // Estimated: `0` - // Minimum execution time: 24_564_000 picoseconds. - Weight::from_parts(25_003_000, 0) - // Standard Error: 19_112 - .saturating_add(Weight::from_parts(18_423_272, 0).saturating_mul(a.into())) - } + // Estimated: `3675 + a * (2623 ±0)` + // Minimum execution time: 23_968_000 picoseconds. + Weight::from_parts(25_341_000, 3675) + // Standard Error: 18_610 + .saturating_add(Weight::from_parts(18_802_362, 0).saturating_mul(a.into())) + .saturating_add(T::DbWeight::get().reads(2_u64)) + .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(a.into()))) + .saturating_add(T::DbWeight::get().writes(1_u64)) + .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(a.into()))) + .saturating_add(Weight::from_parts(0, 2623).saturating_mul(a.into())) + } + /// Storage: `Assets::Asset` (r:1 w:1) + /// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`) + /// Storage: `Assets::Metadata` (r:1 w:0) + /// Proof: `Assets::Metadata` (`max_values`: None, `max_size`: Some(140), added: 2615, mode: `MaxEncodedLen`) + /// Storage: `Assets::Reserves` (r:0 w:1) + /// Proof: `Assets::Reserves` (`max_values`: None, `max_size`: Some(21), added: 2496, mode: `MaxEncodedLen`) fn finish_destroy() -> Weight { // Proof Size summary in bytes: // Measured: `417` - // Estimated: `0` - // Minimum execution time: 20_991_000 picoseconds. - Weight::from_parts(22_192_000, 0) - } + // Estimated: `3675` + // Minimum execution time: 18_216_000 picoseconds. + Weight::from_parts(19_185_000, 3675) + .saturating_add(T::DbWeight::get().reads(2_u64)) + .saturating_add(T::DbWeight::get().writes(2_u64)) + } + /// Storage: `Assets::Asset` (r:1 w:1) + /// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`) + /// Storage: `Assets::Account` (r:1 w:1) + /// Proof: `Assets::Account` (`max_values`: None, `max_size`: Some(134), added: 2609, mode: `MaxEncodedLen`) fn mint() -> Weight { // Proof Size summary in bytes: // Measured: `417` - // Estimated: `0` - // Minimum execution time: 31_488_000 picoseconds. - Weight::from_parts(33_018_000, 0) - } + // Estimated: `3675` + // Minimum execution time: 28_835_000 picoseconds. + Weight::from_parts(30_240_000, 3675) + .saturating_add(T::DbWeight::get().reads(2_u64)) + .saturating_add(T::DbWeight::get().writes(2_u64)) + } + /// Storage: `Assets::Asset` (r:1 w:1) + /// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`) + /// Storage: `Assets::Account` (r:1 w:1) + /// Proof: `Assets::Account` (`max_values`: None, `max_size`: Some(134), added: 2609, mode: `MaxEncodedLen`) fn burn() -> Weight { // Proof Size summary in bytes: // Measured: `525` - // Estimated: `0` - // Minimum execution time: 40_473_000 picoseconds. - Weight::from_parts(42_186_000, 0) - } + // Estimated: `3675` + // Minimum execution time: 40_615_000 picoseconds. + Weight::from_parts(42_976_000, 3675) + .saturating_add(T::DbWeight::get().reads(2_u64)) + .saturating_add(T::DbWeight::get().writes(2_u64)) + } + /// Storage: `Assets::Asset` (r:1 w:1) + /// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`) + /// Storage: `Assets::Account` (r:2 w:2) + /// Proof: `Assets::Account` (`max_values`: None, `max_size`: Some(134), added: 2609, mode: `MaxEncodedLen`) + /// Storage: `System::Account` (r:1 w:1) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) fn transfer() -> Weight { // Proof Size summary in bytes: // Measured: `564` - // Estimated: `0` - // Minimum execution time: 56_280_000 picoseconds. - Weight::from_parts(58_051_000, 0) - } + // Estimated: `6208` + // Minimum execution time: 56_309_000 picoseconds. + Weight::from_parts(57_626_000, 6208) + .saturating_add(T::DbWeight::get().reads(4_u64)) + .saturating_add(T::DbWeight::get().writes(4_u64)) + } + /// Storage: `Assets::Asset` (r:1 w:1) + /// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`) + /// Storage: `Assets::Account` (r:2 w:2) + /// Proof: `Assets::Account` (`max_values`: None, `max_size`: Some(134), added: 2609, mode: `MaxEncodedLen`) + /// Storage: `System::Account` (r:1 w:1) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) fn transfer_keep_alive() -> Weight { // Proof Size summary in bytes: // Measured: `564` - // Estimated: `0` - // Minimum execution time: 51_241_000 picoseconds. - Weight::from_parts(52_867_000, 0) - } + // Estimated: `6208` + // Minimum execution time: 50_789_000 picoseconds. + Weight::from_parts(52_276_000, 6208) + .saturating_add(T::DbWeight::get().reads(4_u64)) + .saturating_add(T::DbWeight::get().writes(4_u64)) + } + /// Storage: `Assets::Asset` (r:1 w:1) + /// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`) + /// Storage: `Assets::Account` (r:2 w:2) + /// Proof: `Assets::Account` (`max_values`: None, `max_size`: Some(134), added: 2609, mode: `MaxEncodedLen`) + /// Storage: `System::Account` (r:1 w:1) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) fn force_transfer() -> Weight { // Proof Size summary in bytes: // Measured: `564` - // Estimated: `0` - // Minimum execution time: 55_379_000 picoseconds. - Weight::from_parts(57_682_000, 0) - } + // Estimated: `6208` + // Minimum execution time: 55_790_000 picoseconds. + Weight::from_parts(57_530_000, 6208) + .saturating_add(T::DbWeight::get().reads(4_u64)) + .saturating_add(T::DbWeight::get().writes(4_u64)) + } + /// Storage: `Assets::Asset` (r:1 w:0) + /// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`) + /// Storage: `Assets::Account` (r:1 w:1) + /// Proof: `Assets::Account` (`max_values`: None, `max_size`: Some(134), added: 2609, mode: `MaxEncodedLen`) fn freeze() -> Weight { // Proof Size summary in bytes: // Measured: `525` - // Estimated: `0` - // Minimum execution time: 23_803_000 picoseconds. - Weight::from_parts(24_599_000, 0) - } + // Estimated: `3675` + // Minimum execution time: 23_353_000 picoseconds. + Weight::from_parts(24_340_000, 3675) + .saturating_add(T::DbWeight::get().reads(2_u64)) + .saturating_add(T::DbWeight::get().writes(1_u64)) + } + /// Storage: `Assets::Asset` (r:1 w:0) + /// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`) + /// Storage: `Assets::Account` (r:1 w:1) + /// Proof: `Assets::Account` (`max_values`: None, `max_size`: Some(134), added: 2609, mode: `MaxEncodedLen`) fn thaw() -> Weight { // Proof Size summary in bytes: // Measured: `525` - // Estimated: `0` - // Minimum execution time: 23_390_000 picoseconds. - Weight::from_parts(24_391_000, 0) - } + // Estimated: `3675` + // Minimum execution time: 23_720_000 picoseconds. + Weight::from_parts(24_789_000, 3675) + .saturating_add(T::DbWeight::get().reads(2_u64)) + .saturating_add(T::DbWeight::get().writes(1_u64)) + } + /// Storage: `Assets::Asset` (r:1 w:1) + /// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`) fn freeze_asset() -> Weight { // Proof Size summary in bytes: // Measured: `451` - // Estimated: `0` - // Minimum execution time: 18_154_000 picoseconds. - Weight::from_parts(18_948_000, 0) - } + // Estimated: `3675` + // Minimum execution time: 18_947_000 picoseconds. + Weight::from_parts(19_718_000, 3675) + .saturating_add(T::DbWeight::get().reads(1_u64)) + .saturating_add(T::DbWeight::get().writes(1_u64)) + } + /// Storage: `Assets::Asset` (r:1 w:1) + /// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`) fn thaw_asset() -> Weight { // Proof Size summary in bytes: // Measured: `451` - // Estimated: `0` - // Minimum execution time: 18_529_000 picoseconds. - Weight::from_parts(19_122_000, 0) - } + // Estimated: `3675` + // Minimum execution time: 18_223_000 picoseconds. + Weight::from_parts(18_780_000, 3675) + .saturating_add(T::DbWeight::get().reads(1_u64)) + .saturating_add(T::DbWeight::get().writes(1_u64)) + } + /// Storage: `Assets::Asset` (r:1 w:1) + /// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`) + /// Storage: `Assets::Metadata` (r:1 w:0) + /// Proof: `Assets::Metadata` (`max_values`: None, `max_size`: Some(140), added: 2615, mode: `MaxEncodedLen`) fn transfer_ownership() -> Weight { // Proof Size summary in bytes: // Measured: `417` - // Estimated: `0` - // Minimum execution time: 19_860_000 picoseconds. - Weight::from_parts(20_868_000, 0) - } + // Estimated: `3675` + // Minimum execution time: 17_714_000 picoseconds. + Weight::from_parts(18_202_000, 3675) + .saturating_add(T::DbWeight::get().reads(2_u64)) + .saturating_add(T::DbWeight::get().writes(1_u64)) + } + /// Storage: `Assets::Asset` (r:1 w:1) + /// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`) fn set_team() -> Weight { // Proof Size summary in bytes: // Measured: `417` - // Estimated: `0` - // Minimum execution time: 17_895_000 picoseconds. - Weight::from_parts(18_788_000, 0) - } + // Estimated: `3675` + // Minimum execution time: 15_404_000 picoseconds. + Weight::from_parts(15_889_000, 3675) + .saturating_add(T::DbWeight::get().reads(1_u64)) + .saturating_add(T::DbWeight::get().writes(1_u64)) + } + /// Storage: `Assets::Asset` (r:1 w:0) + /// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`) + /// Storage: `Assets::Reserves` (r:0 w:1) + /// Proof: `Assets::Reserves` (`max_values`: None, `max_size`: Some(21), added: 2496, mode: `MaxEncodedLen`) /// The range of component `n` is `[0, 5]`. fn set_reserves(n: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `417` - // Estimated: `0` - // Minimum execution time: 19_036_000 picoseconds. - Weight::from_parts(20_416_156, 0) - // Standard Error: 8_444 - .saturating_add(Weight::from_parts(86_263, 0).saturating_mul(n.into())) - } + // Estimated: `3675` + // Minimum execution time: 18_944_000 picoseconds. + Weight::from_parts(20_430_419, 3675) + // Standard Error: 8_201 + .saturating_add(Weight::from_parts(108_305, 0).saturating_mul(n.into())) + .saturating_add(T::DbWeight::get().reads(1_u64)) + .saturating_add(T::DbWeight::get().writes(1_u64)) + } + /// Storage: `Assets::Asset` (r:1 w:0) + /// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`) + /// Storage: `Assets::Metadata` (r:1 w:1) + /// Proof: `Assets::Metadata` (`max_values`: None, `max_size`: Some(140), added: 2615, mode: `MaxEncodedLen`) /// The range of component `n` is `[0, 50]`. /// The range of component `s` is `[0, 50]`. fn set_metadata(n: u32, s: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `417` - // Estimated: `0` - // Minimum execution time: 37_385_000 picoseconds. - Weight::from_parts(39_399_235, 0) - // Standard Error: 2_083 - .saturating_add(Weight::from_parts(6_204, 0).saturating_mul(n.into())) - // Standard Error: 2_083 - .saturating_add(Weight::from_parts(4_848, 0).saturating_mul(s.into())) - } + // Estimated: `3675` + // Minimum execution time: 36_344_000 picoseconds. + Weight::from_parts(38_278_706, 3675) + // Standard Error: 1_250 + .saturating_add(Weight::from_parts(6_447, 0).saturating_mul(n.into())) + // Standard Error: 1_250 + .saturating_add(Weight::from_parts(6_609, 0).saturating_mul(s.into())) + .saturating_add(T::DbWeight::get().reads(2_u64)) + .saturating_add(T::DbWeight::get().writes(1_u64)) + } + /// Storage: `Assets::Asset` (r:1 w:0) + /// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`) + /// Storage: `Assets::Metadata` (r:1 w:1) + /// Proof: `Assets::Metadata` (`max_values`: None, `max_size`: Some(140), added: 2615, mode: `MaxEncodedLen`) fn clear_metadata() -> Weight { // Proof Size summary in bytes: // Measured: `581` - // Estimated: `0` - // Minimum execution time: 37_347_000 picoseconds. - Weight::from_parts(38_771_000, 0) - } + // Estimated: `3675` + // Minimum execution time: 36_302_000 picoseconds. + Weight::from_parts(38_178_000, 3675) + .saturating_add(T::DbWeight::get().reads(2_u64)) + .saturating_add(T::DbWeight::get().writes(1_u64)) + } + /// Storage: `Assets::Asset` (r:1 w:0) + /// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`) + /// Storage: `Assets::Metadata` (r:1 w:1) + /// Proof: `Assets::Metadata` (`max_values`: None, `max_size`: Some(140), added: 2615, mode: `MaxEncodedLen`) /// The range of component `n` is `[0, 50]`. /// The range of component `s` is `[0, 50]`. fn force_set_metadata(n: u32, s: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `256` - // Estimated: `0` - // Minimum execution time: 15_827_000 picoseconds. - Weight::from_parts(17_156_574, 0) - // Standard Error: 698 - .saturating_add(Weight::from_parts(72, 0).saturating_mul(n.into())) - // Standard Error: 698 - .saturating_add(Weight::from_parts(1_802, 0).saturating_mul(s.into())) - } + // Estimated: `3675` + // Minimum execution time: 15_926_000 picoseconds. + Weight::from_parts(17_089_161, 3675) + // Standard Error: 670 + .saturating_add(Weight::from_parts(96, 0).saturating_mul(n.into())) + // Standard Error: 670 + .saturating_add(Weight::from_parts(2_057, 0).saturating_mul(s.into())) + .saturating_add(T::DbWeight::get().reads(2_u64)) + .saturating_add(T::DbWeight::get().writes(1_u64)) + } + /// Storage: `Assets::Asset` (r:1 w:0) + /// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`) + /// Storage: `Assets::Metadata` (r:1 w:1) + /// Proof: `Assets::Metadata` (`max_values`: None, `max_size`: Some(140), added: 2615, mode: `MaxEncodedLen`) fn force_clear_metadata() -> Weight { // Proof Size summary in bytes: // Measured: `581` - // Estimated: `0` - // Minimum execution time: 36_270_000 picoseconds. - Weight::from_parts(37_551_000, 0) - } + // Estimated: `3675` + // Minimum execution time: 35_344_000 picoseconds. + Weight::from_parts(37_253_000, 3675) + .saturating_add(T::DbWeight::get().reads(2_u64)) + .saturating_add(T::DbWeight::get().writes(1_u64)) + } + /// Storage: `Assets::Asset` (r:1 w:1) + /// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`) fn force_asset_status() -> Weight { // Proof Size summary in bytes: // Measured: `417` - // Estimated: `0` - // Minimum execution time: 17_570_000 picoseconds. - Weight::from_parts(18_289_000, 0) - } + // Estimated: `3675` + // Minimum execution time: 14_637_000 picoseconds. + Weight::from_parts(15_850_000, 3675) + .saturating_add(T::DbWeight::get().reads(1_u64)) + .saturating_add(T::DbWeight::get().writes(1_u64)) + } + /// Storage: `Assets::Asset` (r:1 w:1) + /// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`) + /// Storage: `Assets::Approvals` (r:1 w:1) + /// Proof: `Assets::Approvals` (`max_values`: None, `max_size`: Some(148), added: 2623, mode: `MaxEncodedLen`) fn approve_transfer() -> Weight { // Proof Size summary in bytes: // Measured: `451` - // Estimated: `0` - // Minimum execution time: 42_667_000 picoseconds. - Weight::from_parts(44_135_000, 0) - } + // Estimated: `3675` + // Minimum execution time: 42_634_000 picoseconds. + Weight::from_parts(43_860_000, 3675) + .saturating_add(T::DbWeight::get().reads(2_u64)) + .saturating_add(T::DbWeight::get().writes(2_u64)) + } + /// Storage: `Assets::Asset` (r:1 w:1) + /// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`) + /// Storage: `Assets::Approvals` (r:1 w:1) + /// Proof: `Assets::Approvals` (`max_values`: None, `max_size`: Some(148), added: 2623, mode: `MaxEncodedLen`) + /// Storage: `Assets::Account` (r:2 w:2) + /// Proof: `Assets::Account` (`max_values`: None, `max_size`: Some(134), added: 2609, mode: `MaxEncodedLen`) + /// Storage: `System::Account` (r:1 w:1) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) fn transfer_approved() -> Weight { // Proof Size summary in bytes: // Measured: `734` - // Estimated: `0` - // Minimum execution time: 80_961_000 picoseconds. - Weight::from_parts(83_202_000, 0) - } + // Estimated: `6208` + // Minimum execution time: 80_342_000 picoseconds. + Weight::from_parts(82_913_000, 6208) + .saturating_add(T::DbWeight::get().reads(5_u64)) + .saturating_add(T::DbWeight::get().writes(5_u64)) + } + /// Storage: `Assets::Asset` (r:1 w:1) + /// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`) + /// Storage: `Assets::Approvals` (r:1 w:1) + /// Proof: `Assets::Approvals` (`max_values`: None, `max_size`: Some(148), added: 2623, mode: `MaxEncodedLen`) fn cancel_approval() -> Weight { // Proof Size summary in bytes: // Measured: `621` - // Estimated: `0` - // Minimum execution time: 44_631_000 picoseconds. - Weight::from_parts(45_692_000, 0) - } + // Estimated: `3675` + // Minimum execution time: 43_370_000 picoseconds. + Weight::from_parts(44_987_000, 3675) + .saturating_add(T::DbWeight::get().reads(2_u64)) + .saturating_add(T::DbWeight::get().writes(2_u64)) + } + /// Storage: `Assets::Asset` (r:1 w:1) + /// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`) + /// Storage: `Assets::Approvals` (r:1 w:1) + /// Proof: `Assets::Approvals` (`max_values`: None, `max_size`: Some(148), added: 2623, mode: `MaxEncodedLen`) fn force_cancel_approval() -> Weight { // Proof Size summary in bytes: // Measured: `621` - // Estimated: `0` - // Minimum execution time: 43_978_000 picoseconds. - Weight::from_parts(45_190_000, 0) - } + // Estimated: `3675` + // Minimum execution time: 43_084_000 picoseconds. + Weight::from_parts(44_770_000, 3675) + .saturating_add(T::DbWeight::get().reads(2_u64)) + .saturating_add(T::DbWeight::get().writes(2_u64)) + } + /// Storage: `Assets::Asset` (r:1 w:1) + /// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`) fn set_min_balance() -> Weight { // Proof Size summary in bytes: // Measured: `417` - // Estimated: `0` - // Minimum execution time: 18_750_000 picoseconds. - Weight::from_parts(19_531_000, 0) - } + // Estimated: `3675` + // Minimum execution time: 16_201_000 picoseconds. + Weight::from_parts(16_747_000, 3675) + .saturating_add(T::DbWeight::get().reads(1_u64)) + .saturating_add(T::DbWeight::get().writes(1_u64)) + } + /// Storage: `Assets::Account` (r:1 w:1) + /// Proof: `Assets::Account` (`max_values`: None, `max_size`: Some(134), added: 2609, mode: `MaxEncodedLen`) + /// Storage: `Assets::Asset` (r:1 w:1) + /// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`) + /// Storage: `System::Account` (r:1 w:1) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) fn touch() -> Weight { // Proof Size summary in bytes: // Measured: `519` - // Estimated: `0` - // Minimum execution time: 44_307_000 picoseconds. - Weight::from_parts(45_710_000, 0) - } + // Estimated: `3675` + // Minimum execution time: 43_087_000 picoseconds. + Weight::from_parts(44_948_000, 3675) + .saturating_add(T::DbWeight::get().reads(3_u64)) + .saturating_add(T::DbWeight::get().writes(3_u64)) + } + /// Storage: `Assets::Account` (r:1 w:1) + /// Proof: `Assets::Account` (`max_values`: None, `max_size`: Some(134), added: 2609, mode: `MaxEncodedLen`) + /// Storage: `Assets::Asset` (r:1 w:1) + /// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`) fn touch_other() -> Weight { // Proof Size summary in bytes: // Measured: `417` - // Estimated: `0` - // Minimum execution time: 41_800_000 picoseconds. - Weight::from_parts(43_342_000, 0) - } + // Estimated: `3675` + // Minimum execution time: 41_273_000 picoseconds. + Weight::from_parts(42_452_000, 3675) + .saturating_add(T::DbWeight::get().reads(2_u64)) + .saturating_add(T::DbWeight::get().writes(2_u64)) + } + /// Storage: `Assets::Account` (r:1 w:1) + /// Proof: `Assets::Account` (`max_values`: None, `max_size`: Some(134), added: 2609, mode: `MaxEncodedLen`) + /// Storage: `Assets::Asset` (r:1 w:1) + /// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`) + /// Storage: `System::Account` (r:1 w:1) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) fn refund() -> Weight { // Proof Size summary in bytes: // Measured: `645` - // Estimated: `0` - // Minimum execution time: 42_075_000 picoseconds. - Weight::from_parts(43_474_000, 0) - } + // Estimated: `3675` + // Minimum execution time: 40_785_000 picoseconds. + Weight::from_parts(42_985_000, 3675) + .saturating_add(T::DbWeight::get().reads(3_u64)) + .saturating_add(T::DbWeight::get().writes(3_u64)) + } + /// Storage: `Assets::Account` (r:1 w:1) + /// Proof: `Assets::Account` (`max_values`: None, `max_size`: Some(134), added: 2609, mode: `MaxEncodedLen`) + /// Storage: `Assets::Asset` (r:1 w:1) + /// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`) fn refund_other() -> Weight { // Proof Size summary in bytes: // Measured: `576` - // Estimated: `0` - // Minimum execution time: 39_321_000 picoseconds. - Weight::from_parts(41_210_000, 0) - } + // Estimated: `3675` + // Minimum execution time: 39_042_000 picoseconds. + Weight::from_parts(39_947_000, 3675) + .saturating_add(T::DbWeight::get().reads(2_u64)) + .saturating_add(T::DbWeight::get().writes(2_u64)) + } + /// Storage: `Assets::Asset` (r:1 w:0) + /// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`) + /// Storage: `Assets::Account` (r:1 w:1) + /// Proof: `Assets::Account` (`max_values`: None, `max_size`: Some(134), added: 2609, mode: `MaxEncodedLen`) fn block() -> Weight { // Proof Size summary in bytes: // Measured: `525` - // Estimated: `0` - // Minimum execution time: 23_485_000 picoseconds. - Weight::from_parts(24_387_000, 0) - } + // Estimated: `3675` + // Minimum execution time: 23_502_000 picoseconds. + Weight::from_parts(24_752_000, 3675) + .saturating_add(T::DbWeight::get().reads(2_u64)) + .saturating_add(T::DbWeight::get().writes(1_u64)) + } + /// Storage: `Assets::Asset` (r:1 w:1) + /// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`) + /// Storage: `Assets::Account` (r:2 w:2) + /// Proof: `Assets::Account` (`max_values`: None, `max_size`: Some(134), added: 2609, mode: `MaxEncodedLen`) + /// Storage: `System::Account` (r:1 w:1) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) fn transfer_all() -> Weight { // Proof Size summary in bytes: // Measured: `564` - // Estimated: `0` - // Minimum execution time: 67_535_000 picoseconds. - Weight::from_parts(69_823_000, 0) - } + // Estimated: `6208` + // Minimum execution time: 67_955_000 picoseconds. + Weight::from_parts(69_022_000, 6208) + .saturating_add(T::DbWeight::get().reads(4_u64)) + .saturating_add(T::DbWeight::get().writes(4_u64)) + } + /// Storage: `Assets::Asset` (r:1 w:0) + /// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`) fn total_issuance() -> Weight { // Proof Size summary in bytes: // Measured: `451` - // Estimated: `0` - // Minimum execution time: 10_690_000 picoseconds. - Weight::from_parts(11_461_000, 0) + // Estimated: `3675` + // Minimum execution time: 10_794_000 picoseconds. + Weight::from_parts(11_213_000, 3675) + .saturating_add(T::DbWeight::get().reads(1_u64)) } + /// Storage: `Assets::Account` (r:1 w:0) + /// Proof: `Assets::Account` (`max_values`: None, `max_size`: Some(134), added: 2609, mode: `MaxEncodedLen`) fn balance() -> Weight { // Proof Size summary in bytes: // Measured: `288` - // Estimated: `0` - // Minimum execution time: 11_164_000 picoseconds. - Weight::from_parts(11_464_000, 0) + // Estimated: `3599` + // Minimum execution time: 7_933_000 picoseconds. + Weight::from_parts(8_327_000, 3599) + .saturating_add(T::DbWeight::get().reads(1_u64)) } + /// Storage: `Assets::Approvals` (r:1 w:0) + /// Proof: `Assets::Approvals` (`max_values`: None, `max_size`: Some(148), added: 2623, mode: `MaxEncodedLen`) fn allowance() -> Weight { // Proof Size summary in bytes: // Measured: `383` - // Estimated: `0` - // Minimum execution time: 14_330_000 picoseconds. - Weight::from_parts(14_861_000, 0) - } + // Estimated: `3613` + // Minimum execution time: 11_212_000 picoseconds. + Weight::from_parts(11_455_000, 3613) + .saturating_add(T::DbWeight::get().reads(1_u64)) + } + /// Storage: `Assets::Asset` (r:1 w:0) + /// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`) + /// Storage: `Assets::Reserves` (r:0 w:1) + /// Proof: `Assets::Reserves` (`max_values`: None, `max_size`: Some(21), added: 2496, mode: `MaxEncodedLen`) fn migration_v2_foreign_asset_set_reserve_weight() -> Weight { // Proof Size summary in bytes: // Measured: `256` - // Estimated: `0` - // Minimum execution time: 9_596_000 picoseconds. - Weight::from_parts(10_031_000, 0) - } - fn get_name() -> Weight { - // Proof Size summary in bytes: - // Measured: `344` - // Estimated: `0` - // Minimum execution time: 10_390_000 picoseconds. - Weight::from_parts(10_914_000, 0) - } - fn get_symbol() -> Weight { - // Proof Size summary in bytes: - // Measured: `344` - // Estimated: `0` - // Minimum execution time: 10_587_000 picoseconds. - Weight::from_parts(11_121_000, 0) + // Estimated: `3675` + // Minimum execution time: 9_427_000 picoseconds. + Weight::from_parts(10_145_000, 3675) + .saturating_add(T::DbWeight::get().reads(1_u64)) + .saturating_add(T::DbWeight::get().writes(1_u64)) } - fn get_decimals() -> Weight { + /// Storage: `Assets::Metadata` (r:1 w:0) + /// Proof: `Assets::Metadata` (`max_values`: None, `max_size`: Some(140), added: 2615, mode: `MaxEncodedLen`) + fn get_metadata() -> Weight { // Proof Size summary in bytes: // Measured: `344` - // Estimated: `0` - // Minimum execution time: 10_591_000 picoseconds. - Weight::from_parts(11_015_000, 0) + // Estimated: `3605` + // Minimum execution time: 10_101_000 picoseconds. + Weight::from_parts(10_699_000, 3605) + .saturating_add(T::DbWeight::get().reads(1_u64)) } } // For backwards compatibility and tests. impl WeightInfo for () { + /// Storage: `Assets::Asset` (r:1 w:1) + /// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`) + /// Storage: `Assets::NextAssetId` (r:1 w:0) + /// Proof: `Assets::NextAssetId` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) + /// Storage: `System::Account` (r:1 w:1) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) fn create() -> Weight { // Proof Size summary in bytes: // Measured: `359` - // Estimated: `0` - // Minimum execution time: 37_906_000 picoseconds. - Weight::from_parts(39_021_000, 0) - } + // Estimated: `3675` + // Minimum execution time: 37_320_000 picoseconds. + Weight::from_parts(38_406_000, 3675) + .saturating_add(RocksDbWeight::get().reads(3_u64)) + .saturating_add(RocksDbWeight::get().writes(2_u64)) + } + /// Storage: `Assets::Asset` (r:1 w:1) + /// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`) + /// Storage: `Assets::NextAssetId` (r:1 w:0) + /// Proof: `Assets::NextAssetId` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) fn force_create() -> Weight { // Proof Size summary in bytes: // Measured: `219` - // Estimated: `0` - // Minimum execution time: 15_275_000 picoseconds. - Weight::from_parts(16_190_000, 0) - } + // Estimated: `3675` + // Minimum execution time: 15_517_000 picoseconds. + Weight::from_parts(16_256_000, 3675) + .saturating_add(RocksDbWeight::get().reads(2_u64)) + .saturating_add(RocksDbWeight::get().writes(1_u64)) + } + /// Storage: `Assets::Asset` (r:1 w:1) + /// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`) fn start_destroy() -> Weight { // Proof Size summary in bytes: // Measured: `451` - // Estimated: `0` - // Minimum execution time: 18_715_000 picoseconds. - Weight::from_parts(19_343_000, 0) - } + // Estimated: `3675` + // Minimum execution time: 18_207_000 picoseconds. + Weight::from_parts(19_253_000, 3675) + .saturating_add(RocksDbWeight::get().reads(1_u64)) + .saturating_add(RocksDbWeight::get().writes(1_u64)) + } + /// Storage: `Assets::Asset` (r:1 w:1) + /// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`) + /// Storage: `Assets::Account` (r:1001 w:1000) + /// Proof: `Assets::Account` (`max_values`: None, `max_size`: Some(134), added: 2609, mode: `MaxEncodedLen`) + /// Storage: `System::Account` (r:1000 w:1000) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) /// The range of component `c` is `[0, 1000]`. fn destroy_accounts(c: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `169 + c * (208 ±0)` - // Estimated: `0` - // Minimum execution time: 23_225_000 picoseconds. - Weight::from_parts(24_036_000, 0) - // Standard Error: 16_243 - .saturating_add(Weight::from_parts(16_075_928, 0).saturating_mul(c.into())) - } + // Estimated: `3675 + c * (2609 ±0)` + // Minimum execution time: 20_177_000 picoseconds. + Weight::from_parts(20_589_000, 3675) + // Standard Error: 25_894 + .saturating_add(Weight::from_parts(16_635_717, 0).saturating_mul(c.into())) + .saturating_add(RocksDbWeight::get().reads(2_u64)) + .saturating_add(RocksDbWeight::get().reads((2_u64).saturating_mul(c.into()))) + .saturating_add(RocksDbWeight::get().writes(1_u64)) + .saturating_add(RocksDbWeight::get().writes((2_u64).saturating_mul(c.into()))) + .saturating_add(Weight::from_parts(0, 2609).saturating_mul(c.into())) + } + /// Storage: `Assets::Asset` (r:1 w:1) + /// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`) + /// Storage: `Assets::Approvals` (r:1001 w:1000) + /// Proof: `Assets::Approvals` (`max_values`: None, `max_size`: Some(148), added: 2623, mode: `MaxEncodedLen`) /// The range of component `a` is `[0, 1000]`. fn destroy_approvals(a: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `588 + a * (86 ±0)` - // Estimated: `0` - // Minimum execution time: 24_564_000 picoseconds. - Weight::from_parts(25_003_000, 0) - // Standard Error: 19_112 - .saturating_add(Weight::from_parts(18_423_272, 0).saturating_mul(a.into())) - } + // Estimated: `3675 + a * (2623 ±0)` + // Minimum execution time: 23_968_000 picoseconds. + Weight::from_parts(25_341_000, 3675) + // Standard Error: 18_610 + .saturating_add(Weight::from_parts(18_802_362, 0).saturating_mul(a.into())) + .saturating_add(RocksDbWeight::get().reads(2_u64)) + .saturating_add(RocksDbWeight::get().reads((1_u64).saturating_mul(a.into()))) + .saturating_add(RocksDbWeight::get().writes(1_u64)) + .saturating_add(RocksDbWeight::get().writes((1_u64).saturating_mul(a.into()))) + .saturating_add(Weight::from_parts(0, 2623).saturating_mul(a.into())) + } + /// Storage: `Assets::Asset` (r:1 w:1) + /// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`) + /// Storage: `Assets::Metadata` (r:1 w:0) + /// Proof: `Assets::Metadata` (`max_values`: None, `max_size`: Some(140), added: 2615, mode: `MaxEncodedLen`) + /// Storage: `Assets::Reserves` (r:0 w:1) + /// Proof: `Assets::Reserves` (`max_values`: None, `max_size`: Some(21), added: 2496, mode: `MaxEncodedLen`) fn finish_destroy() -> Weight { // Proof Size summary in bytes: // Measured: `417` - // Estimated: `0` - // Minimum execution time: 20_991_000 picoseconds. - Weight::from_parts(22_192_000, 0) - } + // Estimated: `3675` + // Minimum execution time: 18_216_000 picoseconds. + Weight::from_parts(19_185_000, 3675) + .saturating_add(RocksDbWeight::get().reads(2_u64)) + .saturating_add(RocksDbWeight::get().writes(2_u64)) + } + /// Storage: `Assets::Asset` (r:1 w:1) + /// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`) + /// Storage: `Assets::Account` (r:1 w:1) + /// Proof: `Assets::Account` (`max_values`: None, `max_size`: Some(134), added: 2609, mode: `MaxEncodedLen`) fn mint() -> Weight { // Proof Size summary in bytes: // Measured: `417` - // Estimated: `0` - // Minimum execution time: 31_488_000 picoseconds. - Weight::from_parts(33_018_000, 0) - } + // Estimated: `3675` + // Minimum execution time: 28_835_000 picoseconds. + Weight::from_parts(30_240_000, 3675) + .saturating_add(RocksDbWeight::get().reads(2_u64)) + .saturating_add(RocksDbWeight::get().writes(2_u64)) + } + /// Storage: `Assets::Asset` (r:1 w:1) + /// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`) + /// Storage: `Assets::Account` (r:1 w:1) + /// Proof: `Assets::Account` (`max_values`: None, `max_size`: Some(134), added: 2609, mode: `MaxEncodedLen`) fn burn() -> Weight { // Proof Size summary in bytes: // Measured: `525` - // Estimated: `0` - // Minimum execution time: 40_473_000 picoseconds. - Weight::from_parts(42_186_000, 0) - } + // Estimated: `3675` + // Minimum execution time: 40_615_000 picoseconds. + Weight::from_parts(42_976_000, 3675) + .saturating_add(RocksDbWeight::get().reads(2_u64)) + .saturating_add(RocksDbWeight::get().writes(2_u64)) + } + /// Storage: `Assets::Asset` (r:1 w:1) + /// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`) + /// Storage: `Assets::Account` (r:2 w:2) + /// Proof: `Assets::Account` (`max_values`: None, `max_size`: Some(134), added: 2609, mode: `MaxEncodedLen`) + /// Storage: `System::Account` (r:1 w:1) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) fn transfer() -> Weight { // Proof Size summary in bytes: // Measured: `564` - // Estimated: `0` - // Minimum execution time: 56_280_000 picoseconds. - Weight::from_parts(58_051_000, 0) - } + // Estimated: `6208` + // Minimum execution time: 56_309_000 picoseconds. + Weight::from_parts(57_626_000, 6208) + .saturating_add(RocksDbWeight::get().reads(4_u64)) + .saturating_add(RocksDbWeight::get().writes(4_u64)) + } + /// Storage: `Assets::Asset` (r:1 w:1) + /// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`) + /// Storage: `Assets::Account` (r:2 w:2) + /// Proof: `Assets::Account` (`max_values`: None, `max_size`: Some(134), added: 2609, mode: `MaxEncodedLen`) + /// Storage: `System::Account` (r:1 w:1) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) fn transfer_keep_alive() -> Weight { // Proof Size summary in bytes: // Measured: `564` - // Estimated: `0` - // Minimum execution time: 51_241_000 picoseconds. - Weight::from_parts(52_867_000, 0) - } + // Estimated: `6208` + // Minimum execution time: 50_789_000 picoseconds. + Weight::from_parts(52_276_000, 6208) + .saturating_add(RocksDbWeight::get().reads(4_u64)) + .saturating_add(RocksDbWeight::get().writes(4_u64)) + } + /// Storage: `Assets::Asset` (r:1 w:1) + /// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`) + /// Storage: `Assets::Account` (r:2 w:2) + /// Proof: `Assets::Account` (`max_values`: None, `max_size`: Some(134), added: 2609, mode: `MaxEncodedLen`) + /// Storage: `System::Account` (r:1 w:1) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) fn force_transfer() -> Weight { // Proof Size summary in bytes: // Measured: `564` - // Estimated: `0` - // Minimum execution time: 55_379_000 picoseconds. - Weight::from_parts(57_682_000, 0) - } + // Estimated: `6208` + // Minimum execution time: 55_790_000 picoseconds. + Weight::from_parts(57_530_000, 6208) + .saturating_add(RocksDbWeight::get().reads(4_u64)) + .saturating_add(RocksDbWeight::get().writes(4_u64)) + } + /// Storage: `Assets::Asset` (r:1 w:0) + /// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`) + /// Storage: `Assets::Account` (r:1 w:1) + /// Proof: `Assets::Account` (`max_values`: None, `max_size`: Some(134), added: 2609, mode: `MaxEncodedLen`) fn freeze() -> Weight { // Proof Size summary in bytes: // Measured: `525` - // Estimated: `0` - // Minimum execution time: 23_803_000 picoseconds. - Weight::from_parts(24_599_000, 0) - } + // Estimated: `3675` + // Minimum execution time: 23_353_000 picoseconds. + Weight::from_parts(24_340_000, 3675) + .saturating_add(RocksDbWeight::get().reads(2_u64)) + .saturating_add(RocksDbWeight::get().writes(1_u64)) + } + /// Storage: `Assets::Asset` (r:1 w:0) + /// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`) + /// Storage: `Assets::Account` (r:1 w:1) + /// Proof: `Assets::Account` (`max_values`: None, `max_size`: Some(134), added: 2609, mode: `MaxEncodedLen`) fn thaw() -> Weight { // Proof Size summary in bytes: // Measured: `525` - // Estimated: `0` - // Minimum execution time: 23_390_000 picoseconds. - Weight::from_parts(24_391_000, 0) - } + // Estimated: `3675` + // Minimum execution time: 23_720_000 picoseconds. + Weight::from_parts(24_789_000, 3675) + .saturating_add(RocksDbWeight::get().reads(2_u64)) + .saturating_add(RocksDbWeight::get().writes(1_u64)) + } + /// Storage: `Assets::Asset` (r:1 w:1) + /// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`) fn freeze_asset() -> Weight { // Proof Size summary in bytes: // Measured: `451` - // Estimated: `0` - // Minimum execution time: 18_154_000 picoseconds. - Weight::from_parts(18_948_000, 0) - } + // Estimated: `3675` + // Minimum execution time: 18_947_000 picoseconds. + Weight::from_parts(19_718_000, 3675) + .saturating_add(RocksDbWeight::get().reads(1_u64)) + .saturating_add(RocksDbWeight::get().writes(1_u64)) + } + /// Storage: `Assets::Asset` (r:1 w:1) + /// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`) fn thaw_asset() -> Weight { // Proof Size summary in bytes: // Measured: `451` - // Estimated: `0` - // Minimum execution time: 18_529_000 picoseconds. - Weight::from_parts(19_122_000, 0) - } + // Estimated: `3675` + // Minimum execution time: 18_223_000 picoseconds. + Weight::from_parts(18_780_000, 3675) + .saturating_add(RocksDbWeight::get().reads(1_u64)) + .saturating_add(RocksDbWeight::get().writes(1_u64)) + } + /// Storage: `Assets::Asset` (r:1 w:1) + /// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`) + /// Storage: `Assets::Metadata` (r:1 w:0) + /// Proof: `Assets::Metadata` (`max_values`: None, `max_size`: Some(140), added: 2615, mode: `MaxEncodedLen`) fn transfer_ownership() -> Weight { // Proof Size summary in bytes: // Measured: `417` - // Estimated: `0` - // Minimum execution time: 19_860_000 picoseconds. - Weight::from_parts(20_868_000, 0) - } + // Estimated: `3675` + // Minimum execution time: 17_714_000 picoseconds. + Weight::from_parts(18_202_000, 3675) + .saturating_add(RocksDbWeight::get().reads(2_u64)) + .saturating_add(RocksDbWeight::get().writes(1_u64)) + } + /// Storage: `Assets::Asset` (r:1 w:1) + /// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`) fn set_team() -> Weight { // Proof Size summary in bytes: // Measured: `417` - // Estimated: `0` - // Minimum execution time: 17_895_000 picoseconds. - Weight::from_parts(18_788_000, 0) - } + // Estimated: `3675` + // Minimum execution time: 15_404_000 picoseconds. + Weight::from_parts(15_889_000, 3675) + .saturating_add(RocksDbWeight::get().reads(1_u64)) + .saturating_add(RocksDbWeight::get().writes(1_u64)) + } + /// Storage: `Assets::Asset` (r:1 w:0) + /// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`) + /// Storage: `Assets::Reserves` (r:0 w:1) + /// Proof: `Assets::Reserves` (`max_values`: None, `max_size`: Some(21), added: 2496, mode: `MaxEncodedLen`) /// The range of component `n` is `[0, 5]`. fn set_reserves(n: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `417` - // Estimated: `0` - // Minimum execution time: 19_036_000 picoseconds. - Weight::from_parts(20_416_156, 0) - // Standard Error: 8_444 - .saturating_add(Weight::from_parts(86_263, 0).saturating_mul(n.into())) - } + // Estimated: `3675` + // Minimum execution time: 18_944_000 picoseconds. + Weight::from_parts(20_430_419, 3675) + // Standard Error: 8_201 + .saturating_add(Weight::from_parts(108_305, 0).saturating_mul(n.into())) + .saturating_add(RocksDbWeight::get().reads(1_u64)) + .saturating_add(RocksDbWeight::get().writes(1_u64)) + } + /// Storage: `Assets::Asset` (r:1 w:0) + /// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`) + /// Storage: `Assets::Metadata` (r:1 w:1) + /// Proof: `Assets::Metadata` (`max_values`: None, `max_size`: Some(140), added: 2615, mode: `MaxEncodedLen`) /// The range of component `n` is `[0, 50]`. /// The range of component `s` is `[0, 50]`. fn set_metadata(n: u32, s: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `417` - // Estimated: `0` - // Minimum execution time: 37_385_000 picoseconds. - Weight::from_parts(39_399_235, 0) - // Standard Error: 2_083 - .saturating_add(Weight::from_parts(6_204, 0).saturating_mul(n.into())) - // Standard Error: 2_083 - .saturating_add(Weight::from_parts(4_848, 0).saturating_mul(s.into())) - } + // Estimated: `3675` + // Minimum execution time: 36_344_000 picoseconds. + Weight::from_parts(38_278_706, 3675) + // Standard Error: 1_250 + .saturating_add(Weight::from_parts(6_447, 0).saturating_mul(n.into())) + // Standard Error: 1_250 + .saturating_add(Weight::from_parts(6_609, 0).saturating_mul(s.into())) + .saturating_add(RocksDbWeight::get().reads(2_u64)) + .saturating_add(RocksDbWeight::get().writes(1_u64)) + } + /// Storage: `Assets::Asset` (r:1 w:0) + /// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`) + /// Storage: `Assets::Metadata` (r:1 w:1) + /// Proof: `Assets::Metadata` (`max_values`: None, `max_size`: Some(140), added: 2615, mode: `MaxEncodedLen`) fn clear_metadata() -> Weight { // Proof Size summary in bytes: // Measured: `581` - // Estimated: `0` - // Minimum execution time: 37_347_000 picoseconds. - Weight::from_parts(38_771_000, 0) - } + // Estimated: `3675` + // Minimum execution time: 36_302_000 picoseconds. + Weight::from_parts(38_178_000, 3675) + .saturating_add(RocksDbWeight::get().reads(2_u64)) + .saturating_add(RocksDbWeight::get().writes(1_u64)) + } + /// Storage: `Assets::Asset` (r:1 w:0) + /// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`) + /// Storage: `Assets::Metadata` (r:1 w:1) + /// Proof: `Assets::Metadata` (`max_values`: None, `max_size`: Some(140), added: 2615, mode: `MaxEncodedLen`) /// The range of component `n` is `[0, 50]`. /// The range of component `s` is `[0, 50]`. fn force_set_metadata(n: u32, s: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `256` - // Estimated: `0` - // Minimum execution time: 15_827_000 picoseconds. - Weight::from_parts(17_156_574, 0) - // Standard Error: 698 - .saturating_add(Weight::from_parts(72, 0).saturating_mul(n.into())) - // Standard Error: 698 - .saturating_add(Weight::from_parts(1_802, 0).saturating_mul(s.into())) - } + // Estimated: `3675` + // Minimum execution time: 15_926_000 picoseconds. + Weight::from_parts(17_089_161, 3675) + // Standard Error: 670 + .saturating_add(Weight::from_parts(96, 0).saturating_mul(n.into())) + // Standard Error: 670 + .saturating_add(Weight::from_parts(2_057, 0).saturating_mul(s.into())) + .saturating_add(RocksDbWeight::get().reads(2_u64)) + .saturating_add(RocksDbWeight::get().writes(1_u64)) + } + /// Storage: `Assets::Asset` (r:1 w:0) + /// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`) + /// Storage: `Assets::Metadata` (r:1 w:1) + /// Proof: `Assets::Metadata` (`max_values`: None, `max_size`: Some(140), added: 2615, mode: `MaxEncodedLen`) fn force_clear_metadata() -> Weight { // Proof Size summary in bytes: // Measured: `581` - // Estimated: `0` - // Minimum execution time: 36_270_000 picoseconds. - Weight::from_parts(37_551_000, 0) - } + // Estimated: `3675` + // Minimum execution time: 35_344_000 picoseconds. + Weight::from_parts(37_253_000, 3675) + .saturating_add(RocksDbWeight::get().reads(2_u64)) + .saturating_add(RocksDbWeight::get().writes(1_u64)) + } + /// Storage: `Assets::Asset` (r:1 w:1) + /// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`) fn force_asset_status() -> Weight { // Proof Size summary in bytes: // Measured: `417` - // Estimated: `0` - // Minimum execution time: 17_570_000 picoseconds. - Weight::from_parts(18_289_000, 0) - } + // Estimated: `3675` + // Minimum execution time: 14_637_000 picoseconds. + Weight::from_parts(15_850_000, 3675) + .saturating_add(RocksDbWeight::get().reads(1_u64)) + .saturating_add(RocksDbWeight::get().writes(1_u64)) + } + /// Storage: `Assets::Asset` (r:1 w:1) + /// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`) + /// Storage: `Assets::Approvals` (r:1 w:1) + /// Proof: `Assets::Approvals` (`max_values`: None, `max_size`: Some(148), added: 2623, mode: `MaxEncodedLen`) fn approve_transfer() -> Weight { // Proof Size summary in bytes: // Measured: `451` - // Estimated: `0` - // Minimum execution time: 42_667_000 picoseconds. - Weight::from_parts(44_135_000, 0) - } + // Estimated: `3675` + // Minimum execution time: 42_634_000 picoseconds. + Weight::from_parts(43_860_000, 3675) + .saturating_add(RocksDbWeight::get().reads(2_u64)) + .saturating_add(RocksDbWeight::get().writes(2_u64)) + } + /// Storage: `Assets::Asset` (r:1 w:1) + /// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`) + /// Storage: `Assets::Approvals` (r:1 w:1) + /// Proof: `Assets::Approvals` (`max_values`: None, `max_size`: Some(148), added: 2623, mode: `MaxEncodedLen`) + /// Storage: `Assets::Account` (r:2 w:2) + /// Proof: `Assets::Account` (`max_values`: None, `max_size`: Some(134), added: 2609, mode: `MaxEncodedLen`) + /// Storage: `System::Account` (r:1 w:1) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) fn transfer_approved() -> Weight { // Proof Size summary in bytes: // Measured: `734` - // Estimated: `0` - // Minimum execution time: 80_961_000 picoseconds. - Weight::from_parts(83_202_000, 0) - } + // Estimated: `6208` + // Minimum execution time: 80_342_000 picoseconds. + Weight::from_parts(82_913_000, 6208) + .saturating_add(RocksDbWeight::get().reads(5_u64)) + .saturating_add(RocksDbWeight::get().writes(5_u64)) + } + /// Storage: `Assets::Asset` (r:1 w:1) + /// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`) + /// Storage: `Assets::Approvals` (r:1 w:1) + /// Proof: `Assets::Approvals` (`max_values`: None, `max_size`: Some(148), added: 2623, mode: `MaxEncodedLen`) fn cancel_approval() -> Weight { // Proof Size summary in bytes: // Measured: `621` - // Estimated: `0` - // Minimum execution time: 44_631_000 picoseconds. - Weight::from_parts(45_692_000, 0) - } + // Estimated: `3675` + // Minimum execution time: 43_370_000 picoseconds. + Weight::from_parts(44_987_000, 3675) + .saturating_add(RocksDbWeight::get().reads(2_u64)) + .saturating_add(RocksDbWeight::get().writes(2_u64)) + } + /// Storage: `Assets::Asset` (r:1 w:1) + /// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`) + /// Storage: `Assets::Approvals` (r:1 w:1) + /// Proof: `Assets::Approvals` (`max_values`: None, `max_size`: Some(148), added: 2623, mode: `MaxEncodedLen`) fn force_cancel_approval() -> Weight { // Proof Size summary in bytes: // Measured: `621` - // Estimated: `0` - // Minimum execution time: 43_978_000 picoseconds. - Weight::from_parts(45_190_000, 0) - } + // Estimated: `3675` + // Minimum execution time: 43_084_000 picoseconds. + Weight::from_parts(44_770_000, 3675) + .saturating_add(RocksDbWeight::get().reads(2_u64)) + .saturating_add(RocksDbWeight::get().writes(2_u64)) + } + /// Storage: `Assets::Asset` (r:1 w:1) + /// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`) fn set_min_balance() -> Weight { // Proof Size summary in bytes: // Measured: `417` - // Estimated: `0` - // Minimum execution time: 18_750_000 picoseconds. - Weight::from_parts(19_531_000, 0) - } + // Estimated: `3675` + // Minimum execution time: 16_201_000 picoseconds. + Weight::from_parts(16_747_000, 3675) + .saturating_add(RocksDbWeight::get().reads(1_u64)) + .saturating_add(RocksDbWeight::get().writes(1_u64)) + } + /// Storage: `Assets::Account` (r:1 w:1) + /// Proof: `Assets::Account` (`max_values`: None, `max_size`: Some(134), added: 2609, mode: `MaxEncodedLen`) + /// Storage: `Assets::Asset` (r:1 w:1) + /// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`) + /// Storage: `System::Account` (r:1 w:1) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) fn touch() -> Weight { // Proof Size summary in bytes: // Measured: `519` - // Estimated: `0` - // Minimum execution time: 44_307_000 picoseconds. - Weight::from_parts(45_710_000, 0) - } + // Estimated: `3675` + // Minimum execution time: 43_087_000 picoseconds. + Weight::from_parts(44_948_000, 3675) + .saturating_add(RocksDbWeight::get().reads(3_u64)) + .saturating_add(RocksDbWeight::get().writes(3_u64)) + } + /// Storage: `Assets::Account` (r:1 w:1) + /// Proof: `Assets::Account` (`max_values`: None, `max_size`: Some(134), added: 2609, mode: `MaxEncodedLen`) + /// Storage: `Assets::Asset` (r:1 w:1) + /// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`) fn touch_other() -> Weight { // Proof Size summary in bytes: // Measured: `417` - // Estimated: `0` - // Minimum execution time: 41_800_000 picoseconds. - Weight::from_parts(43_342_000, 0) - } + // Estimated: `3675` + // Minimum execution time: 41_273_000 picoseconds. + Weight::from_parts(42_452_000, 3675) + .saturating_add(RocksDbWeight::get().reads(2_u64)) + .saturating_add(RocksDbWeight::get().writes(2_u64)) + } + /// Storage: `Assets::Account` (r:1 w:1) + /// Proof: `Assets::Account` (`max_values`: None, `max_size`: Some(134), added: 2609, mode: `MaxEncodedLen`) + /// Storage: `Assets::Asset` (r:1 w:1) + /// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`) + /// Storage: `System::Account` (r:1 w:1) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) fn refund() -> Weight { // Proof Size summary in bytes: // Measured: `645` - // Estimated: `0` - // Minimum execution time: 42_075_000 picoseconds. - Weight::from_parts(43_474_000, 0) - } + // Estimated: `3675` + // Minimum execution time: 40_785_000 picoseconds. + Weight::from_parts(42_985_000, 3675) + .saturating_add(RocksDbWeight::get().reads(3_u64)) + .saturating_add(RocksDbWeight::get().writes(3_u64)) + } + /// Storage: `Assets::Account` (r:1 w:1) + /// Proof: `Assets::Account` (`max_values`: None, `max_size`: Some(134), added: 2609, mode: `MaxEncodedLen`) + /// Storage: `Assets::Asset` (r:1 w:1) + /// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`) fn refund_other() -> Weight { // Proof Size summary in bytes: // Measured: `576` - // Estimated: `0` - // Minimum execution time: 39_321_000 picoseconds. - Weight::from_parts(41_210_000, 0) - } + // Estimated: `3675` + // Minimum execution time: 39_042_000 picoseconds. + Weight::from_parts(39_947_000, 3675) + .saturating_add(RocksDbWeight::get().reads(2_u64)) + .saturating_add(RocksDbWeight::get().writes(2_u64)) + } + /// Storage: `Assets::Asset` (r:1 w:0) + /// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`) + /// Storage: `Assets::Account` (r:1 w:1) + /// Proof: `Assets::Account` (`max_values`: None, `max_size`: Some(134), added: 2609, mode: `MaxEncodedLen`) fn block() -> Weight { // Proof Size summary in bytes: // Measured: `525` - // Estimated: `0` - // Minimum execution time: 23_485_000 picoseconds. - Weight::from_parts(24_387_000, 0) - } + // Estimated: `3675` + // Minimum execution time: 23_502_000 picoseconds. + Weight::from_parts(24_752_000, 3675) + .saturating_add(RocksDbWeight::get().reads(2_u64)) + .saturating_add(RocksDbWeight::get().writes(1_u64)) + } + /// Storage: `Assets::Asset` (r:1 w:1) + /// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`) + /// Storage: `Assets::Account` (r:2 w:2) + /// Proof: `Assets::Account` (`max_values`: None, `max_size`: Some(134), added: 2609, mode: `MaxEncodedLen`) + /// Storage: `System::Account` (r:1 w:1) + /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) fn transfer_all() -> Weight { // Proof Size summary in bytes: // Measured: `564` - // Estimated: `0` - // Minimum execution time: 67_535_000 picoseconds. - Weight::from_parts(69_823_000, 0) - } + // Estimated: `6208` + // Minimum execution time: 67_955_000 picoseconds. + Weight::from_parts(69_022_000, 6208) + .saturating_add(RocksDbWeight::get().reads(4_u64)) + .saturating_add(RocksDbWeight::get().writes(4_u64)) + } + /// Storage: `Assets::Asset` (r:1 w:0) + /// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`) fn total_issuance() -> Weight { // Proof Size summary in bytes: // Measured: `451` - // Estimated: `0` - // Minimum execution time: 10_690_000 picoseconds. - Weight::from_parts(11_461_000, 0) + // Estimated: `3675` + // Minimum execution time: 10_794_000 picoseconds. + Weight::from_parts(11_213_000, 3675) + .saturating_add(RocksDbWeight::get().reads(1_u64)) } + /// Storage: `Assets::Account` (r:1 w:0) + /// Proof: `Assets::Account` (`max_values`: None, `max_size`: Some(134), added: 2609, mode: `MaxEncodedLen`) fn balance() -> Weight { // Proof Size summary in bytes: // Measured: `288` - // Estimated: `0` - // Minimum execution time: 11_164_000 picoseconds. - Weight::from_parts(11_464_000, 0) + // Estimated: `3599` + // Minimum execution time: 7_933_000 picoseconds. + Weight::from_parts(8_327_000, 3599) + .saturating_add(RocksDbWeight::get().reads(1_u64)) } + /// Storage: `Assets::Approvals` (r:1 w:0) + /// Proof: `Assets::Approvals` (`max_values`: None, `max_size`: Some(148), added: 2623, mode: `MaxEncodedLen`) fn allowance() -> Weight { // Proof Size summary in bytes: // Measured: `383` - // Estimated: `0` - // Minimum execution time: 14_330_000 picoseconds. - Weight::from_parts(14_861_000, 0) - } + // Estimated: `3613` + // Minimum execution time: 11_212_000 picoseconds. + Weight::from_parts(11_455_000, 3613) + .saturating_add(RocksDbWeight::get().reads(1_u64)) + } + /// Storage: `Assets::Asset` (r:1 w:0) + /// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`) + /// Storage: `Assets::Reserves` (r:0 w:1) + /// Proof: `Assets::Reserves` (`max_values`: None, `max_size`: Some(21), added: 2496, mode: `MaxEncodedLen`) fn migration_v2_foreign_asset_set_reserve_weight() -> Weight { // Proof Size summary in bytes: // Measured: `256` - // Estimated: `0` - // Minimum execution time: 9_596_000 picoseconds. - Weight::from_parts(10_031_000, 0) - } - fn get_name() -> Weight { - // Proof Size summary in bytes: - // Measured: `344` - // Estimated: `0` - // Minimum execution time: 10_390_000 picoseconds. - Weight::from_parts(10_914_000, 0) - } - fn get_symbol() -> Weight { - // Proof Size summary in bytes: - // Measured: `344` - // Estimated: `0` - // Minimum execution time: 10_587_000 picoseconds. - Weight::from_parts(11_121_000, 0) + // Estimated: `3675` + // Minimum execution time: 9_427_000 picoseconds. + Weight::from_parts(10_145_000, 3675) + .saturating_add(RocksDbWeight::get().reads(1_u64)) + .saturating_add(RocksDbWeight::get().writes(1_u64)) } - fn get_decimals() -> Weight { + /// Storage: `Assets::Metadata` (r:1 w:0) + /// Proof: `Assets::Metadata` (`max_values`: None, `max_size`: Some(140), added: 2615, mode: `MaxEncodedLen`) + fn get_metadata() -> Weight { // Proof Size summary in bytes: // Measured: `344` - // Estimated: `0` - // Minimum execution time: 10_591_000 picoseconds. - Weight::from_parts(11_015_000, 0) + // Estimated: `3605` + // Minimum execution time: 10_101_000 picoseconds. + Weight::from_parts(10_699_000, 3605) + .saturating_add(RocksDbWeight::get().reads(1_u64)) } } diff --git a/substrate/frame/staking-async/runtimes/parachain/src/weights/pallet_assets_foreign.rs b/substrate/frame/staking-async/runtimes/parachain/src/weights/pallet_assets_foreign.rs index 8f817e96f206f..dc1bd62b909bc 100644 --- a/substrate/frame/staking-async/runtimes/parachain/src/weights/pallet_assets_foreign.rs +++ b/substrate/frame/staking-async/runtimes/parachain/src/weights/pallet_assets_foreign.rs @@ -643,21 +643,7 @@ impl pallet_assets::WeightInfo for WeightInfo { // Minimum execution time: 9_596_000 picoseconds. Weight::from_parts(10_031_000, 0) } - fn get_name() -> Weight { - // Proof Size summary in bytes: - // Measured: `344` - // Estimated: `0` - // Minimum execution time: 10_390_000 picoseconds. - Weight::from_parts(10_914_000, 0) - } - fn get_symbol() -> Weight { - // Proof Size summary in bytes: - // Measured: `344` - // Estimated: `0` - // Minimum execution time: 10_587_000 picoseconds. - Weight::from_parts(11_121_000, 0) - } - fn get_decimals() -> Weight { + fn get_metadata() -> Weight { // Proof Size summary in bytes: // Measured: `344` // Estimated: `0` diff --git a/substrate/frame/staking-async/runtimes/parachain/src/weights/pallet_assets_local.rs b/substrate/frame/staking-async/runtimes/parachain/src/weights/pallet_assets_local.rs index a14afce22a881..1a1237bc0fda4 100644 --- a/substrate/frame/staking-async/runtimes/parachain/src/weights/pallet_assets_local.rs +++ b/substrate/frame/staking-async/runtimes/parachain/src/weights/pallet_assets_local.rs @@ -639,21 +639,7 @@ impl pallet_assets::WeightInfo for WeightInfo { // Minimum execution time: 9_596_000 picoseconds. Weight::from_parts(10_031_000, 0) } - fn get_name() -> Weight { - // Proof Size summary in bytes: - // Measured: `344` - // Estimated: `0` - // Minimum execution time: 10_390_000 picoseconds. - Weight::from_parts(10_914_000, 0) - } - fn get_symbol() -> Weight { - // Proof Size summary in bytes: - // Measured: `344` - // Estimated: `0` - // Minimum execution time: 10_587_000 picoseconds. - Weight::from_parts(11_121_000, 0) - } - fn get_decimals() -> Weight { + fn get_metadata() -> Weight { // Proof Size summary in bytes: // Measured: `344` // Estimated: `0` diff --git a/substrate/frame/staking-async/runtimes/parachain/src/weights/pallet_assets_pool.rs b/substrate/frame/staking-async/runtimes/parachain/src/weights/pallet_assets_pool.rs index 354831cb497dc..b7b222a14904a 100644 --- a/substrate/frame/staking-async/runtimes/parachain/src/weights/pallet_assets_pool.rs +++ b/substrate/frame/staking-async/runtimes/parachain/src/weights/pallet_assets_pool.rs @@ -633,21 +633,7 @@ impl pallet_assets::WeightInfo for WeightInfo { // Minimum execution time: 9_596_000 picoseconds. Weight::from_parts(10_031_000, 0) } - fn get_name() -> Weight { - // Proof Size summary in bytes: - // Measured: `344` - // Estimated: `0` - // Minimum execution time: 10_390_000 picoseconds. - Weight::from_parts(10_914_000, 0) - } - fn get_symbol() -> Weight { - // Proof Size summary in bytes: - // Measured: `344` - // Estimated: `0` - // Minimum execution time: 10_587_000 picoseconds. - Weight::from_parts(11_121_000, 0) - } - fn get_decimals() -> Weight { + fn get_metadata() -> Weight { // Proof Size summary in bytes: // Measured: `344` // Estimated: `0`