mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-30 08:11:03 +00:00
make all extrinsics public so they are available from outside (#9078)
Co-authored-by: thiolliere <gui.thiolliere@gmail.com>
This commit is contained in:
@@ -286,7 +286,7 @@ pub mod pallet {
|
||||
.max(T::WeightInfo::vote_less(votes.len() as u32))
|
||||
.max(T::WeightInfo::vote_equal(votes.len() as u32))
|
||||
)]
|
||||
pub(crate) fn vote(
|
||||
pub fn vote(
|
||||
origin: OriginFor<T>,
|
||||
votes: Vec<T::AccountId>,
|
||||
#[pallet::compact] value: BalanceOf<T>,
|
||||
@@ -349,7 +349,7 @@ pub mod pallet {
|
||||
///
|
||||
/// The dispatch origin of this call must be signed and be a voter.
|
||||
#[pallet::weight(T::WeightInfo::remove_voter())]
|
||||
pub(crate) fn remove_voter(origin: OriginFor<T>) -> DispatchResultWithPostInfo {
|
||||
pub fn remove_voter(origin: OriginFor<T>) -> DispatchResultWithPostInfo {
|
||||
let who = ensure_signed(origin)?;
|
||||
ensure!(Self::is_voter(&who), Error::<T>::MustBeVoter);
|
||||
Self::do_remove_voter(&who);
|
||||
@@ -372,7 +372,7 @@ pub mod pallet {
|
||||
/// The number of current candidates must be provided as witness data.
|
||||
/// # </weight>
|
||||
#[pallet::weight(T::WeightInfo::submit_candidacy(*candidate_count))]
|
||||
pub(crate) fn submit_candidacy(
|
||||
pub fn submit_candidacy(
|
||||
origin: OriginFor<T>,
|
||||
#[pallet::compact] candidate_count: u32,
|
||||
) -> DispatchResultWithPostInfo {
|
||||
@@ -415,7 +415,7 @@ pub mod pallet {
|
||||
Renouncing::Member => T::WeightInfo::renounce_candidacy_members(),
|
||||
Renouncing::RunnerUp => T::WeightInfo::renounce_candidacy_runners_up(),
|
||||
})]
|
||||
pub(crate) fn renounce_candidacy(
|
||||
pub fn renounce_candidacy(
|
||||
origin: OriginFor<T>,
|
||||
renouncing: Renouncing,
|
||||
) -> DispatchResultWithPostInfo {
|
||||
@@ -476,7 +476,7 @@ pub mod pallet {
|
||||
} else {
|
||||
T::BlockWeights::get().max_block
|
||||
})]
|
||||
pub(crate) fn remove_member(
|
||||
pub fn remove_member(
|
||||
origin: OriginFor<T>,
|
||||
who: <T::Lookup as StaticLookup>::Source,
|
||||
has_replacement: bool,
|
||||
@@ -516,7 +516,7 @@ pub mod pallet {
|
||||
/// The total number of voters and those that are defunct must be provided as witness data.
|
||||
/// # </weight>
|
||||
#[pallet::weight(T::WeightInfo::clean_defunct_voters(*_num_voters, *_num_defunct))]
|
||||
pub(crate) fn clean_defunct_voters(
|
||||
pub fn clean_defunct_voters(
|
||||
origin: OriginFor<T>,
|
||||
_num_voters: u32,
|
||||
_num_defunct: u32,
|
||||
|
||||
Reference in New Issue
Block a user