Trait pallet_transaction_payment::pallet::Config[][src]

pub trait Config: Config {
    type OnChargeTransaction: OnChargeTransaction<Self>;
    type TransactionByteFee: Get<<<Self as Config>::OnChargeTransaction as OnChargeTransaction<Self>>::Balance>;
    type WeightToFee: WeightToFeePolynomial<Balance = <<Self as Config>::OnChargeTransaction as OnChargeTransaction<Self>>::Balance>;
    type FeeMultiplierUpdate: MultiplierUpdate;
}
Expand description

Configuration trait of this pallet.

Implement this type for a runtime in order to customize this pallet.

Associated Types

Handler for withdrawing, refunding and depositing the transaction fee. Transaction fees are withdrawn before the transaction is executed. After the transaction was executed the transaction weight can be adjusted, depending on the used resources by the transaction. If the transaction weight is lower than expected, parts of the transaction fee might be refunded. In the end the fees can be deposited.

The fee to be paid for making a transaction; the per-byte portion.

Convert a weight value into a deductible fee based on the currency type.

Update the multiplier of the next block, based on the previous block’s weight.

Implementors