Companion for #7536 (Pallet Treasury Refactor) (#2025)

* wk2048 | D6 | issue-7143-treasury-refactor | integration

* wk2048 | D6 | issue-7143-treasury-refactor | integration | p2

* trait -> config

* fix weight files and import

* missed some

* fix import

* fix imports

* alphabetize

* fix config traits

* fix trait

* update traits

* update weights

* "Update Substrate"

* fix features

* Update runtime/kusama/src/lib.rs

* Update runtime/polkadot/src/lib.rs

* add bounties and tips in proxy filters

* remove unused

* remove unused

* remove unused

Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com>
Co-authored-by: parity-processbot <>
Co-authored-by: thiolliere <gui.thiolliere@gmail.com>
This commit is contained in:
RK
2020-12-16 20:59:07 +05:30
committed by GitHub
parent 8b46fa64cd
commit 1ecc2e0389
16 changed files with 674 additions and 434 deletions
+1 -23
View File
@@ -138,18 +138,6 @@ mod tests {
type WeightInfo = ();
}
pub struct Nobody;
impl frame_support::traits::Contains<AccountId> for Nobody {
fn contains(_: &AccountId) -> bool { false }
fn sorted_members() -> Vec<AccountId> { vec![] }
#[cfg(feature = "runtime-benchmarks")]
fn add(_: &AccountId) { unimplemented!() }
}
impl frame_support::traits::ContainsLengthBound for Nobody {
fn min_len() -> usize { 0 }
fn max_len() -> usize { 0 }
}
parameter_types! {
pub const TreasuryModuleId: ModuleId = ModuleId(*b"py/trsry");
}
@@ -165,18 +153,8 @@ mod tests {
type SpendPeriod = ();
type Burn = ();
type BurnDestination = ();
type Tippers = Nobody;
type TipCountdown = ();
type TipFindersFee = ();
type TipReportDepositBase = ();
type DataDepositPerByte = ();
type BountyDepositBase = ();
type BountyDepositPayoutDelay = ();
type BountyUpdatePeriod = ();
type MaximumReasonLength = ();
type BountyCuratorDeposit = ();
type BountyValueMinimum = ();
type ModuleId = TreasuryModuleId;
type SpendFunds = ();
type WeightInfo = ();
}