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
+16 -16
View File
@@ -1111,40 +1111,40 @@ decl_event! {
AccountId = <T as system::Trait>::AccountId,
Balance = BalanceOf<T, I>
{
/// The society is founded by the given identity.
/// The society is founded by the given identity. [founder]
Founded(AccountId),
/// A membership bid just happened. The given account is the candidate's ID and their offer
/// is the second.
/// is the second. [candidate_id, offer]
Bid(AccountId, Balance),
/// A membership bid just happened by vouching. The given account is the candidate's ID and
/// their offer is the second. The vouching party is the third.
/// their offer is the second. The vouching party is the third. [candidate_id, offer, vouching]
Vouch(AccountId, Balance, AccountId),
/// A candidate was dropped (due to an excess of bids in the system).
/// A [candidate] was dropped (due to an excess of bids in the system).
AutoUnbid(AccountId),
/// A candidate was dropped (by their request).
/// A [candidate] was dropped (by their request).
Unbid(AccountId),
/// A candidate was dropped (by request of who vouched for them).
/// A [candidate] was dropped (by request of who vouched for them).
Unvouch(AccountId),
/// A group of candidates have been inducted. The batch's primary is the first value, the
/// batch in full is the second.
/// batch in full is the second. [primary, candidates]
Inducted(AccountId, Vec<AccountId>),
/// A suspended member has been judged
/// A suspended member has been judged. [who, judged]
SuspendedMemberJudgement(AccountId, bool),
/// A candidate has been suspended
/// A [candidate] has been suspended
CandidateSuspended(AccountId),
/// A member has been suspended
/// A [member] has been suspended
MemberSuspended(AccountId),
/// A member has been challenged
/// A [member] has been challenged
Challenged(AccountId),
/// A vote has been placed (candidate, voter, vote)
/// A vote has been placed [candidate, voter, vote]
Vote(AccountId, AccountId, bool),
/// A vote has been placed for a defending member (voter, vote)
/// A vote has been placed for a defending member [voter, vote]
DefenderVote(AccountId, bool),
/// A new max member count has been set
/// A new [max] member count has been set
NewMaxMembers(u32),
/// Society is unfounded.
/// Society is unfounded. [founder]
Unfounded(AccountId),
/// Some funds were deposited into the society account.
/// Some funds were deposited into the society account. [value]
Deposit(Balance),
}
}