-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Preimage registrar and Scheduler integration
Scheduler: paritytech/substrate#10356 OriginPriviligeCmp: paritytech/polkadot#4166
- Loading branch information
Showing
7 changed files
with
451 additions
and
14 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,134 @@ | ||
// KILT Blockchain – https://botlabs.org | ||
// Copyright (C) 2019-2022 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_preimage` | ||
//! | ||
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev | ||
//! DATE: 2022-01-29, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` | ||
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("kusama-dev"), DB CACHE: 1024 | ||
|
||
// Executed Command: | ||
// target/release/polkadot | ||
// benchmark | ||
// --chain=kusama-dev | ||
// --steps=50 | ||
// --repeat=20 | ||
// --pallet=pallet_preimage | ||
// --extrinsic=* | ||
// --execution=wasm | ||
// --wasm-execution=compiled | ||
// --heap-pages=4096 | ||
// --header=./file_header.txt | ||
// --output=./runtime/kusama/src/weights/pallet_preimage.rs | ||
|
||
#![cfg_attr(rustfmt, rustfmt_skip)] | ||
#![allow(unused_parens)] | ||
#![allow(unused_imports)] | ||
|
||
use frame_support::{traits::Get, weights::Weight}; | ||
use sp_std::marker::PhantomData; | ||
|
||
/// Weight functions for `pallet_preimage`. | ||
pub struct WeightInfo<T>(PhantomData<T>); | ||
impl<T: frame_system::Config> pallet_preimage::WeightInfo for WeightInfo<T> { | ||
// Storage: Preimage PreimageFor (r:1 w:1) | ||
// Storage: Preimage StatusFor (r:1 w:1) | ||
fn note_preimage(s: u32, ) -> Weight { | ||
(0 as Weight) | ||
// Standard Error: 0 | ||
.saturating_add((3_000 as Weight).saturating_mul(s as Weight)) | ||
.saturating_add(T::DbWeight::get().reads(2 as Weight)) | ||
.saturating_add(T::DbWeight::get().writes(2 as Weight)) | ||
} | ||
// Storage: Preimage PreimageFor (r:1 w:1) | ||
// Storage: Preimage StatusFor (r:1 w:0) | ||
fn note_requested_preimage(s: u32, ) -> Weight { | ||
(0 as Weight) | ||
// Standard Error: 0 | ||
.saturating_add((3_000 as Weight).saturating_mul(s as Weight)) | ||
.saturating_add(T::DbWeight::get().reads(2 as Weight)) | ||
.saturating_add(T::DbWeight::get().writes(1 as Weight)) | ||
} | ||
// Storage: Preimage PreimageFor (r:1 w:1) | ||
// Storage: Preimage StatusFor (r:1 w:0) | ||
fn note_no_deposit_preimage(s: u32, ) -> Weight { | ||
(0 as Weight) | ||
// Standard Error: 0 | ||
.saturating_add((3_000 as Weight).saturating_mul(s as Weight)) | ||
.saturating_add(T::DbWeight::get().reads(2 as Weight)) | ||
.saturating_add(T::DbWeight::get().writes(1 as Weight)) | ||
} | ||
// Storage: Preimage StatusFor (r:1 w:1) | ||
// Storage: Preimage PreimageFor (r:0 w:1) | ||
fn unnote_preimage() -> Weight { | ||
(53_005_000 as Weight) | ||
.saturating_add(T::DbWeight::get().reads(1 as Weight)) | ||
.saturating_add(T::DbWeight::get().writes(2 as Weight)) | ||
} | ||
// Storage: Preimage StatusFor (r:1 w:1) | ||
// Storage: Preimage PreimageFor (r:0 w:1) | ||
fn unnote_no_deposit_preimage() -> Weight { | ||
(34_770_000 as Weight) | ||
.saturating_add(T::DbWeight::get().reads(1 as Weight)) | ||
.saturating_add(T::DbWeight::get().writes(2 as Weight)) | ||
} | ||
// Storage: Preimage StatusFor (r:1 w:1) | ||
fn request_preimage() -> Weight { | ||
(49_075_000 as Weight) | ||
.saturating_add(T::DbWeight::get().reads(1 as Weight)) | ||
.saturating_add(T::DbWeight::get().writes(1 as Weight)) | ||
} | ||
// Storage: Preimage StatusFor (r:1 w:1) | ||
fn request_no_deposit_preimage() -> Weight { | ||
(32_039_000 as Weight) | ||
.saturating_add(T::DbWeight::get().reads(1 as Weight)) | ||
.saturating_add(T::DbWeight::get().writes(1 as Weight)) | ||
} | ||
// Storage: Preimage StatusFor (r:1 w:1) | ||
fn request_unnoted_preimage() -> Weight { | ||
(19_571_000 as Weight) | ||
.saturating_add(T::DbWeight::get().reads(1 as Weight)) | ||
.saturating_add(T::DbWeight::get().writes(1 as Weight)) | ||
} | ||
// Storage: Preimage StatusFor (r:1 w:1) | ||
fn request_requested_preimage() -> Weight { | ||
(6_704_000 as Weight) | ||
.saturating_add(T::DbWeight::get().reads(1 as Weight)) | ||
.saturating_add(T::DbWeight::get().writes(1 as Weight)) | ||
} | ||
// Storage: Preimage StatusFor (r:1 w:1) | ||
// Storage: Preimage PreimageFor (r:0 w:1) | ||
fn unrequest_preimage() -> Weight { | ||
(34_923_000 as Weight) | ||
.saturating_add(T::DbWeight::get().reads(1 as Weight)) | ||
.saturating_add(T::DbWeight::get().writes(2 as Weight)) | ||
} | ||
// Storage: Preimage StatusFor (r:1 w:1) | ||
// Storage: Preimage PreimageFor (r:0 w:1) | ||
fn unrequest_unnoted_preimage() -> Weight { | ||
(19_088_000 as Weight) | ||
.saturating_add(T::DbWeight::get().reads(1 as Weight)) | ||
.saturating_add(T::DbWeight::get().writes(2 as Weight)) | ||
} | ||
// Storage: Preimage StatusFor (r:1 w:1) | ||
fn unrequest_multi_referenced_preimage() -> Weight { | ||
(6_633_000 as Weight) | ||
.saturating_add(T::DbWeight::get().reads(1 as Weight)) | ||
.saturating_add(T::DbWeight::get().writes(1 as Weight)) | ||
} | ||
} |
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.