This commit is contained in:
David Palm
2020-09-15 23:41:28 +02:00
parent b3687af2bf
commit 303c5f4742
4 changed files with 90 additions and 1 deletions
+1
View File
@@ -20,6 +20,7 @@ pallet-aura = { version = "2.0.0-rc6", default-features = false }
pallet-balances = { version = "2.0.0-rc6", default-features = false }
pallet-grandpa = { version = "2.0.0-rc6", default-features = false }
pallet-randomness-collective-flip = { version = "2.0.0-rc6", default-features = false }
pallet-staking = { version = "2.0.0-rc6", default-features = false }
pallet-sudo = { version = "2.0.0-rc6", default-features = false }
pallet-timestamp = { version = "2.0.0-rc6", default-features = false }
pallet-transaction-payment = { version = "2.0.0-rc6", default-features = false }
+26
View File
@@ -82,6 +82,7 @@ pub use frame_support::{
StorageValue,
};
pub use pallet_balances::Call as BalancesCall;
pub use pallet_staking::Call as StakingCall;
pub use pallet_timestamp::Call as TimestampCall;
#[cfg(any(feature = "std", test))]
pub use sp_runtime::BuildStorage;
@@ -305,6 +306,31 @@ impl pallet_sudo::Trait for Runtime {
type Call = Call;
}
// impl pallet_staking::Trait for Runtime {
// type Currency = Balances;
// type UnixTime = pallet_timestamp::Module<Self>;
// type CurrencyToVote = CurrencyToVoteHandler;
// type RewardRemainder = ();
// type Event = ();
// type Slash = ();
// type Reward = ();
// type SessionsPerEra = ();
// type SlashDeferDuration = ();
// type SlashCancelOrigin = frame_system::EnsureRoot<Self::AccountId>;
// type BondingDuration = ();
// type SessionInterface = Self;
// type RewardCurve = RewardCurve;
// type NextNewSession = Session;
// type ElectionLookahead = ();
// type Call = Call;
// type MaxIterations = MaxIterations;
// type MinSolutionScoreBump = ();
// type MaxNominatorRewardedPerValidator = MaxNominatorRewardedPerValidator;
// type UnsignedPriority = ();
// type WeightInfo = ();
// }
construct_runtime!(
pub enum Runtime where
Block = Block,