Module polkadot_sdk_frame::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§
pub use frame_support::dispatch::GetDispatchInfo;
pub use frame_support::dispatch::PostDispatchInfo;
pub use sp_runtime::traits::Bounded;
pub use sp_runtime::traits::DispatchInfoOf;
pub use sp_runtime::traits::Dispatchable;
pub use sp_runtime::traits::SaturatedConversion;
pub use sp_runtime::traits::Saturating;
pub use sp_runtime::traits::StaticLookup;
pub use sp_runtime::traits::TrailingZeroInput;
pub use sp_runtime::DispatchErrorWithPostInfo;
pub use sp_runtime::DispatchResultWithInfo;
pub use sp_runtime::TokenError;
pub use frame_support::pallet_prelude::*;
pub use frame_system::pallet_prelude::*;
pub use super::derive::*;
pub use super::hashing::*;
Modules§
frame_system
’s parent crate, which is mandatory in all pallets build with this crate.
Traits§
- A trait for querying whether a type can be said to “contain” a value.
- Something that can be checked to be a of sub type
T
.