More app-friendly event description (#6684)

* More app-friendly event description

* change origin -> owner

* checked all decl_event! and changed decriptions.

* annotated parameter names for remaining events
This commit is contained in:
warfollowsme | ryabina.io
2020-07-20 14:13:20 +03:00
committed by GitHub
parent 8ae4faba51
commit bbabb17426
30 changed files with 167 additions and 141 deletions
+7
View File
@@ -184,19 +184,26 @@ decl_event! {
{
/// A motion (given hash) has been proposed (by given account) with a threshold (given
/// `MemberCount`).
/// [account, proposal_index, proposal_hash, threshold]
Proposed(AccountId, ProposalIndex, Hash, MemberCount),
/// A motion (given hash) has been voted on by given account, leaving
/// a tally (yes votes and no votes given respectively as `MemberCount`).
/// [account, proposal_hash, voted, yes, no]
Voted(AccountId, Hash, bool, MemberCount, MemberCount),
/// A motion was approved by the required threshold.
/// [proposal_hash]
Approved(Hash),
/// A motion was not approved by the required threshold.
/// [proposal_hash]
Disapproved(Hash),
/// A motion was executed; result will be `Ok` if it returned without error.
/// [proposal_hash, result]
Executed(Hash, DispatchResult),
/// A single member did some action; result will be `Ok` if it returned without error.
/// [proposal_hash, result]
MemberExecuted(Hash, DispatchResult),
/// A proposal was closed because its threshold was reached or after its duration was up.
/// [proposal_hash, yes, no]
Closed(Hash, MemberCount, MemberCount),
}
}