Files
pezkuwi-sdk/pezcumulus/teyrchains/pezpallets/identity-kyc/src/weights.rs
T
pezkuwichain b6d35f6faf chore: add Dijital Kurdistan Tech Institute to copyright headers
Updated 4763 files with dual copyright:
- Parity Technologies (UK) Ltd.
- Dijital Kurdistan Tech Institute
2025-12-27 21:28:36 +03:00

246 lines
11 KiB
Rust

// This file is part of Bizinikiwi.
// Copyright (C) Parity Technologies (UK) Ltd. and Dijital Kurdistan Tech Institute
// SPDX-License-Identifier: Apache-2.0
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//! Autogenerated weights for `pezpallet_identity_kyc`
//!
//! THIS FILE WAS AUTO-GENERATED USING THE BIZINIKIWI BENCHMARK CLI VERSION 32.0.0
//! DATE: 2025-12-08, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! WORST CASE MAP SIZE: `1000000`
//! HOSTNAME: `MamostePC`, CPU: `11th Gen Intel(R) Core(TM) i9-11950H @ 2.60GHz`
//! WASM-EXECUTION: `Compiled`, CHAIN: `None`, DB CACHE: `1024`
// Executed Command:
// ./target/release/frame-omni-bencher
// v1
// benchmark
// pezpallet
// --runtime
// target/release/wbuild/people-pezkuwichain-runtime/people_pezkuwichain_runtime.compact.compressed.wasm
// --pallets
// pezpallet_identity_kyc
// -e
// all
// --steps
// 50
// --repeat
// 20
// --output
// pezcumulus/teyrchains/pezpallets/identity-kyc/src/weights.rs
// --template
// bizinikiwi/.maintain/frame-weight-template.hbs
#![cfg_attr(rustfmt, rustfmt_skip)]
#![allow(unused_parens)]
#![allow(unused_imports)]
#![allow(missing_docs)]
#![allow(dead_code)]
use pezframe_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}};
use core::marker::PhantomData;
/// Weight functions needed for `pezpallet_identity_kyc`.
pub trait WeightInfo {
fn apply_for_citizenship() -> Weight;
fn approve_referral() -> Weight;
fn confirm_citizenship() -> Weight;
fn revoke_citizenship() -> Weight;
fn renounce_citizenship() -> Weight;
fn cancel_application() -> Weight;
}
/// Weights for `pezpallet_identity_kyc` using the Bizinikiwi node and recommended hardware.
pub struct BizinikiwiWeight<T>(PhantomData<T>);
impl<T: pezframe_system::Config> WeightInfo for BizinikiwiWeight<T> {
/// Storage: `IdentityKyc::KycStatuses` (r:2 w:1)
/// Proof: `IdentityKyc::KycStatuses` (`max_values`: None, `max_size`: Some(49), added: 2524, mode: `MaxEncodedLen`)
/// Storage: `System::Account` (r:1 w:1)
/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
/// Storage: `IdentityKyc::Applications` (r:0 w:1)
/// Proof: `IdentityKyc::Applications` (`max_values`: None, `max_size`: Some(112), added: 2587, mode: `MaxEncodedLen`)
fn apply_for_citizenship() -> Weight {
// Proof Size summary in bytes:
// Measured: `253`
// Estimated: `6038`
// Minimum execution time: 32_436_000 picoseconds.
Weight::from_parts(33_789_000, 6038)
.saturating_add(T::DbWeight::get().reads(3_u64))
.saturating_add(T::DbWeight::get().writes(3_u64))
}
/// Storage: `IdentityKyc::KycStatuses` (r:1 w:1)
/// Proof: `IdentityKyc::KycStatuses` (`max_values`: None, `max_size`: Some(49), added: 2524, mode: `MaxEncodedLen`)
/// Storage: `IdentityKyc::Applications` (r:1 w:0)
/// Proof: `IdentityKyc::Applications` (`max_values`: None, `max_size`: Some(112), added: 2587, mode: `MaxEncodedLen`)
fn approve_referral() -> Weight {
// Proof Size summary in bytes:
// Measured: `323`
// Estimated: `3577`
// Minimum execution time: 17_647_000 picoseconds.
Weight::from_parts(18_444_000, 3577)
.saturating_add(T::DbWeight::get().reads(2_u64))
.saturating_add(T::DbWeight::get().writes(1_u64))
}
/// Storage: `IdentityKyc::KycStatuses` (r:1 w:1)
/// Proof: `IdentityKyc::KycStatuses` (`max_values`: None, `max_size`: Some(49), added: 2524, mode: `MaxEncodedLen`)
/// Storage: `IdentityKyc::Applications` (r:1 w:1)
/// Proof: `IdentityKyc::Applications` (`max_values`: None, `max_size`: Some(112), added: 2587, mode: `MaxEncodedLen`)
/// Storage: `System::Account` (r:1 w:1)
/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
/// Storage: `IdentityKyc::IdentityHashes` (r:0 w:1)
/// Proof: `IdentityKyc::IdentityHashes` (`max_values`: None, `max_size`: Some(80), added: 2555, mode: `MaxEncodedLen`)
/// Storage: `IdentityKyc::CitizenReferrers` (r:0 w:1)
/// Proof: `IdentityKyc::CitizenReferrers` (`max_values`: None, `max_size`: Some(80), added: 2555, mode: `MaxEncodedLen`)
fn confirm_citizenship() -> Weight {
// Proof Size summary in bytes:
// Measured: `426`
// Estimated: `3593`
// Minimum execution time: 37_545_000 picoseconds.
Weight::from_parts(40_069_000, 3593)
.saturating_add(T::DbWeight::get().reads(3_u64))
.saturating_add(T::DbWeight::get().writes(5_u64))
}
/// Storage: `IdentityKyc::KycStatuses` (r:1 w:1)
/// Proof: `IdentityKyc::KycStatuses` (`max_values`: None, `max_size`: Some(49), added: 2524, mode: `MaxEncodedLen`)
fn revoke_citizenship() -> Weight {
// Proof Size summary in bytes:
// Measured: `150`
// Estimated: `3514`
// Minimum execution time: 12_919_000 picoseconds.
Weight::from_parts(13_877_000, 3514)
.saturating_add(T::DbWeight::get().reads(1_u64))
.saturating_add(T::DbWeight::get().writes(1_u64))
}
/// Storage: `IdentityKyc::KycStatuses` (r:1 w:1)
/// Proof: `IdentityKyc::KycStatuses` (`max_values`: None, `max_size`: Some(49), added: 2524, mode: `MaxEncodedLen`)
/// Storage: `IdentityKyc::IdentityHashes` (r:0 w:1)
/// Proof: `IdentityKyc::IdentityHashes` (`max_values`: None, `max_size`: Some(80), added: 2555, mode: `MaxEncodedLen`)
fn renounce_citizenship() -> Weight {
// Proof Size summary in bytes:
// Measured: `150`
// Estimated: `3514`
// Minimum execution time: 14_510_000 picoseconds.
Weight::from_parts(14_914_000, 3514)
.saturating_add(T::DbWeight::get().reads(1_u64))
.saturating_add(T::DbWeight::get().writes(2_u64))
}
/// Storage: `IdentityKyc::KycStatuses` (r:1 w:1)
/// Proof: `IdentityKyc::KycStatuses` (`max_values`: None, `max_size`: Some(49), added: 2524, mode: `MaxEncodedLen`)
/// Storage: `System::Account` (r:1 w:1)
/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
/// Storage: `IdentityKyc::Applications` (r:0 w:1)
/// Proof: `IdentityKyc::Applications` (`max_values`: None, `max_size`: Some(112), added: 2587, mode: `MaxEncodedLen`)
fn cancel_application() -> Weight {
// Proof Size summary in bytes:
// Measured: `299`
// Estimated: `3593`
// Minimum execution time: 28_146_000 picoseconds.
Weight::from_parts(29_261_000, 3593)
.saturating_add(T::DbWeight::get().reads(2_u64))
.saturating_add(T::DbWeight::get().writes(3_u64))
}
}
// For backwards compatibility and tests.
impl WeightInfo for () {
/// Storage: `IdentityKyc::KycStatuses` (r:2 w:1)
/// Proof: `IdentityKyc::KycStatuses` (`max_values`: None, `max_size`: Some(49), added: 2524, mode: `MaxEncodedLen`)
/// Storage: `System::Account` (r:1 w:1)
/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
/// Storage: `IdentityKyc::Applications` (r:0 w:1)
/// Proof: `IdentityKyc::Applications` (`max_values`: None, `max_size`: Some(112), added: 2587, mode: `MaxEncodedLen`)
fn apply_for_citizenship() -> Weight {
// Proof Size summary in bytes:
// Measured: `253`
// Estimated: `6038`
// Minimum execution time: 32_436_000 picoseconds.
Weight::from_parts(33_789_000, 6038)
.saturating_add(RocksDbWeight::get().reads(3_u64))
.saturating_add(RocksDbWeight::get().writes(3_u64))
}
/// Storage: `IdentityKyc::KycStatuses` (r:1 w:1)
/// Proof: `IdentityKyc::KycStatuses` (`max_values`: None, `max_size`: Some(49), added: 2524, mode: `MaxEncodedLen`)
/// Storage: `IdentityKyc::Applications` (r:1 w:0)
/// Proof: `IdentityKyc::Applications` (`max_values`: None, `max_size`: Some(112), added: 2587, mode: `MaxEncodedLen`)
fn approve_referral() -> Weight {
// Proof Size summary in bytes:
// Measured: `323`
// Estimated: `3577`
// Minimum execution time: 17_647_000 picoseconds.
Weight::from_parts(18_444_000, 3577)
.saturating_add(RocksDbWeight::get().reads(2_u64))
.saturating_add(RocksDbWeight::get().writes(1_u64))
}
/// Storage: `IdentityKyc::KycStatuses` (r:1 w:1)
/// Proof: `IdentityKyc::KycStatuses` (`max_values`: None, `max_size`: Some(49), added: 2524, mode: `MaxEncodedLen`)
/// Storage: `IdentityKyc::Applications` (r:1 w:1)
/// Proof: `IdentityKyc::Applications` (`max_values`: None, `max_size`: Some(112), added: 2587, mode: `MaxEncodedLen`)
/// Storage: `System::Account` (r:1 w:1)
/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
/// Storage: `IdentityKyc::IdentityHashes` (r:0 w:1)
/// Proof: `IdentityKyc::IdentityHashes` (`max_values`: None, `max_size`: Some(80), added: 2555, mode: `MaxEncodedLen`)
/// Storage: `IdentityKyc::CitizenReferrers` (r:0 w:1)
/// Proof: `IdentityKyc::CitizenReferrers` (`max_values`: None, `max_size`: Some(80), added: 2555, mode: `MaxEncodedLen`)
fn confirm_citizenship() -> Weight {
// Proof Size summary in bytes:
// Measured: `426`
// Estimated: `3593`
// Minimum execution time: 37_545_000 picoseconds.
Weight::from_parts(40_069_000, 3593)
.saturating_add(RocksDbWeight::get().reads(3_u64))
.saturating_add(RocksDbWeight::get().writes(5_u64))
}
/// Storage: `IdentityKyc::KycStatuses` (r:1 w:1)
/// Proof: `IdentityKyc::KycStatuses` (`max_values`: None, `max_size`: Some(49), added: 2524, mode: `MaxEncodedLen`)
fn revoke_citizenship() -> Weight {
// Proof Size summary in bytes:
// Measured: `150`
// Estimated: `3514`
// Minimum execution time: 12_919_000 picoseconds.
Weight::from_parts(13_877_000, 3514)
.saturating_add(RocksDbWeight::get().reads(1_u64))
.saturating_add(RocksDbWeight::get().writes(1_u64))
}
/// Storage: `IdentityKyc::KycStatuses` (r:1 w:1)
/// Proof: `IdentityKyc::KycStatuses` (`max_values`: None, `max_size`: Some(49), added: 2524, mode: `MaxEncodedLen`)
/// Storage: `IdentityKyc::IdentityHashes` (r:0 w:1)
/// Proof: `IdentityKyc::IdentityHashes` (`max_values`: None, `max_size`: Some(80), added: 2555, mode: `MaxEncodedLen`)
fn renounce_citizenship() -> Weight {
// Proof Size summary in bytes:
// Measured: `150`
// Estimated: `3514`
// Minimum execution time: 14_510_000 picoseconds.
Weight::from_parts(14_914_000, 3514)
.saturating_add(RocksDbWeight::get().reads(1_u64))
.saturating_add(RocksDbWeight::get().writes(2_u64))
}
/// Storage: `IdentityKyc::KycStatuses` (r:1 w:1)
/// Proof: `IdentityKyc::KycStatuses` (`max_values`: None, `max_size`: Some(49), added: 2524, mode: `MaxEncodedLen`)
/// Storage: `System::Account` (r:1 w:1)
/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
/// Storage: `IdentityKyc::Applications` (r:0 w:1)
/// Proof: `IdentityKyc::Applications` (`max_values`: None, `max_size`: Some(112), added: 2587, mode: `MaxEncodedLen`)
fn cancel_application() -> Weight {
// Proof Size summary in bytes:
// Measured: `299`
// Estimated: `3593`
// Minimum execution time: 28_146_000 picoseconds.
Weight::from_parts(29_261_000, 3593)
.saturating_add(RocksDbWeight::get().reads(2_u64))
.saturating_add(RocksDbWeight::get().writes(3_u64))
}
}