Type Alias pallet_society::pallet::RawEvent
source · pub type RawEvent<T, I = ()> = Event<T, I>;
Event
insteadExpand description
Old name generated by decl_event
.
Aliased Type§
enum RawEvent<T, I = ()> {
Show 17 variants
Founded {
founder: <T as Config>::AccountId,
},
Bid {
candidate_id: <T as Config>::AccountId,
offer: <<T as Config<I>>::Currency as Currency<<T as Config>::AccountId>>::Balance,
},
Vouch {
candidate_id: <T as Config>::AccountId,
offer: <<T as Config<I>>::Currency as Currency<<T as Config>::AccountId>>::Balance,
vouching: <T as Config>::AccountId,
},
AutoUnbid {
candidate: <T as Config>::AccountId,
},
Unbid {
candidate: <T as Config>::AccountId,
},
Unvouch {
candidate: <T as Config>::AccountId,
},
Inducted {
primary: <T as Config>::AccountId,
candidates: Vec<<T as Config>::AccountId>,
},
SuspendedMemberJudgement {
who: <T as Config>::AccountId,
judged: bool,
},
CandidateSuspended {
candidate: <T as Config>::AccountId,
},
MemberSuspended {
member: <T as Config>::AccountId,
},
Challenged {
member: <T as Config>::AccountId,
},
Vote {
candidate: <T as Config>::AccountId,
voter: <T as Config>::AccountId,
vote: bool,
},
DefenderVote {
voter: <T as Config>::AccountId,
vote: bool,
},
NewParams {
params: GroupParams<<<T as Config<I>>::Currency as Currency<<T as Config>::AccountId>>::Balance>,
},
Unfounded {
founder: <T as Config>::AccountId,
},
Deposit {
value: <<T as Config<I>>::Currency as Currency<<T as Config>::AccountId>>::Balance,
},
Elevated {
member: <T as Config>::AccountId,
rank: u32,
},
// some variants omitted
}
Variants§
Founded
The society is founded by the given identity.
Fields
founder: <T as Config>::AccountId
Bid
A membership bid just happened. The given account is the candidate’s ID and their offer is the second.
Fields
candidate_id: <T as Config>::AccountId
Vouch
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.
AutoUnbid
A candidate was dropped (due to an excess of bids in the system).
Fields
candidate: <T as Config>::AccountId
Unbid
A candidate was dropped (by their request).
Fields
candidate: <T as Config>::AccountId
Unvouch
A candidate was dropped (by request of who vouched for them).
Fields
candidate: <T as Config>::AccountId
Inducted
A group of candidates have been inducted. The batch’s primary is the first value, the batch in full is the second.
SuspendedMemberJudgement
A suspended member has been judged.
CandidateSuspended
A candidate has been suspended
Fields
candidate: <T as Config>::AccountId
MemberSuspended
A member has been suspended
Fields
member: <T as Config>::AccountId
Challenged
A member has been challenged
Fields
member: <T as Config>::AccountId
Vote
A vote has been placed
DefenderVote
A vote has been placed for a defending member
NewParams
A new set of [params] has been set for the group.
Fields
params: GroupParams<<<T as Config<I>>::Currency as Currency<<T as Config>::AccountId>>::Balance>
Unfounded
Society is unfounded.
Fields
founder: <T as Config>::AccountId
Deposit
Some funds were deposited into the society account.
Elevated
A [member] got elevated to [rank].