Skip to content

Commit

Permalink
Update to latest master (paritytech#137)
Browse files Browse the repository at this point in the history
  • Loading branch information
gavofyork authored Feb 13, 2019
1 parent 1443387 commit 08f76e0
Show file tree
Hide file tree
Showing 7 changed files with 417 additions and 211 deletions.
235 changes: 150 additions & 85 deletions Cargo.lock

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions runtime/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -188,11 +188,13 @@ impl session::Trait for Runtime {
}

impl staking::Trait for Runtime {
type Currency = Balances;
type OnRewardMinted = Treasury;
type Event = Event;
}

impl democracy::Trait for Runtime {
type Currency = Balances;
type Proposal = Call;
type Event = Event;
}
Expand All @@ -212,6 +214,7 @@ impl council::motions::Trait for Runtime {
}

impl treasury::Trait for Runtime {
type Currency = Balances;
type ApproveOrigin = council_motions::EnsureMembers<_4>;
type RejectOrigin = council_motions::EnsureMembers<_2>;
type Event = Event;
Expand Down
4 changes: 2 additions & 2 deletions runtime/src/parachains.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ use srml_support::dispatch::Result;
use inherents::{ProvideInherent, InherentData, RuntimeString, MakeFatalError, InherentIdentifier};

#[cfg(any(feature = "std", test))]
use sr_primitives::{self, ChildrenStorageMap};
use sr_primitives::{StorageOverlay, ChildrenStorageOverlay};

#[cfg(any(feature = "std", test))]
use rstd::marker::PhantomData;
Expand All @@ -54,7 +54,7 @@ decl_storage! {
add_extra_genesis {
config(parachains): Vec<(ParaId, Vec<u8>, Vec<u8>)>;
config(_phdata): PhantomData<T>;
build(|storage: &mut sr_primitives::StorageMap, _: &mut ChildrenStorageMap, config: &GenesisConfig<T>| {
build(|storage: &mut StorageOverlay, _: &mut ChildrenStorageOverlay, config: &GenesisConfig<T>| {
use codec::Encode;

let mut p = config.parachains.clone();
Expand Down
Loading

0 comments on commit 08f76e0

Please sign in to comment.