referrerpolicy=no-referrer-when-downgrade

Trait pallet_society::pallet::Config

source ·
pub trait Config<I: 'static = ()>: Config {
Show 14 associated items type RuntimeEvent: From<Event<Self, I>> + IsType<<Self as Config>::RuntimeEvent>; type PalletId: Get<PalletId>; type Currency: ReservableCurrency<Self::AccountId>; type Randomness: Randomness<Self::Hash, BlockNumberFor<Self>>; type GraceStrikes: Get<u32>; type PeriodSpend: Get<<<Self as Config<I>>::Currency as Currency<<Self as Config>::AccountId>>::Balance>; type VotingPeriod: Get<BlockNumberFor<Self>>; type ClaimPeriod: Get<BlockNumberFor<Self>>; type MaxLockDuration: Get<BlockNumberFor<Self>>; type FounderSetOrigin: EnsureOrigin<Self::RuntimeOrigin>; type ChallengePeriod: Get<BlockNumberFor<Self>>; type MaxPayouts: Get<u32>; type MaxBids: Get<u32>; type WeightInfo: WeightInfo;
}
Expand description

Configuration trait of this pallet.

The main purpose of this trait is to act as an interface between this pallet and the runtime in which it is embedded in. A type, function, or constant in this trait is essentially left to be configured by the runtime that includes this pallet.

Consequently, a runtime that wants to include this pallet must implement this trait.

Required Associated Types§

source

type RuntimeEvent: From<Event<Self, I>> + IsType<<Self as Config>::RuntimeEvent>

The overarching event type.

source

type PalletId: Get<PalletId>

The societies’s pallet id

source

type Currency: ReservableCurrency<Self::AccountId>

The currency type used for bidding.

source

type Randomness: Randomness<Self::Hash, BlockNumberFor<Self>>

Something that provides randomness in the runtime.

source

type GraceStrikes: Get<u32>

The maximum number of strikes before a member gets funds slashed.

source

type PeriodSpend: Get<<<Self as Config<I>>::Currency as Currency<<Self as Config>::AccountId>>::Balance>

The amount of incentive paid within each period. Doesn’t include VoterTip.

source

type VotingPeriod: Get<BlockNumberFor<Self>>

The number of blocks on which new candidates should be voted on. Together with ClaimPeriod, this sums to the number of blocks between candidate intake periods.

source

type ClaimPeriod: Get<BlockNumberFor<Self>>

The number of blocks on which new candidates can claim their membership and be the named head.

source

type MaxLockDuration: Get<BlockNumberFor<Self>>

The maximum duration of the payout lock.

source

type FounderSetOrigin: EnsureOrigin<Self::RuntimeOrigin>

The origin that is allowed to call found.

source

type ChallengePeriod: Get<BlockNumberFor<Self>>

The number of blocks between membership challenges.

source

type MaxPayouts: Get<u32>

The maximum number of payouts a member may have waiting unclaimed.

source

type MaxBids: Get<u32>

The maximum number of bids at once.

source

type WeightInfo: WeightInfo

Weight information for extrinsics in this pallet.

Object Safety§

This trait is not object safe.

Implementors§