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§

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, Self::BlockNumber>

Something that provides randomness in the runtime.

source

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.

source

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.

source

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.

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 MembershipChanged: ChangeMembers<Self::AccountId>

The receiver of the signal for when the members have changed.

source

type RotationPeriod: Get<Self::BlockNumber>

The number of blocks between candidate/membership rotation periods.

source

type MaxLockDuration: Get<Self::BlockNumber>

The maximum duration of the payout lock.

source

type FounderSetOrigin: EnsureOrigin<Self::RuntimeOrigin>

The origin that is allowed to call found.

source

type SuspensionJudgementOrigin: EnsureOrigin<Self::RuntimeOrigin>

The origin that is allowed to make suspension judgements.

source

type ChallengePeriod: Get<Self::BlockNumber>

The number of blocks between membership challenges.

source

type MaxCandidateIntake: Get<u32>

The maximum number of candidates that we accept per round.

Implementors§