[−][src]Crate pallet_utility
Utility Module
A stateless module with helpers for dispatch management.
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 correspondingset_storage
s, 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**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.
Interface
Dispatchable Functions
For batch dispatch
batch
- Dispatch multiple calls from the sender's origin.
For pseudonymal dispatch
as_sub
- Dispatch a call from a secondary ("sub") signed origin.
Structs
Module |
Enums
Call | Dispatchable calls. |
Error | |
Event | Events for this module. |
Traits
Trait | Configuration trait. |