Browse Source

runtime: Remove stake dependencies.

Shamil Gadelshin 4 years ago
parent
commit
f39171d480

+ 0 - 3
Cargo.lock

@@ -3938,7 +3938,6 @@ dependencies = [
  "pallet-proposals-discussion",
  "pallet-proposals-engine",
  "pallet-recurring-reward",
- "pallet-stake",
  "pallet-staking",
  "pallet-staking-reward-curve",
  "pallet-timestamp",
@@ -4037,7 +4036,6 @@ dependencies = [
  "pallet-common",
  "pallet-membership",
  "pallet-recurring-reward",
- "pallet-stake",
  "pallet-timestamp",
  "pallet-token-mint",
  "pallet-working-group",
@@ -4146,7 +4144,6 @@ dependencies = [
  "pallet-common",
  "pallet-membership",
  "pallet-recurring-reward",
- "pallet-stake",
  "pallet-timestamp",
  "pallet-token-mint",
  "pallet-working-group",

+ 0 - 2
runtime-modules/proposals/codex/Cargo.toml

@@ -16,7 +16,6 @@ staking = { package = 'pallet-staking', default-features = false, git = 'https:/
 pallet-timestamp = { package = 'pallet-timestamp', default-features = false, git = 'https://github.com/paritytech/substrate.git', rev = 'a200cdb93c6af5763b9c7bf313fa708764ac88ca'}
 balances = { package = 'pallet-balances', default-features = false, git = 'https://github.com/paritytech/substrate.git', rev = 'a200cdb93c6af5763b9c7bf313fa708764ac88ca'}
 membership = { package = 'pallet-membership', default-features = false, path = '../../membership'}
-stake = { package = 'pallet-stake', default-features = false, path = '../../stake'}
 governance = { package = 'pallet-governance', default-features = false, path = '../../governance'}
 minting = { package = 'pallet-token-mint', default-features = false, path = '../../token-minting'}
 working-group = { package = 'pallet-working-group', default-features = false, path = '../../working-group'}
@@ -48,7 +47,6 @@ std = [
     'pallet-timestamp/std',
     'balances/std',
     'membership/std',
-    'stake/std',
     'governance/std',
     'minting/std',
     'working-group/std',

+ 0 - 9
runtime-modules/proposals/codex/src/tests/mock.rs

@@ -29,7 +29,6 @@ parameter_types! {
     pub const MaximumBlockLength: u32 = 2 * 1024;
     pub const AvailableBlockRatio: Perbill = Perbill::one();
     pub const MinimumPeriod: u64 = 5;
-    pub const StakePoolId: [u8; 8] = *b"joystake";
 }
 
 impl_outer_dispatch! {
@@ -67,14 +66,6 @@ impl balances::Trait for Test {
     type MaxLocks = ();
 }
 
-impl stake::Trait for Test {
-    type Currency = Balances;
-    type StakePoolId = StakePoolId;
-    type StakingEventsHandler = ();
-    type StakeId = u64;
-    type SlashId = u64;
-}
-
 parameter_types! {
     pub const CancellationFee: u64 = 5;
     pub const RejectionFee: u64 = 3;

+ 0 - 1
runtime-modules/service-discovery/Cargo.toml

@@ -20,7 +20,6 @@ sp-core = { package = 'sp-core', default-features = false, git = 'https://github
 pallet-timestamp = { package = 'pallet-timestamp', default-features = false, git = 'https://github.com/paritytech/substrate.git', rev = 'a200cdb93c6af5763b9c7bf313fa708764ac88ca'}
 balances = { package = 'pallet-balances', default-features = false, git = 'https://github.com/paritytech/substrate.git', rev = 'a200cdb93c6af5763b9c7bf313fa708764ac88ca'}
 membership = { package = 'pallet-membership', default-features = false, path = '../membership'}
-stake = { package = 'pallet-stake', default-features = false, path = '../stake'}
 minting = { package = 'pallet-token-mint', default-features = false, path = '../token-minting'}
 recurringrewards = { package = 'pallet-recurring-reward', default-features = false, path = '../recurring-reward'}
 common = { package = 'pallet-common', default-features = false, path = '../common'}

+ 0 - 9
runtime-modules/service-discovery/src/mock.rs

@@ -50,7 +50,6 @@ parameter_types! {
     pub const MaximumBlockLength: u32 = 2 * 1024;
     pub const AvailableBlockRatio: Perbill = Perbill::one();
     pub const MinimumPeriod: u64 = 5;
-    pub const StakePoolId: [u8; 8] = *b"joystake";
     pub const ExistentialDeposit: u32 = 0;
 }
 
@@ -91,14 +90,6 @@ impl minting::Trait for Test {
     type MintId = u64;
 }
 
-impl stake::Trait for Test {
-    type Currency = Balances;
-    type StakePoolId = StakePoolId;
-    type StakingEventsHandler = ();
-    type StakeId = u64;
-    type SlashId = u64;
-}
-
 impl membership::Trait for Test {
     type Event = MetaEvent;
     type MemberId = u64;

+ 0 - 1
runtime-modules/storage/Cargo.toml

@@ -21,7 +21,6 @@ common = { package = 'pallet-common', default-features = false, path = '../commo
 sp-io = { package = 'sp-io', default-features = false, git = 'https://github.com/paritytech/substrate.git', rev = 'a200cdb93c6af5763b9c7bf313fa708764ac88ca'}
 sp-core = { package = 'sp-core', default-features = false, git = 'https://github.com/paritytech/substrate.git', rev = 'a200cdb93c6af5763b9c7bf313fa708764ac88ca'}
 balances = { package = 'pallet-balances', default-features = false, git = 'https://github.com/paritytech/substrate.git', rev = 'a200cdb93c6af5763b9c7bf313fa708764ac88ca'}
-stake = { package = 'pallet-stake', default-features = false, path = '../stake'}
 minting = { package = 'pallet-token-mint', default-features = false, path = '../token-minting'}
 recurringrewards = { package = 'pallet-recurring-reward', default-features = false, path = '../recurring-reward'}
 staking-handler = { package = 'staking-handler', default-features = false, path = '../staking-handler'}

+ 0 - 9
runtime-modules/storage/src/tests/mock.rs

@@ -133,7 +133,6 @@ impl pallet_timestamp::Trait for Test {
 
 parameter_types! {
     pub const ExistentialDeposit: u32 = 0;
-    pub const StakePoolId: [u8; 8] = *b"joystake";
 }
 
 impl balances::Trait for Test {
@@ -206,14 +205,6 @@ impl membership::Trait for Test {
     type ActorId = u32;
 }
 
-impl stake::Trait for Test {
-    type Currency = Balances;
-    type StakePoolId = StakePoolId;
-    type StakingEventsHandler = ();
-    type StakeId = u64;
-    type SlashId = u64;
-}
-
 impl minting::Trait for Test {
     type Currency = Balances;
     type MintId = u64;