From 108d51323a274b2a66325cb3d736d7932be341ee Mon Sep 17 00:00:00 2001 From: Georgy Shepelev Date: Mon, 1 Apr 2024 11:10:53 +0400 Subject: [PATCH] update WeightInfo trait --- pallets/gear/src/weights.rs | 23 +++++++++++++++++++++++ runtime/vara/src/weights/pallet_gear.rs | 23 +++++++++++++++++++++++ 2 files changed, 46 insertions(+) diff --git a/pallets/gear/src/weights.rs b/pallets/gear/src/weights.rs index 8b28e02be0c..4538c943470 100644 --- a/pallets/gear/src/weights.rs +++ b/pallets/gear/src/weights.rs @@ -220,6 +220,7 @@ pub trait WeightInfo { fn tasks_wake_message_no_wake() -> Weight; fn tasks_remove_from_waitlist() -> Weight; fn tasks_remove_from_mailbox() -> Weight; + fn plonky2_verify(i: u32, n: u32, ) -> Weight; fn instr_i64const(r: u32, ) -> Weight; } @@ -2084,6 +2085,17 @@ impl WeightInfo for SubstrateWeight { .saturating_add(T::DbWeight::get().reads(14_u64)) .saturating_add(T::DbWeight::get().writes(13_u64)) } + /// The range of component `i` is `[1, 100]`. + /// The range of component `n` is `[10, 28]`. + fn plonky2_verify(_i: u32, n: u32, ) -> Weight { + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 1_197_435_000 picoseconds. + Weight::from_parts(662_883_053, 0) + // Standard Error: 16_899_753 + .saturating_add(Weight::from_parts(104_663_638, 0).saturating_mul(n.into())) + } } // For backwards compatibility and tests @@ -3946,4 +3958,15 @@ impl WeightInfo for () { .saturating_add(RocksDbWeight::get().reads(14_u64)) .saturating_add(RocksDbWeight::get().writes(13_u64)) } + /// The range of component `i` is `[1, 100]`. + /// The range of component `n` is `[10, 28]`. + fn plonky2_verify(_i: u32, n: u32, ) -> Weight { + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 1_197_435_000 picoseconds. + Weight::from_parts(662_883_053, 0) + // Standard Error: 16_899_753 + .saturating_add(Weight::from_parts(104_663_638, 0).saturating_mul(n.into())) + } } diff --git a/runtime/vara/src/weights/pallet_gear.rs b/runtime/vara/src/weights/pallet_gear.rs index 14dcc02facc..78dc88716ee 100644 --- a/runtime/vara/src/weights/pallet_gear.rs +++ b/runtime/vara/src/weights/pallet_gear.rs @@ -220,6 +220,7 @@ pub trait WeightInfo { fn tasks_wake_message_no_wake() -> Weight; fn tasks_remove_from_waitlist() -> Weight; fn tasks_remove_from_mailbox() -> Weight; + fn plonky2_verify(i: u32, n: u32, ) -> Weight; fn instr_i64const(r: u32, ) -> Weight; } @@ -2084,6 +2085,17 @@ impl pallet_gear::WeightInfo for SubstrateWeight { .saturating_add(T::DbWeight::get().reads(14_u64)) .saturating_add(T::DbWeight::get().writes(13_u64)) } + /// The range of component `i` is `[1, 100]`. + /// The range of component `n` is `[10, 28]`. + fn plonky2_verify(_i: u32, n: u32, ) -> Weight { + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 1_197_435_000 picoseconds. + Weight::from_parts(662_883_053, 0) + // Standard Error: 16_899_753 + .saturating_add(Weight::from_parts(104_663_638, 0).saturating_mul(n.into())) + } } // For backwards compatibility and tests @@ -3946,4 +3958,15 @@ impl WeightInfo for () { .saturating_add(RocksDbWeight::get().reads(14_u64)) .saturating_add(RocksDbWeight::get().writes(13_u64)) } + /// The range of component `i` is `[1, 100]`. + /// The range of component `n` is `[10, 28]`. + fn plonky2_verify(_i: u32, n: u32, ) -> Weight { + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 1_197_435_000 picoseconds. + Weight::from_parts(662_883_053, 0) + // Standard Error: 16_899_753 + .saturating_add(Weight::from_parts(104_663_638, 0).saturating_mul(n.into())) + } }