Storage Layer for All FRAME Extrinsics (#11431)

* add new trait

* implement DispatchableWithStorageLayer

* at least one transactional

* all dispatch is at least transactional

* storage_layer api

* add test

* storage layer tests

* deprecate transactional tag

* i guess no reason to deprecate

* remove transactional from batch_all

* update tests

* extend trait

* cargo run --quiet --profile=production --features runtime-benchmarks --manifest-path bin/node/cli/Cargo.toml -- benchmark pallet --chain=dev --steps=50 --repeat=20 --pallet=pallet_balances --extrinsic=* --execution=wasm --wasm-execution=compiled --output=./frame/balances/src/weights.rs --template=./.maintain/frame-weight-template.hbs

* cargo run --quiet --profile=production --features runtime-benchmarks --manifest-path bin/node/cli/Cargo.toml -- benchmark pallet --chain=dev --steps=50 --repeat=20 --pallet=pallet_balances --extrinsic=* --execution=wasm --wasm-execution=compiled --output=./frame/balances/src/weights.rs --template=./.maintain/frame-weight-template.hbs

* cargo run --quiet --profile=production --features runtime-benchmarks --manifest-path bin/node/cli/Cargo.toml -- benchmark pallet --chain=dev --steps=50 --repeat=20 --pallet=pallet_staking --extrinsic=* --execution=wasm --wasm-execution=compiled --output=./frame/staking/src/weights.rs --template=./.maintain/frame-weight-template.hbs

* fix copy paste name

* cargo run --quiet --profile=production --features runtime-benchmarks --manifest-path bin/node/cli/Cargo.toml -- benchmark pallet --chain=dev --steps=50 --repeat=20 --pallet=pallet_utility --extrinsic=* --execution=wasm --wasm-execution=compiled --output=./frame/utility/src/weights.rs --template=./.maintain/frame-weight-template.hbs

* Create run_all_benchmarks.sh

* uncomment build

* update number of steps and repeats

* add skip build

* Update run_all_benchmarks.sh

* Update run_all_benchmarks.sh

* new benchmarks

* Update frame/support/src/traits/dispatch.rs

Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com>

* Update frame/support/src/traits/dispatch.rs

Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com>

* Update frame/support/test/tests/storage_layers.rs

Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com>

* Update frame/support/test/tests/storage_layers.rs

* weights

* Update dispatch.rs

* doc link

* decl_macro support

Co-authored-by: Parity Bot <admin@parity.io>
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com>
This commit is contained in:
Shawn Tabrizi
2022-05-26 15:28:32 -04:00
committed by GitHub
parent ea469886f8
commit 8e7adaf283
52 changed files with 1741 additions and 1355 deletions
+95 -95
View File
@@ -18,7 +18,7 @@
//! Autogenerated weights for pallet_identity
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
//! DATE: 2022-05-22, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! DATE: 2022-05-23, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024
// Executed Command:
@@ -67,19 +67,19 @@ pub struct SubstrateWeight<T>(PhantomData<T>);
impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
// Storage: Identity Registrars (r:1 w:1)
fn add_registrar(r: u32, ) -> Weight {
(13_318_000 as Weight)
// Standard Error: 3_000
.saturating_add((203_000 as Weight).saturating_mul(r as Weight))
(16_343_000 as Weight)
// Standard Error: 5_000
.saturating_add((229_000 as Weight).saturating_mul(r as Weight))
.saturating_add(T::DbWeight::get().reads(1 as Weight))
.saturating_add(T::DbWeight::get().writes(1 as Weight))
}
// Storage: Identity IdentityOf (r:1 w:1)
fn set_identity(r: u32, x: u32, ) -> Weight {
(27_683_000 as Weight)
(32_920_000 as Weight)
// Standard Error: 8_000
.saturating_add((242_000 as Weight).saturating_mul(r as Weight))
.saturating_add((203_000 as Weight).saturating_mul(r as Weight))
// Standard Error: 1_000
.saturating_add((307_000 as Weight).saturating_mul(x as Weight))
.saturating_add((300_000 as Weight).saturating_mul(x as Weight))
.saturating_add(T::DbWeight::get().reads(1 as Weight))
.saturating_add(T::DbWeight::get().writes(1 as Weight))
}
@@ -87,9 +87,9 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
// Storage: Identity SubsOf (r:1 w:1)
// Storage: Identity SuperOf (r:1 w:1)
fn set_subs_new(s: u32, ) -> Weight {
(26_126_000 as Weight)
(31_009_000 as Weight)
// Standard Error: 1_000
.saturating_add((2_826_000 as Weight).saturating_mul(s as Weight))
.saturating_add((3_053_000 as Weight).saturating_mul(s as Weight))
.saturating_add(T::DbWeight::get().reads(2 as Weight))
.saturating_add(T::DbWeight::get().reads((1 as Weight).saturating_mul(s as Weight)))
.saturating_add(T::DbWeight::get().writes(1 as Weight))
@@ -99,9 +99,9 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
// Storage: Identity SubsOf (r:1 w:1)
// Storage: Identity SuperOf (r:0 w:1)
fn set_subs_old(p: u32, ) -> Weight {
(24_645_000 as Weight)
// Standard Error: 0
.saturating_add((893_000 as Weight).saturating_mul(p as Weight))
(29_712_000 as Weight)
// Standard Error: 1_000
.saturating_add((1_087_000 as Weight).saturating_mul(p as Weight))
.saturating_add(T::DbWeight::get().reads(2 as Weight))
.saturating_add(T::DbWeight::get().writes(1 as Weight))
.saturating_add(T::DbWeight::get().writes((1 as Weight).saturating_mul(p as Weight)))
@@ -110,13 +110,13 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
// Storage: Identity IdentityOf (r:1 w:1)
// Storage: Identity SuperOf (r:0 w:100)
fn clear_identity(r: u32, s: u32, x: u32, ) -> Weight {
(31_546_000 as Weight)
// Standard Error: 12_000
.saturating_add((110_000 as Weight).saturating_mul(r as Weight))
// Standard Error: 1_000
.saturating_add((872_000 as Weight).saturating_mul(s as Weight))
// Standard Error: 1_000
.saturating_add((182_000 as Weight).saturating_mul(x as Weight))
(33_943_000 as Weight)
// Standard Error: 7_000
.saturating_add((193_000 as Weight).saturating_mul(r as Weight))
// Standard Error: 0
.saturating_add((1_101_000 as Weight).saturating_mul(s as Weight))
// Standard Error: 0
.saturating_add((194_000 as Weight).saturating_mul(x as Weight))
.saturating_add(T::DbWeight::get().reads(2 as Weight))
.saturating_add(T::DbWeight::get().writes(2 as Weight))
.saturating_add(T::DbWeight::get().writes((1 as Weight).saturating_mul(s as Weight)))
@@ -124,56 +124,56 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
// Storage: Identity Registrars (r:1 w:0)
// Storage: Identity IdentityOf (r:1 w:1)
fn request_judgement(r: u32, x: u32, ) -> Weight {
(31_117_000 as Weight)
(34_861_000 as Weight)
// Standard Error: 3_000
.saturating_add((207_000 as Weight).saturating_mul(r as Weight))
.saturating_add((249_000 as Weight).saturating_mul(r as Weight))
// Standard Error: 0
.saturating_add((347_000 as Weight).saturating_mul(x as Weight))
.saturating_add((344_000 as Weight).saturating_mul(x as Weight))
.saturating_add(T::DbWeight::get().reads(2 as Weight))
.saturating_add(T::DbWeight::get().writes(1 as Weight))
}
// Storage: Identity IdentityOf (r:1 w:1)
fn cancel_request(r: u32, x: u32, ) -> Weight {
(28_134_000 as Weight)
(32_906_000 as Weight)
// Standard Error: 3_000
.saturating_add((154_000 as Weight).saturating_mul(r as Weight))
.saturating_add((147_000 as Weight).saturating_mul(r as Weight))
// Standard Error: 0
.saturating_add((343_000 as Weight).saturating_mul(x as Weight))
.saturating_add((341_000 as Weight).saturating_mul(x as Weight))
.saturating_add(T::DbWeight::get().reads(1 as Weight))
.saturating_add(T::DbWeight::get().writes(1 as Weight))
}
// Storage: Identity Registrars (r:1 w:1)
fn set_fee(r: u32, ) -> Weight {
(4_884_000 as Weight)
(7_591_000 as Weight)
// Standard Error: 3_000
.saturating_add((159_000 as Weight).saturating_mul(r as Weight))
.saturating_add((201_000 as Weight).saturating_mul(r as Weight))
.saturating_add(T::DbWeight::get().reads(1 as Weight))
.saturating_add(T::DbWeight::get().writes(1 as Weight))
}
// Storage: Identity Registrars (r:1 w:1)
fn set_account_id(r: u32, ) -> Weight {
(5_015_000 as Weight)
// Standard Error: 2_000
.saturating_add((143_000 as Weight).saturating_mul(r as Weight))
(7_919_000 as Weight)
// Standard Error: 3_000
.saturating_add((183_000 as Weight).saturating_mul(r as Weight))
.saturating_add(T::DbWeight::get().reads(1 as Weight))
.saturating_add(T::DbWeight::get().writes(1 as Weight))
}
// Storage: Identity Registrars (r:1 w:1)
fn set_fields(r: u32, ) -> Weight {
(4_947_000 as Weight)
// Standard Error: 3_000
.saturating_add((152_000 as Weight).saturating_mul(r as Weight))
(7_887_000 as Weight)
// Standard Error: 4_000
.saturating_add((182_000 as Weight).saturating_mul(r as Weight))
.saturating_add(T::DbWeight::get().reads(1 as Weight))
.saturating_add(T::DbWeight::get().writes(1 as Weight))
}
// Storage: Identity Registrars (r:1 w:0)
// Storage: Identity IdentityOf (r:1 w:1)
fn provide_judgement(r: u32, x: u32, ) -> Weight {
(20_570_000 as Weight)
(24_623_000 as Weight)
// Standard Error: 3_000
.saturating_add((213_000 as Weight).saturating_mul(r as Weight))
.saturating_add((230_000 as Weight).saturating_mul(r as Weight))
// Standard Error: 0
.saturating_add((345_000 as Weight).saturating_mul(x as Weight))
.saturating_add((339_000 as Weight).saturating_mul(x as Weight))
.saturating_add(T::DbWeight::get().reads(2 as Weight))
.saturating_add(T::DbWeight::get().writes(1 as Weight))
}
@@ -182,11 +182,11 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
// Storage: System Account (r:1 w:1)
// Storage: Identity SuperOf (r:0 w:100)
fn kill_identity(r: u32, s: u32, _x: u32, ) -> Weight {
(41_448_000 as Weight)
// Standard Error: 7_000
.saturating_add((149_000 as Weight).saturating_mul(r as Weight))
(48_143_000 as Weight)
// Standard Error: 8_000
.saturating_add((106_000 as Weight).saturating_mul(r as Weight))
// Standard Error: 0
.saturating_add((882_000 as Weight).saturating_mul(s as Weight))
.saturating_add((1_105_000 as Weight).saturating_mul(s as Weight))
.saturating_add(T::DbWeight::get().reads(3 as Weight))
.saturating_add(T::DbWeight::get().writes(3 as Weight))
.saturating_add(T::DbWeight::get().writes((1 as Weight).saturating_mul(s as Weight)))
@@ -195,18 +195,18 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
// Storage: Identity SuperOf (r:1 w:1)
// Storage: Identity SubsOf (r:1 w:1)
fn add_sub(s: u32, ) -> Weight {
(32_346_000 as Weight)
(36_778_000 as Weight)
// Standard Error: 1_000
.saturating_add((114_000 as Weight).saturating_mul(s as Weight))
.saturating_add((112_000 as Weight).saturating_mul(s as Weight))
.saturating_add(T::DbWeight::get().reads(3 as Weight))
.saturating_add(T::DbWeight::get().writes(2 as Weight))
}
// Storage: Identity IdentityOf (r:1 w:0)
// Storage: Identity SuperOf (r:1 w:1)
fn rename_sub(s: u32, ) -> Weight {
(10_211_000 as Weight)
(13_895_000 as Weight)
// Standard Error: 0
.saturating_add((51_000 as Weight).saturating_mul(s as Weight))
.saturating_add((52_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))
}
@@ -214,18 +214,18 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
// Storage: Identity SuperOf (r:1 w:1)
// Storage: Identity SubsOf (r:1 w:1)
fn remove_sub(s: u32, ) -> Weight {
(33_083_000 as Weight)
(37_707_000 as Weight)
// Standard Error: 1_000
.saturating_add((112_000 as Weight).saturating_mul(s as Weight))
.saturating_add((110_000 as Weight).saturating_mul(s as Weight))
.saturating_add(T::DbWeight::get().reads(3 as Weight))
.saturating_add(T::DbWeight::get().writes(2 as Weight))
}
// Storage: Identity SuperOf (r:1 w:1)
// Storage: Identity SubsOf (r:1 w:1)
fn quit_sub(s: u32, ) -> Weight {
(22_517_000 as Weight)
(26_935_000 as Weight)
// Standard Error: 1_000
.saturating_add((110_000 as Weight).saturating_mul(s as Weight))
.saturating_add((106_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))
}
@@ -235,19 +235,19 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
impl WeightInfo for () {
// Storage: Identity Registrars (r:1 w:1)
fn add_registrar(r: u32, ) -> Weight {
(13_318_000 as Weight)
// Standard Error: 3_000
.saturating_add((203_000 as Weight).saturating_mul(r as Weight))
(16_343_000 as Weight)
// Standard Error: 5_000
.saturating_add((229_000 as Weight).saturating_mul(r as Weight))
.saturating_add(RocksDbWeight::get().reads(1 as Weight))
.saturating_add(RocksDbWeight::get().writes(1 as Weight))
}
// Storage: Identity IdentityOf (r:1 w:1)
fn set_identity(r: u32, x: u32, ) -> Weight {
(27_683_000 as Weight)
(32_920_000 as Weight)
// Standard Error: 8_000
.saturating_add((242_000 as Weight).saturating_mul(r as Weight))
.saturating_add((203_000 as Weight).saturating_mul(r as Weight))
// Standard Error: 1_000
.saturating_add((307_000 as Weight).saturating_mul(x as Weight))
.saturating_add((300_000 as Weight).saturating_mul(x as Weight))
.saturating_add(RocksDbWeight::get().reads(1 as Weight))
.saturating_add(RocksDbWeight::get().writes(1 as Weight))
}
@@ -255,9 +255,9 @@ impl WeightInfo for () {
// Storage: Identity SubsOf (r:1 w:1)
// Storage: Identity SuperOf (r:1 w:1)
fn set_subs_new(s: u32, ) -> Weight {
(26_126_000 as Weight)
(31_009_000 as Weight)
// Standard Error: 1_000
.saturating_add((2_826_000 as Weight).saturating_mul(s as Weight))
.saturating_add((3_053_000 as Weight).saturating_mul(s as Weight))
.saturating_add(RocksDbWeight::get().reads(2 as Weight))
.saturating_add(RocksDbWeight::get().reads((1 as Weight).saturating_mul(s as Weight)))
.saturating_add(RocksDbWeight::get().writes(1 as Weight))
@@ -267,9 +267,9 @@ impl WeightInfo for () {
// Storage: Identity SubsOf (r:1 w:1)
// Storage: Identity SuperOf (r:0 w:1)
fn set_subs_old(p: u32, ) -> Weight {
(24_645_000 as Weight)
// Standard Error: 0
.saturating_add((893_000 as Weight).saturating_mul(p as Weight))
(29_712_000 as Weight)
// Standard Error: 1_000
.saturating_add((1_087_000 as Weight).saturating_mul(p as Weight))
.saturating_add(RocksDbWeight::get().reads(2 as Weight))
.saturating_add(RocksDbWeight::get().writes(1 as Weight))
.saturating_add(RocksDbWeight::get().writes((1 as Weight).saturating_mul(p as Weight)))
@@ -278,13 +278,13 @@ impl WeightInfo for () {
// Storage: Identity IdentityOf (r:1 w:1)
// Storage: Identity SuperOf (r:0 w:100)
fn clear_identity(r: u32, s: u32, x: u32, ) -> Weight {
(31_546_000 as Weight)
// Standard Error: 12_000
.saturating_add((110_000 as Weight).saturating_mul(r as Weight))
// Standard Error: 1_000
.saturating_add((872_000 as Weight).saturating_mul(s as Weight))
// Standard Error: 1_000
.saturating_add((182_000 as Weight).saturating_mul(x as Weight))
(33_943_000 as Weight)
// Standard Error: 7_000
.saturating_add((193_000 as Weight).saturating_mul(r as Weight))
// Standard Error: 0
.saturating_add((1_101_000 as Weight).saturating_mul(s as Weight))
// Standard Error: 0
.saturating_add((194_000 as Weight).saturating_mul(x as Weight))
.saturating_add(RocksDbWeight::get().reads(2 as Weight))
.saturating_add(RocksDbWeight::get().writes(2 as Weight))
.saturating_add(RocksDbWeight::get().writes((1 as Weight).saturating_mul(s as Weight)))
@@ -292,56 +292,56 @@ impl WeightInfo for () {
// Storage: Identity Registrars (r:1 w:0)
// Storage: Identity IdentityOf (r:1 w:1)
fn request_judgement(r: u32, x: u32, ) -> Weight {
(31_117_000 as Weight)
(34_861_000 as Weight)
// Standard Error: 3_000
.saturating_add((207_000 as Weight).saturating_mul(r as Weight))
.saturating_add((249_000 as Weight).saturating_mul(r as Weight))
// Standard Error: 0
.saturating_add((347_000 as Weight).saturating_mul(x as Weight))
.saturating_add((344_000 as Weight).saturating_mul(x as Weight))
.saturating_add(RocksDbWeight::get().reads(2 as Weight))
.saturating_add(RocksDbWeight::get().writes(1 as Weight))
}
// Storage: Identity IdentityOf (r:1 w:1)
fn cancel_request(r: u32, x: u32, ) -> Weight {
(28_134_000 as Weight)
(32_906_000 as Weight)
// Standard Error: 3_000
.saturating_add((154_000 as Weight).saturating_mul(r as Weight))
.saturating_add((147_000 as Weight).saturating_mul(r as Weight))
// Standard Error: 0
.saturating_add((343_000 as Weight).saturating_mul(x as Weight))
.saturating_add((341_000 as Weight).saturating_mul(x as Weight))
.saturating_add(RocksDbWeight::get().reads(1 as Weight))
.saturating_add(RocksDbWeight::get().writes(1 as Weight))
}
// Storage: Identity Registrars (r:1 w:1)
fn set_fee(r: u32, ) -> Weight {
(4_884_000 as Weight)
(7_591_000 as Weight)
// Standard Error: 3_000
.saturating_add((159_000 as Weight).saturating_mul(r as Weight))
.saturating_add((201_000 as Weight).saturating_mul(r as Weight))
.saturating_add(RocksDbWeight::get().reads(1 as Weight))
.saturating_add(RocksDbWeight::get().writes(1 as Weight))
}
// Storage: Identity Registrars (r:1 w:1)
fn set_account_id(r: u32, ) -> Weight {
(5_015_000 as Weight)
// Standard Error: 2_000
.saturating_add((143_000 as Weight).saturating_mul(r as Weight))
(7_919_000 as Weight)
// Standard Error: 3_000
.saturating_add((183_000 as Weight).saturating_mul(r as Weight))
.saturating_add(RocksDbWeight::get().reads(1 as Weight))
.saturating_add(RocksDbWeight::get().writes(1 as Weight))
}
// Storage: Identity Registrars (r:1 w:1)
fn set_fields(r: u32, ) -> Weight {
(4_947_000 as Weight)
// Standard Error: 3_000
.saturating_add((152_000 as Weight).saturating_mul(r as Weight))
(7_887_000 as Weight)
// Standard Error: 4_000
.saturating_add((182_000 as Weight).saturating_mul(r as Weight))
.saturating_add(RocksDbWeight::get().reads(1 as Weight))
.saturating_add(RocksDbWeight::get().writes(1 as Weight))
}
// Storage: Identity Registrars (r:1 w:0)
// Storage: Identity IdentityOf (r:1 w:1)
fn provide_judgement(r: u32, x: u32, ) -> Weight {
(20_570_000 as Weight)
(24_623_000 as Weight)
// Standard Error: 3_000
.saturating_add((213_000 as Weight).saturating_mul(r as Weight))
.saturating_add((230_000 as Weight).saturating_mul(r as Weight))
// Standard Error: 0
.saturating_add((345_000 as Weight).saturating_mul(x as Weight))
.saturating_add((339_000 as Weight).saturating_mul(x as Weight))
.saturating_add(RocksDbWeight::get().reads(2 as Weight))
.saturating_add(RocksDbWeight::get().writes(1 as Weight))
}
@@ -350,11 +350,11 @@ impl WeightInfo for () {
// Storage: System Account (r:1 w:1)
// Storage: Identity SuperOf (r:0 w:100)
fn kill_identity(r: u32, s: u32, _x: u32, ) -> Weight {
(41_448_000 as Weight)
// Standard Error: 7_000
.saturating_add((149_000 as Weight).saturating_mul(r as Weight))
(48_143_000 as Weight)
// Standard Error: 8_000
.saturating_add((106_000 as Weight).saturating_mul(r as Weight))
// Standard Error: 0
.saturating_add((882_000 as Weight).saturating_mul(s as Weight))
.saturating_add((1_105_000 as Weight).saturating_mul(s as Weight))
.saturating_add(RocksDbWeight::get().reads(3 as Weight))
.saturating_add(RocksDbWeight::get().writes(3 as Weight))
.saturating_add(RocksDbWeight::get().writes((1 as Weight).saturating_mul(s as Weight)))
@@ -363,18 +363,18 @@ impl WeightInfo for () {
// Storage: Identity SuperOf (r:1 w:1)
// Storage: Identity SubsOf (r:1 w:1)
fn add_sub(s: u32, ) -> Weight {
(32_346_000 as Weight)
(36_778_000 as Weight)
// Standard Error: 1_000
.saturating_add((114_000 as Weight).saturating_mul(s as Weight))
.saturating_add((112_000 as Weight).saturating_mul(s as Weight))
.saturating_add(RocksDbWeight::get().reads(3 as Weight))
.saturating_add(RocksDbWeight::get().writes(2 as Weight))
}
// Storage: Identity IdentityOf (r:1 w:0)
// Storage: Identity SuperOf (r:1 w:1)
fn rename_sub(s: u32, ) -> Weight {
(10_211_000 as Weight)
(13_895_000 as Weight)
// Standard Error: 0
.saturating_add((51_000 as Weight).saturating_mul(s as Weight))
.saturating_add((52_000 as Weight).saturating_mul(s as Weight))
.saturating_add(RocksDbWeight::get().reads(2 as Weight))
.saturating_add(RocksDbWeight::get().writes(1 as Weight))
}
@@ -382,18 +382,18 @@ impl WeightInfo for () {
// Storage: Identity SuperOf (r:1 w:1)
// Storage: Identity SubsOf (r:1 w:1)
fn remove_sub(s: u32, ) -> Weight {
(33_083_000 as Weight)
(37_707_000 as Weight)
// Standard Error: 1_000
.saturating_add((112_000 as Weight).saturating_mul(s as Weight))
.saturating_add((110_000 as Weight).saturating_mul(s as Weight))
.saturating_add(RocksDbWeight::get().reads(3 as Weight))
.saturating_add(RocksDbWeight::get().writes(2 as Weight))
}
// Storage: Identity SuperOf (r:1 w:1)
// Storage: Identity SubsOf (r:1 w:1)
fn quit_sub(s: u32, ) -> Weight {
(22_517_000 as Weight)
(26_935_000 as Weight)
// Standard Error: 1_000
.saturating_add((110_000 as Weight).saturating_mul(s as Weight))
.saturating_add((106_000 as Weight).saturating_mul(s as Weight))
.saturating_add(RocksDbWeight::get().reads(2 as Weight))
.saturating_add(RocksDbWeight::get().writes(2 as Weight))
}