-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'dev' into 984-cli-fix-warning
- Loading branch information
Showing
6 changed files
with
87 additions
and
188 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,85 @@ | ||
|
||
//! Autogenerated weights for `crate` | ||
//! | ||
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev | ||
//! DATE: 2024-01-04, STEPS: `50`, REPEAT: `30`, LOW RANGE: `[]`, HIGH RANGE: `[]` | ||
//! WORST CASE MAP SIZE: `1000000` | ||
//! HOSTNAME: `github-runner-7401546037-attempt-3`, CPU: `AMD EPYC 7452 32-Core Processor` | ||
//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("dev")`, DB CACHE: 1024 | ||
// Executed Command: | ||
// ./target/release/creditcoin3-node | ||
// benchmark | ||
// pallet | ||
// --chain | ||
// dev | ||
// --steps=50 | ||
// --repeat=30 | ||
// --pallet | ||
// crate | ||
// --extrinsic=* | ||
// --wasm-execution=compiled | ||
// --heap-pages=10000 | ||
// --output | ||
// ./pallets/bridge/src/weights.rs | ||
|
||
#![cfg_attr(rustfmt, rustfmt_skip)] | ||
#![allow(unused_parens)] | ||
#![allow(unused_imports)] | ||
#![allow(missing_docs)] | ||
|
||
use frame_support::{traits::Get, weights::Weight}; | ||
use sp_std::marker::PhantomData; | ||
use core::marker::PhantomData; | ||
|
||
/// Weight functions for `crate`. | ||
pub struct WeightInfo<T>(PhantomData<T>); | ||
impl<T: frame_system::Config> crate::WeightInfo for WeightInfo<T> { | ||
/// Storage: `Bridge::Authorities` (r:1 w:1) | ||
/// Proof: `Bridge::Authorities` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`) | ||
fn add_authority() -> Weight { | ||
Weight::from_parts(1, 1) | ||
// Proof Size summary in bytes: | ||
// Measured: `6` | ||
// Estimated: `3513` | ||
// Minimum execution time: 11_101_000 picoseconds. | ||
Weight::from_parts(11_500_000, 0) | ||
.saturating_add(Weight::from_parts(0, 3513)) | ||
.saturating_add(T::DbWeight::get().reads(1)) | ||
.saturating_add(T::DbWeight::get().writes(1)) | ||
} | ||
|
||
/// Storage: `Bridge::Authorities` (r:1 w:0) | ||
/// Proof: `Bridge::Authorities` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`) | ||
/// Storage: `Bridge::Collections` (r:1 w:1) | ||
/// Proof: `Bridge::Collections` (`max_values`: None, `max_size`: Some(68), added: 2543, mode: `MaxEncodedLen`) | ||
/// Storage: `Balances::TotalIssuance` (r:1 w:1) | ||
/// Proof: `Balances::TotalIssuance` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`) | ||
/// Storage: `System::Number` (r:1 w:0) | ||
/// Proof: `System::Number` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) | ||
/// Storage: `System::ExecutionPhase` (r:1 w:0) | ||
/// Proof: `System::ExecutionPhase` (`max_values`: Some(1), `max_size`: Some(5), added: 500, mode: `MaxEncodedLen`) | ||
/// Storage: `System::EventCount` (r:1 w:1) | ||
/// Proof: `System::EventCount` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) | ||
/// Storage: `System::Events` (r:1 w:1) | ||
/// Proof: `System::Events` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) | ||
fn approve_collection() -> Weight { | ||
Weight::from_parts(1, 1) | ||
// Proof Size summary in bytes: | ||
// Measured: `320` | ||
// Estimated: `3533` | ||
// Minimum execution time: 76_002_000 picoseconds. | ||
Weight::from_parts(77_702_000, 0) | ||
.saturating_add(Weight::from_parts(0, 3533)) | ||
.saturating_add(T::DbWeight::get().reads(7)) | ||
.saturating_add(T::DbWeight::get().writes(4)) | ||
} | ||
|
||
/// Storage: `Bridge::Authorities` (r:1 w:1) | ||
/// Proof: `Bridge::Authorities` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`) | ||
fn remove_authority() -> Weight { | ||
Weight::from_parts(1, 1) | ||
// Proof Size summary in bytes: | ||
// Measured: `79` | ||
// Estimated: `3513` | ||
// Minimum execution time: 13_800_000 picoseconds. | ||
Weight::from_parts(14_201_000, 0) | ||
.saturating_add(Weight::from_parts(0, 3513)) | ||
.saturating_add(T::DbWeight::get().reads(1)) | ||
.saturating_add(T::DbWeight::get().writes(1)) | ||
} | ||
} |