diff --git a/substrate-node/pallets/pallet-burning/src/weights.rs b/substrate-node/pallets/pallet-burning/src/weights.rs index 0a0354124..c840829cf 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-05-28, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2024-06-04, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` -//! HOSTNAME: `7f09c44a8947`, CPU: `AMD Ryzen 7 5800X 8-Core Processor` +//! HOSTNAME: `4b80713dc969`, 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: 27_162_000 picoseconds. - Weight::from_parts(27_532_000, 1594) + // Minimum execution time: 26_841_000 picoseconds. + Weight::from_parts(27_372_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: 27_162_000 picoseconds. - Weight::from_parts(27_532_000, 1594) + // Minimum execution time: 26_841_000 picoseconds. + Weight::from_parts(27_372_000, 1594) .saturating_add(RocksDbWeight::get().reads(1_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } diff --git a/substrate-node/pallets/pallet-dao/creating_proposal_farmers.md b/substrate-node/pallets/pallet-dao/creating_proposal_farmers.md index 2fe9a0c82..3bffd229f 100644 --- a/substrate-node/pallets/pallet-dao/creating_proposal_farmers.md +++ b/substrate-node/pallets/pallet-dao/creating_proposal_farmers.md @@ -21,11 +21,11 @@ Open the Polkadot JS UI in your browser: The proposal must include the following arguments: -* `threshold`: minimal number of farmer votes required to be able to close proposal before its end. +* `threshold`: minimal number of farmer votes required to be able to close proposal before its end. should be at least 5 or more. * `action`: call/extrinsic to execute on chain. If there is no call to be executed (which is usually the case) then `system` -> `remark()` should be set. * `description`: a small description of what the proposal is about. * `link`: a link to a more elaborate explanation of the proposal. -* `duration`: optional duration of the proposal after beeing created (default is 7 days, max value is 30 days), expressed in number of blocks (1 block = 6 sec). +* `duration`: optional duration of the proposal after beeing created (default is 7 days, min value is 1 day, max value is 30 days), expressed in number of blocks (1 block = 6 sec). ![fill](./img/fill_proposal_farmers.png) diff --git a/substrate-node/pallets/pallet-dao/src/benchmarking.rs b/substrate-node/pallets/pallet-dao/src/benchmarking.rs index 88a041394..58e15ad10 100644 --- a/substrate-node/pallets/pallet-dao/src/benchmarking.rs +++ b/substrate-node/pallets/pallet-dao/src/benchmarking.rs @@ -26,7 +26,7 @@ benchmarks! { propose { let caller: T::AccountId = whitelisted_caller(); assert_ok!(_add_council_member::(caller.clone())); - let threshold = 1; + let threshold = 5; let proposal: T::Proposal = SystemCall::::remark { remark: b"remark".to_vec() }.into(); let description = b"some_description".to_vec(); let link = b"some_link".to_vec(); @@ -53,7 +53,7 @@ benchmarks! { // vote() vote { let farmer: T::AccountId = account("Alice", 0, 0); - _prepare_farm_with_node::(farmer.clone()); + _prepare_farm_with_node::(farmer.clone(), b"testfarm", 1); let farm_id = 1; let caller: T::AccountId = whitelisted_caller(); @@ -80,7 +80,7 @@ benchmarks! { // veto() veto { let farmer: T::AccountId = account("Alice", 0, 0); - _prepare_farm_with_node::(farmer.clone()); + _prepare_farm_with_node::(farmer.clone(), b"testfarm", 1); let farm_id = 1; let caller: T::AccountId = whitelisted_caller(); @@ -98,15 +98,30 @@ benchmarks! { // close() close { let farmer: T::AccountId = account("Alice", 0, 0); - _prepare_farm_with_node::(farmer.clone()); - let farm_id = 1; + let farmer2: T::AccountId = account("Bob", 0, 0); + let farmer3: T::AccountId = account("Charlie", 0, 0); + let farmer4: T::AccountId = account("Dave", 0, 0); + let farmer5: T::AccountId = account("Eve", 0, 0); + + + _prepare_farm_with_node::(farmer.clone(), b"testfarm", 1); + _prepare_farm_with_node::(farmer2.clone(), b"testfarm2", 2); + _prepare_farm_with_node::(farmer3.clone(), b"testfarm3", 3); + _prepare_farm_with_node::(farmer4.clone(), b"testfarm4", 4); + _prepare_farm_with_node::(farmer5.clone(), b"testfarm5", 5); + let caller: T::AccountId = whitelisted_caller(); let proposal_hash = _create_proposal::(caller.clone()); let proposal_index = 0; let approve = false; - DaoModule::::vote(RawOrigin::Signed(farmer.clone()).into(), farm_id, proposal_hash, approve).unwrap(); + DaoModule::::vote(RawOrigin::Signed(farmer.clone()).into(), 1, proposal_hash, approve).unwrap(); + DaoModule::::vote(RawOrigin::Signed(farmer2.clone()).into(), 2, proposal_hash, approve).unwrap(); + DaoModule::::vote(RawOrigin::Signed(farmer3.clone()).into(), 3, proposal_hash, approve).unwrap(); + DaoModule::::vote(RawOrigin::Signed(farmer4.clone()).into(), 4, proposal_hash, approve).unwrap(); + DaoModule::::vote(RawOrigin::Signed(farmer5.clone()).into(), 5, proposal_hash, approve).unwrap(); + }: _(RawOrigin::Signed(caller.clone()), proposal_hash, proposal_index) verify { assert!(DaoModule::::proposal_list(proposal_hash).is_none()); @@ -127,10 +142,10 @@ fn assert_last_event(generic_event: ::RuntimeEvent) { assert_eq!(event, &system_event); } -pub fn _prepare_farm_with_node(source: T::AccountId) { +pub fn _prepare_farm_with_node(source: T::AccountId, farm_name: &[u8], farm_id : u32) { _create_twin::(source.clone()); - _create_farm::(source.clone()); - _create_node::(source.clone()); + _create_farm::(source.clone(), farm_name); + _create_node::(source.clone(), farm_id); } fn _create_twin(source: T::AccountId) { @@ -147,7 +162,7 @@ fn _create_twin(source: T::AccountId) { )); } -fn _create_farm(source: T::AccountId) { +fn _create_farm(source: T::AccountId, farm_name: &[u8]) { let mut pub_ips = Vec::new(); pub_ips.push(IP4 { ip: get_public_ip_ip_input(b"185.206.122.33/24"), @@ -160,12 +175,12 @@ fn _create_farm(source: T::AccountId) { assert_ok!(TfgridModule::::create_farm( RawOrigin::Signed(source).into(), - b"testfarm".to_vec().try_into().unwrap(), + farm_name.to_vec().try_into().unwrap(), pub_ips.clone().try_into().unwrap(), )); } -fn _create_node(source: T::AccountId) { +fn _create_node(source: T::AccountId, farm_id: u32) { let resources = ResourcesInput { hru: 1024 * GIGABYTE, sru: 512 * GIGABYTE, @@ -183,7 +198,7 @@ fn _create_node(source: T::AccountId) { assert_ok!(TfgridModule::::create_node( RawOrigin::Signed(source.clone()).into(), - 1, + farm_id, resources, location, Vec::new().try_into().unwrap(), @@ -196,7 +211,7 @@ fn _create_node(source: T::AccountId) { pub fn _create_proposal(source: T::AccountId) -> T::Hash { assert_ok!(_add_council_member::(source.clone())); - let threshold = 1; + let threshold = 5; let proposal: T::Proposal = SystemCall::::remark { remark: b"remark".to_vec(), } diff --git a/substrate-node/pallets/pallet-dao/src/dao.rs b/substrate-node/pallets/pallet-dao/src/dao.rs index b5c04955d..b599c6248 100644 --- a/substrate-node/pallets/pallet-dao/src/dao.rs +++ b/substrate-node/pallets/pallet-dao/src/dao.rs @@ -42,13 +42,16 @@ impl Pallet { let now = frame_system::Pallet::::block_number(); let mut end = now + T::MotionDuration::get(); + // Check if duration is set and is less than 30 days and more than 1 Day if let Some(motion_duration) = duration { ensure!( - motion_duration < BlockNumberFor::::from(constants::time::DAYS * 30), + motion_duration <= BlockNumberFor::::from(constants::time::DAYS * 30) && motion_duration >= BlockNumberFor::::from(constants::time::DAYS * 1), Error::::InvalidProposalDuration ); end = now + motion_duration; } + // threshold should be at least the configured minimum threshold for a motion in runtime + ensure!(threshold >= T::MotionMinThreshold::get(), Error::::ThresholdTooLow); let index = Self::proposal_count(); >::mutate(|i| *i += 1); diff --git a/substrate-node/pallets/pallet-dao/src/lib.rs b/substrate-node/pallets/pallet-dao/src/lib.rs index e11873660..407955f01 100644 --- a/substrate-node/pallets/pallet-dao/src/lib.rs +++ b/substrate-node/pallets/pallet-dao/src/lib.rs @@ -56,6 +56,8 @@ pub mod pallet { /// The time-out for council motions. type MotionDuration: Get>; + type MotionMinThreshold: Get; + /// The minimum amount of vetos to dissaprove a proposal type MinVetos: Get; @@ -173,6 +175,7 @@ pub mod pallet { OngoingVoteAndTresholdStillNotMet, FarmHasNoNodes, InvalidProposalDuration, + ThresholdTooLow, } #[pallet::call] diff --git a/substrate-node/pallets/pallet-dao/src/mock.rs b/substrate-node/pallets/pallet-dao/src/mock.rs index f11eac99a..c59aedd98 100644 --- a/substrate-node/pallets/pallet-dao/src/mock.rs +++ b/substrate-node/pallets/pallet-dao/src/mock.rs @@ -69,6 +69,7 @@ pub type BlockNumber = u32; parameter_types! { pub const DaoMotionDuration: BlockNumber = 4; pub const MinVetos: u32 = 2; + pub const MinThreshold: u32 = 2; } pub(crate) type Serial = pallet_tfgrid::pallet::SerialNumberOf; @@ -107,6 +108,7 @@ impl pallet_dao::pallet::Config for TestRuntime { type CouncilOrigin = EnsureRoot; type Proposal = RuntimeCall; type MotionDuration = DaoMotionDuration; + type MotionMinThreshold = MinThreshold; type MinVetos = MinVetos; type Tfgrid = TfgridModule; type WeightInfo = weights::SubstrateWeight; diff --git a/substrate-node/pallets/pallet-dao/src/tests.rs b/substrate-node/pallets/pallet-dao/src/tests.rs index 7fb41600a..205cff830 100644 --- a/substrate-node/pallets/pallet-dao/src/tests.rs +++ b/substrate-node/pallets/pallet-dao/src/tests.rs @@ -18,7 +18,7 @@ fn farmers_vote_no_farm_fails() { assert_ok!(DaoModule::propose( RuntimeOrigin::signed(1), - 3, + MinThreshold::get(), Box::new(proposal.clone()), b"some_description".to_vec(), b"some_link".to_vec(), @@ -44,7 +44,7 @@ fn farmers_vote_proposal_works() { assert_ok!(DaoModule::propose( RuntimeOrigin::signed(1), - 3, + MinThreshold::get(), Box::new(proposal.clone()), b"some_description".to_vec(), b"some_link".to_vec(), @@ -81,7 +81,7 @@ fn farmers_vote_proposal_if_no_nodes_fails() { assert_ok!(DaoModule::propose( RuntimeOrigin::signed(1), - 1, + MinThreshold::get(), Box::new(proposal.clone()), b"some_description".to_vec(), b"some_link".to_vec(), @@ -140,10 +140,9 @@ fn close_works() { let proposal = make_proposal(b"some_remark".to_vec()); let hash = BlakeTwo256::hash_of(&proposal); - let threshold = 2; assert_ok!(DaoModule::propose( RuntimeOrigin::signed(1), - threshold, + MinThreshold::get(), Box::new(proposal.clone()), b"some_description".to_vec(), b"some_link".to_vec(), @@ -250,7 +249,7 @@ fn close_after_proposal_duration_works() { assert_ok!(DaoModule::propose( RuntimeOrigin::signed(1), - 2, + MinThreshold::get(), Box::new(proposal.clone()), b"some_description".to_vec(), b"some_link".to_vec(), @@ -269,11 +268,10 @@ fn close_after_proposal_duration_threshold_not_met_works() { let proposal = make_proposal(b"some_remark".to_vec()); let hash = BlakeTwo256::hash_of(&proposal); - let threshold = 2; assert_ok!(DaoModule::propose( RuntimeOrigin::signed(1), - threshold, + MinThreshold::get(), Box::new(proposal.clone()), b"some_description".to_vec(), b"some_link".to_vec(), @@ -316,7 +314,7 @@ fn close_if_not_council_member_fails() { assert_ok!(DaoModule::propose( RuntimeOrigin::signed(1), - 2, + MinThreshold::get(), Box::new(proposal.clone()), b"some_description".to_vec(), b"some_link".to_vec(), @@ -346,7 +344,7 @@ fn motion_approval_works() { assert_ok!(DaoModule::propose( RuntimeOrigin::signed(1), - 2, + MinThreshold::get(), Box::new(proposal.clone()), b"some_description".to_vec(), b"some_link".to_vec(), @@ -461,7 +459,7 @@ fn motion_veto_works() { assert_ok!(DaoModule::propose( RuntimeOrigin::signed(1), - 2, + MinThreshold::get(), Box::new(proposal.clone()), b"some_description".to_vec(), b"some_link".to_vec(), @@ -563,7 +561,7 @@ fn motion_veto_duplicate_fails() { assert_ok!(DaoModule::propose( RuntimeOrigin::signed(1), - 2, + MinThreshold::get(), Box::new(proposal.clone()), b"some_description".to_vec(), b"some_link".to_vec(), @@ -594,7 +592,7 @@ fn weighted_voting_works() { assert_ok!(DaoModule::propose( RuntimeOrigin::signed(1), - 2, + MinThreshold::get(), Box::new(proposal.clone()), b"some_description".to_vec(), b"some_link".to_vec(), @@ -700,7 +698,7 @@ fn voting_tfgridmodule_call_works() { assert_ok!(DaoModule::propose( RuntimeOrigin::signed(1), - 2, + MinThreshold::get(), Box::new(proposal.clone()), b"some_description".to_vec(), b"some_link".to_vec(), @@ -817,11 +815,11 @@ fn customize_proposal_duration_works() { assert_ok!(DaoModule::propose( RuntimeOrigin::signed(1), - 2, + MinThreshold::get(), Box::new(proposal.clone()), b"some_description".to_vec(), b"some_link".to_vec(), - Some(10) + Some(14400) )); // Farmer 1 votes yes @@ -833,13 +831,13 @@ fn customize_proposal_duration_works() { true )); - System::set_block_number(9); + System::set_block_number(14400); assert_noop!( DaoModule::close(RuntimeOrigin::signed(2), hash.clone(), 0,), Error::::OngoingVoteAndTresholdStillNotMet ); - System::set_block_number(11); + System::set_block_number(14401); assert_ok!(DaoModule::close(RuntimeOrigin::signed(2), hash.clone(), 0,)); }); } @@ -865,7 +863,7 @@ fn customize_proposal_duration_out_of_bounds_fails() { assert_noop!( DaoModule::propose( RuntimeOrigin::signed(1), - 2, + MinThreshold::get(), Box::new(proposal.clone()), b"some_description".to_vec(), b"some_link".to_vec(), @@ -873,6 +871,37 @@ fn customize_proposal_duration_out_of_bounds_fails() { ), Error::::InvalidProposalDuration ); + + assert_noop!( + DaoModule::propose( + RuntimeOrigin::signed(1), + MinThreshold::get(), + Box::new(proposal.clone()), + b"some_description".to_vec(), + b"some_link".to_vec(), + Some(14399) + ), + Error::::InvalidProposalDuration + ); + }); +} + +#[test] +fn motion_proposal_threshold_fails() { + new_test_ext().execute_with(|| { + let proposal = make_proposal(b"some_remark".to_vec()); + + assert_noop!( + DaoModule::propose( + RuntimeOrigin::signed(1), + MinThreshold::get() - 1, + Box::new(proposal.clone()), + b"some_description".to_vec(), + b"some_link".to_vec(), + None + ), + Error::::ThresholdTooLow + ); }); } diff --git a/substrate-node/pallets/pallet-dao/src/weights.rs b/substrate-node/pallets/pallet-dao/src/weights.rs index 2ebca45d3..4301ffe5a 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-05-28, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2024-06-04, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` -//! HOSTNAME: `7f09c44a8947`, CPU: `AMD Ryzen 7 5800X 8-Core Processor` +//! HOSTNAME: `4b80713dc969`, 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_226_000 picoseconds. - Weight::from_parts(19_677_000, 4687) + // Minimum execution time: 19_196_000 picoseconds. + Weight::from_parts(19_487_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_420_000 picoseconds. - Weight::from_parts(26_761_000, 4444) + // Minimum execution time: 26_179_000 picoseconds. + Weight::from_parts(26_751_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_605_000 picoseconds. - Weight::from_parts(18_945_000, 4687) + // Minimum execution time: 18_154_000 picoseconds. + Weight::from_parts(18_755_000, 4687) .saturating_add(T::DbWeight::get().reads(3_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } @@ -109,10 +109,10 @@ impl WeightInfo for SubstrateWeight { /// Proof: `Dao::ProposalOf` (`max_values`: None, `max_size`: None, mode: `Measured`) fn close() -> Weight { // Proof Size summary in bytes: - // Measured: `469` + // Measured: `521` // Estimated: `4687` - // Minimum execution time: 23_945_000 picoseconds. - Weight::from_parts(24_396_000, 4687) + // Minimum execution time: 24_757_000 picoseconds. + Weight::from_parts(25_268_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_226_000 picoseconds. - Weight::from_parts(19_677_000, 4687) + // Minimum execution time: 19_196_000 picoseconds. + Weight::from_parts(19_487_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_420_000 picoseconds. - Weight::from_parts(26_761_000, 4444) + // Minimum execution time: 26_179_000 picoseconds. + Weight::from_parts(26_751_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_605_000 picoseconds. - Weight::from_parts(18_945_000, 4687) + // Minimum execution time: 18_154_000 picoseconds. + Weight::from_parts(18_755_000, 4687) .saturating_add(RocksDbWeight::get().reads(3_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } @@ -187,10 +187,10 @@ impl WeightInfo for () { /// Proof: `Dao::ProposalOf` (`max_values`: None, `max_size`: None, mode: `Measured`) fn close() -> Weight { // Proof Size summary in bytes: - // Measured: `469` + // Measured: `521` // Estimated: `4687` - // Minimum execution time: 23_945_000 picoseconds. - Weight::from_parts(24_396_000, 4687) + // Minimum execution time: 24_757_000 picoseconds. + Weight::from_parts(25_268_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 0bc1314a1..1e49afb32 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-05-28, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2024-06-04, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` -//! HOSTNAME: `7f09c44a8947`, CPU: `AMD Ryzen 7 5800X 8-Core Processor` +//! HOSTNAME: `4b80713dc969`, 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: 6_763_000 picoseconds. - Weight::from_parts(7_043_000, 0) + // Minimum execution time: 7_293_000 picoseconds. + Weight::from_parts(7_574_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_313_000 picoseconds. - Weight::from_parts(12_654_000, 3611) + // Minimum execution time: 12_784_000 picoseconds. + Weight::from_parts(13_205_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: 6_763_000 picoseconds. - Weight::from_parts(7_043_000, 0) + // Minimum execution time: 7_293_000 picoseconds. + Weight::from_parts(7_574_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_313_000 picoseconds. - Weight::from_parts(12_654_000, 3611) + // Minimum execution time: 12_784_000 picoseconds. + Weight::from_parts(13_205_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/weights.rs b/substrate-node/pallets/pallet-smart-contract/src/weights.rs index 79f4310bf..c05881a43 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-05-28, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2024-06-04, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` -//! HOSTNAME: `7f09c44a8947`, CPU: `AMD Ryzen 7 5800X 8-Core Processor` +//! HOSTNAME: `4b80713dc969`, 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_782_000 picoseconds. - Weight::from_parts(49_754_000, 4333) + // Minimum execution time: 48_412_000 picoseconds. + Weight::from_parts(49_073_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: `892` // Estimated: `4357` - // Minimum execution time: 27_191_000 picoseconds. - Weight::from_parts(27_723_000, 4357) + // Minimum execution time: 26_911_000 picoseconds. + Weight::from_parts(27_492_000, 4357) .saturating_add(T::DbWeight::get().reads(3_u64)) .saturating_add(T::DbWeight::get().writes(4_u64)) } @@ -145,8 +145,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `1203` // Estimated: `4668` - // Minimum execution time: 61_075_000 picoseconds. - Weight::from_parts(62_097_000, 4668) + // Minimum execution time: 60_164_000 picoseconds. + Weight::from_parts(61_396_000, 4668) .saturating_add(T::DbWeight::get().reads(9_u64)) .saturating_add(T::DbWeight::get().writes(7_u64)) } @@ -170,8 +170,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `340` // Estimated: `3805` - // Minimum execution time: 24_636_000 picoseconds. - Weight::from_parts(25_037_000, 3805) + // Minimum execution time: 24_697_000 picoseconds. + Weight::from_parts(25_468_000, 3805) .saturating_add(T::DbWeight::get().reads(6_u64)) .saturating_add(T::DbWeight::get().writes(5_u64)) } @@ -197,8 +197,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `919` // Estimated: `4384` - // Minimum execution time: 46_498_000 picoseconds. - Weight::from_parts(47_310_000, 4384) + // Minimum execution time: 46_268_000 picoseconds. + Weight::from_parts(47_641_000, 4384) .saturating_add(T::DbWeight::get().reads(8_u64)) .saturating_add(T::DbWeight::get().writes(4_u64)) } @@ -220,8 +220,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `1292` // Estimated: `4757` - // Minimum execution time: 38_082_000 picoseconds. - Weight::from_parts(39_114_000, 4757) + // Minimum execution time: 38_112_000 picoseconds. + Weight::from_parts(38_763_000, 4757) .saturating_add(T::DbWeight::get().reads(7_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } @@ -237,8 +237,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `771` // Estimated: `4236` - // Minimum execution time: 23_054_000 picoseconds. - Weight::from_parts(23_495_000, 4236) + // Minimum execution time: 23_053_000 picoseconds. + Weight::from_parts(23_394_000, 4236) .saturating_add(T::DbWeight::get().reads(3_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } @@ -268,8 +268,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `776` // Estimated: `4241` - // Minimum execution time: 35_056_000 picoseconds. - Weight::from_parts(35_547_000, 4241) + // Minimum execution time: 34_856_000 picoseconds. + Weight::from_parts(35_767_000, 4241) .saturating_add(T::DbWeight::get().reads(9_u64)) .saturating_add(T::DbWeight::get().writes(5_u64)) } @@ -303,8 +303,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `1284` // Estimated: `4749` - // Minimum execution time: 60_054_000 picoseconds. - Weight::from_parts(60_945_000, 4749) + // Minimum execution time: 59_392_000 picoseconds. + Weight::from_parts(60_414_000, 4749) .saturating_add(T::DbWeight::get().reads(12_u64)) .saturating_add(T::DbWeight::get().writes(4_u64)) } @@ -316,8 +316,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `37` // Estimated: `1522` - // Minimum execution time: 9_808_000 picoseconds. - Weight::from_parts(10_179_000, 1522) + // Minimum execution time: 9_949_000 picoseconds. + Weight::from_parts(10_199_000, 1522) .saturating_add(T::DbWeight::get().reads(1_u64)) .saturating_add(T::DbWeight::get().writes(2_u64)) } @@ -327,8 +327,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `215` // Estimated: `3680` - // Minimum execution time: 12_614_000 picoseconds. - Weight::from_parts(13_024_000, 3680) + // Minimum execution time: 12_814_000 picoseconds. + Weight::from_parts(13_205_000, 3680) .saturating_add(T::DbWeight::get().reads(1_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } @@ -368,8 +368,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `1608` // Estimated: `5073` - // Minimum execution time: 80_311_000 picoseconds. - Weight::from_parts(81_725_000, 5073) + // Minimum execution time: 79_811_000 picoseconds. + Weight::from_parts(81_795_000, 5073) .saturating_add(T::DbWeight::get().reads(16_u64)) .saturating_add(T::DbWeight::get().writes(4_u64)) } @@ -383,8 +383,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `395` // Estimated: `6335` - // Minimum execution time: 18_405_000 picoseconds. - Weight::from_parts(18_976_000, 6335) + // Minimum execution time: 18_665_000 picoseconds. + Weight::from_parts(19_127_000, 6335) .saturating_add(T::DbWeight::get().reads(3_u64)) .saturating_add(T::DbWeight::get().writes(2_u64)) } @@ -396,8 +396,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `489` // Estimated: `3954` - // Minimum execution time: 16_491_000 picoseconds. - Weight::from_parts(16_752_000, 3954) + // Minimum execution time: 16_552_000 picoseconds. + Weight::from_parts(17_192_000, 3954) .saturating_add(T::DbWeight::get().reads(2_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } @@ -409,8 +409,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_602_000, 3954) + // Minimum execution time: 16_260_000 picoseconds. + Weight::from_parts(16_801_000, 3954) .saturating_add(T::DbWeight::get().reads(2_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } @@ -422,8 +422,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `502` // Estimated: `3967` - // Minimum execution time: 16_602_000 picoseconds. - Weight::from_parts(16_782_000, 3967) + // Minimum execution time: 16_512_000 picoseconds. + Weight::from_parts(17_032_000, 3967) .saturating_add(T::DbWeight::get().reads(2_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } @@ -435,8 +435,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `502` // Estimated: `3967` - // Minimum execution time: 17_192_000 picoseconds. - Weight::from_parts(17_733_000, 3967) + // Minimum execution time: 17_183_000 picoseconds. + Weight::from_parts(17_914_000, 3967) .saturating_add(T::DbWeight::get().reads(2_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } @@ -448,8 +448,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_492_000, 3967) + // Minimum execution time: 16_181_000 picoseconds. + Weight::from_parts(16_832_000, 3967) .saturating_add(T::DbWeight::get().reads(2_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } @@ -467,8 +467,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `841` // Estimated: `6781` - // Minimum execution time: 30_478_000 picoseconds. - Weight::from_parts(30_958_000, 6781) + // Minimum execution time: 29_806_000 picoseconds. + Weight::from_parts(30_869_000, 6781) .saturating_add(T::DbWeight::get().reads(6_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } @@ -478,8 +478,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `37` // Estimated: `1522` - // Minimum execution time: 7_754_000 picoseconds. - Weight::from_parts(7_965_000, 1522) + // Minimum execution time: 7_434_000 picoseconds. + Weight::from_parts(7_725_000, 1522) .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: `971` // Estimated: `4436` - // Minimum execution time: 21_721_000 picoseconds. - Weight::from_parts(22_172_000, 4436) + // Minimum execution time: 21_731_000 picoseconds. + Weight::from_parts(22_693_000, 4436) .saturating_add(T::DbWeight::get().reads(3_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } @@ -514,8 +514,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `733` // Estimated: `4198` - // Minimum execution time: 23_384_000 picoseconds. - Weight::from_parts(24_056_000, 4198) + // Minimum execution time: 23_585_000 picoseconds. + Weight::from_parts(23_975_000, 4198) .saturating_add(T::DbWeight::get().reads(5_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } @@ -547,8 +547,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `1203` // Estimated: `4668` - // Minimum execution time: 59_172_000 picoseconds. - Weight::from_parts(60_705_000, 4668) + // Minimum execution time: 58_099_000 picoseconds. + Weight::from_parts(59_022_000, 4668) .saturating_add(T::DbWeight::get().reads(9_u64)) .saturating_add(T::DbWeight::get().writes(7_u64)) } @@ -590,8 +590,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `868` // Estimated: `4333` - // Minimum execution time: 48_782_000 picoseconds. - Weight::from_parts(49_754_000, 4333) + // Minimum execution time: 48_412_000 picoseconds. + Weight::from_parts(49_073_000, 4333) .saturating_add(RocksDbWeight::get().reads(12_u64)) .saturating_add(RocksDbWeight::get().writes(8_u64)) } @@ -607,8 +607,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `892` // Estimated: `4357` - // Minimum execution time: 27_191_000 picoseconds. - Weight::from_parts(27_723_000, 4357) + // Minimum execution time: 26_911_000 picoseconds. + Weight::from_parts(27_492_000, 4357) .saturating_add(RocksDbWeight::get().reads(3_u64)) .saturating_add(RocksDbWeight::get().writes(4_u64)) } @@ -640,8 +640,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `1203` // Estimated: `4668` - // Minimum execution time: 61_075_000 picoseconds. - Weight::from_parts(62_097_000, 4668) + // Minimum execution time: 60_164_000 picoseconds. + Weight::from_parts(61_396_000, 4668) .saturating_add(RocksDbWeight::get().reads(9_u64)) .saturating_add(RocksDbWeight::get().writes(7_u64)) } @@ -665,8 +665,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `340` // Estimated: `3805` - // Minimum execution time: 24_636_000 picoseconds. - Weight::from_parts(25_037_000, 3805) + // Minimum execution time: 24_697_000 picoseconds. + Weight::from_parts(25_468_000, 3805) .saturating_add(RocksDbWeight::get().reads(6_u64)) .saturating_add(RocksDbWeight::get().writes(5_u64)) } @@ -692,8 +692,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `919` // Estimated: `4384` - // Minimum execution time: 46_498_000 picoseconds. - Weight::from_parts(47_310_000, 4384) + // Minimum execution time: 46_268_000 picoseconds. + Weight::from_parts(47_641_000, 4384) .saturating_add(RocksDbWeight::get().reads(8_u64)) .saturating_add(RocksDbWeight::get().writes(4_u64)) } @@ -715,8 +715,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `1292` // Estimated: `4757` - // Minimum execution time: 38_082_000 picoseconds. - Weight::from_parts(39_114_000, 4757) + // Minimum execution time: 38_112_000 picoseconds. + Weight::from_parts(38_763_000, 4757) .saturating_add(RocksDbWeight::get().reads(7_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } @@ -732,8 +732,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `771` // Estimated: `4236` - // Minimum execution time: 23_054_000 picoseconds. - Weight::from_parts(23_495_000, 4236) + // Minimum execution time: 23_053_000 picoseconds. + Weight::from_parts(23_394_000, 4236) .saturating_add(RocksDbWeight::get().reads(3_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } @@ -763,8 +763,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `776` // Estimated: `4241` - // Minimum execution time: 35_056_000 picoseconds. - Weight::from_parts(35_547_000, 4241) + // Minimum execution time: 34_856_000 picoseconds. + Weight::from_parts(35_767_000, 4241) .saturating_add(RocksDbWeight::get().reads(9_u64)) .saturating_add(RocksDbWeight::get().writes(5_u64)) } @@ -798,8 +798,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `1284` // Estimated: `4749` - // Minimum execution time: 60_054_000 picoseconds. - Weight::from_parts(60_945_000, 4749) + // Minimum execution time: 59_392_000 picoseconds. + Weight::from_parts(60_414_000, 4749) .saturating_add(RocksDbWeight::get().reads(12_u64)) .saturating_add(RocksDbWeight::get().writes(4_u64)) } @@ -811,8 +811,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `37` // Estimated: `1522` - // Minimum execution time: 9_808_000 picoseconds. - Weight::from_parts(10_179_000, 1522) + // Minimum execution time: 9_949_000 picoseconds. + Weight::from_parts(10_199_000, 1522) .saturating_add(RocksDbWeight::get().reads(1_u64)) .saturating_add(RocksDbWeight::get().writes(2_u64)) } @@ -822,8 +822,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `215` // Estimated: `3680` - // Minimum execution time: 12_614_000 picoseconds. - Weight::from_parts(13_024_000, 3680) + // Minimum execution time: 12_814_000 picoseconds. + Weight::from_parts(13_205_000, 3680) .saturating_add(RocksDbWeight::get().reads(1_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } @@ -863,8 +863,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `1608` // Estimated: `5073` - // Minimum execution time: 80_311_000 picoseconds. - Weight::from_parts(81_725_000, 5073) + // Minimum execution time: 79_811_000 picoseconds. + Weight::from_parts(81_795_000, 5073) .saturating_add(RocksDbWeight::get().reads(16_u64)) .saturating_add(RocksDbWeight::get().writes(4_u64)) } @@ -878,8 +878,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `395` // Estimated: `6335` - // Minimum execution time: 18_405_000 picoseconds. - Weight::from_parts(18_976_000, 6335) + // Minimum execution time: 18_665_000 picoseconds. + Weight::from_parts(19_127_000, 6335) .saturating_add(RocksDbWeight::get().reads(3_u64)) .saturating_add(RocksDbWeight::get().writes(2_u64)) } @@ -891,8 +891,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `489` // Estimated: `3954` - // Minimum execution time: 16_491_000 picoseconds. - Weight::from_parts(16_752_000, 3954) + // Minimum execution time: 16_552_000 picoseconds. + Weight::from_parts(17_192_000, 3954) .saturating_add(RocksDbWeight::get().reads(2_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } @@ -904,8 +904,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `489` // Estimated: `3954` - // Minimum execution time: 16_351_000 picoseconds. - Weight::from_parts(16_602_000, 3954) + // Minimum execution time: 16_260_000 picoseconds. + Weight::from_parts(16_801_000, 3954) .saturating_add(RocksDbWeight::get().reads(2_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } @@ -917,8 +917,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `502` // Estimated: `3967` - // Minimum execution time: 16_602_000 picoseconds. - Weight::from_parts(16_782_000, 3967) + // Minimum execution time: 16_512_000 picoseconds. + Weight::from_parts(17_032_000, 3967) .saturating_add(RocksDbWeight::get().reads(2_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } @@ -930,8 +930,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `502` // Estimated: `3967` - // Minimum execution time: 17_192_000 picoseconds. - Weight::from_parts(17_733_000, 3967) + // Minimum execution time: 17_183_000 picoseconds. + Weight::from_parts(17_914_000, 3967) .saturating_add(RocksDbWeight::get().reads(2_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } @@ -943,8 +943,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `502` // Estimated: `3967` - // Minimum execution time: 15_990_000 picoseconds. - Weight::from_parts(16_492_000, 3967) + // Minimum execution time: 16_181_000 picoseconds. + Weight::from_parts(16_832_000, 3967) .saturating_add(RocksDbWeight::get().reads(2_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } @@ -962,8 +962,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `841` // Estimated: `6781` - // Minimum execution time: 30_478_000 picoseconds. - Weight::from_parts(30_958_000, 6781) + // Minimum execution time: 29_806_000 picoseconds. + Weight::from_parts(30_869_000, 6781) .saturating_add(RocksDbWeight::get().reads(6_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } @@ -973,8 +973,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `37` // Estimated: `1522` - // Minimum execution time: 7_754_000 picoseconds. - Weight::from_parts(7_965_000, 1522) + // Minimum execution time: 7_434_000 picoseconds. + Weight::from_parts(7_725_000, 1522) .saturating_add(RocksDbWeight::get().reads(1_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } @@ -988,8 +988,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `971` // Estimated: `4436` - // Minimum execution time: 21_721_000 picoseconds. - Weight::from_parts(22_172_000, 4436) + // Minimum execution time: 21_731_000 picoseconds. + Weight::from_parts(22_693_000, 4436) .saturating_add(RocksDbWeight::get().reads(3_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } @@ -1009,8 +1009,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `733` // Estimated: `4198` - // Minimum execution time: 23_384_000 picoseconds. - Weight::from_parts(24_056_000, 4198) + // Minimum execution time: 23_585_000 picoseconds. + Weight::from_parts(23_975_000, 4198) .saturating_add(RocksDbWeight::get().reads(5_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } @@ -1042,8 +1042,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `1203` // Estimated: `4668` - // Minimum execution time: 59_172_000 picoseconds. - Weight::from_parts(60_705_000, 4668) + // Minimum execution time: 58_099_000 picoseconds. + Weight::from_parts(59_022_000, 4668) .saturating_add(RocksDbWeight::get().reads(9_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 dba3a9033..075014e40 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-05-28, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2024-06-04, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` -//! HOSTNAME: `7f09c44a8947`, CPU: `AMD Ryzen 7 5800X 8-Core Processor` +//! HOSTNAME: `4b80713dc969`, 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_555_000 picoseconds. - Weight::from_parts(2_625_000, 0) + // Minimum execution time: 2_485_000 picoseconds. + Weight::from_parts(2_575_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: 19_907_000 picoseconds. - Weight::from_parts(20_369_000, 3961) + // Minimum execution time: 20_870_000 picoseconds. + Weight::from_parts(21_480_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: 21_481_000 picoseconds. - Weight::from_parts(21_921_000, 3972) + // Minimum execution time: 22_793_000 picoseconds. + Weight::from_parts(23_074_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: 15_690_000 picoseconds. - Weight::from_parts(16_100_000, 3918) + // Minimum execution time: 16_180_000 picoseconds. + Weight::from_parts(16_651_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_024_000 picoseconds. - Weight::from_parts(13_345_000, 3877) + // Minimum execution time: 13_675_000 picoseconds. + Weight::from_parts(14_097_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: 17_704_000 picoseconds. - Weight::from_parts(17_894_000, 4034) + // Minimum execution time: 18_404_000 picoseconds. + Weight::from_parts(18_815_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: 16_992_000 picoseconds. - Weight::from_parts(17_153_000, 4034) + // Minimum execution time: 17_413_000 picoseconds. + Weight::from_parts(17_874_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: 47_981_000 picoseconds. - Weight::from_parts(49_514_000, 11795) + // Minimum execution time: 49_384_000 picoseconds. + Weight::from_parts(50_565_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: 26_710_000 picoseconds. - Weight::from_parts(27_422_000, 4126) + // Minimum execution time: 28_183_000 picoseconds. + Weight::from_parts(28_875_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: 34_064_000 picoseconds. - Weight::from_parts(34_926_000, 11846) + // Minimum execution time: 35_847_000 picoseconds. + Weight::from_parts(36_519_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_475_000 picoseconds. - Weight::from_parts(18_886_000, 3919) + // Minimum execution time: 19_406_000 picoseconds. + Weight::from_parts(19_827_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: 24_246_000 picoseconds. - Weight::from_parts(24_957_000, 4244) + // Minimum execution time: 25_348_000 picoseconds. + Weight::from_parts(25_999_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: 27_592_000 picoseconds. - Weight::from_parts(28_203_000, 4147) + // Minimum execution time: 28_755_000 picoseconds. + Weight::from_parts(29_315_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_087_000 picoseconds. - Weight::from_parts(14_357_000, 3700) + // Minimum execution time: 14_818_000 picoseconds. + Weight::from_parts(15_129_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: 14_868_000 picoseconds. - Weight::from_parts(15_249_000, 3893) + // Minimum execution time: 15_419_000 picoseconds. + Weight::from_parts(15_700_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_093_000 picoseconds. - Weight::from_parts(12_463_000, 3599) + // Minimum execution time: 12_674_000 picoseconds. + Weight::from_parts(12_985_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_180_000 picoseconds. - Weight::from_parts(16_611_000, 3847) + // Minimum execution time: 17_112_000 picoseconds. + Weight::from_parts(17_523_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_150_000 picoseconds. - Weight::from_parts(10_430_000, 1619) + // Minimum execution time: 10_249_000 picoseconds. + Weight::from_parts(10_730_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_364_000 picoseconds. - Weight::from_parts(7_504_000, 3605) + // Minimum execution time: 7_555_000 picoseconds. + Weight::from_parts(7_835_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: 32_271_000 picoseconds. - Weight::from_parts(32_913_000, 4293) + // Minimum execution time: 33_413_000 picoseconds. + Weight::from_parts(34_295_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_174_000 picoseconds. - Weight::from_parts(13_505_000, 3877) + // Minimum execution time: 13_816_000 picoseconds. + Weight::from_parts(14_097_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: 13_515_000 picoseconds. - Weight::from_parts(13_796_000, 3877) + // Minimum execution time: 13_856_000 picoseconds. + Weight::from_parts(14_497_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_551_000 picoseconds. - Weight::from_parts(5_721_000, 0) + // Minimum execution time: 5_711_000 picoseconds. + Weight::from_parts(5_882_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_478_000 picoseconds. - Weight::from_parts(9_668_000, 1840) + // Minimum execution time: 10_059_000 picoseconds. + Weight::from_parts(10_360_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: 11_772_000 picoseconds. - Weight::from_parts(12_133_000, 1898) + // Minimum execution time: 12_263_000 picoseconds. + Weight::from_parts(12_624_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: 12_985_000 picoseconds. - Weight::from_parts(13_175_000, 3759) + // Minimum execution time: 13_365_000 picoseconds. + Weight::from_parts(13_646_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: 21_661_000 picoseconds. - Weight::from_parts(22_332_000, 4037) + // Minimum execution time: 22_322_000 picoseconds. + Weight::from_parts(23_254_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: 7_894_000 picoseconds. - Weight::from_parts(8_075_000, 1619) + // Minimum execution time: 8_176_000 picoseconds. + Weight::from_parts(8_366_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: 22_282_000 picoseconds. - Weight::from_parts(22_843_000, 4086) + // Minimum execution time: 23_354_000 picoseconds. + Weight::from_parts(23_725_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: 25_709_000 picoseconds. - Weight::from_parts(26_310_000, 4257) + // Minimum execution time: 26_710_000 picoseconds. + Weight::from_parts(27_522_000, 4257) .saturating_add(T::DbWeight::get().reads(6_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } @@ -527,8 +527,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `387` // Estimated: `3852` - // Minimum execution time: 11_652_000 picoseconds. - Weight::from_parts(12_063_000, 3852) + // Minimum execution time: 12_113_000 picoseconds. + Weight::from_parts(12_413_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: 17_613_000 picoseconds. - Weight::from_parts(18_114_000, 3919) + // Minimum execution time: 18_565_000 picoseconds. + Weight::from_parts(19_086_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_555_000 picoseconds. - Weight::from_parts(2_625_000, 0) + // Minimum execution time: 2_485_000 picoseconds. + Weight::from_parts(2_575_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: 19_907_000 picoseconds. - Weight::from_parts(20_369_000, 3961) + // Minimum execution time: 20_870_000 picoseconds. + Weight::from_parts(21_480_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: 21_481_000 picoseconds. - Weight::from_parts(21_921_000, 3972) + // Minimum execution time: 22_793_000 picoseconds. + Weight::from_parts(23_074_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: 15_690_000 picoseconds. - Weight::from_parts(16_100_000, 3918) + // Minimum execution time: 16_180_000 picoseconds. + Weight::from_parts(16_651_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_024_000 picoseconds. - Weight::from_parts(13_345_000, 3877) + // Minimum execution time: 13_675_000 picoseconds. + Weight::from_parts(14_097_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: 17_704_000 picoseconds. - Weight::from_parts(17_894_000, 4034) + // Minimum execution time: 18_404_000 picoseconds. + Weight::from_parts(18_815_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: 16_992_000 picoseconds. - Weight::from_parts(17_153_000, 4034) + // Minimum execution time: 17_413_000 picoseconds. + Weight::from_parts(17_874_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: 47_981_000 picoseconds. - Weight::from_parts(49_514_000, 11795) + // Minimum execution time: 49_384_000 picoseconds. + Weight::from_parts(50_565_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: 26_710_000 picoseconds. - Weight::from_parts(27_422_000, 4126) + // Minimum execution time: 28_183_000 picoseconds. + Weight::from_parts(28_875_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: 34_064_000 picoseconds. - Weight::from_parts(34_926_000, 11846) + // Minimum execution time: 35_847_000 picoseconds. + Weight::from_parts(36_519_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_475_000 picoseconds. - Weight::from_parts(18_886_000, 3919) + // Minimum execution time: 19_406_000 picoseconds. + Weight::from_parts(19_827_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: 24_246_000 picoseconds. - Weight::from_parts(24_957_000, 4244) + // Minimum execution time: 25_348_000 picoseconds. + Weight::from_parts(25_999_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: 27_592_000 picoseconds. - Weight::from_parts(28_203_000, 4147) + // Minimum execution time: 28_755_000 picoseconds. + Weight::from_parts(29_315_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_087_000 picoseconds. - Weight::from_parts(14_357_000, 3700) + // Minimum execution time: 14_818_000 picoseconds. + Weight::from_parts(15_129_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: 14_868_000 picoseconds. - Weight::from_parts(15_249_000, 3893) + // Minimum execution time: 15_419_000 picoseconds. + Weight::from_parts(15_700_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_093_000 picoseconds. - Weight::from_parts(12_463_000, 3599) + // Minimum execution time: 12_674_000 picoseconds. + Weight::from_parts(12_985_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_180_000 picoseconds. - Weight::from_parts(16_611_000, 3847) + // Minimum execution time: 17_112_000 picoseconds. + Weight::from_parts(17_523_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_150_000 picoseconds. - Weight::from_parts(10_430_000, 1619) + // Minimum execution time: 10_249_000 picoseconds. + Weight::from_parts(10_730_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_364_000 picoseconds. - Weight::from_parts(7_504_000, 3605) + // Minimum execution time: 7_555_000 picoseconds. + Weight::from_parts(7_835_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: 32_271_000 picoseconds. - Weight::from_parts(32_913_000, 4293) + // Minimum execution time: 33_413_000 picoseconds. + Weight::from_parts(34_295_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_174_000 picoseconds. - Weight::from_parts(13_505_000, 3877) + // Minimum execution time: 13_816_000 picoseconds. + Weight::from_parts(14_097_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: 13_515_000 picoseconds. - Weight::from_parts(13_796_000, 3877) + // Minimum execution time: 13_856_000 picoseconds. + Weight::from_parts(14_497_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_551_000 picoseconds. - Weight::from_parts(5_721_000, 0) + // Minimum execution time: 5_711_000 picoseconds. + Weight::from_parts(5_882_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_478_000 picoseconds. - Weight::from_parts(9_668_000, 1840) + // Minimum execution time: 10_059_000 picoseconds. + Weight::from_parts(10_360_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: 11_772_000 picoseconds. - Weight::from_parts(12_133_000, 1898) + // Minimum execution time: 12_263_000 picoseconds. + Weight::from_parts(12_624_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: 12_985_000 picoseconds. - Weight::from_parts(13_175_000, 3759) + // Minimum execution time: 13_365_000 picoseconds. + Weight::from_parts(13_646_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: 21_661_000 picoseconds. - Weight::from_parts(22_332_000, 4037) + // Minimum execution time: 22_322_000 picoseconds. + Weight::from_parts(23_254_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: 7_894_000 picoseconds. - Weight::from_parts(8_075_000, 1619) + // Minimum execution time: 8_176_000 picoseconds. + Weight::from_parts(8_366_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: 22_282_000 picoseconds. - Weight::from_parts(22_843_000, 4086) + // Minimum execution time: 23_354_000 picoseconds. + Weight::from_parts(23_725_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: 25_709_000 picoseconds. - Weight::from_parts(26_310_000, 4257) + // Minimum execution time: 26_710_000 picoseconds. + Weight::from_parts(27_522_000, 4257) .saturating_add(RocksDbWeight::get().reads(6_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } @@ -1009,8 +1009,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `387` // Estimated: `3852` - // Minimum execution time: 11_652_000 picoseconds. - Weight::from_parts(12_063_000, 3852) + // Minimum execution time: 12_113_000 picoseconds. + Weight::from_parts(12_413_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: 17_613_000 picoseconds. - Weight::from_parts(18_114_000, 3919) + // Minimum execution time: 18_565_000 picoseconds. + Weight::from_parts(19_086_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 780f318b8..0c69c8cdd 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-05-28, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2024-06-04, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` -//! HOSTNAME: `7f09c44a8947`, CPU: `AMD Ryzen 7 5800X 8-Core Processor` +//! HOSTNAME: `4b80713dc969`, 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_504_000 picoseconds. - Weight::from_parts(7_695_000, 1741) + // Minimum execution time: 7_184_000 picoseconds. + Weight::from_parts(7_525_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_404_000 picoseconds. - Weight::from_parts(7_655_000, 1774) + // Minimum execution time: 7_153_000 picoseconds. + Weight::from_parts(7_394_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_385_000 picoseconds. - Weight::from_parts(2_515_000, 0) + // Minimum execution time: 2_235_000 picoseconds. + Weight::from_parts(2_385_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_324_000 picoseconds. - Weight::from_parts(2_395_000, 0) + // Minimum execution time: 2_184_000 picoseconds. + Weight::from_parts(2_295_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_304_000 picoseconds. - Weight::from_parts(2_405_000, 0) + // Minimum execution time: 2_284_000 picoseconds. + Weight::from_parts(2_344_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: 44_634_000 picoseconds. - Weight::from_parts(45_366_000, 3593) + // Minimum execution time: 43_822_000 picoseconds. + Weight::from_parts(44_784_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: 62_268_000 picoseconds. - Weight::from_parts(63_359_000, 3964) + // Minimum execution time: 61_426_000 picoseconds. + Weight::from_parts(62_288_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: 26_369_000 picoseconds. - Weight::from_parts(26_811_000, 4096) + // Minimum execution time: 26_129_000 picoseconds. + Weight::from_parts(26_690_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_816_000 picoseconds. - Weight::from_parts(19_237_000, 4036) + // Minimum execution time: 18_625_000 picoseconds. + Weight::from_parts(19_167_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: 22_011_000 picoseconds. - Weight::from_parts(22_423_000, 3850) + // Minimum execution time: 21_801_000 picoseconds. + Weight::from_parts(22_292_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: 19_286_000 picoseconds. - Weight::from_parts(19_847_000, 4025) + // Minimum execution time: 18_846_000 picoseconds. + Weight::from_parts(19_317_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_504_000 picoseconds. - Weight::from_parts(7_695_000, 1741) + // Minimum execution time: 7_184_000 picoseconds. + Weight::from_parts(7_525_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_404_000 picoseconds. - Weight::from_parts(7_655_000, 1774) + // Minimum execution time: 7_153_000 picoseconds. + Weight::from_parts(7_394_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_385_000 picoseconds. - Weight::from_parts(2_515_000, 0) + // Minimum execution time: 2_235_000 picoseconds. + Weight::from_parts(2_385_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_324_000 picoseconds. - Weight::from_parts(2_395_000, 0) + // Minimum execution time: 2_184_000 picoseconds. + Weight::from_parts(2_295_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_304_000 picoseconds. - Weight::from_parts(2_405_000, 0) + // Minimum execution time: 2_284_000 picoseconds. + Weight::from_parts(2_344_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: 44_634_000 picoseconds. - Weight::from_parts(45_366_000, 3593) + // Minimum execution time: 43_822_000 picoseconds. + Weight::from_parts(44_784_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: 62_268_000 picoseconds. - Weight::from_parts(63_359_000, 3964) + // Minimum execution time: 61_426_000 picoseconds. + Weight::from_parts(62_288_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: 26_369_000 picoseconds. - Weight::from_parts(26_811_000, 4096) + // Minimum execution time: 26_129_000 picoseconds. + Weight::from_parts(26_690_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_816_000 picoseconds. - Weight::from_parts(19_237_000, 4036) + // Minimum execution time: 18_625_000 picoseconds. + Weight::from_parts(19_167_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: 22_011_000 picoseconds. - Weight::from_parts(22_423_000, 3850) + // Minimum execution time: 21_801_000 picoseconds. + Weight::from_parts(22_292_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: 19_286_000 picoseconds. - Weight::from_parts(19_847_000, 4025) + // Minimum execution time: 18_846_000 picoseconds. + Weight::from_parts(19_317_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 0422bfe36..7aeeb7b44 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-05-28, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2024-06-04, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` -//! HOSTNAME: `7f09c44a8947`, CPU: `AMD Ryzen 7 5800X 8-Core Processor` +//! HOSTNAME: `4b80713dc969`, 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: 30_177_000 picoseconds. - Weight::from_parts(30_969_000, 6175) + // Minimum execution time: 29_997_000 picoseconds. + Weight::from_parts(30_979_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_080_000 picoseconds. - Weight::from_parts(5_250_000, 1578) + // Minimum execution time: 5_109_000 picoseconds. + Weight::from_parts(5_230_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_150_000 picoseconds. - Weight::from_parts(5_310_000, 1578) + // Minimum execution time: 5_099_000 picoseconds. + Weight::from_parts(5_230_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: 30_177_000 picoseconds. - Weight::from_parts(30_969_000, 6175) + // Minimum execution time: 29_997_000 picoseconds. + Weight::from_parts(30_979_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_080_000 picoseconds. - Weight::from_parts(5_250_000, 1578) + // Minimum execution time: 5_109_000 picoseconds. + Weight::from_parts(5_230_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_150_000 picoseconds. - Weight::from_parts(5_310_000, 1578) + // Minimum execution time: 5_099_000 picoseconds. + Weight::from_parts(5_230_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 a5d6155b4..e59e703ab 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-05-28, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2024-06-04, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` -//! HOSTNAME: `7f09c44a8947`, CPU: `AMD Ryzen 7 5800X 8-Core Processor` +//! HOSTNAME: `4b80713dc969`, 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_348_000 picoseconds. - Weight::from_parts(9_638_000, 3507) + // Minimum execution time: 9_628_000 picoseconds. + Weight::from_parts(9_989_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: 24_526_000 picoseconds. - Weight::from_parts(25_128_000, 3830) + // Minimum execution time: 25_148_000 picoseconds. + Weight::from_parts(25_538_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_004_000 picoseconds. - Weight::from_parts(34_556_000, 3896) + // Minimum execution time: 33_954_000 picoseconds. + Weight::from_parts(34_856_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_426_000 picoseconds. - Weight::from_parts(8_787_000, 3507) + // Minimum execution time: 8_667_000 picoseconds. + Weight::from_parts(9_007_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: 24_958_000 picoseconds. - Weight::from_parts(25_338_000, 4687) + // Minimum execution time: 25_188_000 picoseconds. + Weight::from_parts(25_729_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_091_000 picoseconds. - Weight::from_parts(22_783_000, 4687) + // Minimum execution time: 22_542_000 picoseconds. + Weight::from_parts(23_053_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_348_000 picoseconds. - Weight::from_parts(9_638_000, 3507) + // Minimum execution time: 9_628_000 picoseconds. + Weight::from_parts(9_989_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: 24_526_000 picoseconds. - Weight::from_parts(25_128_000, 3830) + // Minimum execution time: 25_148_000 picoseconds. + Weight::from_parts(25_538_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_004_000 picoseconds. - Weight::from_parts(34_556_000, 3896) + // Minimum execution time: 33_954_000 picoseconds. + Weight::from_parts(34_856_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_426_000 picoseconds. - Weight::from_parts(8_787_000, 3507) + // Minimum execution time: 8_667_000 picoseconds. + Weight::from_parts(9_007_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: 24_958_000 picoseconds. - Weight::from_parts(25_338_000, 4687) + // Minimum execution time: 25_188_000 picoseconds. + Weight::from_parts(25_729_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_091_000 picoseconds. - Weight::from_parts(22_783_000, 4687) + // Minimum execution time: 22_542_000 picoseconds. + Weight::from_parts(23_053_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 d1564eb88..5fab1aefe 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-05-28, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2024-06-04, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` -//! HOSTNAME: `7f09c44a8947`, CPU: `AMD Ryzen 7 5800X 8-Core Processor` +//! HOSTNAME: `4b80713dc969`, 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_668_000 picoseconds. - Weight::from_parts(14_868_000, 1624) + // Minimum execution time: 13_706_000 picoseconds. + Weight::from_parts(13_976_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_642_000 picoseconds. - Weight::from_parts(12_063_000, 1690) + // Minimum execution time: 10_960_000 picoseconds. + Weight::from_parts(11_311_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_804_000 picoseconds. - Weight::from_parts(13_235_000, 1657) + // Minimum execution time: 12_274_000 picoseconds. + Weight::from_parts(12_604_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_668_000 picoseconds. - Weight::from_parts(14_868_000, 1624) + // Minimum execution time: 13_706_000 picoseconds. + Weight::from_parts(13_976_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_642_000 picoseconds. - Weight::from_parts(12_063_000, 1690) + // Minimum execution time: 10_960_000 picoseconds. + Weight::from_parts(11_311_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_804_000 picoseconds. - Weight::from_parts(13_235_000, 1657) + // Minimum execution time: 12_274_000 picoseconds. + Weight::from_parts(12_604_000, 1657) .saturating_add(RocksDbWeight::get().reads(2_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } diff --git a/substrate-node/runtime/src/lib.rs b/substrate-node/runtime/src/lib.rs index 6aab37147..27222d76a 100644 --- a/substrate-node/runtime/src/lib.rs +++ b/substrate-node/runtime/src/lib.rs @@ -470,6 +470,7 @@ impl substrate_validator_set::Config for Runtime { parameter_types! { pub const DaoMotionDuration: BlockNumber = 7 * DAYS; pub const MinVetos: u32 = 3; + pub const DaoMotionMinThreshold: u32 = 5; } impl pallet_dao::Config for Runtime { @@ -477,6 +478,7 @@ impl pallet_dao::Config for Runtime { type CouncilOrigin = EnsureRootOrCouncilApproval; type Proposal = RuntimeCall; type MotionDuration = DaoMotionDuration; + type MotionMinThreshold = DaoMotionMinThreshold; type Tfgrid = TfgridModule; type WeightInfo = pallet_dao::weights::SubstrateWeight; type MinVetos = MinVetos;