Module polkadot_sdk_frame::traits::tokens::fungibles
Expand description
The traits for sets of fungible
tokens and any
associated types.
Individual tokens in the fungibles
set may be used when a fungible
trait is expected using
crate::traits::tokens::fungible::ItemOf
.
Also see the frame_tokens
reference docs for more information about the place of
fungible
traits in Substrate.
Modules§
- Inspect and Mutate traits for Asset approvals
- The traits for putting freezes within a single fungible token class.
- The traits for putting holds within a single fungible token class.
- Inspect and Mutate traits for Asset metadata
- Inspect traits for Asset roles
Structs§
- Simple handler for an imbalance drop which decreases the total issuance of the system by the imbalance amount. Used for leftover credit.
- Special dust type which can be type-safely converted into a
Credit
. - An imbalance in the system, representing a divergence of recorded token supply from the sum of the balances of all accounts. This is
must_use
in order to ensure it gets handled (placing into an account, settling from an account or altering the supply). - Simple handler for an imbalance drop which increases the total issuance of the system by the imbalance amount. Used for leftover debt.
- Type to combine two
fungibles::*
implementations into one unionfungibles::*
implementation.
Traits§
- A fungible token class where any creation and deletion of tokens is semi-explicit and where the total supply is maintained automatically.
- Trait for slashing a fungible asset which can be place on hold.
- Trait for providing the ability to create new fungible assets.
- Trait for providing the ability to destroy existing fungible assets.
- Handler for when an imbalance gets dropped. This could handle either a credit (negative) or debt (positive) imbalance.
- Trait for providing balance-inspection access to a set of named fungible assets.
- Interface for enumerating assets in existence or owned by a given account.
- Trait for inspecting a fungible asset which can be frozen. Freezing is essentially setting a minimum balance below which the total balance (inclusive of any funds placed on hold) may not be normally allowed to drop. Generally, freezers will provide an “update” function such that if the total balance does drop below the limit, then the freezer can update their housekeeping accordingly.
- Trait for inspecting a fungible asset whose accounts support partitioning and slashing.
- Trait for providing a basic fungible asset.
- Trait for introducing, altering and removing locks to freeze an account’s funds so they never go below a set minimum.
- Trait for mutating a fungible asset which can be placed on hold.
- Trait for refunding the existence deposit of a target asset account.
- A fungible token class where the balance can be set arbitrarily.
- A fungible, holdable token class where the balance on hold can be set arbitrarily.
Type Aliases§
- Imbalance implying that the total_issuance value is greater than the sum of all account balances.
- Imbalance implying that the total_issuance value is less than the sum of all account balances.