Module frame_support::pallet_prelude [−][src]
Prelude to be used alongside pallet macro, for ease of use.
Re-exports
pub use frame_support::traits::GenesisBuild; | |
pub use frame_support::debug; | |
pub use frame_support::ensure; | |
pub use frame_support::storage; | |
pub use frame_support::traits::Get; | |
pub use frame_support::traits::Hooks; | |
pub use frame_support::traits::IsType; | |
pub use frame_support::traits::GetPalletVersion; | |
pub use frame_support::traits::EnsureOrigin; | |
pub use frame_support::dispatch::DispatchResultWithPostInfo; | |
pub use frame_support::dispatch::Parameter; | |
pub use frame_support::weights::DispatchClass; | |
pub use frame_support::weights::Pays; | |
pub use frame_support::weights::Weight; | |
pub use frame_support::storage::types::ValueQuery; | |
pub use frame_support::storage::types::OptionQuery; |
Structs
| Blake2_128 | Hash storage keys with blake2 128 |
| Blake2_128Concat | Hash storage keys with |
| Blake2_256 | Hash storage keys with blake2 256 |
| Identity | Store the key directly. |
| InherentData | Inherent data to include in a block. |
| PhantomData | Zero-sized type used to mark things that “act like” they own a |
| StorageDoubleMap | A type that allow to store values for |
| StorageMap | A type that allow to store value for given key. Allowing to insert/remove/iterate on values. |
| StorageValue | A type that allow to store a value. |
| Twox64Concat | Hash storage keys with |
| Twox128 | Hash storage keys with twox 128 |
| Twox256 | Hash storage keys with twox 256 |
| ValidTransaction | Information concerning a valid transaction. |
Enums
| DispatchError | Reason why a dispatch call failed. |
| InvalidTransaction | An invalid transaction validity. |
| TransactionSource | The source of the transaction. |
| TransactionValidityError | Errors that can occur while checking the validity of a transaction. |
| UnknownTransaction | An unknown transaction validity. |
Traits
| Decode | Trait that allows zero-copy read of value-references from slices in LE format. |
| Encode | Trait that allows zero-copy write of value-references to slices in LE format. |
| MaybeSerializeDeserialize | A type that implements Serialize, DeserializeOwned and Debug when in std environment. |
| Member | A type that can be used in runtime structures. |
| ProvideInherent | A pallet that provides or verifies an inherent extrinsic. |
| ValidateUnsigned | Something that can validate unsigned extrinsics for the transaction pool. |
Type Definitions
| InherentIdentifier | An identifier for an inherent. |
| TransactionLongevity | Minimum number of blocks a transaction will remain valid for.
|
| TransactionPriority | Priority for a transaction. Additive. Higher is better. |
| TransactionTag | Tag for a transaction. No two transactions with the same tag should be placed on-chain. |
| TransactionValidity | Information on a transaction’s validity and, if valid, on how it relates to other transactions. |
Derive Macros
| CloneNoBound | Derive |
| DebugNoBound | Derive |
| Decode | Derive |
| Encode | Derive |
| EqNoBound | derive Eq but do no bound any generic. Docs are at |
| PartialEqNoBound | Derive |
| RuntimeDebug | |
| RuntimeDebugNoBound | Derive |