pallet_transaction_fees

Trait Config

source
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§

source

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

pallet-transaction-fees events

source

type MinReplicationFactor: Get<u16>

Minimum desired number of replicas of the blockchain to be stored by the network, impacts storage fees.

source

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

How many credits there is in circulation.

source

type TotalSpacePledged: Get<u128>

How much space there is on the network.

source

type BlockchainHistorySize: Get<u128>

How big is the history of the blockchain in archived state (thus includes erasure coding, but not replication).

source

type Currency: Currency<Self::AccountId>

source

type FindBlockRewardAddress: FindBlockRewardAddress<Self::AccountId>

source

type DynamicCostOfStorage: Get<bool>

Whether dynamic cost of storage should be used

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§