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§
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>
Sourcetype MaxAgentNameLengthConstraint: Get<u32>
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.
Sourcetype MaxAgentUrlLengthConstraint: Get<u32>
type MaxAgentUrlLengthConstraint: Get<u32>
This is needed on agent::Agent to set the url
field BoundedVec max
length.
type MaxAgentMetadataLengthConstraint: Get<u32>
type DefaultDividendsParticipationWeight: Get<Percent>
Sourcetype DefaultAgentUpdateCooldown: Get<BlockNumberFor<Self>>
type DefaultAgentUpdateCooldown: Get<BlockNumberFor<Self>>
Default Cooldown (in blocks) in which an agent needs to wait between each update_agent
call.
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
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.