referrerpolicy=no-referrer-when-downgrade

Trait pallet_bounties::pallet::Config

source ·
pub trait Config<I: 'static = ()>: Config + Config<I> {
Show 13 associated items type BountyDepositBase: Get<BalanceOf<Self, I>>; type BountyDepositPayoutDelay: Get<<<Self as Config<I>>::BlockNumberProvider as BlockNumberProvider>::BlockNumber>; type BountyUpdatePeriod: Get<<<Self as Config<I>>::BlockNumberProvider as BlockNumberProvider>::BlockNumber>; type CuratorDepositMultiplier: Get<Permill>; type CuratorDepositMax: Get<Option<BalanceOf<Self, I>>>; type CuratorDepositMin: Get<Option<BalanceOf<Self, I>>>; type BountyValueMinimum: Get<BalanceOf<Self, I>>; type DataDepositPerByte: Get<BalanceOf<Self, I>>; type RuntimeEvent: From<Event<Self, I>> + IsType<<Self as Config>::RuntimeEvent>; type MaximumReasonLength: Get<u32>; type WeightInfo: WeightInfo; type ChildBountyManager: ChildBountyManager<BalanceOf<Self, I>>; type OnSlash: OnUnbalanced<NegativeImbalanceOf<Self, I>>;
}
Expand description

Configuration trait of this pallet.

The main purpose of this trait is to act as an interface between this pallet and the runtime in which it is embedded in. A type, function, or constant in this trait is essentially left to be configured by the runtime that includes this pallet.

Consequently, a runtime that wants to include this pallet must implement this trait.

Required Associated Types§

source

type BountyDepositBase: Get<BalanceOf<Self, I>>

The amount held on deposit for placing a bounty proposal.

source

type BountyDepositPayoutDelay: Get<<<Self as Config<I>>::BlockNumberProvider as BlockNumberProvider>::BlockNumber>

The delay period for which a bounty beneficiary need to wait before claim the payout.

source

type BountyUpdatePeriod: Get<<<Self as Config<I>>::BlockNumberProvider as BlockNumberProvider>::BlockNumber>

Bounty duration in blocks.

source

type CuratorDepositMultiplier: Get<Permill>

The curator deposit is calculated as a percentage of the curator fee.

This deposit has optional upper and lower bounds with CuratorDepositMax and CuratorDepositMin.

source

type CuratorDepositMax: Get<Option<BalanceOf<Self, I>>>

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

source

type CuratorDepositMin: Get<Option<BalanceOf<Self, I>>>

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

source

type BountyValueMinimum: Get<BalanceOf<Self, I>>

Minimum value for a bounty.

source

type DataDepositPerByte: Get<BalanceOf<Self, I>>

The amount held on deposit per byte within the tip report reason or bounty description.

source

type RuntimeEvent: From<Event<Self, I>> + IsType<<Self as Config>::RuntimeEvent>

The overarching event type.

source

type MaximumReasonLength: Get<u32>

Maximum acceptable reason length.

Benchmarks depend on this value, be sure to update weights file when changing this value

source

type WeightInfo: WeightInfo

Weight information for extrinsics in this pallet.

source

type ChildBountyManager: ChildBountyManager<BalanceOf<Self, I>>

The child bounty manager.

source

type OnSlash: OnUnbalanced<NegativeImbalanceOf<Self, I>>

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

Object Safety§

This trait is not object safe.

Implementors§