Expand description
This is already part of the prelude.
Macros§
- impl_
tx_ ext_ default - Helper macro to be used in a
impl TransactionExtensionblock to add default implementations ofweight,validate,prepareor any combinations of the them.
Structs§
- Call
Metadata - The function and pallet name of the Call.
- Valid
Transaction - Information concerning a valid transaction.
Enums§
- Invalid
Transaction - An invalid transaction validity.
Traits§
- AsTransaction
Authorized Origin - Interface to differentiate between Runtime Origins authorized to include a transaction into the block and dispatch it, and those who aren’t.
- Dispatch
Transaction - Single-function utility trait with a blanket impl over
TransactionExtensionin 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. - GetCall
Metadata - Gets the metadata for the Call - function name and pallet name.
- Transaction
Extension - 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§
- Extension
Version - Type to represent the version of the Extension used in this extrinsic.
- Validate
Result - Shortcut for the result value of the
validatefunction.