Add Proposed event (#1761)

* Add Proposed event.

* Bump and rebuild
This commit is contained in:
Gav Wood
2019-02-11 17:06:45 +01:00
committed by GitHub
parent d93769b0fd
commit 90a837d4b8
4 changed files with 4 additions and 1 deletions
+1 -1
View File
@@ -64,7 +64,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion {
spec_name: create_runtime_str!("node"),
impl_name: create_runtime_str!("substrate-node"),
authoring_version: 10,
spec_version: 26,
spec_version: 27,
impl_version: 27,
apis: RUNTIME_API_VERSIONS,
};
+3
View File
@@ -98,6 +98,8 @@ decl_module! {
let mut props = Self::public_props();
props.push((index, (*proposal).clone(), who));
<PublicProps<T>>::put(props);
Self::deposit_event(RawEvent::Proposed(index, value));
}
/// Propose a sensitive action to be taken.
@@ -222,6 +224,7 @@ decl_storage! {
decl_event!(
/// An event in this module.
pub enum Event<T> where Balance = BalanceOf<T>, <T as system::Trait>::AccountId {
Proposed(PropIndex, Balance),
Tabled(PropIndex, Balance, Vec<AccountId>),
Started(ReferendumIndex, VoteThreshold),
Passed(ReferendumIndex),