-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add multisig pallet to runtime (#498)
- Loading branch information
Showing
13 changed files
with
316 additions
and
7 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
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 |
---|---|---|
@@ -0,0 +1,118 @@ | ||
// KILT Blockchain – https://botlabs.org | ||
// Copyright (C) 2019-2023 BOTLabs GmbH | ||
|
||
// The KILT Blockchain 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. | ||
|
||
// The KILT Blockchain 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 this program. If not, see <https://www.gnu.org/licenses/>. | ||
|
||
// If you feel like getting in touch with us, you can do so at info@botlabs.org | ||
|
||
//! Autogenerated weights for pallet_multisig | ||
//! | ||
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev | ||
//! DATE: 2023-04-04, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` | ||
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024 | ||
// Executed Command: | ||
// ./target/release/kilt-parachain | ||
// benchmark | ||
// pallet | ||
// --chain=dev | ||
// --steps=50 | ||
// --repeat=20 | ||
// --pallet=pallet_multisig | ||
// --execution=wasm | ||
// --wasm-execution=compiled | ||
// --extrinsic=* | ||
// --heap-pages=4096 | ||
// --output=./runtimes/peregrine/src/weights/pallet_multisig.rs | ||
// --template=.maintain/runtime-weight-template.hbs | ||
|
||
#![cfg_attr(rustfmt, rustfmt_skip)] | ||
#![allow(unused_parens)] | ||
#![allow(unused_imports)] | ||
#![allow(clippy::unnecessary_cast)] | ||
|
||
use frame_support::{traits::Get, weights::Weight}; | ||
use sp_std::marker::PhantomData; | ||
|
||
/// Weights for `pallet_multisig`. | ||
pub struct WeightInfo<T>(PhantomData<T>); | ||
impl<T: frame_system::Config> pallet_multisig::WeightInfo for WeightInfo<T> { | ||
fn as_multi_threshold_1(z: u32, ) -> Weight { | ||
Weight::from_ref_time(8_364_882 as u64) | ||
// Standard Error: 79 | ||
.saturating_add(Weight::from_ref_time(849 as u64).saturating_mul(z as u64)) | ||
} | ||
// Storage: Multisig Multisigs (r:1 w:1) | ||
// Proof: Multisig Multisigs (max_values: None, max_size: Some(2198), added: 4673, mode: MaxEncodedLen) | ||
fn as_multi_create(s: u32, z: u32, ) -> Weight { | ||
Weight::from_ref_time(20_285_811 as u64) | ||
// Standard Error: 5_408 | ||
.saturating_add(Weight::from_ref_time(80_065 as u64).saturating_mul(s as u64)) | ||
// Standard Error: 33 | ||
.saturating_add(Weight::from_ref_time(986 as u64).saturating_mul(z as u64)) | ||
.saturating_add(T::DbWeight::get().reads(1 as u64)) | ||
.saturating_add(T::DbWeight::get().writes(1 as u64)) | ||
} | ||
// Storage: Multisig Multisigs (r:1 w:1) | ||
// Proof: Multisig Multisigs (max_values: None, max_size: Some(2198), added: 4673, mode: MaxEncodedLen) | ||
fn as_multi_approve(s: u32, z: u32, ) -> Weight { | ||
Weight::from_ref_time(12_705_025 as u64) | ||
// Standard Error: 30_300 | ||
.saturating_add(Weight::from_ref_time(20_431 as u64).saturating_mul(s as u64)) | ||
// Standard Error: 186 | ||
.saturating_add(Weight::from_ref_time(3_373 as u64).saturating_mul(z as u64)) | ||
.saturating_add(T::DbWeight::get().reads(1 as u64)) | ||
.saturating_add(T::DbWeight::get().writes(1 as u64)) | ||
} | ||
// Storage: Multisig Multisigs (r:1 w:1) | ||
// Proof: Multisig Multisigs (max_values: None, max_size: Some(2198), added: 4673, mode: MaxEncodedLen) | ||
// Storage: System Account (r:1 w:1) | ||
// Proof: System Account (max_values: None, max_size: Some(132), added: 2607, mode: MaxEncodedLen) | ||
fn as_multi_complete(s: u32, z: u32, ) -> Weight { | ||
Weight::from_ref_time(20_642_060 as u64) | ||
// Standard Error: 5_511 | ||
.saturating_add(Weight::from_ref_time(104_693 as u64).saturating_mul(s as u64)) | ||
// Standard Error: 34 | ||
.saturating_add(Weight::from_ref_time(1_132 as u64).saturating_mul(z as u64)) | ||
.saturating_add(T::DbWeight::get().reads(2 as u64)) | ||
.saturating_add(T::DbWeight::get().writes(2 as u64)) | ||
} | ||
// Storage: Multisig Multisigs (r:1 w:1) | ||
// Proof: Multisig Multisigs (max_values: None, max_size: Some(2198), added: 4673, mode: MaxEncodedLen) | ||
fn approve_as_multi_create(s: u32, ) -> Weight { | ||
Weight::from_ref_time(17_036_891 as u64) | ||
// Standard Error: 4_200 | ||
.saturating_add(Weight::from_ref_time(122_554 as u64).saturating_mul(s as u64)) | ||
.saturating_add(T::DbWeight::get().reads(1 as u64)) | ||
.saturating_add(T::DbWeight::get().writes(1 as u64)) | ||
} | ||
// Storage: Multisig Multisigs (r:1 w:1) | ||
// Proof: Multisig Multisigs (max_values: None, max_size: Some(2198), added: 4673, mode: MaxEncodedLen) | ||
fn approve_as_multi_approve(s: u32, ) -> Weight { | ||
Weight::from_ref_time(12_421_505 as u64) | ||
// Standard Error: 7_770 | ||
.saturating_add(Weight::from_ref_time(81_668 as u64).saturating_mul(s as u64)) | ||
.saturating_add(T::DbWeight::get().reads(1 as u64)) | ||
.saturating_add(T::DbWeight::get().writes(1 as u64)) | ||
} | ||
// Storage: Multisig Multisigs (r:1 w:1) | ||
// Proof: Multisig Multisigs (max_values: None, max_size: Some(2198), added: 4673, mode: MaxEncodedLen) | ||
fn cancel_as_multi(s: u32, ) -> Weight { | ||
Weight::from_ref_time(19_681_233 as u64) | ||
// Standard Error: 4_292 | ||
.saturating_add(Weight::from_ref_time(70_945 as u64).saturating_mul(s as u64)) | ||
.saturating_add(T::DbWeight::get().reads(1 as u64)) | ||
.saturating_add(T::DbWeight::get().writes(1 as u64)) | ||
} | ||
} |
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
Oops, something went wrong.