Trait pallet_society::Config [−][src]
pub trait Config<I = DefaultInstance>: Config {}Show associated items
type Event: From<Event<Self, I>> + Into<<Self as Config>::Event>; 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::Origin>; type SuspensionJudgementOrigin: EnsureOrigin<Self::Origin>; type ChallengePeriod: Get<Self::BlockNumber>; type MaxCandidateIntake: Get<u32>;
Expand description
The module’s configuration trait.
Associated Types
type Currency: ReservableCurrency<Self::AccountId>
type Currency: ReservableCurrency<Self::AccountId>
The currency type used for bidding.
type Randomness: Randomness<Self::Hash, Self::BlockNumber>
type Randomness: Randomness<Self::Hash, Self::BlockNumber>
Something that provides randomness in the runtime.
The minimum amount of a deposit required for a bid to be made.
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.
type 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.
The amount of incentive paid within each period. Doesn’t include VoterTip.
type MembershipChanged: ChangeMembers<Self::AccountId>
type MembershipChanged: ChangeMembers<Self::AccountId>
The receiver of the signal for when the members have changed.
type RotationPeriod: Get<Self::BlockNumber>
type RotationPeriod: Get<Self::BlockNumber>
The number of blocks between candidate/membership rotation periods.
type MaxLockDuration: Get<Self::BlockNumber>
type MaxLockDuration: Get<Self::BlockNumber>
The maximum duration of the payout lock.
type FounderSetOrigin: EnsureOrigin<Self::Origin>
type FounderSetOrigin: EnsureOrigin<Self::Origin>
The origin that is allowed to call found
.
type SuspensionJudgementOrigin: EnsureOrigin<Self::Origin>
type SuspensionJudgementOrigin: EnsureOrigin<Self::Origin>
The origin that is allowed to make suspension judgements.
type ChallengePeriod: Get<Self::BlockNumber>
type ChallengePeriod: Get<Self::BlockNumber>
The number of blocks between membership challenges.
type MaxCandidateIntake: Get<u32>
type MaxCandidateIntake: Get<u32>
The maximum number of candidates that we accept per round.