referrerpolicy=no-referrer-when-downgrade

Module transaction

Source
Expand description

This is already part of the prelude.

Macros§

impl_tx_ext_default
Helper macro to be used in a impl TransactionExtension block to add default implementations of weight, validate, prepare or any combinations of the them.

Structs§

CallMetadata
The function and pallet name of the Call.
ValidTransaction
Information concerning a valid transaction.

Enums§

InvalidTransaction
An invalid transaction validity.

Traits§

AsTransactionAuthorizedOrigin
Interface to differentiate between Runtime Origins authorized to include a transaction into the block and dispatch it, and those who aren’t.
DispatchTransaction
Single-function utility trait with a blanket impl over TransactionExtension in order to provide transaction dispatching functionality. We avoid implementing this directly on the trait since we never want it to be overriden by the trait implementation.
GetCallMetadata
Gets the metadata for the Call - function name and pallet name.
TransactionExtension
Means by which a transaction may be extended. This type embodies both the data and the logic that should be additionally associated with the transaction. It should be plain old data.

Type Aliases§

ExtensionVersion
Type to represent the version of the Extension used in this extrinsic.
ValidateResult
Shortcut for the result value of the validate function.