3139ffa25e
- snowbridge-pezpallet-* → pezsnowbridge-pezpallet-* (201 refs) - pallet/ directories → pezpallet/ (4 locations) - Fixed pezpallet.rs self-include recursion bug - Fixed sc-chain-spec hardcoded crate name in derive macro - Reverted .pezpallet_by_name() to .pallet_by_name() (subxt API) - Added BizinikiwiConfig type alias for zombienet tests - Deleted obsolete session state files Verified: pezsnowbridge-pezpallet-*, pezpallet-staking, pezpallet-staking-async, pezframe-benchmarking-cli all pass cargo check
146 lines
6.5 KiB
Rust
146 lines
6.5 KiB
Rust
// This file is part of Bizinikiwi.
|
|
|
|
// Copyright (C) Parity Technologies (UK) Ltd.
|
|
// 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_token_wrapper`
|
|
//!
|
|
//! 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/asset-hub-pezkuwichain-runtime/asset_hub_pezkuwichain_runtime.compact.compressed.wasm
|
|
// --pallets
|
|
// pezpallet_token_wrapper
|
|
// -e
|
|
// all
|
|
// --steps
|
|
// 50
|
|
// --repeat
|
|
// 20
|
|
// --output
|
|
// pezcumulus/teyrchains/pezpallets/token-wrapper/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_token_wrapper`.
|
|
pub trait WeightInfo {
|
|
fn wrap() -> Weight;
|
|
fn unwrap() -> Weight;
|
|
}
|
|
|
|
/// Weights for `pezpallet_token_wrapper` using the Bizinikiwi node and recommended hardware.
|
|
pub struct BizinikiwiWeight<T>(PhantomData<T>);
|
|
impl<T: pezframe_system::Config> WeightInfo for BizinikiwiWeight<T> {
|
|
/// Storage: `System::Account` (r:1 w:1)
|
|
/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
|
|
/// Storage: `TokenWrapper::TotalLocked` (r:1 w:1)
|
|
/// Proof: `TokenWrapper::TotalLocked` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`)
|
|
/// Storage: `Assets::Asset` (r:1 w:1)
|
|
/// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`)
|
|
/// Storage: `Assets::Account` (r:1 w:1)
|
|
/// Proof: `Assets::Account` (`max_values`: None, `max_size`: Some(134), added: 2609, mode: `MaxEncodedLen`)
|
|
fn wrap() -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `631`
|
|
// Estimated: `3675`
|
|
// Minimum execution time: 61_975_000 picoseconds.
|
|
Weight::from_parts(63_198_000, 3675)
|
|
.saturating_add(T::DbWeight::get().reads(4_u64))
|
|
.saturating_add(T::DbWeight::get().writes(4_u64))
|
|
}
|
|
/// Storage: `Assets::Account` (r:1 w:1)
|
|
/// Proof: `Assets::Account` (`max_values`: None, `max_size`: Some(134), added: 2609, mode: `MaxEncodedLen`)
|
|
/// Storage: `Assets::Asset` (r:1 w:1)
|
|
/// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`)
|
|
/// Storage: `AssetsFreezer::FrozenBalances` (r:1 w:1)
|
|
/// Proof: `AssetsFreezer::FrozenBalances` (`max_values`: None, `max_size`: Some(84), added: 2559, mode: `MaxEncodedLen`)
|
|
/// Storage: `AssetsFreezer::Freezes` (r:1 w:1)
|
|
/// Proof: `AssetsFreezer::Freezes` (`max_values`: None, `max_size`: Some(105), added: 2580, mode: `MaxEncodedLen`)
|
|
/// Storage: `TokenWrapper::TotalLocked` (r:1 w:1)
|
|
/// Proof: `TokenWrapper::TotalLocked` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`)
|
|
/// Storage: `System::Account` (r:1 w:1)
|
|
/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
|
|
fn unwrap() -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `713`
|
|
// Estimated: `3675`
|
|
// Minimum execution time: 87_171_000 picoseconds.
|
|
Weight::from_parts(89_650_000, 3675)
|
|
.saturating_add(T::DbWeight::get().reads(6_u64))
|
|
.saturating_add(T::DbWeight::get().writes(6_u64))
|
|
}
|
|
}
|
|
|
|
// For backwards compatibility and tests.
|
|
impl WeightInfo for () {
|
|
/// Storage: `System::Account` (r:1 w:1)
|
|
/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
|
|
/// Storage: `TokenWrapper::TotalLocked` (r:1 w:1)
|
|
/// Proof: `TokenWrapper::TotalLocked` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`)
|
|
/// Storage: `Assets::Asset` (r:1 w:1)
|
|
/// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`)
|
|
/// Storage: `Assets::Account` (r:1 w:1)
|
|
/// Proof: `Assets::Account` (`max_values`: None, `max_size`: Some(134), added: 2609, mode: `MaxEncodedLen`)
|
|
fn wrap() -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `631`
|
|
// Estimated: `3675`
|
|
// Minimum execution time: 61_975_000 picoseconds.
|
|
Weight::from_parts(63_198_000, 3675)
|
|
.saturating_add(RocksDbWeight::get().reads(4_u64))
|
|
.saturating_add(RocksDbWeight::get().writes(4_u64))
|
|
}
|
|
/// Storage: `Assets::Account` (r:1 w:1)
|
|
/// Proof: `Assets::Account` (`max_values`: None, `max_size`: Some(134), added: 2609, mode: `MaxEncodedLen`)
|
|
/// Storage: `Assets::Asset` (r:1 w:1)
|
|
/// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`)
|
|
/// Storage: `AssetsFreezer::FrozenBalances` (r:1 w:1)
|
|
/// Proof: `AssetsFreezer::FrozenBalances` (`max_values`: None, `max_size`: Some(84), added: 2559, mode: `MaxEncodedLen`)
|
|
/// Storage: `AssetsFreezer::Freezes` (r:1 w:1)
|
|
/// Proof: `AssetsFreezer::Freezes` (`max_values`: None, `max_size`: Some(105), added: 2580, mode: `MaxEncodedLen`)
|
|
/// Storage: `TokenWrapper::TotalLocked` (r:1 w:1)
|
|
/// Proof: `TokenWrapper::TotalLocked` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`)
|
|
/// Storage: `System::Account` (r:1 w:1)
|
|
/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
|
|
fn unwrap() -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `713`
|
|
// Estimated: `3675`
|
|
// Minimum execution time: 87_171_000 picoseconds.
|
|
Weight::from_parts(89_650_000, 3675)
|
|
.saturating_add(RocksDbWeight::get().reads(6_u64))
|
|
.saturating_add(RocksDbWeight::get().writes(6_u64))
|
|
}
|
|
}
|