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§
sourcetype RuntimeEvent: From<Event<Self, I>> + IsType<<Self as Config>::RuntimeEvent>
type RuntimeEvent: From<Event<Self, I>> + IsType<<Self as Config>::RuntimeEvent>
The overarching event type.
sourcetype Randomness: Randomness<Self::Hash, BlockNumberFor<Self>>
type Randomness: Randomness<Self::Hash, BlockNumberFor<Self>>
Something that provides randomness in the runtime.
sourcetype GraceStrikes: Get<u32>
type GraceStrikes: Get<u32>
The maximum number of strikes before a member gets funds slashed.
sourcetype PeriodSpend: Get<<<Self as Config<I>>::Currency as Currency<<Self as Config>::AccountId>>::Balance>
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.
sourcetype VotingPeriod: Get<BlockNumberFor<Self>>
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.
sourcetype ClaimPeriod: Get<BlockNumberFor<Self>>
type ClaimPeriod: Get<BlockNumberFor<Self>>
The number of blocks on which new candidates can claim their membership and be the named head.
sourcetype MaxLockDuration: Get<BlockNumberFor<Self>>
type MaxLockDuration: Get<BlockNumberFor<Self>>
The maximum duration of the payout lock.
sourcetype FounderSetOrigin: EnsureOrigin<Self::RuntimeOrigin>
type FounderSetOrigin: EnsureOrigin<Self::RuntimeOrigin>
The origin that is allowed to call found
.
sourcetype ChallengePeriod: Get<BlockNumberFor<Self>>
type ChallengePeriod: Get<BlockNumberFor<Self>>
The number of blocks between membership challenges.
sourcetype MaxPayouts: Get<u32>
type MaxPayouts: Get<u32>
The maximum number of payouts a member may have waiting unclaimed.
sourcetype WeightInfo: WeightInfo
type WeightInfo: WeightInfo
Weight information for extrinsics in this pallet.