referrerpolicy=no-referrer-when-downgrade

Crate pallet_skip_feeless_payment

source ·
Expand description

§Skip Feeless Payment Pallet

This pallet allows runtimes that include it to skip payment of transaction fees for dispatchables marked by #[pallet::feeless_if].

§Overview

It does this by wrapping an existing [TransactionExtension] implementation (e.g. [pallet-transaction-payment]) and checking if the dispatchable is feeless before applying the wrapped extension. If the dispatchable is indeed feeless, the extension is skipped and a custom event is emitted instead. Otherwise, the extension is applied as usual.

§Integration

This pallet wraps an existing transaction payment pallet. This means you should both pallets in your construct_runtime macro and include this pallet’s [TransactionExtension] (SkipCheckIfFeeless) that would accept the existing one as an argument.

Re-exports§

Modules§

  • The pallet module in each FRAME pallet hosts the most important items needed to construct this pallet.

Structs§

  • A [TransactionExtension] that skips the wrapped extension if the dispatchable is feeless.

Enums§