Trait pallet_treasury::pallet::Config [−][src]
pub trait Config<I: 'static = ()>: Config {}Show associated items
type Currency: Currency<Self::AccountId> + ReservableCurrency<Self::AccountId>; type ApproveOrigin: EnsureOrigin<Self::Origin>; type RejectOrigin: EnsureOrigin<Self::Origin>; type Event: From<Event<Self, I>> + IsType<<Self as Config>::Event>; type OnSlash: OnUnbalanced<NegativeImbalanceOf<Self, I>>; type ProposalBond: Get<Permill>; type ProposalBondMinimum: Get<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>;
Expand description
Configuration trait of this pallet.
Implement this type for a runtime in order to customize this pallet.
Associated Types
The staking balance.
type ApproveOrigin: EnsureOrigin<Self::Origin>
type ApproveOrigin: EnsureOrigin<Self::Origin>
Origin from which approvals must come.
type RejectOrigin: EnsureOrigin<Self::Origin>
type RejectOrigin: EnsureOrigin<Self::Origin>
Origin from which rejections must come.
type OnSlash: OnUnbalanced<NegativeImbalanceOf<Self, I>>
type OnSlash: OnUnbalanced<NegativeImbalanceOf<Self, I>>
Handler for the unbalanced decrease when slashing for a rejected proposal or bounty.
type ProposalBond: Get<Permill>
type ProposalBond: Get<Permill>
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.
type ProposalBondMinimum: Get<BalanceOf<Self, I>>
type ProposalBondMinimum: Get<BalanceOf<Self, I>>
Minimum amount of funds that should be placed in a deposit for making a proposal.
type SpendPeriod: Get<Self::BlockNumber>
type SpendPeriod: Get<Self::BlockNumber>
Period between successive spends.
The treasury’s pallet id, used for deriving its sovereign account ID.
type BurnDestination: OnUnbalanced<NegativeImbalanceOf<Self, I>>
type BurnDestination: OnUnbalanced<NegativeImbalanceOf<Self, I>>
Handler for the unbalanced decrease when treasury funds are burned.
type WeightInfo: WeightInfo
type WeightInfo: WeightInfo
Weight information for extrinsics in this pallet.
type SpendFunds: SpendFunds<Self, I>
type SpendFunds: SpendFunds<Self, I>
Runtime hooks to external pallet using treasury to compute spend funds.
type MaxApprovals: Get<u32>
type MaxApprovals: Get<u32>
The maximum number of approvals that can wait in the spending queue.