Trait Config

Source
pub trait Config:
    Config
    + Config
    + Config {
Show 17 associated items type RuntimeEvent: From<Event<Self>> + IsType<<Self as Config>::RuntimeEvent>; type PalletId: Get<PalletId>; type MinApplicationDataLength: Get<u32>; type MaxApplicationDataLength: Get<u32>; type ApplicationExpiration: Get<BlockNumberFor<Self>>; type MaxPenaltyPercentage: Get<Percent>; type DefaultTreasuryEmissionFee: Get<Percent>; type DefaultProposalCost: Get<<<Self as Config>::Currency as Currency<<Self as Config>::AccountId>>::Balance>; type DefaultProposalExpiration: Get<BlockNumberFor<Self>>; type DefaultAgentApplicationCost: Get<<<Self as Config>::Currency as Currency<<Self as Config>::AccountId>>::Balance>; type DefaultAgentApplicationExpiration: Get<BlockNumberFor<Self>>; type DefaultProposalRewardTreasuryAllocation: Get<Percent>; type DefaultMaxProposalRewardTreasuryAllocation: Get<<<Self as Config>::Currency as Currency<<Self as Config>::AccountId>>::Balance>; type DefaultProposalRewardInterval: Get<BlockNumberFor<Self>>; type Currency: Currency<Self::AccountId, Balance = u128> + Send + Sync; type Permission0: Permission0Api<OriginFor<Self>> + Permission0CuratorApi<Self::AccountId, OriginFor<Self>, BlockNumberFor<Self>>; type WeightInfo: WeightInfo;
}
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 RuntimeEvent: From<Event<Self>> + IsType<<Self as Config>::RuntimeEvent>

Source

type PalletId: Get<PalletId>

Source

type MinApplicationDataLength: Get<u32>

Source

type MaxApplicationDataLength: Get<u32>

Source

type ApplicationExpiration: Get<BlockNumberFor<Self>>

Source

type MaxPenaltyPercentage: Get<Percent>

Source

type DefaultTreasuryEmissionFee: Get<Percent>

Source

type DefaultProposalCost: Get<<<Self as Config>::Currency as Currency<<Self as Config>::AccountId>>::Balance>

Source

type DefaultProposalExpiration: Get<BlockNumberFor<Self>>

Source

type DefaultAgentApplicationCost: Get<<<Self as Config>::Currency as Currency<<Self as Config>::AccountId>>::Balance>

Source

type DefaultAgentApplicationExpiration: Get<BlockNumberFor<Self>>

Source

type DefaultProposalRewardTreasuryAllocation: Get<Percent>

Source

type DefaultMaxProposalRewardTreasuryAllocation: Get<<<Self as Config>::Currency as Currency<<Self as Config>::AccountId>>::Balance>

Source

type DefaultProposalRewardInterval: Get<BlockNumberFor<Self>>

Source

type Currency: Currency<Self::AccountId, Balance = u128> + Send + Sync

Source

type Permission0: Permission0Api<OriginFor<Self>> + Permission0CuratorApi<Self::AccountId, OriginFor<Self>, BlockNumberFor<Self>>

Source

type WeightInfo: WeightInfo

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§