Module frame_support::traits::tokens::fungible
source · Expand description
The traits for dealing with a single fungible token class and any associated types.
Structs
- 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). - Convert a
fungibles
trait implementation into afungible
trait implementation by identifying a single item.
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 reserved.
- 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 fungible asset.
- Trait for inspecting a fungible asset which can be reserved.
- Trait for providing an ERC-20 style fungible asset.
- Trait for mutating a fungible asset which can be reserved.
- Trait for providing a fungible asset which can only be transferred.
- A fungible token class where the balance can be set arbitrarily.
Type Definitions
- 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.