Module frame_support::traits::tokens::fungibles

source ·
Expand description

The traits for sets of fungible tokens and any associated types.

Re-exports§

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.

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 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 providing a basic fungible asset.
  • Trait for providing methods to swap between the chain’s native token and other asset classes.
  • A fungible token class where the balance 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.