-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
249 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -305,6 +305,23 @@ pub mod pallet { | |
let delegator = ensure_signed(origin)?; | ||
voting::disable_delegation::<T>(delegator) | ||
} | ||
|
||
#[pallet::call_index(17)] | ||
#[pallet::weight(0)] | ||
Check failure on line 310 in pallets/governance/src/lib.rs GitHub Actions / clippythis let-binding has unit value
Check failure on line 310 in pallets/governance/src/lib.rs GitHub Actions / clippyuse of deprecated constant `pallet::warnings::ConstantWeight_0::_w`: It is deprecated to use hard-coded constant as call weight. Please instead benchmark all calls or put the pallet into `dev` mode. For more info see: <https://github.com/paritytech/substrate/pull/13798>
|
||
pub fn add_emission_proposal( | ||
origin: OriginFor<T>, | ||
recycling_percentage: Percent, | ||
treasury_percentage: Percent, | ||
data: Vec<u8>, | ||
) -> DispatchResult { | ||
let proposer = ensure_signed(origin)?; | ||
proposal::add_emission_proposal::<T>( | ||
proposer, | ||
recycling_percentage, | ||
treasury_percentage, | ||
data, | ||
) | ||
} | ||
} | ||
|
||
#[pallet::event] | ||
|
@@ -425,6 +442,8 @@ pub mod pallet { | |
InvalidMinWeightControlFee, | ||
/// Invalid minimum staking fee in proposal | ||
InvalidMinStakingFee, | ||
/// Invalid params given to Emission proposal | ||
InvalidEmissionProposalData, | ||
} | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters