Trait pallet_transaction_payment::Config
source · [−]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;
}
Associated Types
type OnChargeTransaction: OnChargeTransaction<Self>
type OnChargeTransaction: OnChargeTransaction<Self>
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.
type TransactionByteFee: Get<<<Self as Config>::OnChargeTransaction as OnChargeTransaction<Self>>::Balance>
type TransactionByteFee: Get<<<Self as Config>::OnChargeTransaction as OnChargeTransaction<Self>>::Balance>
The fee to be paid for making a transaction; the per-byte portion.
type WeightToFee: WeightToFeePolynomial<Balance = <<Self as Config>::OnChargeTransaction as OnChargeTransaction<Self>>::Balance>
type WeightToFee: WeightToFeePolynomial<Balance = <<Self as Config>::OnChargeTransaction as OnChargeTransaction<Self>>::Balance>
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.