mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-30 00:01: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
@@ -237,6 +237,7 @@ pub mod pallet {
|
||||
/// - `parent_bounty_id`: Index of parent bounty for which child-bounty is being added.
|
||||
/// - `value`: Value for executing the proposal.
|
||||
/// - `description`: Text description for the child-bounty.
|
||||
#[pallet::call_index(0)]
|
||||
#[pallet::weight(<T as Config>::WeightInfo::add_child_bounty(description.len() as u32))]
|
||||
pub fn add_child_bounty(
|
||||
origin: OriginFor<T>,
|
||||
@@ -311,6 +312,7 @@ pub mod pallet {
|
||||
/// - `child_bounty_id`: Index of child bounty.
|
||||
/// - `curator`: Address of child-bounty curator.
|
||||
/// - `fee`: payment fee to child-bounty curator for execution.
|
||||
#[pallet::call_index(1)]
|
||||
#[pallet::weight(<T as Config>::WeightInfo::propose_curator())]
|
||||
pub fn propose_curator(
|
||||
origin: OriginFor<T>,
|
||||
@@ -380,6 +382,7 @@ pub mod pallet {
|
||||
///
|
||||
/// - `parent_bounty_id`: Index of parent bounty.
|
||||
/// - `child_bounty_id`: Index of child bounty.
|
||||
#[pallet::call_index(2)]
|
||||
#[pallet::weight(<T as Config>::WeightInfo::accept_curator())]
|
||||
pub fn accept_curator(
|
||||
origin: OriginFor<T>,
|
||||
@@ -456,6 +459,7 @@ pub mod pallet {
|
||||
///
|
||||
/// - `parent_bounty_id`: Index of parent bounty.
|
||||
/// - `child_bounty_id`: Index of child bounty.
|
||||
#[pallet::call_index(3)]
|
||||
#[pallet::weight(<T as Config>::WeightInfo::unassign_curator())]
|
||||
pub fn unassign_curator(
|
||||
origin: OriginFor<T>,
|
||||
@@ -570,6 +574,7 @@ pub mod pallet {
|
||||
/// - `parent_bounty_id`: Index of parent bounty.
|
||||
/// - `child_bounty_id`: Index of child bounty.
|
||||
/// - `beneficiary`: Beneficiary account.
|
||||
#[pallet::call_index(4)]
|
||||
#[pallet::weight(<T as Config>::WeightInfo::award_child_bounty())]
|
||||
pub fn award_child_bounty(
|
||||
origin: OriginFor<T>,
|
||||
@@ -636,6 +641,7 @@ pub mod pallet {
|
||||
///
|
||||
/// - `parent_bounty_id`: Index of parent bounty.
|
||||
/// - `child_bounty_id`: Index of child bounty.
|
||||
#[pallet::call_index(5)]
|
||||
#[pallet::weight(<T as Config>::WeightInfo::claim_child_bounty())]
|
||||
pub fn claim_child_bounty(
|
||||
origin: OriginFor<T>,
|
||||
@@ -745,6 +751,7 @@ pub mod pallet {
|
||||
///
|
||||
/// - `parent_bounty_id`: Index of parent bounty.
|
||||
/// - `child_bounty_id`: Index of child bounty.
|
||||
#[pallet::call_index(6)]
|
||||
#[pallet::weight(<T as Config>::WeightInfo::close_child_bounty_added()
|
||||
.max(<T as Config>::WeightInfo::close_child_bounty_active()))]
|
||||
pub fn close_child_bounty(
|
||||
|
||||
Reference in New Issue
Block a user