Sudo module (#1315)

* Sudo module

* Fix comment

* Fix errors

* Fix test

* Update hashes

* Final test fixes and build

* Final hex change
This commit is contained in:
Gav Wood
2018-12-21 13:43:34 +01:00
committed by GitHub
parent d67821a580
commit ef8b94656e
10 changed files with 184 additions and 8 deletions
+9 -2
View File
@@ -47,6 +47,7 @@ extern crate srml_executive as executive;
extern crate srml_grandpa as grandpa;
extern crate srml_session as session;
extern crate srml_staking as staking;
extern crate srml_sudo as sudo;
extern crate srml_system as system;
extern crate srml_timestamp as timestamp;
extern crate srml_treasury as treasury;
@@ -96,8 +97,8 @@ pub const VERSION: RuntimeVersion = RuntimeVersion {
spec_name: create_runtime_str!("node"),
impl_name: create_runtime_str!("substrate-node"),
authoring_version: 10,
spec_version: 10,
impl_version: 0,
spec_version: 11,
impl_version: 11,
apis: RUNTIME_API_VERSIONS,
};
@@ -205,6 +206,11 @@ impl upgrade_key::Trait for Runtime {
type Event = Event;
}
impl sudo::Trait for Runtime {
type Event = Event;
type Proposal = Call;
}
impl grandpa::Trait for Runtime {
type SessionKey = SessionKey;
type Log = Log;
@@ -233,6 +239,7 @@ construct_runtime!(
Treasury: treasury,
Contract: contract::{Module, Call, Config<T>, Event<T>},
UpgradeKey: upgrade_key,
Sudo: sudo,
}
);