Trait Config

Source
pub trait Config: Config {
Show 28 associated items type DefaultMaxAllowedValidators: Get<u16>; type DefaultMinValidatorStake: Get<<<Self as Config>::Currency as Currency<<Self as Config>::AccountId>>::Balance>; type DefaultRewardInterval: Get<u16>; type DefaultMinNameLength: Get<u16>; type DefaultMaxNameLength: Get<u16>; type DefaultMaxAgentUrlLength: Get<u16>; type DefaultMaxRegistrationsPerBlock: Get<u16>; type DefaultMinAllowedStake: Get<<<Self as Config>::Currency as Currency<<Self as Config>::AccountId>>::Balance>; type DefaultMinStakingFee: Get<u8>; type DefaultMinWeightControlFee: Get<u8>; type DefaultMinBurn: Get<<<Self as Config>::Currency as Currency<<Self as Config>::AccountId>>::Balance>; type DefaultMaxBurn: Get<<<Self as Config>::Currency as Currency<<Self as Config>::AccountId>>::Balance>; type DefaultAdjustmentAlpha: Get<u64>; type DefaultTargetRegistrationsInterval: Get<BlockNumberFor<Self>>; type DefaultTargetRegistrationsPerInterval: Get<u16>; type DefaultMaxRegistrationsPerInterval: Get<u16>; type MaxAgentNameLengthConstraint: Get<u32>; type MaxAgentUrlLengthConstraint: Get<u32>; type MaxAgentMetadataLengthConstraint: Get<u32>; type DefaultDividendsParticipationWeight: Get<Percent>; type DefaultAgentUpdateCooldown: Get<BlockNumberFor<Self>>; type DefaultNamespacePricingConfig: Get<NamespacePricingConfig<Self>>; type RuntimeEvent: From<Event<Self>> + IsType<<Self as Config>::RuntimeEvent>; type Currency: Currency<Self::AccountId, Balance = u128> + ReservableCurrency<Self::AccountId> + Send + Sync; type Governance: GovernanceApi<Self::AccountId>; type Emission: Emission0Api<Self::AccountId>; type Permission0: Permission0NamespacesApi<Self::AccountId, NamespacePath>; 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 DefaultMaxAllowedValidators: Get<u16>

Source

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

Source

type DefaultRewardInterval: Get<u16>

Source

type DefaultMinNameLength: Get<u16>

Source

type DefaultMaxNameLength: Get<u16>

Source

type DefaultMaxAgentUrlLength: Get<u16>

Source

type DefaultMaxRegistrationsPerBlock: Get<u16>

Source

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

Source

type DefaultMinStakingFee: Get<u8>

Source

type DefaultMinWeightControlFee: Get<u8>

Source

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

Source

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

Source

type DefaultAdjustmentAlpha: Get<u64>

Source

type DefaultTargetRegistrationsInterval: Get<BlockNumberFor<Self>>

Source

type DefaultTargetRegistrationsPerInterval: Get<u16>

Source

type DefaultMaxRegistrationsPerInterval: Get<u16>

Source

type MaxAgentNameLengthConstraint: Get<u32>

The storage MaxNameLength should be constrained to be no more than the value of this. This is needed on agent::Agent to set the name field BoundedVec max length.

Source

type MaxAgentUrlLengthConstraint: Get<u32>

This is needed on agent::Agent to set the url field BoundedVec max length.

Source

type MaxAgentMetadataLengthConstraint: Get<u32>

Source

type DefaultDividendsParticipationWeight: Get<Percent>

Source

type DefaultAgentUpdateCooldown: Get<BlockNumberFor<Self>>

Default Cooldown (in blocks) in which an agent needs to wait between each update_agent call.

Source

type DefaultNamespacePricingConfig: Get<NamespacePricingConfig<Self>>

Source

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

Source

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

Source

type Governance: GovernanceApi<Self::AccountId>

Source

type Emission: Emission0Api<Self::AccountId>

Source

type Permission0: Permission0NamespacesApi<Self::AccountId, NamespacePath>

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§