Trait pallet_society::pallet::Config
source · pub trait Config<I: 'static = ()>: Config {
Show 15 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, Self::BlockNumber>;
type CandidateDeposit: Get<<<Self as Config<I>>::Currency as Currency<<Self as Config>::AccountId>>::Balance>;
type WrongSideDeduction: Get<<<Self as Config<I>>::Currency as Currency<<Self as Config>::AccountId>>::Balance>;
type MaxStrikes: Get<u32>;
type PeriodSpend: Get<<<Self as Config<I>>::Currency as Currency<<Self as Config>::AccountId>>::Balance>;
type MembershipChanged: ChangeMembers<Self::AccountId>;
type RotationPeriod: Get<Self::BlockNumber>;
type MaxLockDuration: Get<Self::BlockNumber>;
type FounderSetOrigin: EnsureOrigin<Self::RuntimeOrigin>;
type SuspensionJudgementOrigin: EnsureOrigin<Self::RuntimeOrigin>;
type ChallengePeriod: Get<Self::BlockNumber>;
type MaxCandidateIntake: Get<u32>;
}
Expand description
Configuration trait of this pallet.
Implement this type for a runtime in order to customize this pallet.
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 Currency: ReservableCurrency<Self::AccountId>
type Currency: ReservableCurrency<Self::AccountId>
The currency type used for bidding.
sourcetype Randomness: Randomness<Self::Hash, Self::BlockNumber>
type Randomness: Randomness<Self::Hash, Self::BlockNumber>
Something that provides randomness in the runtime.
sourcetype CandidateDeposit: Get<<<Self as Config<I>>::Currency as Currency<<Self as Config>::AccountId>>::Balance>
type CandidateDeposit: Get<<<Self as Config<I>>::Currency as Currency<<Self as Config>::AccountId>>::Balance>
The minimum amount of a deposit required for a bid to be made.
sourcetype WrongSideDeduction: Get<<<Self as Config<I>>::Currency as Currency<<Self as Config>::AccountId>>::Balance>
type WrongSideDeduction: Get<<<Self as Config<I>>::Currency as Currency<<Self as Config>::AccountId>>::Balance>
The amount of the unpaid reward that gets deducted in the case that either a skeptic doesn’t vote or someone votes in the wrong way.
sourcetype MaxStrikes: Get<u32>
type MaxStrikes: Get<u32>
The number of times a member may vote the wrong way (or not at all, when they are a skeptic) before they become suspended.
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 MembershipChanged: ChangeMembers<Self::AccountId>
type MembershipChanged: ChangeMembers<Self::AccountId>
The receiver of the signal for when the members have changed.
sourcetype RotationPeriod: Get<Self::BlockNumber>
type RotationPeriod: Get<Self::BlockNumber>
The number of blocks between candidate/membership rotation periods.
sourcetype MaxLockDuration: Get<Self::BlockNumber>
type MaxLockDuration: Get<Self::BlockNumber>
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 SuspensionJudgementOrigin: EnsureOrigin<Self::RuntimeOrigin>
type SuspensionJudgementOrigin: EnsureOrigin<Self::RuntimeOrigin>
The origin that is allowed to make suspension judgements.
sourcetype ChallengePeriod: Get<Self::BlockNumber>
type ChallengePeriod: Get<Self::BlockNumber>
The number of blocks between membership challenges.
sourcetype MaxCandidateIntake: Get<u32>
type MaxCandidateIntake: Get<u32>
The maximum number of candidates that we accept per round.