pub trait Config: Config {
type RuntimeEvent: From<Event<Self>> + IsType<<Self as Config>::RuntimeEvent>;
type MinReplicationFactor: Get<u16>;
type CreditSupply: Get<<<Self as Config>::Currency as Currency<<Self as Config>::AccountId>>::Balance>;
type TotalSpacePledged: Get<u128>;
type BlockchainHistorySize: Get<u128>;
type Currency: Currency<Self::AccountId>;
type FindBlockRewardAddress: FindBlockRewardAddress<Self::AccountId>;
type DynamicCostOfStorage: Get<bool>;
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§
sourcetype RuntimeEvent: From<Event<Self>> + IsType<<Self as Config>::RuntimeEvent>
type RuntimeEvent: From<Event<Self>> + IsType<<Self as Config>::RuntimeEvent>
pallet-transaction-fees
events
sourcetype MinReplicationFactor: Get<u16>
type MinReplicationFactor: Get<u16>
Minimum desired number of replicas of the blockchain to be stored by the network, impacts storage fees.
sourcetype CreditSupply: Get<<<Self as Config>::Currency as Currency<<Self as Config>::AccountId>>::Balance>
type CreditSupply: Get<<<Self as Config>::Currency as Currency<<Self as Config>::AccountId>>::Balance>
How many credits there is in circulation.
sourcetype TotalSpacePledged: Get<u128>
type TotalSpacePledged: Get<u128>
How much space there is on the network.
sourcetype BlockchainHistorySize: Get<u128>
type BlockchainHistorySize: Get<u128>
How big is the history of the blockchain in archived state (thus includes erasure coding, but not replication).
type Currency: Currency<Self::AccountId>
type FindBlockRewardAddress: FindBlockRewardAddress<Self::AccountId>
sourcetype DynamicCostOfStorage: Get<bool>
type DynamicCostOfStorage: Get<bool>
Whether dynamic cost of storage should be used
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.