13 major breaking releases

13.0.0 Sep 26, 2024
12.0.0 Jul 18, 2024
11.0.0 Jul 12, 2024
10.0.0 Jun 21, 2024
0.0.0 Nov 14, 2023

#17 in #skip

Download history 1/week @ 2024-07-29 58/week @ 2024-08-05 8/week @ 2024-08-12 1/week @ 2024-08-19 4/week @ 2024-09-02 43/week @ 2024-09-09 47/week @ 2024-09-16 179/week @ 2024-09-23 73/week @ 2024-09-30 52/week @ 2024-10-07 120/week @ 2024-10-14 183/week @ 2024-10-21 213/week @ 2024-10-28 253/week @ 2024-11-04 20195/week @ 2024-11-11

20,845 downloads per month
Used in 8 crates (via polkadot-sdk)

GPL-3.0-only

2MB
35K SLoC

Release

Polkadot SDK stable2409


lib.rs:

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 SignedExtension 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 SignedExtension (SkipCheckIfFeeless) that would accept the existing one as an argument.

Dependencies

~17–32MB
~522K SLoC