referrerpolicy=no-referrer-when-downgrade

Crate sp_externalities

source ·
Expand description

Substrate externalities abstraction

The externalities mainly provide access to storage and to registered extensions. Extensions are for example the keystore or the offchain externalities. These externalities are used to access the node from the runtime via the runtime interfaces.

This crate exposes the main Externalities trait.

Macros§

Structs§

  • Stores extensions that should be made available through the externalities.
  • Results concerning an operation to remove many keys.

Enums§

  • Externalities error.

Traits§

Functions§

  • Set the given externalities while executing the given closure. To get access to the externalities while executing the given closure with_externalities grants access to them. The externalities are only set for the same thread this function was called from.
  • Execute the given closure with the currently set externalities.