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.
  • Macro for declaring a module error.
  • Macros that define an Event types. Events can be used to easily report changes or conditions in your runtime to external entities like users, chain explorers, or dApps.
  • 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.
  • 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.
  • The void type - it cannot exist.

Constants

Traits

Functions

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

Type Definitions

Attribute Macros

Derive Macros