--- a/pallets/common/src/weights.rs +++ b/pallets/common/src/weights.rs @@ -69,6 +69,18 @@ .saturating_add(Weight::from_parts(21_502_829, 0).saturating_mul(b.into())) .saturating_add(T::DbWeight::get().writes(1_u64)) } + /// Storage: Common Allowlist (r:1 w:0) + /// Proof: Common Allowlist (max_values: None, max_size: Some(70), added: 2545, mode: MaxEncodedLen) + fn check_accesslist() -> Weight { + // Proof Size summary in bytes: + // Measured: `340` + // Estimated: `2545` + // Minimum execution time: 2_887_000 picoseconds. + Weight::from_parts(3_072_000, 2545) + .saturating_add(T::DbWeight::get().reads(1_u64)) + } +} + // For backwards compatibility and tests impl WeightInfo for () { /// Storage: Common CollectionProperties (r:1 w:1) @@ -98,3 +110,15 @@ .saturating_add(Weight::from_parts(21_502_829, 0).saturating_mul(b.into())) .saturating_add(RocksDbWeight::get().writes(1_u64)) } + /// Storage: Common Allowlist (r:1 w:0) + /// Proof: Common Allowlist (max_values: None, max_size: Some(70), added: 2545, mode: MaxEncodedLen) + fn check_accesslist() -> Weight { + // Proof Size summary in bytes: + // Measured: `340` + // Estimated: `2545` + // Minimum execution time: 2_887_000 picoseconds. + Weight::from_parts(3_072_000, 2545) + .saturating_add(RocksDbWeight::get().reads(1_u64)) + } +} + --- a/pallets/fungible/src/weights.rs +++ b/pallets/fungible/src/weights.rs @@ -93,11 +93,16 @@ .saturating_add(T::DbWeight::get().reads(2_u64)) .saturating_add(T::DbWeight::get().writes(2_u64)) } - // Storage: Fungible Balance (r:2 w:2) + /// Storage: Fungible Balance (r:2 w:2) + /// Proof: Fungible Balance (max_values: None, max_size: Some(77), added: 2552, mode: MaxEncodedLen) fn transfer_raw() -> Weight { - Weight::from_ref_time(12_041_000 as u64) - .saturating_add(T::DbWeight::get().reads(2 as u64)) - .saturating_add(T::DbWeight::get().writes(2 as u64)) + // Proof Size summary in bytes: + // Measured: `182` + // Estimated: `5104` + // Minimum execution time: 6_678_000 picoseconds. + Weight::from_parts(7_151_000, 5104) + .saturating_add(T::DbWeight::get().reads(2_u64)) + .saturating_add(T::DbWeight::get().writes(2_u64)) } /// Storage: Fungible Balance (r:1 w:0) /// Proof: Fungible Balance (max_values: None, max_size: Some(77), added: 2552, mode: MaxEncodedLen) @@ -125,16 +130,25 @@ .saturating_add(T::DbWeight::get().reads(1_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } - // Storage: Fungible Allowance (r:1 w:0) + /// Storage: Fungible Allowance (r:1 w:0) + /// Proof: Fungible Allowance (max_values: None, max_size: Some(93), added: 2568, mode: MaxEncodedLen) fn check_allowed_raw() -> Weight { - Weight::from_ref_time(3_550_000 as u64) - .saturating_add(T::DbWeight::get().reads(1 as u64)) + // Proof Size summary in bytes: + // Measured: `210` + // Estimated: `2568` + // Minimum execution time: 2_842_000 picoseconds. + Weight::from_parts(3_077_000, 2568) + .saturating_add(T::DbWeight::get().reads(1_u64)) } - // Storage: Fungible Allowance (r:1 w:1) + /// Storage: Fungible Allowance (r:0 w:1) + /// Proof: Fungible Allowance (max_values: None, max_size: Some(93), added: 2568, mode: MaxEncodedLen) fn set_allowance_unchecked_raw() -> Weight { - Weight::from_ref_time(10_682_000 as u64) - .saturating_add(T::DbWeight::get().reads(1 as u64)) - .saturating_add(T::DbWeight::get().writes(1 as u64)) + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 2_532_000 picoseconds. + Weight::from_parts(2_680_000, 0) + .saturating_add(T::DbWeight::get().writes(1_u64)) } /// Storage: Fungible Allowance (r:1 w:1) /// Proof: Fungible Allowance (max_values: None, max_size: Some(93), added: 2568, mode: MaxEncodedLen) @@ -200,11 +214,16 @@ .saturating_add(RocksDbWeight::get().reads(2_u64)) .saturating_add(RocksDbWeight::get().writes(2_u64)) } - // Storage: Fungible Balance (r:2 w:2) + /// Storage: Fungible Balance (r:2 w:2) + /// Proof: Fungible Balance (max_values: None, max_size: Some(77), added: 2552, mode: MaxEncodedLen) fn transfer_raw() -> Weight { - Weight::from_ref_time(12_041_000 as u64) - .saturating_add(RocksDbWeight::get().reads(2 as u64)) - .saturating_add(RocksDbWeight::get().writes(2 as u64)) + // Proof Size summary in bytes: + // Measured: `182` + // Estimated: `5104` + // Minimum execution time: 6_678_000 picoseconds. + Weight::from_parts(7_151_000, 5104) + .saturating_add(RocksDbWeight::get().reads(2_u64)) + .saturating_add(RocksDbWeight::get().writes(2_u64)) } /// Storage: Fungible Balance (r:1 w:0) /// Proof: Fungible Balance (max_values: None, max_size: Some(77), added: 2552, mode: MaxEncodedLen) @@ -232,16 +251,25 @@ .saturating_add(RocksDbWeight::get().reads(1_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } - // Storage: Fungible Allowance (r:1 w:0) + /// Storage: Fungible Allowance (r:1 w:0) + /// Proof: Fungible Allowance (max_values: None, max_size: Some(93), added: 2568, mode: MaxEncodedLen) fn check_allowed_raw() -> Weight { - Weight::from_ref_time(3_550_000 as u64) - .saturating_add(RocksDbWeight::get().reads(1 as u64)) + // Proof Size summary in bytes: + // Measured: `210` + // Estimated: `2568` + // Minimum execution time: 2_842_000 picoseconds. + Weight::from_parts(3_077_000, 2568) + .saturating_add(RocksDbWeight::get().reads(1_u64)) } - // Storage: Fungible Allowance (r:1 w:1) + /// Storage: Fungible Allowance (r:0 w:1) + /// Proof: Fungible Allowance (max_values: None, max_size: Some(93), added: 2568, mode: MaxEncodedLen) fn set_allowance_unchecked_raw() -> Weight { - Weight::from_ref_time(10_682_000 as u64) - .saturating_add(RocksDbWeight::get().reads(1 as u64)) - .saturating_add(RocksDbWeight::get().writes(1 as u64)) + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 2_532_000 picoseconds. + Weight::from_parts(2_680_000, 0) + .saturating_add(RocksDbWeight::get().writes(1_u64)) } /// Storage: Fungible Allowance (r:1 w:1) /// Proof: Fungible Allowance (max_values: None, max_size: Some(93), added: 2568, mode: MaxEncodedLen) --- a/pallets/nonfungible/src/weights.rs +++ b/pallets/nonfungible/src/weights.rs @@ -209,14 +209,22 @@ .saturating_add(T::DbWeight::get().writes((4_u64).saturating_mul(b.into()))) .saturating_add(Weight::from_parts(0, 10097).saturating_mul(b.into())) } - // Storage: Nonfungible TokenData (r:1 w:1) - // Storage: Nonfungible AccountBalance (r:2 w:2) - // Storage: Nonfungible Allowance (r:1 w:0) - // Storage: Nonfungible Owned (r:0 w:2) + /// Storage: Nonfungible TokenData (r:1 w:1) + /// Proof: Nonfungible TokenData (max_values: None, max_size: Some(57), added: 2532, mode: MaxEncodedLen) + /// Storage: Nonfungible AccountBalance (r:2 w:2) + /// Proof: Nonfungible AccountBalance (max_values: None, max_size: Some(65), added: 2540, mode: MaxEncodedLen) + /// Storage: Nonfungible Allowance (r:1 w:0) + /// Proof: Nonfungible Allowance (max_values: None, max_size: Some(57), added: 2532, mode: MaxEncodedLen) + /// Storage: Nonfungible Owned (r:0 w:2) + /// Proof: Nonfungible Owned (max_values: None, max_size: Some(74), added: 2549, mode: MaxEncodedLen) fn transfer_raw() -> Weight { - Weight::from_ref_time(14_909_000 as u64) - .saturating_add(T::DbWeight::get().reads(4 as u64)) - .saturating_add(T::DbWeight::get().writes(5 as u64)) + // Proof Size summary in bytes: + // Measured: `412` + // Estimated: `10144` + // Minimum execution time: 9_307_000 picoseconds. + Weight::from_parts(10_108_000, 10144) + .saturating_add(T::DbWeight::get().reads(4_u64)) + .saturating_add(T::DbWeight::get().writes(5_u64)) } /// Storage: Nonfungible TokenData (r:1 w:0) /// Proof: Nonfungible TokenData (max_values: None, max_size: Some(57), added: 2532, mode: MaxEncodedLen) @@ -244,10 +252,15 @@ .saturating_add(T::DbWeight::get().reads(2_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } - // Storage: Nonfungible Allowance (r:1 w:0) + /// Storage: Nonfungible Allowance (r:1 w:0) + /// Proof: Nonfungible Allowance (max_values: None, max_size: Some(57), added: 2532, mode: MaxEncodedLen) fn checks_allowed_raw() -> Weight { - Weight::from_ref_time(3_341_000 as u64) - .saturating_add(T::DbWeight::get().reads(1 as u64)) + // Proof Size summary in bytes: + // Measured: `394` + // Estimated: `2532` + // Minimum execution time: 2_668_000 picoseconds. + Weight::from_parts(2_877_000, 2532) + .saturating_add(T::DbWeight::get().reads(1_u64)) } /// Storage: Nonfungible Allowance (r:1 w:1) /// Proof: Nonfungible Allowance (max_values: None, max_size: Some(57), added: 2532, mode: MaxEncodedLen) @@ -515,14 +528,22 @@ .saturating_add(RocksDbWeight::get().writes((4_u64).saturating_mul(b.into()))) .saturating_add(Weight::from_parts(0, 10097).saturating_mul(b.into())) } - // Storage: Nonfungible TokenData (r:1 w:1) - // Storage: Nonfungible AccountBalance (r:2 w:2) - // Storage: Nonfungible Allowance (r:1 w:0) - // Storage: Nonfungible Owned (r:0 w:2) + /// Storage: Nonfungible TokenData (r:1 w:1) + /// Proof: Nonfungible TokenData (max_values: None, max_size: Some(57), added: 2532, mode: MaxEncodedLen) + /// Storage: Nonfungible AccountBalance (r:2 w:2) + /// Proof: Nonfungible AccountBalance (max_values: None, max_size: Some(65), added: 2540, mode: MaxEncodedLen) + /// Storage: Nonfungible Allowance (r:1 w:0) + /// Proof: Nonfungible Allowance (max_values: None, max_size: Some(57), added: 2532, mode: MaxEncodedLen) + /// Storage: Nonfungible Owned (r:0 w:2) + /// Proof: Nonfungible Owned (max_values: None, max_size: Some(74), added: 2549, mode: MaxEncodedLen) fn transfer_raw() -> Weight { - Weight::from_ref_time(14_909_000 as u64) - .saturating_add(RocksDbWeight::get().reads(4 as u64)) - .saturating_add(RocksDbWeight::get().writes(5 as u64)) + // Proof Size summary in bytes: + // Measured: `412` + // Estimated: `10144` + // Minimum execution time: 9_307_000 picoseconds. + Weight::from_parts(10_108_000, 10144) + .saturating_add(RocksDbWeight::get().reads(4_u64)) + .saturating_add(RocksDbWeight::get().writes(5_u64)) } /// Storage: Nonfungible TokenData (r:1 w:0) /// Proof: Nonfungible TokenData (max_values: None, max_size: Some(57), added: 2532, mode: MaxEncodedLen) @@ -550,10 +571,15 @@ .saturating_add(RocksDbWeight::get().reads(2_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } - // Storage: Nonfungible Allowance (r:1 w:0) + /// Storage: Nonfungible Allowance (r:1 w:0) + /// Proof: Nonfungible Allowance (max_values: None, max_size: Some(57), added: 2532, mode: MaxEncodedLen) fn checks_allowed_raw() -> Weight { - Weight::from_ref_time(3_341_000 as u64) - .saturating_add(RocksDbWeight::get().reads(1 as u64)) + // Proof Size summary in bytes: + // Measured: `394` + // Estimated: `2532` + // Minimum execution time: 2_668_000 picoseconds. + Weight::from_parts(2_877_000, 2532) + .saturating_add(RocksDbWeight::get().reads(1_u64)) } /// Storage: Nonfungible Allowance (r:1 w:1) /// Proof: Nonfungible Allowance (max_values: None, max_size: Some(57), added: 2532, mode: MaxEncodedLen)