referrerpolicy=no-referrer-when-downgrade

Module 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§

approvals
Inspect and Mutate traits for Asset approvals
freeze
The traits for putting freezes within a single fungible token class.
hold
The traits for putting holds within a single fungible token class.
metadata
Inspect and Mutate traits for Asset metadata
roles
Inspect traits for Asset roles

Structs§

DecreaseIssuance
Simple handler for an imbalance drop which decreases the total issuance of the system by the imbalance amount. Used for leftover credit.
Dust
Special dust type which can be type-safely converted into a Credit.
Imbalance
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).
IncreaseIssuance
Simple handler for an imbalance drop which increases the total issuance of the system by the imbalance amount. Used for leftover debt.
UnionOf
Type to combine two fungibles::* implementations into one union fungibles::* implementation.

Traits§

Balanced
A fungible token class where any creation and deletion of tokens is semi-explicit and where the total supply is maintained automatically.
Create
Trait for providing the ability to create new fungible assets.
Destroy
Trait for providing the ability to destroy existing fungible assets.
HandleImbalanceDrop
Handler for when an imbalance gets dropped. This could handle either a credit (negative) or debt (positive) imbalance.
Inspect
Trait for providing balance-inspection access to a set of named fungible assets.
InspectEnumerable
Interface for enumerating assets in existence or owned by a given account.
Mutate
Trait for providing a basic fungible asset.
Refund
Trait for refunding the existence deposit of a target asset account.
Unbalanced
A fungible token class where the balance can be set arbitrarily.

Type Aliases§

Credit
Imbalance implying that the total_issuance value is greater than the sum of all account balances.
Debt
Imbalance implying that the total_issuance value is less than the sum of all account balances.