mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-13 00:01:09 +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
@@ -350,6 +350,7 @@ pub mod pallet {
|
||||
/// - DbReads: `ProposalCount`, `origin account`
|
||||
/// - DbWrites: `ProposalCount`, `Proposals`, `origin account`
|
||||
/// # </weight>
|
||||
#[pallet::call_index(0)]
|
||||
#[pallet::weight(T::WeightInfo::propose_spend())]
|
||||
pub fn propose_spend(
|
||||
origin: OriginFor<T>,
|
||||
@@ -380,6 +381,7 @@ pub mod pallet {
|
||||
/// - DbReads: `Proposals`, `rejected proposer account`
|
||||
/// - DbWrites: `Proposals`, `rejected proposer account`
|
||||
/// # </weight>
|
||||
#[pallet::call_index(1)]
|
||||
#[pallet::weight((T::WeightInfo::reject_proposal(), DispatchClass::Operational))]
|
||||
pub fn reject_proposal(
|
||||
origin: OriginFor<T>,
|
||||
@@ -410,6 +412,7 @@ pub mod pallet {
|
||||
/// - DbReads: `Proposals`, `Approvals`
|
||||
/// - DbWrite: `Approvals`
|
||||
/// # </weight>
|
||||
#[pallet::call_index(2)]
|
||||
#[pallet::weight((T::WeightInfo::approve_proposal(T::MaxApprovals::get()), DispatchClass::Operational))]
|
||||
pub fn approve_proposal(
|
||||
origin: OriginFor<T>,
|
||||
@@ -431,6 +434,7 @@ pub mod pallet {
|
||||
///
|
||||
/// NOTE: For record-keeping purposes, the proposer is deemed to be equivalent to the
|
||||
/// beneficiary.
|
||||
#[pallet::call_index(3)]
|
||||
#[pallet::weight(T::WeightInfo::spend())]
|
||||
pub fn spend(
|
||||
origin: OriginFor<T>,
|
||||
@@ -472,6 +476,7 @@ pub mod pallet {
|
||||
/// - `ProposalNotApproved`: The `proposal_id` supplied was not found in the approval queue,
|
||||
/// i.e., the proposal has not been approved. This could also mean the proposal does not
|
||||
/// exist altogether, thus there is no way it would have been approved in the first place.
|
||||
#[pallet::call_index(4)]
|
||||
#[pallet::weight((T::WeightInfo::remove_approval(), DispatchClass::Operational))]
|
||||
pub fn remove_approval(
|
||||
origin: OriginFor<T>,
|
||||
|
||||
Reference in New Issue
Block a user