referrerpolicy=no-referrer-when-downgrade
pallet_society::pallet

Type Alias RawEvent

Source
pub type RawEvent<T, I = ()> = Event<T, I>;
👎Deprecated: use Event instead
Expand description

Old name generated by decl_event.

Aliased Type§

enum RawEvent<T, I = ()> {
Show 18 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, }, DepositPoked { who: <T as Config>::AccountId, old_deposit: <<T as Config<I>>::Currency as Currency<<T as Config>::AccountId>>::Balance, new_deposit: <<T as Config<I>>::Currency as Currency<<T as Config>::AccountId>>::Balance, }, // 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
§offer: <<T as Config<I>>::Currency as Currency<<T as Config>::AccountId>>::Balance
§

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.

Fields

§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

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.

Fields

§primary: <T as Config>::AccountId
§candidates: Vec<<T as Config>::AccountId>
§

SuspendedMemberJudgement

A suspended member has been judged.

Fields

§who: <T as Config>::AccountId
§judged: bool
§

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

Fields

§candidate: <T as Config>::AccountId
§voter: <T as Config>::AccountId
§vote: bool
§

DefenderVote

A vote has been placed for a defending member

Fields

§voter: <T as Config>::AccountId
§vote: bool
§

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.

Fields

§value: <<T as Config<I>>::Currency as Currency<<T as Config>::AccountId>>::Balance
§

Elevated

A [member] got elevated to [rank].

Fields

§member: <T as Config>::AccountId
§rank: u32
§

DepositPoked

A deposit was poked / adjusted.

Fields

§who: <T as Config>::AccountId
§old_deposit: <<T as Config<I>>::Currency as Currency<<T as Config>::AccountId>>::Balance
§new_deposit: <<T as Config<I>>::Currency as Currency<<T as Config>::AccountId>>::Balance

Trait Implementations

Source§

impl<T: Config<I>, I: 'static> Clone for Event<T, I>

Source§

fn clone(&self) -> Self

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<T: Config<I>, I: 'static> Debug for Event<T, I>

Source§

fn fmt(&self, fmt: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<T: Config<I>, I: 'static> Decode for Event<T, I>
where T::AccountId: Decode, <<T as Config<I>>::Currency as Currency<<T as Config>::AccountId>>::Balance: Decode, Vec<T::AccountId>: Decode, GroupParamsFor<T, I>: Decode,

Source§

fn decode<__CodecInputEdqy: Input>( __codec_input_edqy: &mut __CodecInputEdqy, ) -> Result<Self, Error>

Attempt to deserialise the value from input.
§

fn decode_into<I>( input: &mut I, dst: &mut MaybeUninit<Self>, ) -> Result<DecodeFinished, Error>
where I: Input,

Attempt to deserialize the value from input into a pre-allocated piece of memory. Read more
§

fn skip<I>(input: &mut I) -> Result<(), Error>
where I: Input,

Attempt to skip the encoded value from input. Read more
§

fn encoded_fixed_size() -> Option<usize>

Returns the fixed encoded size of the type. Read more
Source§

impl<T: Config<I>, I: 'static> Encode for Event<T, I>
where T::AccountId: Encode, <<T as Config<I>>::Currency as Currency<<T as Config>::AccountId>>::Balance: Encode, Vec<T::AccountId>: Encode, GroupParamsFor<T, I>: Encode,

Source§

fn size_hint(&self) -> usize

If possible give a hint of expected size of the encoding. Read more
Source§

fn encode_to<__CodecOutputEdqy: Output + ?Sized>( &self, __codec_dest_edqy: &mut __CodecOutputEdqy, )

Convert self to a slice and append it to the destination.
§

fn encode(&self) -> Vec<u8>

Convert self to an owned vector.
§

fn using_encoded<R, F>(&self, f: F) -> R
where F: FnOnce(&[u8]) -> R,

Convert self to a slice and then invoke the given closure with it.
§

fn encoded_size(&self) -> usize

Calculates the encoded size. Read more
Source§

impl<T: Config<I>, I: 'static> PartialEq for Event<T, I>

Source§

fn eq(&self, other: &Self) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl<T, I> TypeInfo for Event<T, I>
where T::AccountId: TypeInfo + 'static, <<T as Config<I>>::Currency as Currency<<T as Config>::AccountId>>::Balance: TypeInfo + 'static, Vec<T::AccountId>: TypeInfo + 'static, GroupParamsFor<T, I>: TypeInfo + 'static, PhantomData<(T, I)>: TypeInfo + 'static, T: Config<I> + 'static, I: 'static,

Source§

type Identity = Event<T, I>

The type identifying for which type info is provided. Read more
Source§

fn type_info() -> Type

Returns the static type identifier for Self.
Source§

impl<T: Config<I>, I: 'static> DecodeWithMemTracking for Event<T, I>
where T::AccountId: DecodeWithMemTracking, <<T as Config<I>>::Currency as Currency<<T as Config>::AccountId>>::Balance: DecodeWithMemTracking, Vec<T::AccountId>: DecodeWithMemTracking, GroupParamsFor<T, I>: DecodeWithMemTracking,

Source§

impl<T: Config<I>, I: 'static> EncodeLike for Event<T, I>
where T::AccountId: Encode, <<T as Config<I>>::Currency as Currency<<T as Config>::AccountId>>::Balance: Encode, Vec<T::AccountId>: Encode, GroupParamsFor<T, I>: Encode,

Source§

impl<T: Config<I>, I: 'static> Eq for Event<T, I>