Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Logic for the (Core) Fellowship #13503

Merged
merged 97 commits into from
Mar 11, 2023
Merged
Changes from 1 commit
Commits
Show all changes
97 commits
Select commit Hold shift + click to select a range
e3a5bb2
More drafting
gavofyork Oct 7, 2022
3ff9ce8
Merge remote-tracking branch 'origin/master' into gav-paymaster
gavofyork Oct 7, 2022
07ab87a
Paymaster pallet
gavofyork Oct 11, 2022
88e11ce
Merge remote-tracking branch 'origin/master' into gav-paymaster
gavofyork Nov 30, 2022
8200850
Merge remote-tracking branch 'origin/master' into gav-paymaster
gavofyork Feb 12, 2023
958d34f
Fix build
gavofyork Feb 13, 2023
91cb1f5
More tests
gavofyork Feb 13, 2023
c53d372
Rename
gavofyork Feb 13, 2023
0806559
Rename
gavofyork Feb 13, 2023
5cadabf
Renaming
gavofyork Feb 13, 2023
712118b
Revert old changes
gavofyork Feb 13, 2023
07b785c
Multi-phase payouts to avoid bank-runs
gavofyork Feb 15, 2023
7fb95d0
Tests
gavofyork Feb 15, 2023
5c38814
Tests
gavofyork Feb 16, 2023
bfdf333
Allow payment to be targeted elsewhere
gavofyork Feb 16, 2023
807a3c9
Proper ssync payment failure handling
gavofyork Feb 16, 2023
cf1f365
Test for repayment
gavofyork Feb 22, 2023
d829078
Docs
gavofyork Feb 22, 2023
7162964
Impl RankedMembers for RankedCollective
gavofyork Feb 26, 2023
2e299f4
Implement Pay for Pot (i.e. basic account).
gavofyork Feb 26, 2023
5995eeb
Benchmarks
gavofyork Feb 26, 2023
c9c2ce8
Weights
gavofyork Feb 26, 2023
16bc55a
Introduce Salary benchmark into node
gavofyork Feb 26, 2023
2fc7fab
Fix warning
gavofyork Feb 26, 2023
575f426
Merge branch 'master' of https://github.com/paritytech/substrate into…
Feb 26, 2023
42a7927
".git/.scripts/commands/bench/bench.sh" pallet dev pallet_salary
Feb 26, 2023
7dc1529
Update primitives/arithmetic/src/traits.rs
gavofyork Feb 27, 2023
366267c
Update frame/salary/src/lib.rs
gavofyork Feb 27, 2023
26f1ab0
Update lib.rs
gavofyork Feb 27, 2023
872a047
Update frame/salary/src/lib.rs
gavofyork Feb 27, 2023
e2fd134
Docs
gavofyork Feb 27, 2023
8d8a5bf
Update frame/salary/src/lib.rs
gavofyork Feb 27, 2023
9849a65
Update frame/salary/src/lib.rs
gavofyork Feb 27, 2023
0b4aafa
Fix
gavofyork Feb 27, 2023
03199ae
Merge branch 'gav-paymaster' of github.com:paritytech/substrate into …
gavofyork Feb 27, 2023
a21b1bc
Fixes
gavofyork Feb 27, 2023
4c85f02
Fixes
gavofyork Feb 27, 2023
d5696c1
Move some salary traits stuff to a shared location
gavofyork Mar 1, 2023
199b1fe
Merge branch 'gav-paymaster' into gav-core-fellowship
gavofyork Mar 1, 2023
caaf99e
Initial draft
gavofyork Mar 1, 2023
3d70833
Comment out bits
gavofyork Mar 2, 2023
ddd4d3e
Fix
gavofyork Mar 2, 2023
26aa188
Merge branch 'gav-paymaster' into gav-core-fellowship
gavofyork Mar 2, 2023
3fcc590
First couple of tests
gavofyork Mar 2, 2023
f60ed83
One more test
gavofyork Mar 2, 2023
3704efe
Update frame/salary/src/lib.rs
gavofyork Mar 3, 2023
93a845d
Update frame/salary/src/lib.rs
gavofyork Mar 3, 2023
2ef3e14
Mul floor
gavofyork Mar 3, 2023
d992c0d
Tests
gavofyork Mar 3, 2023
e5c0733
Mul floor
gavofyork Mar 3, 2023
5d24050
Merge branch 'gav-paymaster' of github.com:paritytech/substrate into …
gavofyork Mar 3, 2023
b3d160e
Fix warnings
gavofyork Mar 3, 2023
b9623a4
Fix test
gavofyork Mar 3, 2023
b051049
Merge branch 'gav-paymaster' into gav-core-fellowship
gavofyork Mar 3, 2023
3580ea2
Tests
gavofyork Mar 3, 2023
31bf7b6
Last tests
gavofyork Mar 3, 2023
c08c010
Docs
gavofyork Mar 3, 2023
8782190
Merge branch 'gav-paymaster' into gav-core-fellowship
gavofyork Mar 3, 2023
a3f2026
Merge branch 'master' into gav-core-fellowship
gavofyork Mar 4, 2023
392c74d
Merge branch 'gav-core-fellowship' of github.com:paritytech/substrate…
gavofyork Mar 4, 2023
6c15f61
Fix warnings
gavofyork Mar 4, 2023
6fec0d2
Merge branch 'master' into gav-core-fellowship
gavofyork Mar 4, 2023
9d947a5
Benchmarks
gavofyork Mar 4, 2023
65f3570
Merge branch 'gav-core-fellowship' of github.com:paritytech/substrate…
gavofyork Mar 4, 2023
10e30b3
Weights
gavofyork Mar 4, 2023
bda6348
Integrate benchmark
gavofyork Mar 4, 2023
47ad52c
Fixes
gavofyork Mar 4, 2023
6752c18
Fix
gavofyork Mar 5, 2023
5b8e221
Merge branch 'master' of https://github.com/paritytech/substrate into…
Mar 5, 2023
3116351
".git/.scripts/commands/bench/bench.sh" pallet dev pallet_core_fellow…
Mar 5, 2023
032f7c1
Better process flow
gavofyork Mar 5, 2023
1f69d45
Fix benchmarks & tests
gavofyork Mar 5, 2023
b1868e0
Docs
gavofyork Mar 5, 2023
ec0f7db
Fixes
gavofyork Mar 5, 2023
59d70c9
Fixes
gavofyork Mar 5, 2023
cdb8022
docs
gavofyork Mar 5, 2023
308510a
".git/.scripts/commands/bench/bench.sh" pallet dev pallet_core_fellow…
Mar 5, 2023
8c60756
Docs and allow custom evidence size
gavofyork Mar 5, 2023
958edf6
Merge branch 'gav-core-fellowship' of github.com:paritytech/substrate…
gavofyork Mar 5, 2023
dd07d0c
".git/.scripts/commands/bench/bench.sh" pallet dev pallet_core_fellow…
Mar 5, 2023
8233b71
Update frame/core-fellowship/src/lib.rs
gavofyork Mar 6, 2023
1261201
Update frame/core-fellowship/src/tests.rs
gavofyork Mar 6, 2023
8e524e9
Update frame/core-fellowship/src/benchmarking.rs
gavofyork Mar 6, 2023
063f1d7
Update frame/core-fellowship/src/benchmarking.rs
gavofyork Mar 6, 2023
76e521b
Apply suggestions from code review
gavofyork Mar 6, 2023
a86c095
Rename
gavofyork Mar 6, 2023
c9de385
Update primitives/arithmetic/src/traits.rs
gavofyork Mar 7, 2023
8684952
Reduce magic numbers
gavofyork Mar 7, 2023
4fc96dd
Merge branch 'gav-core-fellowship' of github.com:paritytech/substrate…
gavofyork Mar 7, 2023
091c6af
Update frame/core-fellowship/src/lib.rs
gavofyork Mar 7, 2023
ecd0c46
Update frame/core-fellowship/src/lib.rs
gavofyork Mar 7, 2023
749f9ac
Benchmark result
gavofyork Mar 7, 2023
122df7c
Merge branch 'gav-core-fellowship' of github.com:paritytech/substrate…
gavofyork Mar 7, 2023
04da40e
Remove dependency
gavofyork Mar 8, 2023
ae5a5e2
set_params should pay
gavofyork Mar 8, 2023
554ac7d
induct should pay
gavofyork Mar 8, 2023
cc9f07c
Remove some other free calls
gavofyork Mar 8, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
".git/.scripts/commands/bench/bench.sh" pallet dev pallet_core_fellow…
…ship
  • Loading branch information
command-bot committed Mar 5, 2023
commit 3116351cf827afea4673c29dfe5c2b0705e61def
312 changes: 287 additions & 25 deletions frame/core-fellowship/src/weights.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@
// See the License for the specific language governing permissions and
// limitations under the License.

//! Autogenerated weights for pallet_salary
//! Autogenerated weights for pallet_core_fellowship
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
//! DATE: 2023-02-26, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! DATE: 2023-03-05, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! WORST CASE MAP SIZE: `1000000`
//! HOSTNAME: `bm3`, CPU: `Intel(R) Core(TM) i7-7700K CPU @ 4.20GHz`
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024
Expand All @@ -34,10 +34,10 @@
// --wasm-execution=compiled
// --heap-pages=4096
// --json-file=/var/lib/gitlab-runner/builds/zyw4fam_/0/parity/mirrors/substrate/.git/.artifacts/bench.json
// --pallet=pallet_salary
// --pallet=pallet_core_fellowship
// --chain=dev
// --header=./HEADER-APACHE2
// --output=./frame/salary/src/weights.rs
// --output=./frame/core-fellowship/src/weights.rs
// --template=./.maintain/frame-weight-template.hbs

#![cfg_attr(rustfmt, rustfmt_skip)]
Expand All @@ -47,7 +47,7 @@
use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}};
use sp_std::marker::PhantomData;

/// Weight functions needed for pallet_salary.
/// Weight functions needed for pallet_core_fellowship.
pub trait WeightInfo {
fn set_params() -> Weight;
fn bump_offboard() -> Weight;
Expand All @@ -57,32 +57,294 @@ pub trait WeightInfo {
fn promote() -> Weight;
fn offboard() -> Weight;
fn prove_new() -> Weight;
fn prove_existing() -> Weight;
fn prove_existing() -> Weight;
}

/// Weights for pallet_salary using the Substrate node and recommended hardware.
/// Weights for pallet_core_fellowship using the Substrate node and recommended hardware.
pub struct SubstrateWeight<T>(PhantomData<T>);
impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
fn set_params() -> Weight { Weight::from_parts(0, 0) }
fn bump_offboard() -> Weight { Weight::from_parts(0, 0) }
fn bump_demote() -> Weight { Weight::from_parts(0, 0) }
fn set_active() -> Weight { Weight::from_parts(0, 0) }
fn induct() -> Weight { Weight::from_parts(0, 0) }
fn promote() -> Weight { Weight::from_parts(0, 0) }
fn offboard() -> Weight { Weight::from_parts(0, 0) }
fn prove_new() -> Weight { Weight::from_parts(0, 0) }
fn prove_existing() -> Weight { Weight::from_parts(0, 0) }
/// Storage: CoreFellowship Params (r:0 w:1)
/// Proof: CoreFellowship Params (max_values: Some(1), max_size: Some(360), added: 855, mode: MaxEncodedLen)
fn set_params() -> Weight {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
// Minimum execution time: 10_826_000 picoseconds.
Weight::from_parts(11_146_000, 0)
.saturating_add(T::DbWeight::get().writes(1_u64))
}
/// Storage: CoreFellowship Member (r:1 w:1)
/// Proof: CoreFellowship Member (max_values: None, max_size: Some(49), added: 2524, mode: MaxEncodedLen)
/// Storage: RankedCollective Members (r:1 w:1)
/// Proof: RankedCollective Members (max_values: None, max_size: Some(42), added: 2517, mode: MaxEncodedLen)
/// Storage: CoreFellowship Params (r:1 w:0)
/// Proof: CoreFellowship Params (max_values: Some(1), max_size: Some(360), added: 855, mode: MaxEncodedLen)
/// Storage: RankedCollective MemberCount (r:1 w:1)
/// Proof: RankedCollective MemberCount (max_values: None, max_size: Some(14), added: 2489, mode: MaxEncodedLen)
/// Storage: RankedCollective IdToIndex (r:1 w:0)
/// Proof: RankedCollective IdToIndex (max_values: None, max_size: Some(54), added: 2529, mode: MaxEncodedLen)
fn bump_offboard() -> Weight {
// Proof Size summary in bytes:
// Measured: `457`
// Estimated: `15864`
// Minimum execution time: 38_282_000 picoseconds.
Weight::from_parts(38_776_000, 15864)
.saturating_add(T::DbWeight::get().reads(5_u64))
.saturating_add(T::DbWeight::get().writes(3_u64))
}
/// Storage: CoreFellowship Member (r:1 w:1)
/// Proof: CoreFellowship Member (max_values: None, max_size: Some(49), added: 2524, mode: MaxEncodedLen)
/// Storage: RankedCollective Members (r:1 w:1)
/// Proof: RankedCollective Members (max_values: None, max_size: Some(42), added: 2517, mode: MaxEncodedLen)
/// Storage: CoreFellowship Params (r:1 w:0)
/// Proof: CoreFellowship Params (max_values: Some(1), max_size: Some(360), added: 855, mode: MaxEncodedLen)
/// Storage: RankedCollective MemberCount (r:1 w:1)
/// Proof: RankedCollective MemberCount (max_values: None, max_size: Some(14), added: 2489, mode: MaxEncodedLen)
/// Storage: RankedCollective IdToIndex (r:1 w:0)
/// Proof: RankedCollective IdToIndex (max_values: None, max_size: Some(54), added: 2529, mode: MaxEncodedLen)
fn bump_demote() -> Weight {
// Proof Size summary in bytes:
// Measured: `509`
// Estimated: `15864`
// Minimum execution time: 39_384_000 picoseconds.
Weight::from_parts(39_788_000, 15864)
.saturating_add(T::DbWeight::get().reads(5_u64))
.saturating_add(T::DbWeight::get().writes(3_u64))
}
/// Storage: RankedCollective Members (r:1 w:0)
/// Proof: RankedCollective Members (max_values: None, max_size: Some(42), added: 2517, mode: MaxEncodedLen)
/// Storage: CoreFellowship Member (r:1 w:1)
/// Proof: CoreFellowship Member (max_values: None, max_size: Some(49), added: 2524, mode: MaxEncodedLen)
fn set_active() -> Weight {
// Proof Size summary in bytes:
// Measured: `355`
// Estimated: `7021`
// Minimum execution time: 19_412_000 picoseconds.
Weight::from_parts(19_687_000, 7021)
.saturating_add(T::DbWeight::get().reads(2_u64))
.saturating_add(T::DbWeight::get().writes(1_u64))
}
/// Storage: CoreFellowship Member (r:1 w:1)
/// Proof: CoreFellowship Member (max_values: None, max_size: Some(49), added: 2524, mode: MaxEncodedLen)
/// Storage: RankedCollective Members (r:1 w:1)
/// Proof: RankedCollective Members (max_values: None, max_size: Some(42), added: 2517, mode: MaxEncodedLen)
/// Storage: RankedCollective MemberCount (r:1 w:1)
/// Proof: RankedCollective MemberCount (max_values: None, max_size: Some(14), added: 2489, mode: MaxEncodedLen)
/// Storage: RankedCollective IndexToId (r:0 w:1)
/// Proof: RankedCollective IndexToId (max_values: None, max_size: Some(54), added: 2529, mode: MaxEncodedLen)
/// Storage: RankedCollective IdToIndex (r:0 w:1)
/// Proof: RankedCollective IdToIndex (max_values: None, max_size: Some(54), added: 2529, mode: MaxEncodedLen)
fn induct() -> Weight {
// Proof Size summary in bytes:
// Measured: `281`
// Estimated: `10500`
// Minimum execution time: 32_505_000 picoseconds.
Weight::from_parts(33_049_000, 10500)
.saturating_add(T::DbWeight::get().reads(3_u64))
.saturating_add(T::DbWeight::get().writes(5_u64))
}
/// Storage: RankedCollective Members (r:1 w:1)
/// Proof: RankedCollective Members (max_values: None, max_size: Some(42), added: 2517, mode: MaxEncodedLen)
/// Storage: CoreFellowship Member (r:1 w:1)
/// Proof: CoreFellowship Member (max_values: None, max_size: Some(49), added: 2524, mode: MaxEncodedLen)
/// Storage: CoreFellowship Params (r:1 w:0)
/// Proof: CoreFellowship Params (max_values: Some(1), max_size: Some(360), added: 855, mode: MaxEncodedLen)
/// Storage: RankedCollective MemberCount (r:1 w:1)
/// Proof: RankedCollective MemberCount (max_values: None, max_size: Some(14), added: 2489, mode: MaxEncodedLen)
/// Storage: RankedCollective IndexToId (r:0 w:1)
/// Proof: RankedCollective IndexToId (max_values: None, max_size: Some(54), added: 2529, mode: MaxEncodedLen)
/// Storage: RankedCollective IdToIndex (r:0 w:1)
/// Proof: RankedCollective IdToIndex (max_values: None, max_size: Some(54), added: 2529, mode: MaxEncodedLen)
fn promote() -> Weight {
// Proof Size summary in bytes:
// Measured: `377`
// Estimated: `12345`
// Minimum execution time: 35_992_000 picoseconds.
Weight::from_parts(37_227_000, 12345)
.saturating_add(T::DbWeight::get().reads(4_u64))
.saturating_add(T::DbWeight::get().writes(5_u64))
}
/// Storage: RankedCollective Members (r:1 w:0)
/// Proof: RankedCollective Members (max_values: None, max_size: Some(42), added: 2517, mode: MaxEncodedLen)
/// Storage: CoreFellowship Member (r:1 w:1)
/// Proof: CoreFellowship Member (max_values: None, max_size: Some(49), added: 2524, mode: MaxEncodedLen)
fn offboard() -> Weight {
// Proof Size summary in bytes:
// Measured: `355`
// Estimated: `7021`
// Minimum execution time: 18_963_000 picoseconds.
Weight::from_parts(19_313_000, 7021)
.saturating_add(T::DbWeight::get().reads(2_u64))
.saturating_add(T::DbWeight::get().writes(1_u64))
}
/// Storage: RankedCollective Members (r:1 w:0)
/// Proof: RankedCollective Members (max_values: None, max_size: Some(42), added: 2517, mode: MaxEncodedLen)
/// Storage: CoreFellowship Member (r:1 w:1)
/// Proof: CoreFellowship Member (max_values: None, max_size: Some(49), added: 2524, mode: MaxEncodedLen)
fn prove_new() -> Weight {
// Proof Size summary in bytes:
// Measured: `280`
// Estimated: `7021`
// Minimum execution time: 17_849_000 picoseconds.
Weight::from_parts(18_163_000, 7021)
.saturating_add(T::DbWeight::get().reads(2_u64))
.saturating_add(T::DbWeight::get().writes(1_u64))
}
/// Storage: RankedCollective Members (r:1 w:0)
/// Proof: RankedCollective Members (max_values: None, max_size: Some(42), added: 2517, mode: MaxEncodedLen)
/// Storage: CoreFellowship Member (r:1 w:1)
/// Proof: CoreFellowship Member (max_values: None, max_size: Some(49), added: 2524, mode: MaxEncodedLen)
fn prove_existing() -> Weight {
// Proof Size summary in bytes:
// Measured: `355`
// Estimated: `7021`
// Minimum execution time: 19_178_000 picoseconds.
Weight::from_parts(19_509_000, 7021)
.saturating_add(T::DbWeight::get().reads(2_u64))
.saturating_add(T::DbWeight::get().writes(1_u64))
}
}

// For backwards compatibility and tests
impl WeightInfo for () {
fn set_params() -> Weight { Weight::from_parts(0, 0) }
fn bump_offboard() -> Weight { Weight::from_parts(0, 0) }
fn bump_demote() -> Weight { Weight::from_parts(0, 0) }
fn set_active() -> Weight { Weight::from_parts(0, 0) }
fn induct() -> Weight { Weight::from_parts(0, 0) }
fn promote() -> Weight { Weight::from_parts(0, 0) }
fn offboard() -> Weight { Weight::from_parts(0, 0) }
fn prove_new() -> Weight { Weight::from_parts(0, 0) }
fn prove_existing() -> Weight { Weight::from_parts(0, 0) }
/// Storage: CoreFellowship Params (r:0 w:1)
/// Proof: CoreFellowship Params (max_values: Some(1), max_size: Some(360), added: 855, mode: MaxEncodedLen)
fn set_params() -> Weight {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
// Minimum execution time: 10_826_000 picoseconds.
Weight::from_parts(11_146_000, 0)
.saturating_add(RocksDbWeight::get().writes(1_u64))
}
/// Storage: CoreFellowship Member (r:1 w:1)
/// Proof: CoreFellowship Member (max_values: None, max_size: Some(49), added: 2524, mode: MaxEncodedLen)
/// Storage: RankedCollective Members (r:1 w:1)
/// Proof: RankedCollective Members (max_values: None, max_size: Some(42), added: 2517, mode: MaxEncodedLen)
/// Storage: CoreFellowship Params (r:1 w:0)
/// Proof: CoreFellowship Params (max_values: Some(1), max_size: Some(360), added: 855, mode: MaxEncodedLen)
/// Storage: RankedCollective MemberCount (r:1 w:1)
/// Proof: RankedCollective MemberCount (max_values: None, max_size: Some(14), added: 2489, mode: MaxEncodedLen)
/// Storage: RankedCollective IdToIndex (r:1 w:0)
/// Proof: RankedCollective IdToIndex (max_values: None, max_size: Some(54), added: 2529, mode: MaxEncodedLen)
fn bump_offboard() -> Weight {
// Proof Size summary in bytes:
// Measured: `457`
// Estimated: `15864`
// Minimum execution time: 38_282_000 picoseconds.
Weight::from_parts(38_776_000, 15864)
.saturating_add(RocksDbWeight::get().reads(5_u64))
.saturating_add(RocksDbWeight::get().writes(3_u64))
}
/// Storage: CoreFellowship Member (r:1 w:1)
/// Proof: CoreFellowship Member (max_values: None, max_size: Some(49), added: 2524, mode: MaxEncodedLen)
/// Storage: RankedCollective Members (r:1 w:1)
/// Proof: RankedCollective Members (max_values: None, max_size: Some(42), added: 2517, mode: MaxEncodedLen)
/// Storage: CoreFellowship Params (r:1 w:0)
/// Proof: CoreFellowship Params (max_values: Some(1), max_size: Some(360), added: 855, mode: MaxEncodedLen)
/// Storage: RankedCollective MemberCount (r:1 w:1)
/// Proof: RankedCollective MemberCount (max_values: None, max_size: Some(14), added: 2489, mode: MaxEncodedLen)
/// Storage: RankedCollective IdToIndex (r:1 w:0)
/// Proof: RankedCollective IdToIndex (max_values: None, max_size: Some(54), added: 2529, mode: MaxEncodedLen)
fn bump_demote() -> Weight {
// Proof Size summary in bytes:
// Measured: `509`
// Estimated: `15864`
// Minimum execution time: 39_384_000 picoseconds.
Weight::from_parts(39_788_000, 15864)
.saturating_add(RocksDbWeight::get().reads(5_u64))
.saturating_add(RocksDbWeight::get().writes(3_u64))
}
/// Storage: RankedCollective Members (r:1 w:0)
/// Proof: RankedCollective Members (max_values: None, max_size: Some(42), added: 2517, mode: MaxEncodedLen)
/// Storage: CoreFellowship Member (r:1 w:1)
/// Proof: CoreFellowship Member (max_values: None, max_size: Some(49), added: 2524, mode: MaxEncodedLen)
fn set_active() -> Weight {
// Proof Size summary in bytes:
// Measured: `355`
// Estimated: `7021`
// Minimum execution time: 19_412_000 picoseconds.
Weight::from_parts(19_687_000, 7021)
.saturating_add(RocksDbWeight::get().reads(2_u64))
.saturating_add(RocksDbWeight::get().writes(1_u64))
}
/// Storage: CoreFellowship Member (r:1 w:1)
/// Proof: CoreFellowship Member (max_values: None, max_size: Some(49), added: 2524, mode: MaxEncodedLen)
/// Storage: RankedCollective Members (r:1 w:1)
/// Proof: RankedCollective Members (max_values: None, max_size: Some(42), added: 2517, mode: MaxEncodedLen)
/// Storage: RankedCollective MemberCount (r:1 w:1)
/// Proof: RankedCollective MemberCount (max_values: None, max_size: Some(14), added: 2489, mode: MaxEncodedLen)
/// Storage: RankedCollective IndexToId (r:0 w:1)
/// Proof: RankedCollective IndexToId (max_values: None, max_size: Some(54), added: 2529, mode: MaxEncodedLen)
/// Storage: RankedCollective IdToIndex (r:0 w:1)
/// Proof: RankedCollective IdToIndex (max_values: None, max_size: Some(54), added: 2529, mode: MaxEncodedLen)
fn induct() -> Weight {
// Proof Size summary in bytes:
// Measured: `281`
// Estimated: `10500`
// Minimum execution time: 32_505_000 picoseconds.
Weight::from_parts(33_049_000, 10500)
.saturating_add(RocksDbWeight::get().reads(3_u64))
.saturating_add(RocksDbWeight::get().writes(5_u64))
}
/// Storage: RankedCollective Members (r:1 w:1)
/// Proof: RankedCollective Members (max_values: None, max_size: Some(42), added: 2517, mode: MaxEncodedLen)
/// Storage: CoreFellowship Member (r:1 w:1)
/// Proof: CoreFellowship Member (max_values: None, max_size: Some(49), added: 2524, mode: MaxEncodedLen)
/// Storage: CoreFellowship Params (r:1 w:0)
/// Proof: CoreFellowship Params (max_values: Some(1), max_size: Some(360), added: 855, mode: MaxEncodedLen)
/// Storage: RankedCollective MemberCount (r:1 w:1)
/// Proof: RankedCollective MemberCount (max_values: None, max_size: Some(14), added: 2489, mode: MaxEncodedLen)
/// Storage: RankedCollective IndexToId (r:0 w:1)
/// Proof: RankedCollective IndexToId (max_values: None, max_size: Some(54), added: 2529, mode: MaxEncodedLen)
/// Storage: RankedCollective IdToIndex (r:0 w:1)
/// Proof: RankedCollective IdToIndex (max_values: None, max_size: Some(54), added: 2529, mode: MaxEncodedLen)
fn promote() -> Weight {
// Proof Size summary in bytes:
// Measured: `377`
// Estimated: `12345`
// Minimum execution time: 35_992_000 picoseconds.
Weight::from_parts(37_227_000, 12345)
.saturating_add(RocksDbWeight::get().reads(4_u64))
.saturating_add(RocksDbWeight::get().writes(5_u64))
}
/// Storage: RankedCollective Members (r:1 w:0)
/// Proof: RankedCollective Members (max_values: None, max_size: Some(42), added: 2517, mode: MaxEncodedLen)
/// Storage: CoreFellowship Member (r:1 w:1)
/// Proof: CoreFellowship Member (max_values: None, max_size: Some(49), added: 2524, mode: MaxEncodedLen)
fn offboard() -> Weight {
// Proof Size summary in bytes:
// Measured: `355`
// Estimated: `7021`
// Minimum execution time: 18_963_000 picoseconds.
Weight::from_parts(19_313_000, 7021)
.saturating_add(RocksDbWeight::get().reads(2_u64))
.saturating_add(RocksDbWeight::get().writes(1_u64))
}
/// Storage: RankedCollective Members (r:1 w:0)
/// Proof: RankedCollective Members (max_values: None, max_size: Some(42), added: 2517, mode: MaxEncodedLen)
/// Storage: CoreFellowship Member (r:1 w:1)
/// Proof: CoreFellowship Member (max_values: None, max_size: Some(49), added: 2524, mode: MaxEncodedLen)
fn prove_new() -> Weight {
// Proof Size summary in bytes:
// Measured: `280`
// Estimated: `7021`
// Minimum execution time: 17_849_000 picoseconds.
Weight::from_parts(18_163_000, 7021)
.saturating_add(RocksDbWeight::get().reads(2_u64))
.saturating_add(RocksDbWeight::get().writes(1_u64))
}
/// Storage: RankedCollective Members (r:1 w:0)
/// Proof: RankedCollective Members (max_values: None, max_size: Some(42), added: 2517, mode: MaxEncodedLen)
/// Storage: CoreFellowship Member (r:1 w:1)
/// Proof: CoreFellowship Member (max_values: None, max_size: Some(49), added: 2524, mode: MaxEncodedLen)
fn prove_existing() -> Weight {
// Proof Size summary in bytes:
// Measured: `355`
// Estimated: `7021`
// Minimum execution time: 19_178_000 picoseconds.
Weight::from_parts(19_509_000, 7021)
.saturating_add(RocksDbWeight::get().reads(2_u64))
.saturating_add(RocksDbWeight::get().writes(1_u64))
}
}