pub trait Config: Config + Sized {
Show 29 associated items type WeightInfo: WeightInfo; type RuntimeEvent: From<Event<Self>> + IsType<<Self as Config>::RuntimeEvent>; type Scheduler: ScheduleNamed<Self::BlockNumber, CallOf<Self>, Self::PalletsOrigin>; type Preimages: QueryPreimage + StorePreimage; type Currency: ReservableCurrency<Self::AccountId> + LockableCurrency<Self::AccountId, Moment = Self::BlockNumber>; type EnactmentPeriod: Get<Self::BlockNumber>; type LaunchPeriod: Get<Self::BlockNumber>; type VotingPeriod: Get<Self::BlockNumber>; type VoteLockingPeriod: Get<Self::BlockNumber>; type MinimumDeposit: Get<<<Self as Config>::Currency as Currency<<Self as Config>::AccountId>>::Balance>; type InstantAllowed: Get<bool>; type FastTrackVotingPeriod: Get<Self::BlockNumber>; type CooloffPeriod: Get<Self::BlockNumber>; type MaxVotes: Get<u32>; type MaxProposals: Get<u32>; type MaxDeposits: Get<u32>; type MaxBlacklisted: Get<u32>; type ExternalOrigin: EnsureOrigin<Self::RuntimeOrigin>; type ExternalMajorityOrigin: EnsureOrigin<Self::RuntimeOrigin>; type ExternalDefaultOrigin: EnsureOrigin<Self::RuntimeOrigin>; type SubmitOrigin: EnsureOrigin<Self::RuntimeOrigin, Success = Self::AccountId>; type FastTrackOrigin: EnsureOrigin<Self::RuntimeOrigin>; type InstantOrigin: EnsureOrigin<Self::RuntimeOrigin>; type CancellationOrigin: EnsureOrigin<Self::RuntimeOrigin>; type BlacklistOrigin: EnsureOrigin<Self::RuntimeOrigin>; type CancelProposalOrigin: EnsureOrigin<Self::RuntimeOrigin>; type VetoOrigin: EnsureOrigin<Self::RuntimeOrigin, Success = Self::AccountId>; type PalletsOrigin: From<RawOrigin<Self::AccountId>>; type Slash: OnUnbalanced<<<Self as Config>::Currency as Currency<<Self as Config>::AccountId>>::NegativeImbalance>;
}
Expand description

Configuration trait of this pallet.

Implement this type for a runtime in order to customize this pallet.

Required Associated Types§

The Scheduler.

The Preimage provider.

Currency type for this pallet.

The period between a proposal being approved and enacted.

It should generally be a little more than the unstake period to ensure that voting stakers have an opportunity to remove themselves from the system in the case where they are on the losing side of a vote.

How often (in blocks) new public referenda are launched.

How often (in blocks) to check for new votes.

The minimum period of vote locking.

It should be no shorter than enactment period to ensure that in the case of an approval, those successful voters are locked into the consequences that their votes entail.

The minimum amount to be used as a deposit for a public referendum proposal.

Indicator for whether an emergency origin is even allowed to happen. Some chains may want to set this permanently to false, others may want to condition it on things such as an upgrade having happened recently.

Minimum voting period allowed for a fast-track referendum.

Period in blocks where an external proposal may not be re-submitted after being vetoed.

The maximum number of votes for an account.

Also used to compute weight, an overly big value can lead to extrinsic with very big weight: see delegate for instance.

The maximum number of public proposals that can exist at any time.

The maximum number of deposits a public proposal may have at any time.

The maximum number of items which can be blacklisted.

Origin from which the next tabled referendum may be forced. This is a normal “super-majority-required” referendum.

Origin from which the next tabled referendum may be forced; this allows for the tabling of a majority-carries referendum.

Origin from which the next tabled referendum may be forced; this allows for the tabling of a negative-turnout-bias (default-carries) referendum.

Origin from which the new proposal can be made.

The success variant is the account id of the depositor.

Origin from which the next majority-carries (or more permissive) referendum may be tabled to vote according to the FastTrackVotingPeriod asynchronously in a similar manner to the emergency origin. It retains its threshold method.

Origin from which the next majority-carries (or more permissive) referendum may be tabled to vote immediately and asynchronously in a similar manner to the emergency origin. It retains its threshold method.

Origin from which any referendum may be cancelled in an emergency.

Origin from which proposals may be blacklisted.

Origin from which a proposal may be cancelled and its backers slashed.

Origin for anyone able to veto proposals.

Overarching type of all pallets origins.

Handler for the unbalanced reduction when slashing a preimage deposit.

Implementors§