Alliance pallet: split force_set_members call (#12179)

* Alliance pallet: split force_set_members call

* use counts for event

* ".git/.scripts/bench-bot.sh" pallet dev pallet_alliance

Co-authored-by: command-bot <>
This commit is contained in:
Muharem Ismailovandcommand-bot authored and GitHub committed 2022-09-05 15:08:50 +00:00
1 parent b6f67b08ed
commit f919894c84
8 files changed
+358 -512

No files matched your search

+1 -11
View File
@@ -18,8 +18,7 @@
//! Some configurable implementations as associated type for the substrate runtime.
use crate::{
AccountId, AllianceCollective, AllianceMotion, Assets, Authorship, Balances, Call, Hash,
NegativeImbalance, Runtime,
AccountId, AllianceMotion, Assets, Authorship, Balances, Call, Hash, NegativeImbalance, Runtime,
};
use frame_support::{
pallet_prelude::*,
@@ -113,15 +112,6 @@ impl ProposalProvider<AccountId, Hash, Call> for AllianceProposalProvider {
fn proposal_of(proposal_hash: Hash) -> Option<Call> {
AllianceMotion::proposal_of(proposal_hash)
}
fn proposals() -> Vec<Hash> {
AllianceMotion::proposals().into_inner()
}
fn proposals_count() -> u32 {
pallet_collective::Proposals::<Runtime, AllianceCollective>::decode_len().unwrap_or(0)
as u32
}
}
#[cfg(test)]