Module pallet_example_basic::pallet
source · Expand description
The module that hosts all the FRAME types needed to add this pallet to a runtime.
Modules
- Auto-generated docs-only module listing all defined dispatchables for this pallet. Note that members of this module cannot be used directly and are only provided for documentation purposes.
- Auto-generated docs-only module listing all defined storage types for this pallet. Note that members of this module cannot be used directly and are only provided for documentation purposes.
Structs
- Can be used to configure the genesis state of this pallet.
- The pallet implementing the on-chain logic.
Enums
- Contains one variant per dispatchable that can be called by an extrinsic.
- Events are a simple means of reporting specific conditions and circumstances that have happened that users, Dapps and/or chain explorers would find interesting and otherwise difficult to detect. This attribute generate the function
deposit_eventto deposit one of this pallet event, it is optional, it is also possible to provide a custom implementation.
Traits
- Our pallet’s configuration trait. All our types and constants go in here. If the pallet is dependent on specific other pallets, then their configuration traits should be added to our implied traits list.
Type Definitions
- ModuleDeprecatedType alias to
Pallet, to be used byconstruct_runtime.