referrerpolicy=no-referrer-when-downgrade
polkadot_sdk_frame

Module prelude

Source
Expand description

The main prelude of FRAME.

This prelude should almost always be the first line of code in any pallet or runtime.

use polkadot_sdk_frame::prelude::*;

// rest of your pallet..
mod pallet {}

Re-exports§

Modules§

  • frame_system’s parent crate, which is mandatory in all pallets build with this crate.

Structs§

  • Bounded storage related types. A bounded slice.
  • Bounded storage related types. A bounded vector.
  • “OR gate” implementation of EnsureOrigin, Success type for both L and R must be equal.
  • A derivative EnsureOrigin implementation. It mutates the Success result of an Original implementation with a given Mutator.
  • NoOp polling is required if pallet-referenda functionality not needed.
  • A pallet identifier. These are per pallet and should be stored in a registry somewhere.
  • Adapter for Get<u32> to access VARIANT_COUNT from trait pub trait VariantCount {.

Enums§

Traits§