Module frame_support::traits::tokens
source · Expand description
Traits for working with tokens and their associated datastructures.
Re-exports
pub use imbalance::Imbalance;
pub use pay::Pay;
pub use pay::PayFromAccount;
pub use pay::PaymentStatus;
Modules
- The Currency trait and associated types.
- The traits for dealing with a single fungible token class and any associated types.
- The traits for sets of fungible tokens and any associated types.
- The imbalance trait type and its associates, which handles keeps everything adding up properly with unbalanced operations.
- Traits for dealing with a single non-fungible collection of items.
- Traits for dealing with a single non-fungible item.
- Traits for dealing with multiple collections of non-fungible items.
- Traits for dealing with multiple collections of non-fungible items.
- The Pay trait and associated types.
Structs
- Adapter for a rank-to-salary
Convert
implementation into aGetSalary
implementation. - Reasons for moving funds out of an account.
Enums
- Status of funds.
- One of a number of consequences of withdrawing a fungible from an account.
- Simple boolean for whether an account needs to be kept in existence.
- The privilege with which a withdraw operation is conducted.
- The precision required of an operation generally involving some aspect of quantitative fund withdrawal or transfer.
- The mode by which we describe whether an operation should keep an account alive.
- The origin of funds to be used for a deposit operation.
- The mode under which usage of funds may be restricted.
- One of a number of consequences of withdrawing a fungible from an account.
Traits
- Simple amalgamation trait to collect together properties for an AssetId under one roof.
- Simple amalgamation trait to collect together properties for a Balance under one roof.
- Converts an asset balance value into balance.
- Converts a balance value into an asset balance.
- Retrieve the salary for a member of a particular rank.
- Trait to handle NFT locking mechanism to ensure interactions with the asset can be implemented downstream to extend logic of Uniques/Nfts current functionality.