14 major breaking releases

14.1.0 Jan 27, 2025
13.0.0 Sep 26, 2024
12.0.0 Jul 18, 2024
11.0.0 Jul 12, 2024
0.0.0 Nov 14, 2023

#18 in #skip

Download history 22183/week @ 2024-12-02 26871/week @ 2024-12-09 21343/week @ 2024-12-16 5223/week @ 2024-12-23 11375/week @ 2024-12-30 20530/week @ 2025-01-06 33188/week @ 2025-01-13 27821/week @ 2025-01-20 23077/week @ 2025-01-27 28236/week @ 2025-02-03 32676/week @ 2025-02-10 32324/week @ 2025-02-17 8223/week @ 2025-02-24 3013/week @ 2025-03-03 3887/week @ 2025-03-10 2094/week @ 2025-03-17

18,614 downloads per month
Used in 15 crates (via polkadot-sdk)

GPL-3.0-only

2.5MB
39K SLoC

Release

Polkadot SDK Stable 2412


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 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.

Dependencies

~20–34MB
~576K SLoC