permissionless bond_extra in nomination pools (#12608)

* create enum

* logic check

* add benchmarks

* -enum

* update

* bond extra other

* update

* update

* update

* cargo fmt

* Permissioned

* update

* cargo fmt

* update

* update index

* doc update

Co-authored-by: Ankan <10196091+Ank4n@users.noreply.github.com>

* doc update

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

* cargo fmt

* bond_extra auto compound

* bond_extra_other

* Apply suggestions from code review

* Fixes from kian

* updates docs & test

* Update frame/nomination-pools/src/lib.rs

* Update frame/nomination-pools/src/lib.rs

* Update frame/nomination-pools/src/lib.rs

* Update frame/nomination-pools/src/lib.rs

* Update frame/nomination-pools/src/lib.rs

* Update frame/nomination-pools/src/tests.rs

* Update frame/nomination-pools/src/lib.rs

* Update frame/nomination-pools/src/tests.rs

* Update frame/nomination-pools/src/tests.rs

* Update frame/nomination-pools/src/tests.rs

* Update frame/nomination-pools/src/tests.rs

* Update frame/nomination-pools/src/tests.rs

* Update frame/nomination-pools/src/lib.rs

* Update frame/nomination-pools/src/tests.rs

* fixes + fmt

* expand ClaimPermissions + add benchmarks

* ".git/.scripts/commands/bench/bench.sh" pallet dev pallet_nomination_pools

* tidy up claim payout benches

* fix

* + test: claim_payout_other_works

* comments, rename to set_claim_permission

* fix comment

* remove ClaimPermission on leave pool

* fix test

* ".git/.scripts/commands/fmt/fmt.sh"

* + test for ClaimPermissions::remove()

* impl can_bond_extra & can_claim_payout

---------

Co-authored-by: Ankan <10196091+Ank4n@users.noreply.github.com>
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com>
Co-authored-by: kianenigma <kian@parity.io>
Co-authored-by: parity-processbot <>
Co-authored-by: Ross Bulat <ross@parity.io>
This commit is contained in:
Doordashcon
2023-02-22 13:17:11 +01:00
committed by GitHub
parent f8e3bdad3d
commit 35a89957ca
4 changed files with 567 additions and 142 deletions
+171 -99
View File
@@ -18,25 +18,26 @@
//! Autogenerated weights for pallet_nomination_pools
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
//! DATE: 2023-01-24, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! DATE: 2023-02-21, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! WORST CASE MAP SIZE: `1000000`
//! HOSTNAME: `bm2`, CPU: `Intel(R) Core(TM) i7-7700K CPU @ 4.20GHz`
//! HOSTNAME: `runner-ehxwxxsd-project-145-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024
// Executed Command:
// ./target/production/substrate
// target/production/substrate
// benchmark
// pallet
// --chain=dev
// --steps=50
// --repeat=20
// --pallet=pallet_nomination_pools
// --extrinsic=*
// --execution=wasm
// --wasm-execution=compiled
// --heap-pages=4096
// --output=./frame/nomination-pools/src/weights.rs
// --json-file=/builds/parity/mirrors/substrate/.git/.artifacts/bench.json
// --pallet=pallet_nomination_pools
// --chain=dev
// --header=./HEADER-APACHE2
// --output=./frame/nomination-pools/src/weights.rs
// --template=./.maintain/frame-weight-template.hbs
#![cfg_attr(rustfmt, rustfmt_skip)]
@@ -50,7 +51,7 @@ use sp_std::marker::PhantomData;
pub trait WeightInfo {
fn join() -> Weight;
fn bond_extra_transfer() -> Weight;
fn bond_extra_reward() -> Weight;
fn bond_extra_other() -> Weight;
fn claim_payout() -> Weight;
fn unbond() -> Weight;
fn pool_withdraw_unbonded(s: u32, ) -> Weight;
@@ -63,6 +64,7 @@ pub trait WeightInfo {
fn set_configs() -> Weight;
fn update_roles() -> Weight;
fn chill() -> Weight;
fn set_claim_permission() -> Weight;
}
/// Weights for pallet_nomination_pools using the Substrate node and recommended hardware.
@@ -98,8 +100,9 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
// Proof Size summary in bytes:
// Measured: `3573`
// Estimated: `37988`
// Minimum execution time: 140_155 nanoseconds.
Weight::from_parts(141_098_000, 37988)
// Minimum execution time: 169_857 nanoseconds.
Weight::from_ref_time(173_895_000)
.saturating_add(Weight::from_proof_size(37988))
.saturating_add(T::DbWeight::get().reads(17_u64))
.saturating_add(T::DbWeight::get().writes(12_u64))
}
@@ -125,11 +128,14 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
// Proof Size summary in bytes:
// Measured: `3615`
// Estimated: `38583`
// Minimum execution time: 136_048 nanoseconds.
Weight::from_parts(136_767_000, 38583)
// Minimum execution time: 167_372 nanoseconds.
Weight::from_ref_time(168_776_000)
.saturating_add(Weight::from_proof_size(38583))
.saturating_add(T::DbWeight::get().reads(14_u64))
.saturating_add(T::DbWeight::get().writes(12_u64))
}
/// Storage: NominationPools ClaimPermissions (r:1 w:0)
/// Proof: NominationPools ClaimPermissions (max_values: None, max_size: Some(41), added: 2516, mode: MaxEncodedLen)
/// Storage: NominationPools PoolMembers (r:1 w:1)
/// Proof: NominationPools PoolMembers (max_values: None, max_size: Some(237), added: 2712, mode: MaxEncodedLen)
/// Storage: NominationPools BondedPools (r:1 w:1)
@@ -148,15 +154,18 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
/// Proof: VoterList ListNodes (max_values: None, max_size: Some(154), added: 2629, mode: MaxEncodedLen)
/// Storage: VoterList ListBags (r:2 w:2)
/// Proof: VoterList ListBags (max_values: None, max_size: Some(82), added: 2557, mode: MaxEncodedLen)
fn bond_extra_reward() -> Weight {
fn bond_extra_other() -> Weight {
// Proof Size summary in bytes:
// Measured: `3615`
// Estimated: `38583`
// Minimum execution time: 151_473 nanoseconds.
Weight::from_parts(152_375_000, 38583)
.saturating_add(T::DbWeight::get().reads(14_u64))
// Measured: `3680`
// Estimated: `41099`
// Minimum execution time: 186_346 nanoseconds.
Weight::from_ref_time(191_308_000)
.saturating_add(Weight::from_proof_size(41099))
.saturating_add(T::DbWeight::get().reads(15_u64))
.saturating_add(T::DbWeight::get().writes(13_u64))
}
/// Storage: NominationPools ClaimPermissions (r:1 w:0)
/// Proof: NominationPools ClaimPermissions (max_values: None, max_size: Some(41), added: 2516, mode: MaxEncodedLen)
/// Storage: NominationPools PoolMembers (r:1 w:1)
/// Proof: NominationPools PoolMembers (max_values: None, max_size: Some(237), added: 2712, mode: MaxEncodedLen)
/// Storage: NominationPools BondedPools (r:1 w:1)
@@ -167,11 +176,12 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
fn claim_payout() -> Weight {
// Proof Size summary in bytes:
// Measured: `1189`
// Estimated: `10489`
// Minimum execution time: 51_146 nanoseconds.
Weight::from_parts(51_570_000, 10489)
.saturating_add(T::DbWeight::get().reads(4_u64))
// Measured: `1254`
// Estimated: `13005`
// Minimum execution time: 61_423 nanoseconds.
Weight::from_ref_time(63_219_000)
.saturating_add(Weight::from_proof_size(13005))
.saturating_add(T::DbWeight::get().reads(5_u64))
.saturating_add(T::DbWeight::get().writes(4_u64))
}
/// Storage: NominationPools PoolMembers (r:1 w:1)
@@ -202,14 +212,17 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
/// Proof: NominationPools SubPoolsStorage (max_values: None, max_size: Some(24382), added: 26857, mode: MaxEncodedLen)
/// Storage: NominationPools CounterForSubPoolsStorage (r:1 w:1)
/// Proof: NominationPools CounterForSubPoolsStorage (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
/// Storage: NominationPools ClaimPermissions (r:0 w:1)
/// Proof: NominationPools ClaimPermissions (max_values: None, max_size: Some(41), added: 2516, mode: MaxEncodedLen)
fn unbond() -> Weight {
// Proof Size summary in bytes:
// Measured: `3858`
// Estimated: `67379`
// Minimum execution time: 141_400 nanoseconds.
Weight::from_parts(141_822_000, 67379)
// Minimum execution time: 174_532 nanoseconds.
Weight::from_ref_time(180_032_000)
.saturating_add(Weight::from_proof_size(67379))
.saturating_add(T::DbWeight::get().reads(18_u64))
.saturating_add(T::DbWeight::get().writes(13_u64))
.saturating_add(T::DbWeight::get().writes(14_u64))
}
/// Storage: NominationPools BondedPools (r:1 w:0)
/// Proof: NominationPools BondedPools (max_values: None, max_size: Some(164), added: 2639, mode: MaxEncodedLen)
@@ -226,10 +239,11 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
// Proof Size summary in bytes:
// Measured: `1779`
// Estimated: `13025`
// Minimum execution time: 49_021 nanoseconds.
Weight::from_parts(49_954_282, 13025)
// Standard Error: 378
.saturating_add(Weight::from_ref_time(5_165).saturating_mul(s.into()))
// Minimum execution time: 55_327 nanoseconds.
Weight::from_ref_time(58_947_746)
.saturating_add(Weight::from_proof_size(13025))
// Standard Error: 1_589
.saturating_add(Weight::from_ref_time(40_696).saturating_mul(s.into()))
.saturating_add(T::DbWeight::get().reads(5_u64))
.saturating_add(T::DbWeight::get().writes(2_u64))
}
@@ -256,10 +270,11 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
// Proof Size summary in bytes:
// Measured: `2303`
// Estimated: `45696`
// Minimum execution time: 92_473 nanoseconds.
Weight::from_parts(93_901_972, 45696)
// Standard Error: 618
.saturating_add(Weight::from_ref_time(12_032).saturating_mul(s.into()))
// Minimum execution time: 105_923 nanoseconds.
Weight::from_ref_time(110_572_476)
.saturating_add(Weight::from_proof_size(45696))
// Standard Error: 2_438
.saturating_add(Weight::from_ref_time(69_045).saturating_mul(s.into()))
.saturating_add(T::DbWeight::get().reads(9_u64))
.saturating_add(T::DbWeight::get().writes(7_u64))
}
@@ -308,8 +323,9 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
// Proof Size summary in bytes:
// Measured: `2690`
// Estimated: `68812`
// Minimum execution time: 150_063 nanoseconds.
Weight::from_parts(152_321_387, 68812)
// Minimum execution time: 169_700 nanoseconds.
Weight::from_ref_time(178_693_541)
.saturating_add(Weight::from_proof_size(68812))
.saturating_add(T::DbWeight::get().reads(20_u64))
.saturating_add(T::DbWeight::get().writes(17_u64))
}
@@ -359,8 +375,9 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
// Proof Size summary in bytes:
// Measured: `1321`
// Estimated: `31522`
// Minimum execution time: 131_430 nanoseconds.
Weight::from_parts(132_214_000, 31522)
// Minimum execution time: 145_976 nanoseconds.
Weight::from_ref_time(150_664_000)
.saturating_add(Weight::from_proof_size(31522))
.saturating_add(T::DbWeight::get().reads(21_u64))
.saturating_add(T::DbWeight::get().writes(15_u64))
}
@@ -393,10 +410,11 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
// Proof Size summary in bytes:
// Measured: `1909`
// Estimated: `21998 + n * (2520 ±0)`
// Minimum execution time: 61_798 nanoseconds.
Weight::from_parts(61_504_758, 21998)
// Standard Error: 4_046
.saturating_add(Weight::from_ref_time(1_159_175).saturating_mul(n.into()))
// Minimum execution time: 69_288 nanoseconds.
Weight::from_ref_time(71_075_293)
.saturating_add(Weight::from_proof_size(21998))
// Standard Error: 10_508
.saturating_add(Weight::from_ref_time(1_384_674).saturating_mul(n.into()))
.saturating_add(T::DbWeight::get().reads(12_u64))
.saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(n.into())))
.saturating_add(T::DbWeight::get().writes(5_u64))
@@ -412,8 +430,9 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
// Proof Size summary in bytes:
// Measured: `1498`
// Estimated: `8752`
// Minimum execution time: 32_433 nanoseconds.
Weight::from_parts(32_894_000, 8752)
// Minimum execution time: 36_410 nanoseconds.
Weight::from_ref_time(37_585_000)
.saturating_add(Weight::from_proof_size(8752))
.saturating_add(T::DbWeight::get().reads(3_u64))
.saturating_add(T::DbWeight::get().writes(1_u64))
}
@@ -428,10 +447,11 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
// Proof Size summary in bytes:
// Measured: `559`
// Estimated: `5883`
// Minimum execution time: 13_608 nanoseconds.
Weight::from_parts(13_966_346, 5883)
// Standard Error: 44
.saturating_add(Weight::from_ref_time(1_511).saturating_mul(n.into()))
// Minimum execution time: 14_322 nanoseconds.
Weight::from_ref_time(15_328_204)
.saturating_add(Weight::from_proof_size(5883))
// Standard Error: 161
.saturating_add(Weight::from_ref_time(1_406).saturating_mul(n.into()))
.saturating_add(T::DbWeight::get().reads(3_u64))
.saturating_add(T::DbWeight::get().writes(2_u64))
}
@@ -449,8 +469,9 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
// Minimum execution time: 5_832 nanoseconds.
Weight::from_ref_time(6_117_000)
// Minimum execution time: 5_968 nanoseconds.
Weight::from_ref_time(6_245_000)
.saturating_add(Weight::from_proof_size(0))
.saturating_add(T::DbWeight::get().writes(5_u64))
}
/// Storage: NominationPools BondedPools (r:1 w:1)
@@ -459,8 +480,9 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
// Proof Size summary in bytes:
// Measured: `559`
// Estimated: `2639`
// Minimum execution time: 18_160 nanoseconds.
Weight::from_parts(18_567_000, 2639)
// Minimum execution time: 18_979 nanoseconds.
Weight::from_ref_time(19_795_000)
.saturating_add(Weight::from_proof_size(2639))
.saturating_add(T::DbWeight::get().reads(1_u64))
.saturating_add(T::DbWeight::get().writes(1_u64))
}
@@ -486,11 +508,26 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
// Proof Size summary in bytes:
// Measured: `2136`
// Estimated: `20489`
// Minimum execution time: 58_991 nanoseconds.
Weight::from_parts(59_528_000, 20489)
// Minimum execution time: 68_145 nanoseconds.
Weight::from_ref_time(70_444_000)
.saturating_add(Weight::from_proof_size(20489))
.saturating_add(T::DbWeight::get().reads(9_u64))
.saturating_add(T::DbWeight::get().writes(5_u64))
}
/// Storage: NominationPools PoolMembers (r:1 w:0)
/// Proof: NominationPools PoolMembers (max_values: None, max_size: Some(237), added: 2712, mode: MaxEncodedLen)
/// Storage: NominationPools ClaimPermissions (r:1 w:1)
/// Proof: NominationPools ClaimPermissions (max_values: None, max_size: Some(41), added: 2516, mode: MaxEncodedLen)
fn set_claim_permission() -> Weight {
// Proof Size summary in bytes:
// Measured: `542`
// Estimated: `5228`
// Minimum execution time: 15_112 nanoseconds.
Weight::from_ref_time(15_897_000)
.saturating_add(Weight::from_proof_size(5228))
.saturating_add(T::DbWeight::get().reads(2_u64))
.saturating_add(T::DbWeight::get().writes(1_u64))
}
}
// For backwards compatibility and tests
@@ -525,8 +562,9 @@ impl WeightInfo for () {
// Proof Size summary in bytes:
// Measured: `3573`
// Estimated: `37988`
// Minimum execution time: 140_155 nanoseconds.
Weight::from_parts(141_098_000, 37988)
// Minimum execution time: 169_857 nanoseconds.
Weight::from_ref_time(173_895_000)
.saturating_add(Weight::from_proof_size(37988))
.saturating_add(RocksDbWeight::get().reads(17_u64))
.saturating_add(RocksDbWeight::get().writes(12_u64))
}
@@ -552,11 +590,14 @@ impl WeightInfo for () {
// Proof Size summary in bytes:
// Measured: `3615`
// Estimated: `38583`
// Minimum execution time: 136_048 nanoseconds.
Weight::from_parts(136_767_000, 38583)
// Minimum execution time: 167_372 nanoseconds.
Weight::from_ref_time(168_776_000)
.saturating_add(Weight::from_proof_size(38583))
.saturating_add(RocksDbWeight::get().reads(14_u64))
.saturating_add(RocksDbWeight::get().writes(12_u64))
}
/// Storage: NominationPools ClaimPermissions (r:1 w:0)
/// Proof: NominationPools ClaimPermissions (max_values: None, max_size: Some(41), added: 2516, mode: MaxEncodedLen)
/// Storage: NominationPools PoolMembers (r:1 w:1)
/// Proof: NominationPools PoolMembers (max_values: None, max_size: Some(237), added: 2712, mode: MaxEncodedLen)
/// Storage: NominationPools BondedPools (r:1 w:1)
@@ -575,15 +616,18 @@ impl WeightInfo for () {
/// Proof: VoterList ListNodes (max_values: None, max_size: Some(154), added: 2629, mode: MaxEncodedLen)
/// Storage: VoterList ListBags (r:2 w:2)
/// Proof: VoterList ListBags (max_values: None, max_size: Some(82), added: 2557, mode: MaxEncodedLen)
fn bond_extra_reward() -> Weight {
fn bond_extra_other() -> Weight {
// Proof Size summary in bytes:
// Measured: `3615`
// Estimated: `38583`
// Minimum execution time: 151_473 nanoseconds.
Weight::from_parts(152_375_000, 38583)
.saturating_add(RocksDbWeight::get().reads(14_u64))
// Measured: `3680`
// Estimated: `41099`
// Minimum execution time: 186_346 nanoseconds.
Weight::from_ref_time(191_308_000)
.saturating_add(Weight::from_proof_size(41099))
.saturating_add(RocksDbWeight::get().reads(15_u64))
.saturating_add(RocksDbWeight::get().writes(13_u64))
}
/// Storage: NominationPools ClaimPermissions (r:1 w:0)
/// Proof: NominationPools ClaimPermissions (max_values: None, max_size: Some(41), added: 2516, mode: MaxEncodedLen)
/// Storage: NominationPools PoolMembers (r:1 w:1)
/// Proof: NominationPools PoolMembers (max_values: None, max_size: Some(237), added: 2712, mode: MaxEncodedLen)
/// Storage: NominationPools BondedPools (r:1 w:1)
@@ -594,11 +638,12 @@ impl WeightInfo for () {
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
fn claim_payout() -> Weight {
// Proof Size summary in bytes:
// Measured: `1189`
// Estimated: `10489`
// Minimum execution time: 51_146 nanoseconds.
Weight::from_parts(51_570_000, 10489)
.saturating_add(RocksDbWeight::get().reads(4_u64))
// Measured: `1254`
// Estimated: `13005`
// Minimum execution time: 61_423 nanoseconds.
Weight::from_ref_time(63_219_000)
.saturating_add(Weight::from_proof_size(13005))
.saturating_add(RocksDbWeight::get().reads(5_u64))
.saturating_add(RocksDbWeight::get().writes(4_u64))
}
/// Storage: NominationPools PoolMembers (r:1 w:1)
@@ -629,14 +674,17 @@ impl WeightInfo for () {
/// Proof: NominationPools SubPoolsStorage (max_values: None, max_size: Some(24382), added: 26857, mode: MaxEncodedLen)
/// Storage: NominationPools CounterForSubPoolsStorage (r:1 w:1)
/// Proof: NominationPools CounterForSubPoolsStorage (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
/// Storage: NominationPools ClaimPermissions (r:0 w:1)
/// Proof: NominationPools ClaimPermissions (max_values: None, max_size: Some(41), added: 2516, mode: MaxEncodedLen)
fn unbond() -> Weight {
// Proof Size summary in bytes:
// Measured: `3858`
// Estimated: `67379`
// Minimum execution time: 141_400 nanoseconds.
Weight::from_parts(141_822_000, 67379)
// Minimum execution time: 174_532 nanoseconds.
Weight::from_ref_time(180_032_000)
.saturating_add(Weight::from_proof_size(67379))
.saturating_add(RocksDbWeight::get().reads(18_u64))
.saturating_add(RocksDbWeight::get().writes(13_u64))
.saturating_add(RocksDbWeight::get().writes(14_u64))
}
/// Storage: NominationPools BondedPools (r:1 w:0)
/// Proof: NominationPools BondedPools (max_values: None, max_size: Some(164), added: 2639, mode: MaxEncodedLen)
@@ -653,10 +701,11 @@ impl WeightInfo for () {
// Proof Size summary in bytes:
// Measured: `1779`
// Estimated: `13025`
// Minimum execution time: 49_021 nanoseconds.
Weight::from_parts(49_954_282, 13025)
// Standard Error: 378
.saturating_add(Weight::from_ref_time(5_165).saturating_mul(s.into()))
// Minimum execution time: 55_327 nanoseconds.
Weight::from_ref_time(58_947_746)
.saturating_add(Weight::from_proof_size(13025))
// Standard Error: 1_589
.saturating_add(Weight::from_ref_time(40_696).saturating_mul(s.into()))
.saturating_add(RocksDbWeight::get().reads(5_u64))
.saturating_add(RocksDbWeight::get().writes(2_u64))
}
@@ -683,10 +732,11 @@ impl WeightInfo for () {
// Proof Size summary in bytes:
// Measured: `2303`
// Estimated: `45696`
// Minimum execution time: 92_473 nanoseconds.
Weight::from_parts(93_901_972, 45696)
// Standard Error: 618
.saturating_add(Weight::from_ref_time(12_032).saturating_mul(s.into()))
// Minimum execution time: 105_923 nanoseconds.
Weight::from_ref_time(110_572_476)
.saturating_add(Weight::from_proof_size(45696))
// Standard Error: 2_438
.saturating_add(Weight::from_ref_time(69_045).saturating_mul(s.into()))
.saturating_add(RocksDbWeight::get().reads(9_u64))
.saturating_add(RocksDbWeight::get().writes(7_u64))
}
@@ -735,8 +785,9 @@ impl WeightInfo for () {
// Proof Size summary in bytes:
// Measured: `2690`
// Estimated: `68812`
// Minimum execution time: 150_063 nanoseconds.
Weight::from_parts(152_321_387, 68812)
// Minimum execution time: 169_700 nanoseconds.
Weight::from_ref_time(178_693_541)
.saturating_add(Weight::from_proof_size(68812))
.saturating_add(RocksDbWeight::get().reads(20_u64))
.saturating_add(RocksDbWeight::get().writes(17_u64))
}
@@ -786,8 +837,9 @@ impl WeightInfo for () {
// Proof Size summary in bytes:
// Measured: `1321`
// Estimated: `31522`
// Minimum execution time: 131_430 nanoseconds.
Weight::from_parts(132_214_000, 31522)
// Minimum execution time: 145_976 nanoseconds.
Weight::from_ref_time(150_664_000)
.saturating_add(Weight::from_proof_size(31522))
.saturating_add(RocksDbWeight::get().reads(21_u64))
.saturating_add(RocksDbWeight::get().writes(15_u64))
}
@@ -820,10 +872,11 @@ impl WeightInfo for () {
// Proof Size summary in bytes:
// Measured: `1909`
// Estimated: `21998 + n * (2520 ±0)`
// Minimum execution time: 61_798 nanoseconds.
Weight::from_parts(61_504_758, 21998)
// Standard Error: 4_046
.saturating_add(Weight::from_ref_time(1_159_175).saturating_mul(n.into()))
// Minimum execution time: 69_288 nanoseconds.
Weight::from_ref_time(71_075_293)
.saturating_add(Weight::from_proof_size(21998))
// Standard Error: 10_508
.saturating_add(Weight::from_ref_time(1_384_674).saturating_mul(n.into()))
.saturating_add(RocksDbWeight::get().reads(12_u64))
.saturating_add(RocksDbWeight::get().reads((1_u64).saturating_mul(n.into())))
.saturating_add(RocksDbWeight::get().writes(5_u64))
@@ -839,8 +892,9 @@ impl WeightInfo for () {
// Proof Size summary in bytes:
// Measured: `1498`
// Estimated: `8752`
// Minimum execution time: 32_433 nanoseconds.
Weight::from_parts(32_894_000, 8752)
// Minimum execution time: 36_410 nanoseconds.
Weight::from_ref_time(37_585_000)
.saturating_add(Weight::from_proof_size(8752))
.saturating_add(RocksDbWeight::get().reads(3_u64))
.saturating_add(RocksDbWeight::get().writes(1_u64))
}
@@ -855,10 +909,11 @@ impl WeightInfo for () {
// Proof Size summary in bytes:
// Measured: `559`
// Estimated: `5883`
// Minimum execution time: 13_608 nanoseconds.
Weight::from_parts(13_966_346, 5883)
// Standard Error: 44
.saturating_add(Weight::from_ref_time(1_511).saturating_mul(n.into()))
// Minimum execution time: 14_322 nanoseconds.
Weight::from_ref_time(15_328_204)
.saturating_add(Weight::from_proof_size(5883))
// Standard Error: 161
.saturating_add(Weight::from_ref_time(1_406).saturating_mul(n.into()))
.saturating_add(RocksDbWeight::get().reads(3_u64))
.saturating_add(RocksDbWeight::get().writes(2_u64))
}
@@ -876,8 +931,9 @@ impl WeightInfo for () {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
// Minimum execution time: 5_832 nanoseconds.
Weight::from_ref_time(6_117_000)
// Minimum execution time: 5_968 nanoseconds.
Weight::from_ref_time(6_245_000)
.saturating_add(Weight::from_proof_size(0))
.saturating_add(RocksDbWeight::get().writes(5_u64))
}
/// Storage: NominationPools BondedPools (r:1 w:1)
@@ -886,8 +942,9 @@ impl WeightInfo for () {
// Proof Size summary in bytes:
// Measured: `559`
// Estimated: `2639`
// Minimum execution time: 18_160 nanoseconds.
Weight::from_parts(18_567_000, 2639)
// Minimum execution time: 18_979 nanoseconds.
Weight::from_ref_time(19_795_000)
.saturating_add(Weight::from_proof_size(2639))
.saturating_add(RocksDbWeight::get().reads(1_u64))
.saturating_add(RocksDbWeight::get().writes(1_u64))
}
@@ -913,9 +970,24 @@ impl WeightInfo for () {
// Proof Size summary in bytes:
// Measured: `2136`
// Estimated: `20489`
// Minimum execution time: 58_991 nanoseconds.
Weight::from_parts(59_528_000, 20489)
// Minimum execution time: 68_145 nanoseconds.
Weight::from_ref_time(70_444_000)
.saturating_add(Weight::from_proof_size(20489))
.saturating_add(RocksDbWeight::get().reads(9_u64))
.saturating_add(RocksDbWeight::get().writes(5_u64))
}
/// Storage: NominationPools PoolMembers (r:1 w:0)
/// Proof: NominationPools PoolMembers (max_values: None, max_size: Some(237), added: 2712, mode: MaxEncodedLen)
/// Storage: NominationPools ClaimPermissions (r:1 w:1)
/// Proof: NominationPools ClaimPermissions (max_values: None, max_size: Some(41), added: 2516, mode: MaxEncodedLen)
fn set_claim_permission() -> Weight {
// Proof Size summary in bytes:
// Measured: `542`
// Estimated: `5228`
// Minimum execution time: 15_112 nanoseconds.
Weight::from_ref_time(15_897_000)
.saturating_add(Weight::from_proof_size(5228))
.saturating_add(RocksDbWeight::get().reads(2_u64))
.saturating_add(RocksDbWeight::get().writes(1_u64))
}
}