Crate frame_support

source ·
Expand description

Support code for the runtime.

Note on Tuple Traits

Many of the traits defined in traits have auto-implementations on tuples as well. Usually, the tuple is a function of number of pallets in the runtime. By default, the traits are implemented for tuples of up to 64 items.

Re-exports

Modules

  • Utilities for dealing with crypto primitives. Sometimes we need to use these from inside WASM contracts, where crypto calculations have weak performance.
  • Dispatch system. Contains a macro for defining runtime modules and generating values representing lazy module function calls.
  • Provides functions to interact with the dispatch context.
  • errorDeprecated
  • Helper functions for implementing sp_genesis_builder::GenesisBuilder for runtimes.
  • Some instance placeholder to be used in frame_support::pallet attribute macro.
  • Contains macro stubs for all of the pallet:: macros
  • Prelude to be used alongside pallet macro, for ease of use.
  • Stuff to do with the runtime’s storage.
  • Prelude to be used for pallet testing, for ease of use.
  • Traits and associated utilities for use in the FRAME environment.
  • Re-exports sp-weights public API, and contains benchmarked weight constants specific to FRAME.

Macros

Structs

Enums

  • A type that cannot be instantiated.

Constants

Traits

Functions

  • Print out the debuggable type.
  • Print something that implements Printable from the runtime.

Type Definitions

Attribute Macros

Derive Macros