mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-13 00:01:09 +00:00
Rewrap all comments to 100 line width (#9490)
* reformat everything again * manual formatting * last manual fix * Fix build
This commit is contained in:
@@ -95,15 +95,14 @@ pub type NegativeImbalanceOf<T, I = ()> = <<T as Config<I>>::Currency as Currenc
|
||||
/// A trait to allow the Treasury Pallet to spend it's funds for other purposes.
|
||||
/// There is an expectation that the implementer of this trait will correctly manage
|
||||
/// the mutable variables passed to it:
|
||||
/// * `budget_remaining`: How much available funds that can be spent by the treasury.
|
||||
/// As funds are spent, you must correctly deduct from this value.
|
||||
/// * `imbalance`: Any imbalances that you create should be subsumed in here to
|
||||
/// maximize efficiency of updating the total issuance. (i.e. `deposit_creating`)
|
||||
/// * `total_weight`: Track any weight that your `spend_fund` implementation uses by
|
||||
/// updating this value.
|
||||
/// * `missed_any`: If there were items that you want to spend on, but there were
|
||||
/// not enough funds, mark this value as `true`. This will prevent the treasury
|
||||
/// from burning the excess funds.
|
||||
/// * `budget_remaining`: How much available funds that can be spent by the treasury. As funds are
|
||||
/// spent, you must correctly deduct from this value.
|
||||
/// * `imbalance`: Any imbalances that you create should be subsumed in here to maximize efficiency
|
||||
/// of updating the total issuance. (i.e. `deposit_creating`)
|
||||
/// * `total_weight`: Track any weight that your `spend_fund` implementation uses by updating this
|
||||
/// value.
|
||||
/// * `missed_any`: If there were items that you want to spend on, but there were not enough funds,
|
||||
/// mark this value as `true`. This will prevent the treasury from burning the excess funds.
|
||||
#[impl_trait_for_tuples::impl_for_tuples(30)]
|
||||
pub trait SpendFunds<T: Config<I>, I: 'static = ()> {
|
||||
fn spend_funds(
|
||||
@@ -293,8 +292,8 @@ pub mod pallet {
|
||||
/// # <weight>
|
||||
/// - Complexity: `O(A)` where `A` is the number of approvals
|
||||
/// - Db reads and writes: `Approvals`, `pot account data`
|
||||
/// - Db reads and writes per approval:
|
||||
/// `Proposals`, `proposer account data`, `beneficiary account data`
|
||||
/// - Db reads and writes per approval: `Proposals`, `proposer account data`, `beneficiary
|
||||
/// account data`
|
||||
/// - The weight is overestimated if some approvals got missed.
|
||||
/// # </weight>
|
||||
fn on_initialize(n: T::BlockNumber) -> Weight {
|
||||
|
||||
Reference in New Issue
Block a user