pub trait Config<I: 'static = ()>: Config {
Show 16 associated items type Currency: Currency<Self::AccountId> + ReservableCurrency<Self::AccountId>; type ApproveOrigin: EnsureOrigin<Self::RuntimeOrigin>; type RejectOrigin: EnsureOrigin<Self::RuntimeOrigin>; type RuntimeEvent: From<Event<Self, I>> + IsType<<Self as Config>::RuntimeEvent>; type OnSlash: OnUnbalanced<NegativeImbalanceOf<Self, I>>; type ProposalBond: Get<Permill>; type ProposalBondMinimum: Get<BalanceOf<Self, I>>; type ProposalBondMaximum: Get<Option<BalanceOf<Self, I>>>; type SpendPeriod: Get<Self::BlockNumber>; type Burn: Get<Permill>; type PalletId: Get<PalletId>; type BurnDestination: OnUnbalanced<NegativeImbalanceOf<Self, I>>; type WeightInfo: WeightInfo; type SpendFunds: SpendFunds<Self, I>; type MaxApprovals: Get<u32>; type SpendOrigin: EnsureOrigin<Self::RuntimeOrigin, Success = BalanceOf<Self, I>>;
}
Expand description

Configuration trait of this pallet.

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

Required Associated Types§

The staking balance.

Origin from which approvals must come.

Origin from which rejections must come.

The overarching event type.

Handler for the unbalanced decrease when slashing for a rejected proposal or bounty.

Fraction of a proposal’s value that should be bonded in order to place the proposal. An accepted proposal gets these back. A rejected proposal does not.

Minimum amount of funds that should be placed in a deposit for making a proposal.

Maximum amount of funds that should be placed in a deposit for making a proposal.

Period between successive spends.

Percentage of spare funds (if any) that are burnt per spend period.

The treasury’s pallet id, used for deriving its sovereign account ID.

Handler for the unbalanced decrease when treasury funds are burned.

Weight information for extrinsics in this pallet.

Runtime hooks to external pallet using treasury to compute spend funds.

The maximum number of approvals that can wait in the spending queue.

NOTE: This parameter is also used within the Bounties Pallet extension if enabled.

The origin required for approving spends from the treasury outside of the proposal process. The Success value is the maximum amount that this origin is allowed to spend at a time.

Implementors§