From 08321ba507ef9ed9314695be68fff0498022fb39 Mon Sep 17 00:00:00 2001 From: Sameh Abouel-saad Date: Tue, 24 Sep 2024 13:08:37 +0300 Subject: [PATCH] Verify rent contract state on node contract creation (#1008) * fix: verify rent contract state on node contract creation * chore: update benchmark `weights.rs` file for all pallets --- .../pallets/pallet-burning/src/weights.rs | 12 +- .../pallets/pallet-dao/src/weights.rs | 36 +-- .../pallets/pallet-kvstore/src/weights.rs | 20 +- .../src/grid_contract.rs | 6 +- .../pallet-smart-contract/src/tests.rs | 39 +++ .../pallet-smart-contract/src/weights.rs | 188 ++++++------- .../pallets/pallet-tfgrid/src/weights.rs | 256 +++++++++--------- .../pallets/pallet-tft-bridge/src/weights.rs | 92 +++---- .../pallets/pallet-tft-price/src/weights.rs | 28 +- .../pallets/pallet-validator/src/weights.rs | 52 ++-- .../substrate-validator-set/src/weights.rs | 28 +- 11 files changed, 399 insertions(+), 358 deletions(-) diff --git a/substrate-node/pallets/pallet-burning/src/weights.rs b/substrate-node/pallets/pallet-burning/src/weights.rs index 021e73116..8954ebaa3 100644 --- a/substrate-node/pallets/pallet-burning/src/weights.rs +++ b/substrate-node/pallets/pallet-burning/src/weights.rs @@ -2,9 +2,9 @@ //! Autogenerated weights for pallet_burning //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2024-08-27, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2024-09-24, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` -//! HOSTNAME: `66e77d0da08f`, CPU: `AMD Ryzen 7 5800X 8-Core Processor` +//! HOSTNAME: `da081090f983`, CPU: `AMD Ryzen 7 5800X 8-Core Processor` //! EXECUTION: , WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024 // Executed Command: @@ -45,8 +45,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `109` // Estimated: `1594` - // Minimum execution time: 26_780_000 picoseconds. - Weight::from_parts(27_291_000, 1594) + // Minimum execution time: 26_741_000 picoseconds. + Weight::from_parts(27_212_000, 1594) .saturating_add(T::DbWeight::get().reads(1_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } @@ -60,8 +60,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `109` // Estimated: `1594` - // Minimum execution time: 26_780_000 picoseconds. - Weight::from_parts(27_291_000, 1594) + // Minimum execution time: 26_741_000 picoseconds. + Weight::from_parts(27_212_000, 1594) .saturating_add(RocksDbWeight::get().reads(1_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } diff --git a/substrate-node/pallets/pallet-dao/src/weights.rs b/substrate-node/pallets/pallet-dao/src/weights.rs index 3445de116..3b3e90af6 100644 --- a/substrate-node/pallets/pallet-dao/src/weights.rs +++ b/substrate-node/pallets/pallet-dao/src/weights.rs @@ -2,9 +2,9 @@ //! Autogenerated weights for pallet_dao //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2024-08-27, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2024-09-24, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` -//! HOSTNAME: `66e77d0da08f`, CPU: `AMD Ryzen 7 5800X 8-Core Processor` +//! HOSTNAME: `da081090f983`, CPU: `AMD Ryzen 7 5800X 8-Core Processor` //! EXECUTION: , WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024 // Executed Command: @@ -58,8 +58,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `208` // Estimated: `4687` - // Minimum execution time: 19_277_000 picoseconds. - Weight::from_parts(20_188_000, 4687) + // Minimum execution time: 19_888_000 picoseconds. + Weight::from_parts(20_368_000, 4687) .saturating_add(T::DbWeight::get().reads(4_u64)) .saturating_add(T::DbWeight::get().writes(5_u64)) } @@ -77,8 +77,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `979` // Estimated: `4444` - // Minimum execution time: 26_390_000 picoseconds. - Weight::from_parts(26_840_000, 4444) + // Minimum execution time: 26_991_000 picoseconds. + Weight::from_parts(27_542_000, 4444) .saturating_add(T::DbWeight::get().reads(5_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } @@ -92,8 +92,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `487` // Estimated: `4687` - // Minimum execution time: 18_616_000 picoseconds. - Weight::from_parts(18_985_000, 4687) + // Minimum execution time: 18_766_000 picoseconds. + Weight::from_parts(19_256_000, 4687) .saturating_add(T::DbWeight::get().reads(3_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } @@ -111,8 +111,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `521` // Estimated: `4687` - // Minimum execution time: 25_117_000 picoseconds. - Weight::from_parts(25_498_000, 4687) + // Minimum execution time: 25_348_000 picoseconds. + Weight::from_parts(26_310_000, 4687) .saturating_add(T::DbWeight::get().reads(3_u64)) .saturating_add(T::DbWeight::get().writes(4_u64)) } @@ -136,8 +136,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `208` // Estimated: `4687` - // Minimum execution time: 19_277_000 picoseconds. - Weight::from_parts(20_188_000, 4687) + // Minimum execution time: 19_888_000 picoseconds. + Weight::from_parts(20_368_000, 4687) .saturating_add(RocksDbWeight::get().reads(4_u64)) .saturating_add(RocksDbWeight::get().writes(5_u64)) } @@ -155,8 +155,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `979` // Estimated: `4444` - // Minimum execution time: 26_390_000 picoseconds. - Weight::from_parts(26_840_000, 4444) + // Minimum execution time: 26_991_000 picoseconds. + Weight::from_parts(27_542_000, 4444) .saturating_add(RocksDbWeight::get().reads(5_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } @@ -170,8 +170,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `487` // Estimated: `4687` - // Minimum execution time: 18_616_000 picoseconds. - Weight::from_parts(18_985_000, 4687) + // Minimum execution time: 18_766_000 picoseconds. + Weight::from_parts(19_256_000, 4687) .saturating_add(RocksDbWeight::get().reads(3_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } @@ -189,8 +189,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `521` // Estimated: `4687` - // Minimum execution time: 25_117_000 picoseconds. - Weight::from_parts(25_498_000, 4687) + // Minimum execution time: 25_348_000 picoseconds. + Weight::from_parts(26_310_000, 4687) .saturating_add(RocksDbWeight::get().reads(3_u64)) .saturating_add(RocksDbWeight::get().writes(4_u64)) } diff --git a/substrate-node/pallets/pallet-kvstore/src/weights.rs b/substrate-node/pallets/pallet-kvstore/src/weights.rs index 05947e5e8..10510e029 100644 --- a/substrate-node/pallets/pallet-kvstore/src/weights.rs +++ b/substrate-node/pallets/pallet-kvstore/src/weights.rs @@ -2,9 +2,9 @@ //! Autogenerated weights for pallet_kvstore //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2024-08-27, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2024-09-24, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` -//! HOSTNAME: `66e77d0da08f`, CPU: `AMD Ryzen 7 5800X 8-Core Processor` +//! HOSTNAME: `da081090f983`, CPU: `AMD Ryzen 7 5800X 8-Core Processor` //! EXECUTION: , WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024 // Executed Command: @@ -46,8 +46,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 11_372_000 picoseconds. - Weight::from_parts(12_032_000, 0) + // Minimum execution time: 7_054_000 picoseconds. + Weight::from_parts(7_274_000, 0) .saturating_add(T::DbWeight::get().writes(1_u64)) } /// Storage: `TFKVStore::TFKVStore` (r:1 w:1) @@ -56,8 +56,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `146` // Estimated: `3611` - // Minimum execution time: 12_414_000 picoseconds. - Weight::from_parts(12_854_000, 3611) + // Minimum execution time: 12_263_000 picoseconds. + Weight::from_parts(12_824_000, 3611) .saturating_add(T::DbWeight::get().reads(1_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } @@ -71,8 +71,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 11_372_000 picoseconds. - Weight::from_parts(12_032_000, 0) + // Minimum execution time: 7_054_000 picoseconds. + Weight::from_parts(7_274_000, 0) .saturating_add(RocksDbWeight::get().writes(1_u64)) } /// Storage: `TFKVStore::TFKVStore` (r:1 w:1) @@ -81,8 +81,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `146` // Estimated: `3611` - // Minimum execution time: 12_414_000 picoseconds. - Weight::from_parts(12_854_000, 3611) + // Minimum execution time: 12_263_000 picoseconds. + Weight::from_parts(12_824_000, 3611) .saturating_add(RocksDbWeight::get().reads(1_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } diff --git a/substrate-node/pallets/pallet-smart-contract/src/grid_contract.rs b/substrate-node/pallets/pallet-smart-contract/src/grid_contract.rs index bada34e30..7bdb7623b 100644 --- a/substrate-node/pallets/pallet-smart-contract/src/grid_contract.rs +++ b/substrate-node/pallets/pallet-smart-contract/src/grid_contract.rs @@ -41,13 +41,15 @@ impl Pallet { let node_is_dedicated = DedicatedNodesExtraFee::::get(node_id) > 0 || farm.dedicated_farm; - // In case there is a rent contract make sure only the contract owner can deploy + // In case there is a rent contract: + // 1. Ensure only the contract owner can deploy, and + // 2. The rent contract is in the 'created' state // If not, allow to deploy only if node is not dedicated match ActiveRentContractForNode::::get(node_id) { Some(contract_id) => { let rent_contract = Contracts::::get(contract_id).ok_or(Error::::ContractNotExists)?; - if rent_contract.twin_id != twin_id { + if rent_contract.twin_id != twin_id || !matches!(rent_contract.state, types::ContractState::Created) { return Err(Error::::NodeNotAvailableToDeploy.into()); } } diff --git a/substrate-node/pallets/pallet-smart-contract/src/tests.rs b/substrate-node/pallets/pallet-smart-contract/src/tests.rs index 8fe7572e9..ef24cc82d 100644 --- a/substrate-node/pallets/pallet-smart-contract/src/tests.rs +++ b/substrate-node/pallets/pallet-smart-contract/src/tests.rs @@ -934,6 +934,45 @@ fn test_create_node_contract_on_dedicated_node_rented_by_other_fails() { }) } +#[test] +fn test_create_node_contract_when_having_a_rentcontract_in_graceperiod_fails() { + let (mut ext, mut pool_state) = new_test_ext_with_pool_state(0); + ext.execute_with(|| { + run_to_block(1, None); + prepare_dedicated_farm_and_node(); + let node_id = 1; + let contract_id = 1; + assert_ok!(SmartContractModule::create_rent_contract( + RuntimeOrigin::signed(charlie()), + node_id, + None + )); + + // Cycle 1 + // User does not have enough funds to pay + pool_state + .write() + .should_call_bill_contract(contract_id, Ok(Pays::Yes.into()), 11); + run_to_block(11, Some(&mut pool_state)); + + let r = SmartContractModule::contracts(1).unwrap(); + assert_eq!(r.state, types::ContractState::GracePeriod(11)); + + // try to create node contract + assert_noop!( + SmartContractModule::create_node_contract( + RuntimeOrigin::signed(charlie()), + node_id, + generate_deployment_hash(), + get_deployment_data(), + 1, + None + ), + Error::::NodeNotAvailableToDeploy + ); + }) +} + #[test] fn test_cancel_rent_contract_with_active_node_contracts_fails() { new_test_ext().execute_with(|| { diff --git a/substrate-node/pallets/pallet-smart-contract/src/weights.rs b/substrate-node/pallets/pallet-smart-contract/src/weights.rs index 7e44e4f31..ab82b4cc7 100644 --- a/substrate-node/pallets/pallet-smart-contract/src/weights.rs +++ b/substrate-node/pallets/pallet-smart-contract/src/weights.rs @@ -2,9 +2,9 @@ //! Autogenerated weights for pallet_smart_contract //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2024-08-27, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2024-09-24, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` -//! HOSTNAME: `66e77d0da08f`, CPU: `AMD Ryzen 7 5800X 8-Core Processor` +//! HOSTNAME: `da081090f983`, CPU: `AMD Ryzen 7 5800X 8-Core Processor` //! EXECUTION: , WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024 // Executed Command: @@ -95,8 +95,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `868` // Estimated: `4333` - // Minimum execution time: 48_532_000 picoseconds. - Weight::from_parts(49_293_000, 4333) + // Minimum execution time: 49_865_000 picoseconds. + Weight::from_parts(50_836_000, 4333) .saturating_add(T::DbWeight::get().reads(12_u64)) .saturating_add(T::DbWeight::get().writes(8_u64)) } @@ -112,8 +112,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `923` // Estimated: `4388` - // Minimum execution time: 27_632_000 picoseconds. - Weight::from_parts(28_023_000, 4388) + // Minimum execution time: 28_464_000 picoseconds. + Weight::from_parts(29_245_000, 4388) .saturating_add(T::DbWeight::get().reads(3_u64)) .saturating_add(T::DbWeight::get().writes(4_u64)) } @@ -149,8 +149,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `1650` // Estimated: `7590` - // Minimum execution time: 75_803_000 picoseconds. - Weight::from_parts(78_449_000, 7590) + // Minimum execution time: 79_240_000 picoseconds. + Weight::from_parts(80_382_000, 7590) .saturating_add(T::DbWeight::get().reads(12_u64)) .saturating_add(T::DbWeight::get().writes(7_u64)) } @@ -174,8 +174,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `340` // Estimated: `3805` - // Minimum execution time: 24_757_000 picoseconds. - Weight::from_parts(25_237_000, 3805) + // Minimum execution time: 26_190_000 picoseconds. + Weight::from_parts(27_382_000, 3805) .saturating_add(T::DbWeight::get().reads(6_u64)) .saturating_add(T::DbWeight::get().writes(5_u64)) } @@ -201,8 +201,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `949` // Estimated: `4414` - // Minimum execution time: 51_417_000 picoseconds. - Weight::from_parts(52_810_000, 4414) + // Minimum execution time: 53_161_000 picoseconds. + Weight::from_parts(54_363_000, 4414) .saturating_add(T::DbWeight::get().reads(8_u64)) .saturating_add(T::DbWeight::get().writes(4_u64)) } @@ -224,8 +224,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `1286` // Estimated: `4751` - // Minimum execution time: 37_891_000 picoseconds. - Weight::from_parts(38_723_000, 4751) + // Minimum execution time: 39_635_000 picoseconds. + Weight::from_parts(40_366_000, 4751) .saturating_add(T::DbWeight::get().reads(7_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } @@ -241,8 +241,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `765` // Estimated: `4230` - // Minimum execution time: 22_993_000 picoseconds. - Weight::from_parts(23_644_000, 4230) + // Minimum execution time: 24_446_000 picoseconds. + Weight::from_parts(24_837_000, 4230) .saturating_add(T::DbWeight::get().reads(3_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } @@ -272,8 +272,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `776` // Estimated: `4241` - // Minimum execution time: 34_595_000 picoseconds. - Weight::from_parts(35_197_000, 4241) + // Minimum execution time: 36_158_000 picoseconds. + Weight::from_parts(36_689_000, 4241) .saturating_add(T::DbWeight::get().reads(9_u64)) .saturating_add(T::DbWeight::get().writes(5_u64)) } @@ -309,8 +309,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `1607` // Estimated: `7547` - // Minimum execution time: 72_758_000 picoseconds. - Weight::from_parts(73_970_000, 7547) + // Minimum execution time: 74_561_000 picoseconds. + Weight::from_parts(76_104_000, 7547) .saturating_add(T::DbWeight::get().reads(14_u64)) .saturating_add(T::DbWeight::get().writes(4_u64)) } @@ -322,8 +322,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `37` // Estimated: `1522` - // Minimum execution time: 9_668_000 picoseconds. - Weight::from_parts(9_969_000, 1522) + // Minimum execution time: 10_089_000 picoseconds. + Weight::from_parts(10_550_000, 1522) .saturating_add(T::DbWeight::get().reads(1_u64)) .saturating_add(T::DbWeight::get().writes(2_u64)) } @@ -333,8 +333,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `215` // Estimated: `3680` - // Minimum execution time: 12_674_000 picoseconds. - Weight::from_parts(12_944_000, 3680) + // Minimum execution time: 13_496_000 picoseconds. + Weight::from_parts(14_116_000, 3680) .saturating_add(T::DbWeight::get().reads(1_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } @@ -374,8 +374,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `2077` // Estimated: `8017` - // Minimum execution time: 86_263_000 picoseconds. - Weight::from_parts(87_505_000, 8017) + // Minimum execution time: 89_289_000 picoseconds. + Weight::from_parts(90_552_000, 8017) .saturating_add(T::DbWeight::get().reads(17_u64)) .saturating_add(T::DbWeight::get().writes(3_u64)) } @@ -389,8 +389,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `395` // Estimated: `6335` - // Minimum execution time: 18_384_000 picoseconds. - Weight::from_parts(18_725_000, 6335) + // Minimum execution time: 19_236_000 picoseconds. + Weight::from_parts(19_777_000, 6335) .saturating_add(T::DbWeight::get().reads(3_u64)) .saturating_add(T::DbWeight::get().writes(2_u64)) } @@ -402,8 +402,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `489` // Estimated: `3954` - // Minimum execution time: 16_732_000 picoseconds. - Weight::from_parts(17_162_000, 3954) + // Minimum execution time: 17_223_000 picoseconds. + Weight::from_parts(17_553_000, 3954) .saturating_add(T::DbWeight::get().reads(2_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } @@ -415,8 +415,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `489` // Estimated: `3954` - // Minimum execution time: 16_351_000 picoseconds. - Weight::from_parts(16_632_000, 3954) + // Minimum execution time: 17_283_000 picoseconds. + Weight::from_parts(17_694_000, 3954) .saturating_add(T::DbWeight::get().reads(2_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } @@ -428,8 +428,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `502` // Estimated: `3967` - // Minimum execution time: 16_271_000 picoseconds. - Weight::from_parts(16_781_000, 3967) + // Minimum execution time: 17_142_000 picoseconds. + Weight::from_parts(17_784_000, 3967) .saturating_add(T::DbWeight::get().reads(2_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } @@ -441,8 +441,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `502` // Estimated: `3967` - // Minimum execution time: 17_022_000 picoseconds. - Weight::from_parts(17_413_000, 3967) + // Minimum execution time: 18_024_000 picoseconds. + Weight::from_parts(18_384_000, 3967) .saturating_add(T::DbWeight::get().reads(2_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } @@ -454,8 +454,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `502` // Estimated: `3967` - // Minimum execution time: 15_990_000 picoseconds. - Weight::from_parts(16_321_000, 3967) + // Minimum execution time: 16_752_000 picoseconds. + Weight::from_parts(17_353_000, 3967) .saturating_add(T::DbWeight::get().reads(2_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } @@ -473,8 +473,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `841` // Estimated: `6781` - // Minimum execution time: 28_924_000 picoseconds. - Weight::from_parts(29_586_000, 6781) + // Minimum execution time: 30_267_000 picoseconds. + Weight::from_parts(31_149_000, 6781) .saturating_add(T::DbWeight::get().reads(6_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } @@ -484,8 +484,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `37` // Estimated: `1522` - // Minimum execution time: 7_474_000 picoseconds. - Weight::from_parts(7_725_000, 1522) + // Minimum execution time: 7_885_000 picoseconds. + Weight::from_parts(8_086_000, 1522) .saturating_add(T::DbWeight::get().reads(1_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } @@ -499,8 +499,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `965` // Estimated: `4430` - // Minimum execution time: 21_971_000 picoseconds. - Weight::from_parts(22_552_000, 4430) + // Minimum execution time: 22_823_000 picoseconds. + Weight::from_parts(23_374_000, 4430) .saturating_add(T::DbWeight::get().reads(3_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } @@ -520,8 +520,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `733` // Estimated: `4198` - // Minimum execution time: 23_114_000 picoseconds. - Weight::from_parts(23_544_000, 4198) + // Minimum execution time: 23_996_000 picoseconds. + Weight::from_parts(24_647_000, 4198) .saturating_add(T::DbWeight::get().reads(5_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } @@ -557,8 +557,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `1650` // Estimated: `7590` - // Minimum execution time: 74_791_000 picoseconds. - Weight::from_parts(76_285_000, 7590) + // Minimum execution time: 77_457_000 picoseconds. + Weight::from_parts(78_609_000, 7590) .saturating_add(T::DbWeight::get().reads(12_u64)) .saturating_add(T::DbWeight::get().writes(7_u64)) } @@ -600,8 +600,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `868` // Estimated: `4333` - // Minimum execution time: 48_532_000 picoseconds. - Weight::from_parts(49_293_000, 4333) + // Minimum execution time: 49_865_000 picoseconds. + Weight::from_parts(50_836_000, 4333) .saturating_add(RocksDbWeight::get().reads(12_u64)) .saturating_add(RocksDbWeight::get().writes(8_u64)) } @@ -617,8 +617,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `923` // Estimated: `4388` - // Minimum execution time: 27_632_000 picoseconds. - Weight::from_parts(28_023_000, 4388) + // Minimum execution time: 28_464_000 picoseconds. + Weight::from_parts(29_245_000, 4388) .saturating_add(RocksDbWeight::get().reads(3_u64)) .saturating_add(RocksDbWeight::get().writes(4_u64)) } @@ -654,8 +654,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `1650` // Estimated: `7590` - // Minimum execution time: 75_803_000 picoseconds. - Weight::from_parts(78_449_000, 7590) + // Minimum execution time: 79_240_000 picoseconds. + Weight::from_parts(80_382_000, 7590) .saturating_add(RocksDbWeight::get().reads(12_u64)) .saturating_add(RocksDbWeight::get().writes(7_u64)) } @@ -679,8 +679,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `340` // Estimated: `3805` - // Minimum execution time: 24_757_000 picoseconds. - Weight::from_parts(25_237_000, 3805) + // Minimum execution time: 26_190_000 picoseconds. + Weight::from_parts(27_382_000, 3805) .saturating_add(RocksDbWeight::get().reads(6_u64)) .saturating_add(RocksDbWeight::get().writes(5_u64)) } @@ -706,8 +706,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `949` // Estimated: `4414` - // Minimum execution time: 51_417_000 picoseconds. - Weight::from_parts(52_810_000, 4414) + // Minimum execution time: 53_161_000 picoseconds. + Weight::from_parts(54_363_000, 4414) .saturating_add(RocksDbWeight::get().reads(8_u64)) .saturating_add(RocksDbWeight::get().writes(4_u64)) } @@ -729,8 +729,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `1286` // Estimated: `4751` - // Minimum execution time: 37_891_000 picoseconds. - Weight::from_parts(38_723_000, 4751) + // Minimum execution time: 39_635_000 picoseconds. + Weight::from_parts(40_366_000, 4751) .saturating_add(RocksDbWeight::get().reads(7_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } @@ -746,8 +746,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `765` // Estimated: `4230` - // Minimum execution time: 22_993_000 picoseconds. - Weight::from_parts(23_644_000, 4230) + // Minimum execution time: 24_446_000 picoseconds. + Weight::from_parts(24_837_000, 4230) .saturating_add(RocksDbWeight::get().reads(3_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } @@ -777,8 +777,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `776` // Estimated: `4241` - // Minimum execution time: 34_595_000 picoseconds. - Weight::from_parts(35_197_000, 4241) + // Minimum execution time: 36_158_000 picoseconds. + Weight::from_parts(36_689_000, 4241) .saturating_add(RocksDbWeight::get().reads(9_u64)) .saturating_add(RocksDbWeight::get().writes(5_u64)) } @@ -814,8 +814,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `1607` // Estimated: `7547` - // Minimum execution time: 72_758_000 picoseconds. - Weight::from_parts(73_970_000, 7547) + // Minimum execution time: 74_561_000 picoseconds. + Weight::from_parts(76_104_000, 7547) .saturating_add(RocksDbWeight::get().reads(14_u64)) .saturating_add(RocksDbWeight::get().writes(4_u64)) } @@ -827,8 +827,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `37` // Estimated: `1522` - // Minimum execution time: 9_668_000 picoseconds. - Weight::from_parts(9_969_000, 1522) + // Minimum execution time: 10_089_000 picoseconds. + Weight::from_parts(10_550_000, 1522) .saturating_add(RocksDbWeight::get().reads(1_u64)) .saturating_add(RocksDbWeight::get().writes(2_u64)) } @@ -838,8 +838,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `215` // Estimated: `3680` - // Minimum execution time: 12_674_000 picoseconds. - Weight::from_parts(12_944_000, 3680) + // Minimum execution time: 13_496_000 picoseconds. + Weight::from_parts(14_116_000, 3680) .saturating_add(RocksDbWeight::get().reads(1_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } @@ -879,8 +879,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `2077` // Estimated: `8017` - // Minimum execution time: 86_263_000 picoseconds. - Weight::from_parts(87_505_000, 8017) + // Minimum execution time: 89_289_000 picoseconds. + Weight::from_parts(90_552_000, 8017) .saturating_add(RocksDbWeight::get().reads(17_u64)) .saturating_add(RocksDbWeight::get().writes(3_u64)) } @@ -894,8 +894,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `395` // Estimated: `6335` - // Minimum execution time: 18_384_000 picoseconds. - Weight::from_parts(18_725_000, 6335) + // Minimum execution time: 19_236_000 picoseconds. + Weight::from_parts(19_777_000, 6335) .saturating_add(RocksDbWeight::get().reads(3_u64)) .saturating_add(RocksDbWeight::get().writes(2_u64)) } @@ -907,8 +907,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `489` // Estimated: `3954` - // Minimum execution time: 16_732_000 picoseconds. - Weight::from_parts(17_162_000, 3954) + // Minimum execution time: 17_223_000 picoseconds. + Weight::from_parts(17_553_000, 3954) .saturating_add(RocksDbWeight::get().reads(2_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } @@ -920,8 +920,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `489` // Estimated: `3954` - // Minimum execution time: 16_351_000 picoseconds. - Weight::from_parts(16_632_000, 3954) + // Minimum execution time: 17_283_000 picoseconds. + Weight::from_parts(17_694_000, 3954) .saturating_add(RocksDbWeight::get().reads(2_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } @@ -933,8 +933,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `502` // Estimated: `3967` - // Minimum execution time: 16_271_000 picoseconds. - Weight::from_parts(16_781_000, 3967) + // Minimum execution time: 17_142_000 picoseconds. + Weight::from_parts(17_784_000, 3967) .saturating_add(RocksDbWeight::get().reads(2_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } @@ -946,8 +946,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `502` // Estimated: `3967` - // Minimum execution time: 17_022_000 picoseconds. - Weight::from_parts(17_413_000, 3967) + // Minimum execution time: 18_024_000 picoseconds. + Weight::from_parts(18_384_000, 3967) .saturating_add(RocksDbWeight::get().reads(2_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } @@ -959,8 +959,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `502` // Estimated: `3967` - // Minimum execution time: 15_990_000 picoseconds. - Weight::from_parts(16_321_000, 3967) + // Minimum execution time: 16_752_000 picoseconds. + Weight::from_parts(17_353_000, 3967) .saturating_add(RocksDbWeight::get().reads(2_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } @@ -978,8 +978,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `841` // Estimated: `6781` - // Minimum execution time: 28_924_000 picoseconds. - Weight::from_parts(29_586_000, 6781) + // Minimum execution time: 30_267_000 picoseconds. + Weight::from_parts(31_149_000, 6781) .saturating_add(RocksDbWeight::get().reads(6_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } @@ -989,8 +989,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `37` // Estimated: `1522` - // Minimum execution time: 7_474_000 picoseconds. - Weight::from_parts(7_725_000, 1522) + // Minimum execution time: 7_885_000 picoseconds. + Weight::from_parts(8_086_000, 1522) .saturating_add(RocksDbWeight::get().reads(1_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } @@ -1004,8 +1004,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `965` // Estimated: `4430` - // Minimum execution time: 21_971_000 picoseconds. - Weight::from_parts(22_552_000, 4430) + // Minimum execution time: 22_823_000 picoseconds. + Weight::from_parts(23_374_000, 4430) .saturating_add(RocksDbWeight::get().reads(3_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } @@ -1025,8 +1025,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `733` // Estimated: `4198` - // Minimum execution time: 23_114_000 picoseconds. - Weight::from_parts(23_544_000, 4198) + // Minimum execution time: 23_996_000 picoseconds. + Weight::from_parts(24_647_000, 4198) .saturating_add(RocksDbWeight::get().reads(5_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } @@ -1062,8 +1062,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `1650` // Estimated: `7590` - // Minimum execution time: 74_791_000 picoseconds. - Weight::from_parts(76_285_000, 7590) + // Minimum execution time: 77_457_000 picoseconds. + Weight::from_parts(78_609_000, 7590) .saturating_add(RocksDbWeight::get().reads(12_u64)) .saturating_add(RocksDbWeight::get().writes(7_u64)) } diff --git a/substrate-node/pallets/pallet-tfgrid/src/weights.rs b/substrate-node/pallets/pallet-tfgrid/src/weights.rs index 18ce069d6..bbc057d8f 100644 --- a/substrate-node/pallets/pallet-tfgrid/src/weights.rs +++ b/substrate-node/pallets/pallet-tfgrid/src/weights.rs @@ -2,9 +2,9 @@ //! Autogenerated weights for pallet_tfgrid //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2024-08-27, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2024-09-24, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` -//! HOSTNAME: `66e77d0da08f`, CPU: `AMD Ryzen 7 5800X 8-Core Processor` +//! HOSTNAME: `da081090f983`, CPU: `AMD Ryzen 7 5800X 8-Core Processor` //! EXECUTION: , WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024 // Executed Command: @@ -76,8 +76,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_515_000 picoseconds. - Weight::from_parts(2_655_000, 0) + // Minimum execution time: 2_384_000 picoseconds. + Weight::from_parts(2_485_000, 0) .saturating_add(T::DbWeight::get().writes(1_u64)) } /// Storage: `TfgridModule::TwinIdByAccountID` (r:1 w:0) @@ -94,8 +94,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `496` // Estimated: `3961` - // Minimum execution time: 20_518_000 picoseconds. - Weight::from_parts(20_980_000, 3961) + // Minimum execution time: 19_998_000 picoseconds. + Weight::from_parts(20_609_000, 3961) .saturating_add(T::DbWeight::get().reads(4_u64)) .saturating_add(T::DbWeight::get().writes(3_u64)) } @@ -109,8 +109,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `507` // Estimated: `3972` - // Minimum execution time: 22_262_000 picoseconds. - Weight::from_parts(22_653_000, 3972) + // Minimum execution time: 21_631_000 picoseconds. + Weight::from_parts(22_072_000, 3972) .saturating_add(T::DbWeight::get().reads(3_u64)) .saturating_add(T::DbWeight::get().writes(3_u64)) } @@ -124,8 +124,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `453` // Estimated: `3918` - // Minimum execution time: 16_531_000 picoseconds. - Weight::from_parts(17_012_000, 3918) + // Minimum execution time: 16_030_000 picoseconds. + Weight::from_parts(16_451_000, 3918) .saturating_add(T::DbWeight::get().reads(2_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } @@ -135,8 +135,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `412` // Estimated: `3877` - // Minimum execution time: 13_476_000 picoseconds. - Weight::from_parts(13_826_000, 3877) + // Minimum execution time: 13_085_000 picoseconds. + Weight::from_parts(13_656_000, 3877) .saturating_add(T::DbWeight::get().reads(1_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } @@ -148,8 +148,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `569` // Estimated: `4034` - // Minimum execution time: 18_355_000 picoseconds. - Weight::from_parts(18_695_000, 4034) + // Minimum execution time: 17_964_000 picoseconds. + Weight::from_parts(18_635_000, 4034) .saturating_add(T::DbWeight::get().reads(2_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } @@ -161,8 +161,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `569` // Estimated: `4034` - // Minimum execution time: 17_534_000 picoseconds. - Weight::from_parts(17_904_000, 4034) + // Minimum execution time: 17_133_000 picoseconds. + Weight::from_parts(17_453_000, 4034) .saturating_add(T::DbWeight::get().reads(2_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } @@ -190,8 +190,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `905` // Estimated: `11795` - // Minimum execution time: 48_913_000 picoseconds. - Weight::from_parts(49_483_000, 11795) + // Minimum execution time: 47_891_000 picoseconds. + Weight::from_parts(48_683_000, 11795) .saturating_add(T::DbWeight::get().reads(12_u64)) .saturating_add(T::DbWeight::get().writes(5_u64)) } @@ -207,8 +207,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `661` // Estimated: `4126` - // Minimum execution time: 27_392_000 picoseconds. - Weight::from_parts(28_073_000, 4126) + // Minimum execution time: 27_271_000 picoseconds. + Weight::from_parts(27_762_000, 4126) .saturating_add(T::DbWeight::get().reads(4_u64)) .saturating_add(T::DbWeight::get().writes(2_u64)) } @@ -222,8 +222,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `956` // Estimated: `11846` - // Minimum execution time: 35_166_000 picoseconds. - Weight::from_parts(35_728_000, 11846) + // Minimum execution time: 34_175_000 picoseconds. + Weight::from_parts(35_116_000, 11846) .saturating_add(T::DbWeight::get().reads(6_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } @@ -239,8 +239,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `454` // Estimated: `3919` - // Minimum execution time: 18_906_000 picoseconds. - Weight::from_parts(19_326_000, 3919) + // Minimum execution time: 18_976_000 picoseconds. + Weight::from_parts(19_607_000, 3919) .saturating_add(T::DbWeight::get().reads(4_u64)) } /// Storage: `TfgridModule::Farms` (r:1 w:0) @@ -253,8 +253,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `779` // Estimated: `4244` - // Minimum execution time: 25_027_000 picoseconds. - Weight::from_parts(25_488_000, 4244) + // Minimum execution time: 24_687_000 picoseconds. + Weight::from_parts(25_168_000, 4244) .saturating_add(T::DbWeight::get().reads(3_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } @@ -274,8 +274,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `682` // Estimated: `4147` - // Minimum execution time: 28_053_000 picoseconds. - Weight::from_parts(28_715_000, 4147) + // Minimum execution time: 28_123_000 picoseconds. + Weight::from_parts(28_755_000, 4147) .saturating_add(T::DbWeight::get().reads(6_u64)) .saturating_add(T::DbWeight::get().writes(3_u64)) } @@ -291,8 +291,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `235` // Estimated: `3700` - // Minimum execution time: 14_828_000 picoseconds. - Weight::from_parts(15_129_000, 3700) + // Minimum execution time: 14_457_000 picoseconds. + Weight::from_parts(15_078_000, 3700) .saturating_add(T::DbWeight::get().reads(3_u64)) .saturating_add(T::DbWeight::get().writes(3_u64)) } @@ -304,8 +304,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `428` // Estimated: `3893` - // Minimum execution time: 15_199_000 picoseconds. - Weight::from_parts(15_610_000, 3893) + // Minimum execution time: 15_179_000 picoseconds. + Weight::from_parts(15_730_000, 3893) .saturating_add(T::DbWeight::get().reads(2_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } @@ -319,8 +319,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `134` // Estimated: `3599` - // Minimum execution time: 12_534_000 picoseconds. - Weight::from_parts(12_795_000, 3599) + // Minimum execution time: 12_333_000 picoseconds. + Weight::from_parts(12_644_000, 3599) .saturating_add(T::DbWeight::get().reads(2_u64)) .saturating_add(T::DbWeight::get().writes(3_u64)) } @@ -334,8 +334,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `382` // Estimated: `3847` - // Minimum execution time: 16_962_000 picoseconds. - Weight::from_parts(17_433_000, 3847) + // Minimum execution time: 16_532_000 picoseconds. + Weight::from_parts(16_852_000, 3847) .saturating_add(T::DbWeight::get().reads(2_u64)) .saturating_add(T::DbWeight::get().writes(3_u64)) } @@ -347,8 +347,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `134` // Estimated: `1619` - // Minimum execution time: 10_480_000 picoseconds. - Weight::from_parts(10_730_000, 1619) + // Minimum execution time: 10_209_000 picoseconds. + Weight::from_parts(10_530_000, 1619) .saturating_add(T::DbWeight::get().reads(1_u64)) .saturating_add(T::DbWeight::get().writes(2_u64)) } @@ -360,8 +360,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `140` // Estimated: `3605` - // Minimum execution time: 7_444_000 picoseconds. - Weight::from_parts(7_664_000, 3605) + // Minimum execution time: 7_374_000 picoseconds. + Weight::from_parts(7_504_000, 3605) .saturating_add(T::DbWeight::get().reads(2_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } @@ -385,8 +385,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `828` // Estimated: `4293` - // Minimum execution time: 33_273_000 picoseconds. - Weight::from_parts(33_854_000, 4293) + // Minimum execution time: 32_722_000 picoseconds. + Weight::from_parts(33_584_000, 4293) .saturating_add(T::DbWeight::get().reads(7_u64)) .saturating_add(T::DbWeight::get().writes(4_u64)) } @@ -396,8 +396,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `412` // Estimated: `3877` - // Minimum execution time: 13_676_000 picoseconds. - Weight::from_parts(14_137_000, 3877) + // Minimum execution time: 13_466_000 picoseconds. + Weight::from_parts(13_966_000, 3877) .saturating_add(T::DbWeight::get().reads(1_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } @@ -407,8 +407,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `412` // Estimated: `3877` - // Minimum execution time: 14_136_000 picoseconds. - Weight::from_parts(14_387_000, 3877) + // Minimum execution time: 13_736_000 picoseconds. + Weight::from_parts(14_086_000, 3877) .saturating_add(T::DbWeight::get().reads(1_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } @@ -418,8 +418,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 5_651_000 picoseconds. - Weight::from_parts(5_821_000, 0) + // Minimum execution time: 5_641_000 picoseconds. + Weight::from_parts(5_811_000, 0) .saturating_add(T::DbWeight::get().writes(1_u64)) } /// Storage: `TfgridModule::AllowedNodeCertifiers` (r:1 w:1) @@ -428,8 +428,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `355` // Estimated: `1840` - // Minimum execution time: 9_799_000 picoseconds. - Weight::from_parts(10_109_000, 1840) + // Minimum execution time: 9_698_000 picoseconds. + Weight::from_parts(10_189_000, 1840) .saturating_add(T::DbWeight::get().reads(1_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } @@ -439,8 +439,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `413` // Estimated: `1898` - // Minimum execution time: 12_233_000 picoseconds. - Weight::from_parts(12_504_000, 1898) + // Minimum execution time: 11_883_000 picoseconds. + Weight::from_parts(12_454_000, 1898) .saturating_add(T::DbWeight::get().reads(1_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } @@ -450,8 +450,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `294` // Estimated: `3759` - // Minimum execution time: 13_325_000 picoseconds. - Weight::from_parts(13_706_000, 3759) + // Minimum execution time: 13_125_000 picoseconds. + Weight::from_parts(13_416_000, 3759) .saturating_add(T::DbWeight::get().reads(1_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } @@ -465,8 +465,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `572` // Estimated: `4037` - // Minimum execution time: 22_302_000 picoseconds. - Weight::from_parts(22_943_000, 4037) + // Minimum execution time: 22_232_000 picoseconds. + Weight::from_parts(22_472_000, 4037) .saturating_add(T::DbWeight::get().reads(3_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } @@ -476,8 +476,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `134` // Estimated: `1619` - // Minimum execution time: 8_096_000 picoseconds. - Weight::from_parts(8_275_000, 1619) + // Minimum execution time: 8_065_000 picoseconds. + Weight::from_parts(8_285_000, 1619) .saturating_add(T::DbWeight::get().reads(1_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } @@ -493,8 +493,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `621` // Estimated: `4086` - // Minimum execution time: 35_657_000 picoseconds. - Weight::from_parts(38_282_000, 4086) + // Minimum execution time: 22_873_000 picoseconds. + Weight::from_parts(23_524_000, 4086) .saturating_add(T::DbWeight::get().reads(4_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } @@ -514,8 +514,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `792` // Estimated: `4257` - // Minimum execution time: 26_661_000 picoseconds. - Weight::from_parts(27_592_000, 4257) + // Minimum execution time: 26_590_000 picoseconds. + Weight::from_parts(26_881_000, 4257) .saturating_add(T::DbWeight::get().reads(6_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } @@ -527,7 +527,7 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `387` // Estimated: `3852` - // Minimum execution time: 11_993_000 picoseconds. + // Minimum execution time: 11_913_000 picoseconds. Weight::from_parts(12_353_000, 3852) .saturating_add(T::DbWeight::get().reads(1_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) @@ -544,8 +544,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `454` // Estimated: `3919` - // Minimum execution time: 18_374_000 picoseconds. - Weight::from_parts(18_755_000, 3919) + // Minimum execution time: 17_984_000 picoseconds. + Weight::from_parts(18_535_000, 3919) .saturating_add(T::DbWeight::get().reads(4_u64)) } } @@ -558,8 +558,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_515_000 picoseconds. - Weight::from_parts(2_655_000, 0) + // Minimum execution time: 2_384_000 picoseconds. + Weight::from_parts(2_485_000, 0) .saturating_add(RocksDbWeight::get().writes(1_u64)) } /// Storage: `TfgridModule::TwinIdByAccountID` (r:1 w:0) @@ -576,8 +576,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `496` // Estimated: `3961` - // Minimum execution time: 20_518_000 picoseconds. - Weight::from_parts(20_980_000, 3961) + // Minimum execution time: 19_998_000 picoseconds. + Weight::from_parts(20_609_000, 3961) .saturating_add(RocksDbWeight::get().reads(4_u64)) .saturating_add(RocksDbWeight::get().writes(3_u64)) } @@ -591,8 +591,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `507` // Estimated: `3972` - // Minimum execution time: 22_262_000 picoseconds. - Weight::from_parts(22_653_000, 3972) + // Minimum execution time: 21_631_000 picoseconds. + Weight::from_parts(22_072_000, 3972) .saturating_add(RocksDbWeight::get().reads(3_u64)) .saturating_add(RocksDbWeight::get().writes(3_u64)) } @@ -606,8 +606,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `453` // Estimated: `3918` - // Minimum execution time: 16_531_000 picoseconds. - Weight::from_parts(17_012_000, 3918) + // Minimum execution time: 16_030_000 picoseconds. + Weight::from_parts(16_451_000, 3918) .saturating_add(RocksDbWeight::get().reads(2_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } @@ -617,8 +617,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `412` // Estimated: `3877` - // Minimum execution time: 13_476_000 picoseconds. - Weight::from_parts(13_826_000, 3877) + // Minimum execution time: 13_085_000 picoseconds. + Weight::from_parts(13_656_000, 3877) .saturating_add(RocksDbWeight::get().reads(1_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } @@ -630,8 +630,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `569` // Estimated: `4034` - // Minimum execution time: 18_355_000 picoseconds. - Weight::from_parts(18_695_000, 4034) + // Minimum execution time: 17_964_000 picoseconds. + Weight::from_parts(18_635_000, 4034) .saturating_add(RocksDbWeight::get().reads(2_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } @@ -643,8 +643,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `569` // Estimated: `4034` - // Minimum execution time: 17_534_000 picoseconds. - Weight::from_parts(17_904_000, 4034) + // Minimum execution time: 17_133_000 picoseconds. + Weight::from_parts(17_453_000, 4034) .saturating_add(RocksDbWeight::get().reads(2_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } @@ -672,8 +672,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `905` // Estimated: `11795` - // Minimum execution time: 48_913_000 picoseconds. - Weight::from_parts(49_483_000, 11795) + // Minimum execution time: 47_891_000 picoseconds. + Weight::from_parts(48_683_000, 11795) .saturating_add(RocksDbWeight::get().reads(12_u64)) .saturating_add(RocksDbWeight::get().writes(5_u64)) } @@ -689,8 +689,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `661` // Estimated: `4126` - // Minimum execution time: 27_392_000 picoseconds. - Weight::from_parts(28_073_000, 4126) + // Minimum execution time: 27_271_000 picoseconds. + Weight::from_parts(27_762_000, 4126) .saturating_add(RocksDbWeight::get().reads(4_u64)) .saturating_add(RocksDbWeight::get().writes(2_u64)) } @@ -704,8 +704,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `956` // Estimated: `11846` - // Minimum execution time: 35_166_000 picoseconds. - Weight::from_parts(35_728_000, 11846) + // Minimum execution time: 34_175_000 picoseconds. + Weight::from_parts(35_116_000, 11846) .saturating_add(RocksDbWeight::get().reads(6_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } @@ -721,8 +721,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `454` // Estimated: `3919` - // Minimum execution time: 18_906_000 picoseconds. - Weight::from_parts(19_326_000, 3919) + // Minimum execution time: 18_976_000 picoseconds. + Weight::from_parts(19_607_000, 3919) .saturating_add(RocksDbWeight::get().reads(4_u64)) } /// Storage: `TfgridModule::Farms` (r:1 w:0) @@ -735,8 +735,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `779` // Estimated: `4244` - // Minimum execution time: 25_027_000 picoseconds. - Weight::from_parts(25_488_000, 4244) + // Minimum execution time: 24_687_000 picoseconds. + Weight::from_parts(25_168_000, 4244) .saturating_add(RocksDbWeight::get().reads(3_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } @@ -756,8 +756,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `682` // Estimated: `4147` - // Minimum execution time: 28_053_000 picoseconds. - Weight::from_parts(28_715_000, 4147) + // Minimum execution time: 28_123_000 picoseconds. + Weight::from_parts(28_755_000, 4147) .saturating_add(RocksDbWeight::get().reads(6_u64)) .saturating_add(RocksDbWeight::get().writes(3_u64)) } @@ -773,8 +773,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `235` // Estimated: `3700` - // Minimum execution time: 14_828_000 picoseconds. - Weight::from_parts(15_129_000, 3700) + // Minimum execution time: 14_457_000 picoseconds. + Weight::from_parts(15_078_000, 3700) .saturating_add(RocksDbWeight::get().reads(3_u64)) .saturating_add(RocksDbWeight::get().writes(3_u64)) } @@ -786,8 +786,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `428` // Estimated: `3893` - // Minimum execution time: 15_199_000 picoseconds. - Weight::from_parts(15_610_000, 3893) + // Minimum execution time: 15_179_000 picoseconds. + Weight::from_parts(15_730_000, 3893) .saturating_add(RocksDbWeight::get().reads(2_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } @@ -801,8 +801,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `134` // Estimated: `3599` - // Minimum execution time: 12_534_000 picoseconds. - Weight::from_parts(12_795_000, 3599) + // Minimum execution time: 12_333_000 picoseconds. + Weight::from_parts(12_644_000, 3599) .saturating_add(RocksDbWeight::get().reads(2_u64)) .saturating_add(RocksDbWeight::get().writes(3_u64)) } @@ -816,8 +816,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `382` // Estimated: `3847` - // Minimum execution time: 16_962_000 picoseconds. - Weight::from_parts(17_433_000, 3847) + // Minimum execution time: 16_532_000 picoseconds. + Weight::from_parts(16_852_000, 3847) .saturating_add(RocksDbWeight::get().reads(2_u64)) .saturating_add(RocksDbWeight::get().writes(3_u64)) } @@ -829,8 +829,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `134` // Estimated: `1619` - // Minimum execution time: 10_480_000 picoseconds. - Weight::from_parts(10_730_000, 1619) + // Minimum execution time: 10_209_000 picoseconds. + Weight::from_parts(10_530_000, 1619) .saturating_add(RocksDbWeight::get().reads(1_u64)) .saturating_add(RocksDbWeight::get().writes(2_u64)) } @@ -842,8 +842,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `140` // Estimated: `3605` - // Minimum execution time: 7_444_000 picoseconds. - Weight::from_parts(7_664_000, 3605) + // Minimum execution time: 7_374_000 picoseconds. + Weight::from_parts(7_504_000, 3605) .saturating_add(RocksDbWeight::get().reads(2_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } @@ -867,8 +867,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `828` // Estimated: `4293` - // Minimum execution time: 33_273_000 picoseconds. - Weight::from_parts(33_854_000, 4293) + // Minimum execution time: 32_722_000 picoseconds. + Weight::from_parts(33_584_000, 4293) .saturating_add(RocksDbWeight::get().reads(7_u64)) .saturating_add(RocksDbWeight::get().writes(4_u64)) } @@ -878,8 +878,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `412` // Estimated: `3877` - // Minimum execution time: 13_676_000 picoseconds. - Weight::from_parts(14_137_000, 3877) + // Minimum execution time: 13_466_000 picoseconds. + Weight::from_parts(13_966_000, 3877) .saturating_add(RocksDbWeight::get().reads(1_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } @@ -889,8 +889,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `412` // Estimated: `3877` - // Minimum execution time: 14_136_000 picoseconds. - Weight::from_parts(14_387_000, 3877) + // Minimum execution time: 13_736_000 picoseconds. + Weight::from_parts(14_086_000, 3877) .saturating_add(RocksDbWeight::get().reads(1_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } @@ -900,8 +900,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 5_651_000 picoseconds. - Weight::from_parts(5_821_000, 0) + // Minimum execution time: 5_641_000 picoseconds. + Weight::from_parts(5_811_000, 0) .saturating_add(RocksDbWeight::get().writes(1_u64)) } /// Storage: `TfgridModule::AllowedNodeCertifiers` (r:1 w:1) @@ -910,8 +910,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `355` // Estimated: `1840` - // Minimum execution time: 9_799_000 picoseconds. - Weight::from_parts(10_109_000, 1840) + // Minimum execution time: 9_698_000 picoseconds. + Weight::from_parts(10_189_000, 1840) .saturating_add(RocksDbWeight::get().reads(1_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } @@ -921,8 +921,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `413` // Estimated: `1898` - // Minimum execution time: 12_233_000 picoseconds. - Weight::from_parts(12_504_000, 1898) + // Minimum execution time: 11_883_000 picoseconds. + Weight::from_parts(12_454_000, 1898) .saturating_add(RocksDbWeight::get().reads(1_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } @@ -932,8 +932,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `294` // Estimated: `3759` - // Minimum execution time: 13_325_000 picoseconds. - Weight::from_parts(13_706_000, 3759) + // Minimum execution time: 13_125_000 picoseconds. + Weight::from_parts(13_416_000, 3759) .saturating_add(RocksDbWeight::get().reads(1_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } @@ -947,8 +947,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `572` // Estimated: `4037` - // Minimum execution time: 22_302_000 picoseconds. - Weight::from_parts(22_943_000, 4037) + // Minimum execution time: 22_232_000 picoseconds. + Weight::from_parts(22_472_000, 4037) .saturating_add(RocksDbWeight::get().reads(3_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } @@ -958,8 +958,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `134` // Estimated: `1619` - // Minimum execution time: 8_096_000 picoseconds. - Weight::from_parts(8_275_000, 1619) + // Minimum execution time: 8_065_000 picoseconds. + Weight::from_parts(8_285_000, 1619) .saturating_add(RocksDbWeight::get().reads(1_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } @@ -975,8 +975,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `621` // Estimated: `4086` - // Minimum execution time: 35_657_000 picoseconds. - Weight::from_parts(38_282_000, 4086) + // Minimum execution time: 22_873_000 picoseconds. + Weight::from_parts(23_524_000, 4086) .saturating_add(RocksDbWeight::get().reads(4_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } @@ -996,8 +996,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `792` // Estimated: `4257` - // Minimum execution time: 26_661_000 picoseconds. - Weight::from_parts(27_592_000, 4257) + // Minimum execution time: 26_590_000 picoseconds. + Weight::from_parts(26_881_000, 4257) .saturating_add(RocksDbWeight::get().reads(6_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } @@ -1009,7 +1009,7 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `387` // Estimated: `3852` - // Minimum execution time: 11_993_000 picoseconds. + // Minimum execution time: 11_913_000 picoseconds. Weight::from_parts(12_353_000, 3852) .saturating_add(RocksDbWeight::get().reads(1_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) @@ -1026,8 +1026,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `454` // Estimated: `3919` - // Minimum execution time: 18_374_000 picoseconds. - Weight::from_parts(18_755_000, 3919) + // Minimum execution time: 17_984_000 picoseconds. + Weight::from_parts(18_535_000, 3919) .saturating_add(RocksDbWeight::get().reads(4_u64)) } } diff --git a/substrate-node/pallets/pallet-tft-bridge/src/weights.rs b/substrate-node/pallets/pallet-tft-bridge/src/weights.rs index 8763e9d61..38dcd78cb 100644 --- a/substrate-node/pallets/pallet-tft-bridge/src/weights.rs +++ b/substrate-node/pallets/pallet-tft-bridge/src/weights.rs @@ -2,9 +2,9 @@ //! Autogenerated weights for pallet_tft_bridge //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2024-08-27, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2024-09-24, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` -//! HOSTNAME: `66e77d0da08f`, CPU: `AMD Ryzen 7 5800X 8-Core Processor` +//! HOSTNAME: `da081090f983`, CPU: `AMD Ryzen 7 5800X 8-Core Processor` //! EXECUTION: , WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024 // Executed Command: @@ -55,8 +55,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `256` // Estimated: `1741` - // Minimum execution time: 7_174_000 picoseconds. - Weight::from_parts(7_444_000, 1741) + // Minimum execution time: 6_933_000 picoseconds. + Weight::from_parts(7_123_000, 1741) .saturating_add(T::DbWeight::get().reads(1_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } @@ -66,8 +66,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `289` // Estimated: `1774` - // Minimum execution time: 7_053_000 picoseconds. - Weight::from_parts(7_314_000, 1774) + // Minimum execution time: 6_923_000 picoseconds. + Weight::from_parts(7_174_000, 1774) .saturating_add(T::DbWeight::get().reads(1_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } @@ -77,8 +77,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_234_000 picoseconds. - Weight::from_parts(2_374_000, 0) + // Minimum execution time: 2_204_000 picoseconds. + Weight::from_parts(2_305_000, 0) .saturating_add(T::DbWeight::get().writes(1_u64)) } /// Storage: `TFTBridgeModule::WithdrawFee` (r:0 w:1) @@ -87,8 +87,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_224_000 picoseconds. - Weight::from_parts(2_335_000, 0) + // Minimum execution time: 2_074_000 picoseconds. + Weight::from_parts(2_205_000, 0) .saturating_add(T::DbWeight::get().writes(1_u64)) } /// Storage: `TFTBridgeModule::DepositFee` (r:0 w:1) @@ -97,8 +97,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_184_000 picoseconds. - Weight::from_parts(2_305_000, 0) + // Minimum execution time: 2_164_000 picoseconds. + Weight::from_parts(2_214_000, 0) .saturating_add(T::DbWeight::get().writes(1_u64)) } /// Storage: `TFTBridgeModule::WithdrawFee` (r:1 w:0) @@ -115,8 +115,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `253` // Estimated: `3593` - // Minimum execution time: 43_151_000 picoseconds. - Weight::from_parts(43_813_000, 3593) + // Minimum execution time: 42_040_000 picoseconds. + Weight::from_parts(42_620_000, 3593) .saturating_add(T::DbWeight::get().reads(4_u64)) .saturating_add(T::DbWeight::get().writes(3_u64)) } @@ -136,8 +136,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `499` // Estimated: `3964` - // Minimum execution time: 59_853_000 picoseconds. - Weight::from_parts(60_825_000, 3964) + // Minimum execution time: 58_811_000 picoseconds. + Weight::from_parts(59_543_000, 3964) .saturating_add(T::DbWeight::get().reads(6_u64)) .saturating_add(T::DbWeight::get().writes(3_u64)) } @@ -151,8 +151,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `631` // Estimated: `4096` - // Minimum execution time: 25_599_000 picoseconds. - Weight::from_parts(26_581_000, 4096) + // Minimum execution time: 25_118_000 picoseconds. + Weight::from_parts(25_598_000, 4096) .saturating_add(T::DbWeight::get().reads(3_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } @@ -166,8 +166,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `571` // Estimated: `4036` - // Minimum execution time: 18_165_000 picoseconds. - Weight::from_parts(18_625_000, 4036) + // Minimum execution time: 17_743_000 picoseconds. + Weight::from_parts(18_555_000, 4036) .saturating_add(T::DbWeight::get().reads(3_u64)) .saturating_add(T::DbWeight::get().writes(2_u64)) } @@ -179,8 +179,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `385` // Estimated: `3850` - // Minimum execution time: 21_491_000 picoseconds. - Weight::from_parts(22_082_000, 3850) + // Minimum execution time: 20_639_000 picoseconds. + Weight::from_parts(21_280_000, 3850) .saturating_add(T::DbWeight::get().reads(2_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } @@ -194,8 +194,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `560` // Estimated: `4025` - // Minimum execution time: 18_675_000 picoseconds. - Weight::from_parts(19_096_000, 4025) + // Minimum execution time: 18_184_000 picoseconds. + Weight::from_parts(18_434_000, 4025) .saturating_add(T::DbWeight::get().reads(3_u64)) .saturating_add(T::DbWeight::get().writes(2_u64)) } @@ -209,8 +209,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `256` // Estimated: `1741` - // Minimum execution time: 7_174_000 picoseconds. - Weight::from_parts(7_444_000, 1741) + // Minimum execution time: 6_933_000 picoseconds. + Weight::from_parts(7_123_000, 1741) .saturating_add(RocksDbWeight::get().reads(1_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } @@ -220,8 +220,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `289` // Estimated: `1774` - // Minimum execution time: 7_053_000 picoseconds. - Weight::from_parts(7_314_000, 1774) + // Minimum execution time: 6_923_000 picoseconds. + Weight::from_parts(7_174_000, 1774) .saturating_add(RocksDbWeight::get().reads(1_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } @@ -231,8 +231,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_234_000 picoseconds. - Weight::from_parts(2_374_000, 0) + // Minimum execution time: 2_204_000 picoseconds. + Weight::from_parts(2_305_000, 0) .saturating_add(RocksDbWeight::get().writes(1_u64)) } /// Storage: `TFTBridgeModule::WithdrawFee` (r:0 w:1) @@ -241,8 +241,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_224_000 picoseconds. - Weight::from_parts(2_335_000, 0) + // Minimum execution time: 2_074_000 picoseconds. + Weight::from_parts(2_205_000, 0) .saturating_add(RocksDbWeight::get().writes(1_u64)) } /// Storage: `TFTBridgeModule::DepositFee` (r:0 w:1) @@ -251,8 +251,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_184_000 picoseconds. - Weight::from_parts(2_305_000, 0) + // Minimum execution time: 2_164_000 picoseconds. + Weight::from_parts(2_214_000, 0) .saturating_add(RocksDbWeight::get().writes(1_u64)) } /// Storage: `TFTBridgeModule::WithdrawFee` (r:1 w:0) @@ -269,8 +269,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `253` // Estimated: `3593` - // Minimum execution time: 43_151_000 picoseconds. - Weight::from_parts(43_813_000, 3593) + // Minimum execution time: 42_040_000 picoseconds. + Weight::from_parts(42_620_000, 3593) .saturating_add(RocksDbWeight::get().reads(4_u64)) .saturating_add(RocksDbWeight::get().writes(3_u64)) } @@ -290,8 +290,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `499` // Estimated: `3964` - // Minimum execution time: 59_853_000 picoseconds. - Weight::from_parts(60_825_000, 3964) + // Minimum execution time: 58_811_000 picoseconds. + Weight::from_parts(59_543_000, 3964) .saturating_add(RocksDbWeight::get().reads(6_u64)) .saturating_add(RocksDbWeight::get().writes(3_u64)) } @@ -305,8 +305,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `631` // Estimated: `4096` - // Minimum execution time: 25_599_000 picoseconds. - Weight::from_parts(26_581_000, 4096) + // Minimum execution time: 25_118_000 picoseconds. + Weight::from_parts(25_598_000, 4096) .saturating_add(RocksDbWeight::get().reads(3_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } @@ -320,8 +320,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `571` // Estimated: `4036` - // Minimum execution time: 18_165_000 picoseconds. - Weight::from_parts(18_625_000, 4036) + // Minimum execution time: 17_743_000 picoseconds. + Weight::from_parts(18_555_000, 4036) .saturating_add(RocksDbWeight::get().reads(3_u64)) .saturating_add(RocksDbWeight::get().writes(2_u64)) } @@ -333,8 +333,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `385` // Estimated: `3850` - // Minimum execution time: 21_491_000 picoseconds. - Weight::from_parts(22_082_000, 3850) + // Minimum execution time: 20_639_000 picoseconds. + Weight::from_parts(21_280_000, 3850) .saturating_add(RocksDbWeight::get().reads(2_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } @@ -348,8 +348,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `560` // Estimated: `4025` - // Minimum execution time: 18_675_000 picoseconds. - Weight::from_parts(19_096_000, 4025) + // Minimum execution time: 18_184_000 picoseconds. + Weight::from_parts(18_434_000, 4025) .saturating_add(RocksDbWeight::get().reads(3_u64)) .saturating_add(RocksDbWeight::get().writes(2_u64)) } diff --git a/substrate-node/pallets/pallet-tft-price/src/weights.rs b/substrate-node/pallets/pallet-tft-price/src/weights.rs index b641c602a..f5b9ac95a 100644 --- a/substrate-node/pallets/pallet-tft-price/src/weights.rs +++ b/substrate-node/pallets/pallet-tft-price/src/weights.rs @@ -2,9 +2,9 @@ //! Autogenerated weights for pallet_tft_price //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2024-08-27, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2024-09-24, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` -//! HOSTNAME: `66e77d0da08f`, CPU: `AMD Ryzen 7 5800X 8-Core Processor` +//! HOSTNAME: `da081090f983`, CPU: `AMD Ryzen 7 5800X 8-Core Processor` //! EXECUTION: , WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024 // Executed Command: @@ -61,8 +61,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `235` // Estimated: `6175` - // Minimum execution time: 29_145_000 picoseconds. - Weight::from_parts(29_967_000, 6175) + // Minimum execution time: 29_426_000 picoseconds. + Weight::from_parts(30_408_000, 6175) .saturating_add(T::DbWeight::get().reads(6_u64)) .saturating_add(T::DbWeight::get().writes(5_u64)) } @@ -74,8 +74,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `93` // Estimated: `1578` - // Minimum execution time: 5_059_000 picoseconds. - Weight::from_parts(5_230_000, 1578) + // Minimum execution time: 5_160_000 picoseconds. + Weight::from_parts(5_290_000, 1578) .saturating_add(T::DbWeight::get().reads(1_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } @@ -87,8 +87,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `93` // Estimated: `1578` - // Minimum execution time: 5_130_000 picoseconds. - Weight::from_parts(5_250_000, 1578) + // Minimum execution time: 5_109_000 picoseconds. + Weight::from_parts(5_240_000, 1578) .saturating_add(T::DbWeight::get().reads(1_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } @@ -116,8 +116,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `235` // Estimated: `6175` - // Minimum execution time: 29_145_000 picoseconds. - Weight::from_parts(29_967_000, 6175) + // Minimum execution time: 29_426_000 picoseconds. + Weight::from_parts(30_408_000, 6175) .saturating_add(RocksDbWeight::get().reads(6_u64)) .saturating_add(RocksDbWeight::get().writes(5_u64)) } @@ -129,8 +129,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `93` // Estimated: `1578` - // Minimum execution time: 5_059_000 picoseconds. - Weight::from_parts(5_230_000, 1578) + // Minimum execution time: 5_160_000 picoseconds. + Weight::from_parts(5_290_000, 1578) .saturating_add(RocksDbWeight::get().reads(1_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } @@ -142,8 +142,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `93` // Estimated: `1578` - // Minimum execution time: 5_130_000 picoseconds. - Weight::from_parts(5_250_000, 1578) + // Minimum execution time: 5_109_000 picoseconds. + Weight::from_parts(5_240_000, 1578) .saturating_add(RocksDbWeight::get().reads(1_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } diff --git a/substrate-node/pallets/pallet-validator/src/weights.rs b/substrate-node/pallets/pallet-validator/src/weights.rs index 64a6b5ae5..0fe82ca7d 100644 --- a/substrate-node/pallets/pallet-validator/src/weights.rs +++ b/substrate-node/pallets/pallet-validator/src/weights.rs @@ -2,9 +2,9 @@ //! Autogenerated weights for pallet_validator //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2024-08-27, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2024-09-24, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` -//! HOSTNAME: `66e77d0da08f`, CPU: `AMD Ryzen 7 5800X 8-Core Processor` +//! HOSTNAME: `da081090f983`, CPU: `AMD Ryzen 7 5800X 8-Core Processor` //! EXECUTION: , WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024 // Executed Command: @@ -50,8 +50,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `42` // Estimated: `3507` - // Minimum execution time: 9_799_000 picoseconds. - Weight::from_parts(10_259_000, 3507) + // Minimum execution time: 9_618_000 picoseconds. + Weight::from_parts(9_909_000, 3507) .saturating_add(T::DbWeight::get().reads(1_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } @@ -65,8 +65,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `365` // Estimated: `3830` - // Minimum execution time: 25_248_000 picoseconds. - Weight::from_parts(25_889_000, 3830) + // Minimum execution time: 25_217_000 picoseconds. + Weight::from_parts(25_849_000, 3830) .saturating_add(T::DbWeight::get().reads(3_u64)) .saturating_add(T::DbWeight::get().writes(3_u64)) } @@ -80,8 +80,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `431` // Estimated: `3896` - // Minimum execution time: 34_565_000 picoseconds. - Weight::from_parts(35_016_000, 3896) + // Minimum execution time: 34_345_000 picoseconds. + Weight::from_parts(35_027_000, 3896) .saturating_add(T::DbWeight::get().reads(3_u64)) .saturating_add(T::DbWeight::get().writes(3_u64)) } @@ -91,8 +91,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `42` // Estimated: `3507` - // Minimum execution time: 8_596_000 picoseconds. - Weight::from_parts(9_047_000, 3507) + // Minimum execution time: 8_727_000 picoseconds. + Weight::from_parts(8_987_000, 3507) .saturating_add(T::DbWeight::get().reads(1_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } @@ -110,8 +110,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `494` // Estimated: `4687` - // Minimum execution time: 25_458_000 picoseconds. - Weight::from_parts(26_180_000, 4687) + // Minimum execution time: 25_308_000 picoseconds. + Weight::from_parts(25_879_000, 4687) .saturating_add(T::DbWeight::get().reads(3_u64)) .saturating_add(T::DbWeight::get().writes(4_u64)) } @@ -131,8 +131,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `558` // Estimated: `4687` - // Minimum execution time: 22_794_000 picoseconds. - Weight::from_parts(23_364_000, 4687) + // Minimum execution time: 22_653_000 picoseconds. + Weight::from_parts(23_154_000, 4687) .saturating_add(T::DbWeight::get().reads(4_u64)) .saturating_add(T::DbWeight::get().writes(4_u64)) } @@ -146,8 +146,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `42` // Estimated: `3507` - // Minimum execution time: 9_799_000 picoseconds. - Weight::from_parts(10_259_000, 3507) + // Minimum execution time: 9_618_000 picoseconds. + Weight::from_parts(9_909_000, 3507) .saturating_add(RocksDbWeight::get().reads(1_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } @@ -161,8 +161,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `365` // Estimated: `3830` - // Minimum execution time: 25_248_000 picoseconds. - Weight::from_parts(25_889_000, 3830) + // Minimum execution time: 25_217_000 picoseconds. + Weight::from_parts(25_849_000, 3830) .saturating_add(RocksDbWeight::get().reads(3_u64)) .saturating_add(RocksDbWeight::get().writes(3_u64)) } @@ -176,8 +176,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `431` // Estimated: `3896` - // Minimum execution time: 34_565_000 picoseconds. - Weight::from_parts(35_016_000, 3896) + // Minimum execution time: 34_345_000 picoseconds. + Weight::from_parts(35_027_000, 3896) .saturating_add(RocksDbWeight::get().reads(3_u64)) .saturating_add(RocksDbWeight::get().writes(3_u64)) } @@ -187,8 +187,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `42` // Estimated: `3507` - // Minimum execution time: 8_596_000 picoseconds. - Weight::from_parts(9_047_000, 3507) + // Minimum execution time: 8_727_000 picoseconds. + Weight::from_parts(8_987_000, 3507) .saturating_add(RocksDbWeight::get().reads(1_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } @@ -206,8 +206,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `494` // Estimated: `4687` - // Minimum execution time: 25_458_000 picoseconds. - Weight::from_parts(26_180_000, 4687) + // Minimum execution time: 25_308_000 picoseconds. + Weight::from_parts(25_879_000, 4687) .saturating_add(RocksDbWeight::get().reads(3_u64)) .saturating_add(RocksDbWeight::get().writes(4_u64)) } @@ -227,8 +227,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `558` // Estimated: `4687` - // Minimum execution time: 22_794_000 picoseconds. - Weight::from_parts(23_364_000, 4687) + // Minimum execution time: 22_653_000 picoseconds. + Weight::from_parts(23_154_000, 4687) .saturating_add(RocksDbWeight::get().reads(4_u64)) .saturating_add(RocksDbWeight::get().writes(4_u64)) } diff --git a/substrate-node/pallets/substrate-validator-set/src/weights.rs b/substrate-node/pallets/substrate-validator-set/src/weights.rs index 5a6a896af..14ec957a9 100644 --- a/substrate-node/pallets/substrate-validator-set/src/weights.rs +++ b/substrate-node/pallets/substrate-validator-set/src/weights.rs @@ -2,9 +2,9 @@ //! Autogenerated weights for substrate_validator_set //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2024-08-27, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2024-09-24, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` -//! HOSTNAME: `66e77d0da08f`, CPU: `AMD Ryzen 7 5800X 8-Core Processor` +//! HOSTNAME: `da081090f983`, CPU: `AMD Ryzen 7 5800X 8-Core Processor` //! EXECUTION: , WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024 // Executed Command: @@ -49,8 +49,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `139` // Estimated: `1624` - // Minimum execution time: 14_217_000 picoseconds. - Weight::from_parts(14_588_000, 1624) + // Minimum execution time: 13_886_000 picoseconds. + Weight::from_parts(14_267_000, 1624) .saturating_add(T::DbWeight::get().reads(2_u64)) .saturating_add(T::DbWeight::get().writes(2_u64)) } @@ -62,8 +62,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `205` // Estimated: `1690` - // Minimum execution time: 11_501_000 picoseconds. - Weight::from_parts(11_812_000, 1690) + // Minimum execution time: 11_261_000 picoseconds. + Weight::from_parts(11_532_000, 1690) .saturating_add(T::DbWeight::get().reads(2_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } @@ -75,8 +75,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `172` // Estimated: `1657` - // Minimum execution time: 12_654_000 picoseconds. - Weight::from_parts(13_095_000, 1657) + // Minimum execution time: 12_544_000 picoseconds. + Weight::from_parts(12_894_000, 1657) .saturating_add(T::DbWeight::get().reads(2_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } @@ -92,8 +92,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `139` // Estimated: `1624` - // Minimum execution time: 14_217_000 picoseconds. - Weight::from_parts(14_588_000, 1624) + // Minimum execution time: 13_886_000 picoseconds. + Weight::from_parts(14_267_000, 1624) .saturating_add(RocksDbWeight::get().reads(2_u64)) .saturating_add(RocksDbWeight::get().writes(2_u64)) } @@ -105,8 +105,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `205` // Estimated: `1690` - // Minimum execution time: 11_501_000 picoseconds. - Weight::from_parts(11_812_000, 1690) + // Minimum execution time: 11_261_000 picoseconds. + Weight::from_parts(11_532_000, 1690) .saturating_add(RocksDbWeight::get().reads(2_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } @@ -118,8 +118,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `172` // Estimated: `1657` - // Minimum execution time: 12_654_000 picoseconds. - Weight::from_parts(13_095_000, 1657) + // Minimum execution time: 12_544_000 picoseconds. + Weight::from_parts(12_894_000, 1657) .saturating_add(RocksDbWeight::get().reads(2_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) }