50 releases (32 major breaking)

new 34.0.0 May 23, 2024
33.0.0 May 1, 2024
32.0.0 Apr 9, 2024
31.0.0 Mar 18, 2024
2.0.0-alpha.5 Mar 24, 2020

#1317 in Magic Beans

Download history 450/week @ 2024-01-31 937/week @ 2024-02-07 1422/week @ 2024-02-14 2345/week @ 2024-02-21 1226/week @ 2024-02-28 688/week @ 2024-03-06 1661/week @ 2024-03-13 1892/week @ 2024-03-20 1678/week @ 2024-03-27 1871/week @ 2024-04-03 2129/week @ 2024-04-10 1678/week @ 2024-04-17 1665/week @ 2024-04-24 1599/week @ 2024-05-01 1222/week @ 2024-05-08 1456/week @ 2024-05-15

6,254 downloads per month
Used in 42 crates (30 directly)


44K SLoC

Utility Module

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


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.


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


~546K SLoC