瀏覽代碼

runtime: Remove obsolete pallets.

Shamil Gadelshin 4 年之前
父節點
當前提交
4a05abe12f
共有 3 個文件被更改,包括 0 次插入19 次删除
  1. 0 2
      Cargo.lock
  2. 0 4
      runtime/Cargo.toml
  3. 0 13
      runtime/src/lib.rs

+ 0 - 2
Cargo.lock

@@ -2367,7 +2367,6 @@ dependencies = [
  "pallet-proposals-discussion",
  "pallet-proposals-engine",
  "pallet-randomness-collective-flip",
- "pallet-recurring-reward",
  "pallet-referendum",
  "pallet-service-discovery",
  "pallet-session",
@@ -2378,7 +2377,6 @@ dependencies = [
  "pallet-storage",
  "pallet-sudo",
  "pallet-timestamp",
- "pallet-token-mint",
  "pallet-transaction-payment",
  "pallet-transaction-payment-rpc-runtime-api",
  "pallet-utility",

+ 0 - 4
runtime/Cargo.toml

@@ -68,8 +68,6 @@ forum = { package = 'pallet-forum', default-features = false, path = '../runtime
 membership = { package = 'pallet-membership', default-features = false, path = '../runtime-modules/membership'}
 referendum = { package = 'pallet-referendum', default-features = false, path = '../runtime-modules/referendum'}
 council = { package = 'pallet-council', default-features = false, path = '../runtime-modules/council'}
-minting = { package = 'pallet-token-mint', default-features = false, path = '../runtime-modules/token-minting'}
-recurring-rewards = { package = 'pallet-recurring-reward', default-features = false, path = '../runtime-modules/recurring-reward'}
 working-group = { package = 'pallet-working-group', default-features = false, path = '../runtime-modules/working-group'}
 storage = { package = 'pallet-storage', default-features = false, path = '../runtime-modules/storage'}
 service-discovery = { package = 'pallet-service-discovery', default-features = false, path = '../runtime-modules/service-discovery'}
@@ -143,8 +141,6 @@ std = [
     'membership/std',
     'council/std',
     'referendum/std',
-    'minting/std',
-    'recurring-rewards/std',
     'working-group/std',
     'storage/std',
     'service-discovery/std',

+ 0 - 13
runtime/src/lib.rs

@@ -452,17 +452,6 @@ impl content_directory::Trait for Runtime {
     type IndividualEntitiesCreationLimit = IndividualEntitiesCreationLimit;
 }
 
-impl minting::Trait for Runtime {
-    type Currency = <Self as common::currency::GovernanceCurrency>::Currency;
-    type MintId = u64;
-}
-
-impl recurring_rewards::Trait for Runtime {
-    type PayoutStatusHandler = (); // TODO - deal with successful and failed payouts
-    type RecipientId = u64;
-    type RewardRelationshipId = u64;
-}
-
 impl common::currency::GovernanceCurrency for Runtime {
     type Currency = pallet_balances::Module<Self>;
 }
@@ -929,8 +918,6 @@ construct_runtime!(
         Memo: memo::{Module, Call, Storage, Event<T>},
         Members: membership::{Module, Call, Storage, Event<T>, Config<T>},
         Forum: forum::{Module, Call, Storage, Event<T>, Config<T>},
-        Minting: minting::{Module, Call, Storage},
-        RecurringRewards: recurring_rewards::{Module, Call, Storage},
         ContentDirectory: content_directory::{Module, Call, Storage, Event<T>, Config<T>},
         Constitution: pallet_constitution::{Module, Call, Storage, Event},
         // --- Storage