mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-17 12:31:03 +00:00
Use explicit call indices (#12891)
* frame-system: explicit call index Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Use explicit call indices Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * pallet-template: explicit call index Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * DNM: Temporarily require call_index Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Revert "DNM: Temporarily require call_index" This reverts commit c4934e312e12af72ca05a8029d7da753a9c99346. Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
This commit is contained in:
committed by
GitHub
parent
6e0453a298
commit
31f5119ecd
@@ -711,6 +711,7 @@ pub mod pallet {
|
||||
///
|
||||
/// Total Complexity: O(M + B + C + logM + logB + X)
|
||||
/// # </weight>
|
||||
#[pallet::call_index(0)]
|
||||
#[pallet::weight(T::BlockWeights::get().max_block / 10)]
|
||||
pub fn bid(origin: OriginFor<T>, value: BalanceOf<T, I>) -> DispatchResult {
|
||||
let who = ensure_signed(origin)?;
|
||||
@@ -750,6 +751,7 @@ pub mod pallet {
|
||||
///
|
||||
/// Total Complexity: O(B + X)
|
||||
/// # </weight>
|
||||
#[pallet::call_index(1)]
|
||||
#[pallet::weight(T::BlockWeights::get().max_block / 10)]
|
||||
pub fn unbid(origin: OriginFor<T>, pos: u32) -> DispatchResult {
|
||||
let who = ensure_signed(origin)?;
|
||||
@@ -822,6 +824,7 @@ pub mod pallet {
|
||||
///
|
||||
/// Total Complexity: O(M + B + C + logM + logB + X)
|
||||
/// # </weight>
|
||||
#[pallet::call_index(2)]
|
||||
#[pallet::weight(T::BlockWeights::get().max_block / 10)]
|
||||
pub fn vouch(
|
||||
origin: OriginFor<T>,
|
||||
@@ -873,6 +876,7 @@ pub mod pallet {
|
||||
///
|
||||
/// Total Complexity: O(B)
|
||||
/// # </weight>
|
||||
#[pallet::call_index(3)]
|
||||
#[pallet::weight(T::BlockWeights::get().max_block / 10)]
|
||||
pub fn unvouch(origin: OriginFor<T>, pos: u32) -> DispatchResult {
|
||||
let voucher = ensure_signed(origin)?;
|
||||
@@ -914,6 +918,7 @@ pub mod pallet {
|
||||
///
|
||||
/// Total Complexity: O(M + logM + C)
|
||||
/// # </weight>
|
||||
#[pallet::call_index(4)]
|
||||
#[pallet::weight(T::BlockWeights::get().max_block / 10)]
|
||||
pub fn vote(
|
||||
origin: OriginFor<T>,
|
||||
@@ -950,6 +955,7 @@ pub mod pallet {
|
||||
///
|
||||
/// Total Complexity: O(M + logM)
|
||||
/// # </weight>
|
||||
#[pallet::call_index(5)]
|
||||
#[pallet::weight(T::BlockWeights::get().max_block / 10)]
|
||||
pub fn defender_vote(origin: OriginFor<T>, approve: bool) -> DispatchResult {
|
||||
let voter = ensure_signed(origin)?;
|
||||
@@ -984,6 +990,7 @@ pub mod pallet {
|
||||
///
|
||||
/// Total Complexity: O(M + logM + P + X)
|
||||
/// # </weight>
|
||||
#[pallet::call_index(6)]
|
||||
#[pallet::weight(T::BlockWeights::get().max_block / 10)]
|
||||
pub fn payout(origin: OriginFor<T>) -> DispatchResult {
|
||||
let who = ensure_signed(origin)?;
|
||||
@@ -1026,6 +1033,7 @@ pub mod pallet {
|
||||
///
|
||||
/// Total Complexity: O(1)
|
||||
/// # </weight>
|
||||
#[pallet::call_index(7)]
|
||||
#[pallet::weight(T::BlockWeights::get().max_block / 10)]
|
||||
pub fn found(
|
||||
origin: OriginFor<T>,
|
||||
@@ -1060,6 +1068,7 @@ pub mod pallet {
|
||||
///
|
||||
/// Total Complexity: O(1)
|
||||
/// # </weight>
|
||||
#[pallet::call_index(8)]
|
||||
#[pallet::weight(T::BlockWeights::get().max_block / 10)]
|
||||
pub fn unfound(origin: OriginFor<T>) -> DispatchResult {
|
||||
let founder = ensure_signed(origin)?;
|
||||
@@ -1105,6 +1114,7 @@ pub mod pallet {
|
||||
///
|
||||
/// Total Complexity: O(M + logM + B)
|
||||
/// # </weight>
|
||||
#[pallet::call_index(9)]
|
||||
#[pallet::weight(T::BlockWeights::get().max_block / 10)]
|
||||
pub fn judge_suspended_member(
|
||||
origin: OriginFor<T>,
|
||||
@@ -1182,6 +1192,7 @@ pub mod pallet {
|
||||
///
|
||||
/// Total Complexity: O(M + logM + B + X)
|
||||
/// # </weight>
|
||||
#[pallet::call_index(10)]
|
||||
#[pallet::weight(T::BlockWeights::get().max_block / 10)]
|
||||
pub fn judge_suspended_candidate(
|
||||
origin: OriginFor<T>,
|
||||
@@ -1255,6 +1266,7 @@ pub mod pallet {
|
||||
///
|
||||
/// Total Complexity: O(1)
|
||||
/// # </weight>
|
||||
#[pallet::call_index(11)]
|
||||
#[pallet::weight(T::BlockWeights::get().max_block / 10)]
|
||||
pub fn set_max_members(origin: OriginFor<T>, max: u32) -> DispatchResult {
|
||||
ensure_root(origin)?;
|
||||
|
||||
Reference in New Issue
Block a user