Module frame_support::traits::tokens::fungibles

source ·
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.

Re-exports§

  • pub use freeze::Inspect as InspectFreeze;
  • pub use freeze::Mutate as MutateFreeze;
  • pub use hold::Balanced as BalancedHold;
  • pub use hold::Inspect as InspectHold;
  • pub use hold::Mutate as MutateHold;
  • pub use hold::Unbalanced as UnbalancedHold;

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 union fungibles::* 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 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 refunding the existence deposit of a target asset account.
  • 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.