[−][src]Module frame_support::traits
Traits for FRAME.
NOTE: If you're looking for parameter_types, it has moved in to the top-level module.
Modules
| schedule |
Structs
| CallMetadata | The function and pallet name of the Call. |
| ClearFilterGuard | Guard type for clearing all pushed constraints from a |
| FilterStackGuard | Guard type for pushing a constraint to a |
| SplitTwoWays | Split an unbalanced amount two ways between a common divisor. |
| StorageMapShim | A shim for placing around a storage item in order to use it as a |
| WithdrawReasons | Reasons for moving funds out of an account. |
Enums
| BalanceStatus | Status of funds. |
| ExistenceRequirement | Simple boolean for whether an account needs to be kept in existence. |
| SignedImbalance | Either a positive or a negative imbalance. |
| WithdrawReason | Reason for moving funds out of an account. |
Traits
| ChangeMembers | Trait for type that can handle incremental changes to a set of account IDs. |
| Contains | A trait for querying whether a type can be said to "contain" a value. |
| ContainsLengthBound | A trait for querying bound for the length of an implementation of |
| Currency | Abstraction over a fungible assets system. |
| EnsureOrigin | Some sort of check on the origin is performed by this object. |
| EstimateNextNewSession | Something that can estimate at which block the next |
| EstimateNextSessionRotation | Something that can estimate at which block the next session rotation will happen. This should
be the same logical unit that dictates |
| Filter | Simple trait for providing a filter over a reference to some type. |
| FilterStack | Trait to add a constraint onto the filter. |
| FindAuthor | A trait for finding the author of a block header based on the |
| Get | A trait for querying a single fixed value from a type. |
| GetCallMetadata | Gets the metadata for the Call - function name and pallet name. |
| GetCallName | Gets the function name of the Call. |
| Happened | A simple, generic one-parameter event notifier/handler. |
| Imbalance | A trait for a not-quite Linear Type that tracks an imbalance. |
| InitializeMembers | Trait for type that can handle the initialization of account IDs at genesis. |
| InstanceFilter | Simple trait for providing a filter over a reference to some type, given an instance of itself. |
| IsDeadAccount | Determiner to say whether a given account is unused. |
| KeyOwnerProofSystem | Something which can compute and check proofs of a historical key owner and return full identification data of that key owner. |
| Lateness | Trait to be used by block producing consensus engine modules to determine how late the current block is (e.g. in a slot-based proposal mechanism how many slots were skipped since the previous block). |
| Len | Anything that can have a |
| LockableCurrency | A currency whose accounts can have liquidity restrictions. |
| ModuleToIndex | Something that can convert a given module into the index of the module in the runtime. |
| OffchainWorker | Off-chain computation trait. |
| OnFinalize | The block finalization trait. Implementing this lets you express what should happen for your module when the block is ending. |
| OnInitialize | The block initialization trait. Implementing this lets you express what should happen for your module when the block is beginning (right before the first extrinsic is executed). |
| OnKilledAccount | The account with the given id was reaped. |
| OnNewAccount | Handler for when a new account has been created. |
| OnRuntimeUpgrade | The runtime upgrade trait. Implementing this lets you express what should happen when the runtime upgrades, and changes may need to occur to your module. |
| OnUnbalanced | Handler for when some currency "account" decreased in balance for some reason. |
| Randomness | |
| ReservableCurrency | A currency where funds can be reserved from the user. |
| StoredMap | An abstraction of a value stored within storage, but possibly as part of a larger composite item. |
| Time | |
| TryDrop | A type for which some values make sense to be able to drop without further consideration. |
| UnixTime | Trait to deal with unix time. |
| ValidatorRegistration | Implementors of this trait provide information about whether or not some validator has been registered with them. The Session module is an implementor. |
| VerifySeal | A trait for verifying the seal of a header and returning the author. |
| VestingSchedule | A vesting schedule over a currency. This allows a particular currency to have vesting limits applied to it. |
Type Definitions
| LockIdentifier | An identifier for a lock. Used for disambiguating different locks so that they can be individually replaced or removed. |