Files
pezkuwi-sdk/bizinikiwi/pezframe/transaction-payment/asset-conversion-tx-payment
pezkuwichain 4c8f281051 style: Migrate to stable-only rustfmt configuration
- Remove nightly-only features from .rustfmt.toml and vendor/ss58-registry/rustfmt.toml
- Removed features: imports_granularity, wrap_comments, comment_width,
  reorder_impl_items, spaces_around_ranges, binop_separator,
  match_arm_blocks, trailing_semicolon, trailing_comma
- Format all 898 affected files with stable rustfmt
- Ensures long-term reliability without nightly toolchain dependency
2025-12-23 09:37:11 +03:00
..

pezpallet-asset-conversion-tx-payment

Asset Conversion Transaction Payment Pezpallet

This pezpallet allows runtimes that include it to pay for transactions in assets other than the native token of the chain.

Overview

It does this by extending transactions to include an optional AssetId that specifies the asset to be used for payment (defaulting to the native token on None). It expects an [OnChargeAssetTransaction] implementation analogously to [pezpallet-transaction-payment]. The included [AssetConversionAdapter] (implementing [OnChargeAssetTransaction]) determines the fee amount by converting the fee calculated by [pezpallet-transaction-payment] into the desired asset.

Integration

This pezpallet wraps FRAME's transaction payment pezpallet and functions as a replacement. This means you should include both pallets in your construct_runtime macro, but only include this pezpallet's [TransactionExtension] ([ChargeAssetTxPayment]).

License: Apache-2.0