mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-31 20:21:03 +00:00
28e94d97dd
* fix to latest substrate pr
* update weights
* cargo build -p polkadot-runtime-parachains
* fix xcm-builder
* fix import
* fix a bunch
* fix a bunch of weight stuff
* kusama compile
* unused
* builds
* maybe fix
* cargo test -p polkadot-runtime-parachains
* xcm simulator example
* fix tests
* xcm sim fuzz
* fix runtime tests
* remove unused
* fix integration tests
* scalar div
* update lockfile for {"substrate"}
Co-authored-by: parity-processbot <>
90 lines
3.5 KiB
Rust
90 lines
3.5 KiB
Rust
// Copyright 2017-2022 Parity Technologies (UK) Ltd.
|
|
// This file is part of Polkadot.
|
|
|
|
// Polkadot 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.
|
|
|
|
// Polkadot 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 Polkadot. If not, see <http://www.gnu.org/licenses/>.
|
|
//! Autogenerated weights for `pallet_balances`
|
|
//!
|
|
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
|
|
//! DATE: 2022-08-19, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
|
//! HOSTNAME: `bm6`, CPU: `Intel(R) Core(TM) i7-7700K CPU @ 4.20GHz`
|
|
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("westend-dev"), DB CACHE: 1024
|
|
|
|
// Executed Command:
|
|
// ./target/production/polkadot
|
|
// benchmark
|
|
// pallet
|
|
// --chain=westend-dev
|
|
// --steps=50
|
|
// --repeat=20
|
|
// --pallet=pallet_balances
|
|
// --extrinsic=*
|
|
// --execution=wasm
|
|
// --wasm-execution=compiled
|
|
// --header=./file_header.txt
|
|
// --output=./runtime/westend/src/weights/pallet_balances.rs
|
|
|
|
#![cfg_attr(rustfmt, rustfmt_skip)]
|
|
#![allow(unused_parens)]
|
|
#![allow(unused_imports)]
|
|
|
|
use frame_support::{traits::Get, weights::{RefTimeWeight, Weight}};
|
|
use sp_std::marker::PhantomData;
|
|
|
|
/// Weight functions for `pallet_balances`.
|
|
pub struct WeightInfo<T>(PhantomData<T>);
|
|
impl<T: frame_system::Config> pallet_balances::WeightInfo for WeightInfo<T> {
|
|
// Storage: System Account (r:1 w:1)
|
|
fn transfer() -> Weight {
|
|
Weight::from_ref_time(38_789_000 as RefTimeWeight)
|
|
.saturating_add(T::DbWeight::get().reads(1 as RefTimeWeight))
|
|
.saturating_add(T::DbWeight::get().writes(1 as RefTimeWeight))
|
|
}
|
|
// Storage: System Account (r:1 w:1)
|
|
fn transfer_keep_alive() -> Weight {
|
|
Weight::from_ref_time(29_986_000 as RefTimeWeight)
|
|
.saturating_add(T::DbWeight::get().reads(1 as RefTimeWeight))
|
|
.saturating_add(T::DbWeight::get().writes(1 as RefTimeWeight))
|
|
}
|
|
// Storage: System Account (r:1 w:1)
|
|
fn set_balance_creating() -> Weight {
|
|
Weight::from_ref_time(20_160_000 as RefTimeWeight)
|
|
.saturating_add(T::DbWeight::get().reads(1 as RefTimeWeight))
|
|
.saturating_add(T::DbWeight::get().writes(1 as RefTimeWeight))
|
|
}
|
|
// Storage: System Account (r:1 w:1)
|
|
fn set_balance_killing() -> Weight {
|
|
Weight::from_ref_time(23_146_000 as RefTimeWeight)
|
|
.saturating_add(T::DbWeight::get().reads(1 as RefTimeWeight))
|
|
.saturating_add(T::DbWeight::get().writes(1 as RefTimeWeight))
|
|
}
|
|
// Storage: System Account (r:2 w:2)
|
|
fn force_transfer() -> Weight {
|
|
Weight::from_ref_time(39_066_000 as RefTimeWeight)
|
|
.saturating_add(T::DbWeight::get().reads(2 as RefTimeWeight))
|
|
.saturating_add(T::DbWeight::get().writes(2 as RefTimeWeight))
|
|
}
|
|
// Storage: System Account (r:1 w:1)
|
|
fn transfer_all() -> Weight {
|
|
Weight::from_ref_time(34_523_000 as RefTimeWeight)
|
|
.saturating_add(T::DbWeight::get().reads(1 as RefTimeWeight))
|
|
.saturating_add(T::DbWeight::get().writes(1 as RefTimeWeight))
|
|
}
|
|
// Storage: System Account (r:1 w:1)
|
|
fn force_unreserve() -> Weight {
|
|
Weight::from_ref_time(18_078_000 as RefTimeWeight)
|
|
.saturating_add(T::DbWeight::get().reads(1 as RefTimeWeight))
|
|
.saturating_add(T::DbWeight::get().writes(1 as RefTimeWeight))
|
|
}
|
|
}
|