14 major breaking releases

new 14.0.0 Jan 13, 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

#478 in Magic Beans

Download history 96/week @ 2024-09-27 54/week @ 2024-10-04 114/week @ 2024-10-11 168/week @ 2024-10-18 177/week @ 2024-10-25 278/week @ 2024-11-01 14587/week @ 2024-11-08 25718/week @ 2024-11-15 24562/week @ 2024-11-22 23516/week @ 2024-11-29 26137/week @ 2024-12-06 23750/week @ 2024-12-13 7373/week @ 2024-12-20 8951/week @ 2024-12-27 20425/week @ 2025-01-03 21957/week @ 2025-01-10

62,479 downloads per month
Used in 10 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

~18–32MB
~532K SLoC