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
+12 -11
View File
@@ -462,26 +462,27 @@ decl_storage! {
decl_event!(
pub enum Event<T> where AccountId = <T as frame_system::Trait>::AccountId, Balance = BalanceOf<T> {
/// A name was set or reset (which will remove all judgements).
/// A name was set or reset (which will remove all judgements). [who]
IdentitySet(AccountId),
/// A name was cleared, and the given balance returned.
/// A name was cleared, and the given balance returned. [who, deposit]
IdentityCleared(AccountId, Balance),
/// A name was removed and the given balance slashed.
/// A name was removed and the given balance slashed. [who, deposit]
IdentityKilled(AccountId, Balance),
/// A judgement was asked from a registrar.
/// A judgement was asked from a registrar. [who, registrar_index]
JudgementRequested(AccountId, RegistrarIndex),
/// A judgement request was retracted.
/// A judgement request was retracted. [who, registrar_index]
JudgementUnrequested(AccountId, RegistrarIndex),
/// A judgement was given by a registrar.
/// A judgement was given by a registrar. [target, registrar_index]
JudgementGiven(AccountId, RegistrarIndex),
/// A registrar was added.
/// A registrar was added. [registrar_index]
RegistrarAdded(RegistrarIndex),
/// A sub-identity (first) was added to an identity (second) and the deposit paid.
/// A sub-identity was added to an identity and the deposit paid. [sub, main, deposit]
SubIdentityAdded(AccountId, AccountId, Balance),
/// A sub-identity (first) was removed from an identity (second) and the deposit freed.
/// A sub-identity was removed from an identity and the deposit freed.
/// [sub, main, deposit]
SubIdentityRemoved(AccountId, AccountId, Balance),
/// A sub-identity (first arg) was cleared, and the given deposit repatriated from the
/// main identity account (second arg) to the sub-identity account.
/// A sub-identity was cleared, and the given deposit repatriated from the
/// main identity account to the sub-identity account. [sub, main, deposit]
SubIdentityRevoked(AccountId, AccountId, Balance),
}
);