56 releases (37 major breaking)

new 39.0.0 Jan 13, 2025
38.0.0 Sep 26, 2024
37.0.1 Oct 9, 2024
37.0.0 Jul 18, 2024
2.0.0-alpha.5 Mar 24, 2020

#148 in Magic Beans

Download history 2218/week @ 2024-09-25 1610/week @ 2024-10-02 1563/week @ 2024-10-09 1966/week @ 2024-10-16 2219/week @ 2024-10-23 2110/week @ 2024-10-30 7912/week @ 2024-11-06 27521/week @ 2024-11-13 26787/week @ 2024-11-20 27811/week @ 2024-11-27 28535/week @ 2024-12-04 24912/week @ 2024-12-11 19745/week @ 2024-12-18 7156/week @ 2024-12-25 19371/week @ 2025-01-01 18065/week @ 2025-01-08

68,112 downloads per month
Used in 58 crates (33 directly)

Apache-2.0

3MB
48K SLoC

Utility Module

A stateless module with helpers for dispatch management which does no re-authentication.

Overview

This module contains two basic pieces of functionality:

  • Batch dispatch: A stateless operation, allowing any origin to execute multiple calls in a single dispatch. This can be useful to amalgamate proposals, combining set_code with corresponding set_storages, for efficient multiple payouts with just a single signature verify, or in combination with one of the other two dispatch functionality.
  • Pseudonymal dispatch: A stateless operation, allowing a signed origin to execute a call from an alternative signed origin. Each account has 2 * 2**16 possible "pseudonyms" (alternative account IDs) and these can be stacked. This can be useful as a key management tool, where you need multiple distinct accounts (e.g. as controllers for many staking accounts), but where it's perfectly fine to have each of them controlled by the same underlying keypair. Derivative accounts are, for the purposes of proxy filtering considered exactly the same as the origin and are thus hampered with the origin's filters.

Since proxy filters are respected in all dispatches of this module, it should never need to be filtered by any proxy.

Interface

Dispatchable Functions

For batch dispatch

  • batch - Dispatch multiple calls from the sender's origin.

For pseudonymal dispatch

  • as_derivative - Dispatch a call from a derivative signed origin.

License: Apache-2.0

Release

Polkadot SDK Stable 2412

Dependencies

~18–32MB
~535K SLoC