diff --git a/pallets/vc-management/src/weights.rs b/pallets/vc-management/src/weights.rs index c33d96a652..10f541d305 100644 --- a/pallets/vc-management/src/weights.rs +++ b/pallets/vc-management/src/weights.rs @@ -50,8 +50,6 @@ pub trait WeightInfo { fn add_delegatee() -> Weight; fn remove_delegatee() -> Weight; fn request_vc() -> Weight; - fn disable_vc() -> Weight; - fn revoke_vc() -> Weight; fn vc_issued() -> Weight; fn some_error() -> Weight; fn set_admin() -> Weight; @@ -59,9 +57,6 @@ pub trait WeightInfo { fn disable_schema() -> Weight; fn activate_schema() -> Weight; fn revoke_schema() -> Weight; - fn add_vc_registry_item() -> Weight; - fn remove_vc_registry_item() -> Weight; - fn clear_vc_registry(x: u32, ) -> Weight; } /// Weights for pallet_vc_management using the Litentry node and recommended hardware. @@ -86,24 +81,6 @@ impl WeightInfo for LitentryWeight { Weight::from_parts(35_640_000 as u64, 0) .saturating_add(T::DbWeight::get().reads(1 as u64)) } - // Storage: VCMPExtrinsicWhitelist GroupControlOn (r:1 w:0) - // Proof Skipped: VCMPExtrinsicWhitelist GroupControlOn (max_values: Some(1), max_size: None, mode: Measured) - // Storage: VCManagement VCRegistry (r:1 w:1) - // Proof: VCManagement VCRegistry (max_values: None, max_size: Some(312), added: 2787, mode: MaxEncodedLen) - fn disable_vc() -> Weight { - Weight::from_parts(24_542_000 as u64, 0) - .saturating_add(T::DbWeight::get().reads(2 as u64)) - .saturating_add(T::DbWeight::get().writes(1 as u64)) - } - // Storage: VCMPExtrinsicWhitelist GroupControlOn (r:1 w:0) - // Proof Skipped: VCMPExtrinsicWhitelist GroupControlOn (max_values: Some(1), max_size: None, mode: Measured) - // Storage: VCManagement VCRegistry (r:1 w:1) - // Proof: VCManagement VCRegistry (max_values: None, max_size: Some(312), added: 2787, mode: MaxEncodedLen) - fn revoke_vc() -> Weight { - Weight::from_parts(53_908_000 as u64, 0) - .saturating_add(T::DbWeight::get().reads(2 as u64)) - .saturating_add(T::DbWeight::get().writes(1 as u64)) - } // Storage: Teerex EnclaveIndex (r:1 w:0) // Proof Skipped: Teerex EnclaveIndex (max_values: None, max_size: None, mode: Measured) // Storage: VCManagement VCRegistry (r:1 w:1) @@ -164,36 +141,6 @@ impl WeightInfo for LitentryWeight { .saturating_add(T::DbWeight::get().reads(2 as u64)) .saturating_add(T::DbWeight::get().writes(1 as u64)) } - // Storage: VCManagement Admin (r:1 w:0) - // Proof: VCManagement Admin (max_values: Some(1), max_size: Some(32), added: 527, mode: MaxEncodedLen) - // Storage: VCManagement VCRegistry (r:1 w:1) - // Proof: VCManagement VCRegistry (max_values: None, max_size: Some(312), added: 2787, mode: MaxEncodedLen) - fn add_vc_registry_item() -> Weight { - Weight::from_parts(22_937_000 as u64, 0) - .saturating_add(T::DbWeight::get().reads(2 as u64)) - .saturating_add(T::DbWeight::get().writes(1 as u64)) - } - // Storage: VCManagement Admin (r:1 w:0) - // Proof: VCManagement Admin (max_values: Some(1), max_size: Some(32), added: 527, mode: MaxEncodedLen) - // Storage: VCManagement VCRegistry (r:1 w:1) - // Proof: VCManagement VCRegistry (max_values: None, max_size: Some(312), added: 2787, mode: MaxEncodedLen) - fn remove_vc_registry_item() -> Weight { - Weight::from_parts(23_555_000 as u64, 0) - .saturating_add(T::DbWeight::get().reads(2 as u64)) - .saturating_add(T::DbWeight::get().writes(1 as u64)) - } - // Storage: VCManagement Admin (r:1 w:0) - // Proof: VCManagement Admin (max_values: Some(1), max_size: Some(32), added: 527, mode: MaxEncodedLen) - // Storage: VCManagement VCRegistry (r:100 w:100) - // Proof: VCManagement VCRegistry (max_values: None, max_size: Some(312), added: 2787, mode: MaxEncodedLen) - fn clear_vc_registry(x: u32, ) -> Weight { - Weight::from_parts(22_760_592 as u64, 0) - // Standard Error: 3_714 - .saturating_add(Weight::from_parts(856_025 as u64, 0).saturating_mul(x as u64)) - .saturating_add(T::DbWeight::get().reads(1 as u64)) - .saturating_add(T::DbWeight::get().reads((1 as u64).saturating_mul(x as u64))) - .saturating_add(T::DbWeight::get().writes((1 as u64).saturating_mul(x as u64))) - } } // For backwards compatibility and tests @@ -217,24 +164,6 @@ impl WeightInfo for () { Weight::from_parts(35_640_000 as u64, 0) .saturating_add(RocksDbWeight::get().reads(1 as u64)) } - // Storage: VCMPExtrinsicWhitelist GroupControlOn (r:1 w:0) - // Proof Skipped: VCMPExtrinsicWhitelist GroupControlOn (max_values: Some(1), max_size: None, mode: Measured) - // Storage: VCManagement VCRegistry (r:1 w:1) - // Proof: VCManagement VCRegistry (max_values: None, max_size: Some(312), added: 2787, mode: MaxEncodedLen) - fn disable_vc() -> Weight { - Weight::from_parts(24_542_000 as u64, 0) - .saturating_add(RocksDbWeight::get().reads(2 as u64)) - .saturating_add(RocksDbWeight::get().writes(1 as u64)) - } - // Storage: VCMPExtrinsicWhitelist GroupControlOn (r:1 w:0) - // Proof Skipped: VCMPExtrinsicWhitelist GroupControlOn (max_values: Some(1), max_size: None, mode: Measured) - // Storage: VCManagement VCRegistry (r:1 w:1) - // Proof: VCManagement VCRegistry (max_values: None, max_size: Some(312), added: 2787, mode: MaxEncodedLen) - fn revoke_vc() -> Weight { - Weight::from_parts(53_908_000 as u64, 0) - .saturating_add(RocksDbWeight::get().reads(2 as u64)) - .saturating_add(RocksDbWeight::get().writes(1 as u64)) - } // Storage: Teerex EnclaveIndex (r:1 w:0) // Proof Skipped: Teerex EnclaveIndex (max_values: None, max_size: None, mode: Measured) // Storage: VCManagement VCRegistry (r:1 w:1) @@ -295,35 +224,5 @@ impl WeightInfo for () { .saturating_add(RocksDbWeight::get().reads(2 as u64)) .saturating_add(RocksDbWeight::get().writes(1 as u64)) } - // Storage: VCManagement Admin (r:1 w:0) - // Proof: VCManagement Admin (max_values: Some(1), max_size: Some(32), added: 527, mode: MaxEncodedLen) - // Storage: VCManagement VCRegistry (r:1 w:1) - // Proof: VCManagement VCRegistry (max_values: None, max_size: Some(312), added: 2787, mode: MaxEncodedLen) - fn add_vc_registry_item() -> Weight { - Weight::from_parts(22_937_000 as u64, 0) - .saturating_add(RocksDbWeight::get().reads(2 as u64)) - .saturating_add(RocksDbWeight::get().writes(1 as u64)) - } - // Storage: VCManagement Admin (r:1 w:0) - // Proof: VCManagement Admin (max_values: Some(1), max_size: Some(32), added: 527, mode: MaxEncodedLen) - // Storage: VCManagement VCRegistry (r:1 w:1) - // Proof: VCManagement VCRegistry (max_values: None, max_size: Some(312), added: 2787, mode: MaxEncodedLen) - fn remove_vc_registry_item() -> Weight { - Weight::from_parts(23_555_000 as u64, 0) - .saturating_add(RocksDbWeight::get().reads(2 as u64)) - .saturating_add(RocksDbWeight::get().writes(1 as u64)) - } - // Storage: VCManagement Admin (r:1 w:0) - // Proof: VCManagement Admin (max_values: Some(1), max_size: Some(32), added: 527, mode: MaxEncodedLen) - // Storage: VCManagement VCRegistry (r:100 w:100) - // Proof: VCManagement VCRegistry (max_values: None, max_size: Some(312), added: 2787, mode: MaxEncodedLen) - fn clear_vc_registry(x: u32, ) -> Weight { - Weight::from_parts(22_760_592 as u64, 0) - // Standard Error: 3_714 - .saturating_add(Weight::from_parts(856_025 as u64, 0).saturating_mul(x as u64)) - .saturating_add(RocksDbWeight::get().reads(1 as u64)) - .saturating_add(RocksDbWeight::get().reads((1 as u64).saturating_mul(x as u64))) - .saturating_add(RocksDbWeight::get().writes((1 as u64).saturating_mul(x as u64))) - } } diff --git a/runtime/litmus/src/weights/pallet_vc_management.rs b/runtime/litmus/src/weights/pallet_vc_management.rs deleted file mode 100644 index 154689b869..0000000000 --- a/runtime/litmus/src/weights/pallet_vc_management.rs +++ /dev/null @@ -1,256 +0,0 @@ -// Copyright 2020-2023 Trust Computing GmbH. -// This file is part of Litentry. -// -// Litentry is free software: you can redistribute it and/or modify -// it under the terms of the GNU General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Litentry is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public License -// along with Litentry. If not, see . - -//! Autogenerated weights for `pallet_vc_management` -//! -//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2023-10-17, STEPS: `20`, REPEAT: `50`, LOW RANGE: `[]`, HIGH RANGE: `[]` -//! WORST CASE MAP SIZE: `1000000` -//! HOSTNAME: `parachain-benchmark`, CPU: `Intel(R) Xeon(R) Platinum 8259CL CPU @ 2.50GHz` -//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("litmus-dev"), DB CACHE: 20 - -// Executed Command: -// ./litentry-collator -// benchmark -// pallet -// --chain=litmus-dev -// --execution=wasm -// --db-cache=20 -// --wasm-execution=compiled -// --pallet=pallet_vc_management -// --extrinsic=* -// --heap-pages=4096 -// --steps=20 -// --repeat=50 -// --header=./LICENSE_HEADER -// --output=./runtime/litmus/src/weights/pallet_vc_management.rs - -#![cfg_attr(rustfmt, rustfmt_skip)] -#![allow(unused_parens)] -#![allow(unused_imports)] -#![allow(missing_docs)] - -use frame_support::{traits::Get, weights::Weight}; -use core::marker::PhantomData; - -/// Weight functions for `pallet_vc_management`. -pub struct WeightInfo(PhantomData); -impl pallet_vc_management::WeightInfo for WeightInfo { - /// Storage: VCManagement Delegatee (r:0 w:1) - /// Proof: VCManagement Delegatee (max_values: None, max_size: Some(48), added: 2523, mode: MaxEncodedLen) - fn add_delegatee() -> Weight { - // Proof Size summary in bytes: - // Measured: `0` - // Estimated: `0` - // Minimum execution time: 12_420_000 picoseconds. - Weight::from_parts(12_862_000, 0) - .saturating_add(Weight::from_parts(0, 0)) - .saturating_add(T::DbWeight::get().writes(1)) - } - /// Storage: VCManagement Delegatee (r:1 w:1) - /// Proof: VCManagement Delegatee (max_values: None, max_size: Some(48), added: 2523, mode: MaxEncodedLen) - fn remove_delegatee() -> Weight { - // Proof Size summary in bytes: - // Measured: `79` - // Estimated: `3513` - // Minimum execution time: 18_536_000 picoseconds. - Weight::from_parts(19_100_000, 0) - .saturating_add(Weight::from_parts(0, 3513)) - .saturating_add(T::DbWeight::get().reads(1)) - .saturating_add(T::DbWeight::get().writes(1)) - } - /// Storage: VCMPExtrinsicWhitelist GroupControlOn (r:1 w:0) - /// Proof Skipped: VCMPExtrinsicWhitelist GroupControlOn (max_values: Some(1), max_size: None, mode: Measured) - fn request_vc() -> Weight { - // Proof Size summary in bytes: - // Measured: `42` - // Estimated: `1527` - // Minimum execution time: 15_114_000 picoseconds. - Weight::from_parts(15_520_000, 0) - .saturating_add(Weight::from_parts(0, 1527)) - .saturating_add(T::DbWeight::get().reads(1)) - } - /// Storage: VCMPExtrinsicWhitelist GroupControlOn (r:1 w:0) - /// Proof Skipped: VCMPExtrinsicWhitelist GroupControlOn (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: VCManagement VCRegistry (r:1 w:1) - /// Proof: VCManagement VCRegistry (max_values: None, max_size: Some(381), added: 2856, mode: MaxEncodedLen) - fn disable_vc() -> Weight { - // Proof Size summary in bytes: - // Measured: `190` - // Estimated: `3846` - // Minimum execution time: 23_205_000 picoseconds. - Weight::from_parts(23_614_000, 0) - .saturating_add(Weight::from_parts(0, 3846)) - .saturating_add(T::DbWeight::get().reads(2)) - .saturating_add(T::DbWeight::get().writes(1)) - } - /// Storage: VCMPExtrinsicWhitelist GroupControlOn (r:1 w:0) - /// Proof Skipped: VCMPExtrinsicWhitelist GroupControlOn (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: VCManagement VCRegistry (r:1 w:1) - /// Proof: VCManagement VCRegistry (max_values: None, max_size: Some(381), added: 2856, mode: MaxEncodedLen) - fn revoke_vc() -> Weight { - // Proof Size summary in bytes: - // Measured: `190` - // Estimated: `3846` - // Minimum execution time: 23_322_000 picoseconds. - Weight::from_parts(23_776_000, 0) - .saturating_add(Weight::from_parts(0, 3846)) - .saturating_add(T::DbWeight::get().reads(2)) - .saturating_add(T::DbWeight::get().writes(1)) - } - /// Storage: Teerex EnclaveIndex (r:1 w:0) - /// Proof Skipped: Teerex EnclaveIndex (max_values: None, max_size: None, mode: Measured) - /// Storage: VCManagement VCRegistry (r:1 w:1) - /// Proof: VCManagement VCRegistry (max_values: None, max_size: Some(381), added: 2856, mode: MaxEncodedLen) - fn vc_issued() -> Weight { - // Proof Size summary in bytes: - // Measured: `248` - // Estimated: `3846` - // Minimum execution time: 26_213_000 picoseconds. - Weight::from_parts(26_792_000, 0) - .saturating_add(Weight::from_parts(0, 3846)) - .saturating_add(T::DbWeight::get().reads(2)) - .saturating_add(T::DbWeight::get().writes(1)) - } - /// Storage: Teerex EnclaveIndex (r:1 w:0) - /// Proof Skipped: Teerex EnclaveIndex (max_values: None, max_size: None, mode: Measured) - fn some_error() -> Weight { - // Proof Size summary in bytes: - // Measured: `242` - // Estimated: `3707` - // Minimum execution time: 20_214_000 picoseconds. - Weight::from_parts(20_829_000, 0) - .saturating_add(Weight::from_parts(0, 3707)) - .saturating_add(T::DbWeight::get().reads(1)) - } - /// Storage: VCManagement Admin (r:1 w:1) - /// Proof: VCManagement Admin (max_values: Some(1), max_size: Some(32), added: 527, mode: MaxEncodedLen) - fn set_admin() -> Weight { - // Proof Size summary in bytes: - // Measured: `61` - // Estimated: `1517` - // Minimum execution time: 16_575_000 picoseconds. - Weight::from_parts(17_339_000, 0) - .saturating_add(Weight::from_parts(0, 1517)) - .saturating_add(T::DbWeight::get().reads(1)) - .saturating_add(T::DbWeight::get().writes(1)) - } - /// Storage: VCManagement Admin (r:1 w:0) - /// Proof: VCManagement Admin (max_values: Some(1), max_size: Some(32), added: 527, mode: MaxEncodedLen) - /// Storage: VCManagement SchemaRegistryIndex (r:1 w:1) - /// Proof: VCManagement SchemaRegistryIndex (max_values: Some(1), max_size: Some(8), added: 503, mode: MaxEncodedLen) - /// Storage: VCManagement SchemaRegistry (r:0 w:1) - /// Proof: VCManagement SchemaRegistry (max_values: None, max_size: Some(2621), added: 5096, mode: MaxEncodedLen) - fn add_schema() -> Weight { - // Proof Size summary in bytes: - // Measured: `61` - // Estimated: `1517` - // Minimum execution time: 20_658_000 picoseconds. - Weight::from_parts(21_536_000, 0) - .saturating_add(Weight::from_parts(0, 1517)) - .saturating_add(T::DbWeight::get().reads(2)) - .saturating_add(T::DbWeight::get().writes(2)) - } - /// Storage: VCManagement Admin (r:1 w:0) - /// Proof: VCManagement Admin (max_values: Some(1), max_size: Some(32), added: 527, mode: MaxEncodedLen) - /// Storage: VCManagement SchemaRegistry (r:1 w:1) - /// Proof: VCManagement SchemaRegistry (max_values: None, max_size: Some(2621), added: 5096, mode: MaxEncodedLen) - fn disable_schema() -> Weight { - // Proof Size summary in bytes: - // Measured: `179` - // Estimated: `6086` - // Minimum execution time: 21_217_000 picoseconds. - Weight::from_parts(21_760_000, 0) - .saturating_add(Weight::from_parts(0, 6086)) - .saturating_add(T::DbWeight::get().reads(2)) - .saturating_add(T::DbWeight::get().writes(1)) - } - /// Storage: VCManagement Admin (r:1 w:0) - /// Proof: VCManagement Admin (max_values: Some(1), max_size: Some(32), added: 527, mode: MaxEncodedLen) - /// Storage: VCManagement SchemaRegistry (r:1 w:1) - /// Proof: VCManagement SchemaRegistry (max_values: None, max_size: Some(2621), added: 5096, mode: MaxEncodedLen) - fn activate_schema() -> Weight { - // Proof Size summary in bytes: - // Measured: `179` - // Estimated: `6086` - // Minimum execution time: 21_325_000 picoseconds. - Weight::from_parts(22_705_000, 0) - .saturating_add(Weight::from_parts(0, 6086)) - .saturating_add(T::DbWeight::get().reads(2)) - .saturating_add(T::DbWeight::get().writes(1)) - } - /// Storage: VCManagement Admin (r:1 w:0) - /// Proof: VCManagement Admin (max_values: Some(1), max_size: Some(32), added: 527, mode: MaxEncodedLen) - /// Storage: VCManagement SchemaRegistry (r:1 w:1) - /// Proof: VCManagement SchemaRegistry (max_values: None, max_size: Some(2621), added: 5096, mode: MaxEncodedLen) - fn revoke_schema() -> Weight { - // Proof Size summary in bytes: - // Measured: `179` - // Estimated: `6086` - // Minimum execution time: 22_043_000 picoseconds. - Weight::from_parts(22_697_000, 0) - .saturating_add(Weight::from_parts(0, 6086)) - .saturating_add(T::DbWeight::get().reads(2)) - .saturating_add(T::DbWeight::get().writes(1)) - } - /// Storage: VCManagement Admin (r:1 w:0) - /// Proof: VCManagement Admin (max_values: Some(1), max_size: Some(32), added: 527, mode: MaxEncodedLen) - /// Storage: VCManagement VCRegistry (r:1 w:1) - /// Proof: VCManagement VCRegistry (max_values: None, max_size: Some(381), added: 2856, mode: MaxEncodedLen) - fn add_vc_registry_item() -> Weight { - // Proof Size summary in bytes: - // Measured: `61` - // Estimated: `3846` - // Minimum execution time: 20_945_000 picoseconds. - Weight::from_parts(22_169_000, 0) - .saturating_add(Weight::from_parts(0, 3846)) - .saturating_add(T::DbWeight::get().reads(2)) - .saturating_add(T::DbWeight::get().writes(1)) - } - /// Storage: VCManagement Admin (r:1 w:0) - /// Proof: VCManagement Admin (max_values: Some(1), max_size: Some(32), added: 527, mode: MaxEncodedLen) - /// Storage: VCManagement VCRegistry (r:1 w:1) - /// Proof: VCManagement VCRegistry (max_values: None, max_size: Some(381), added: 2856, mode: MaxEncodedLen) - fn remove_vc_registry_item() -> Weight { - // Proof Size summary in bytes: - // Measured: `200` - // Estimated: `3846` - // Minimum execution time: 22_357_000 picoseconds. - Weight::from_parts(23_090_000, 0) - .saturating_add(Weight::from_parts(0, 3846)) - .saturating_add(T::DbWeight::get().reads(2)) - .saturating_add(T::DbWeight::get().writes(1)) - } - /// Storage: VCManagement Admin (r:1 w:0) - /// Proof: VCManagement Admin (max_values: Some(1), max_size: Some(32), added: 527, mode: MaxEncodedLen) - /// Storage: VCManagement VCRegistry (r:100 w:100) - /// Proof: VCManagement VCRegistry (max_values: None, max_size: Some(381), added: 2856, mode: MaxEncodedLen) - /// The range of component `x` is `[0, 100]`. - fn clear_vc_registry(x: u32, ) -> Weight { - // Proof Size summary in bytes: - // Measured: `91 + x * (85 ±0)` - // Estimated: `1517 + x * (2856 ±0)` - // Minimum execution time: 18_150_000 picoseconds. - Weight::from_parts(19_859_373, 0) - .saturating_add(Weight::from_parts(0, 1517)) - // Standard Error: 2_963 - .saturating_add(Weight::from_parts(1_438_870, 0).saturating_mul(x.into())) - .saturating_add(T::DbWeight::get().reads(1)) - .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(x.into()))) - .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(x.into()))) - .saturating_add(Weight::from_parts(0, 2856).saturating_mul(x.into())) - } -}