frame_support/traits/tokens/fungibles/mod.rs
1// This file is part of Substrate.
2
3// Copyright (C) Parity Technologies (UK) Ltd.
4// SPDX-License-Identifier: Apache-2.0
5
6// Licensed under the Apache License, Version 2.0 (the "License");
7// you may not use this file except in compliance with the License.
8// You may obtain a copy of the License at
9//
10// http://www.apache.org/licenses/LICENSE-2.0
11//
12// Unless required by applicable law or agreed to in writing, software
13// distributed under the License is distributed on an "AS IS" BASIS,
14// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15// See the License for the specific language governing permissions and
16// limitations under the License.
17
18//! The traits for *sets* of [`fungible`](`frame_support::traits::fungible`) tokens and any
19//! associated types.
20//!
21//! Individual tokens in the `fungibles` set may be used when a `fungible` trait is expected using
22//! [`crate::traits::tokens::fungible::ItemOf`].
23//!
24//! Also see the [`frame_tokens`] reference docs for more information about the place of
25//! `fungible` traits in Substrate.
26//!
27//! [`frame_tokens`]: ../../../../polkadot_sdk_docs/reference_docs/frame_tokens/index.html
28
29pub mod approvals;
30mod enumerable;
31pub mod freeze;
32pub mod hold;
33pub(crate) mod imbalance;
34mod lifetime;
35pub mod metadata;
36mod regular;
37pub mod roles;
38mod union_of;
39
40pub use enumerable::Inspect as InspectEnumerable;
41pub use freeze::{Inspect as InspectFreeze, Mutate as MutateFreeze};
42pub use hold::{
43 Balanced as BalancedHold, Inspect as InspectHold, Mutate as MutateHold,
44 Unbalanced as UnbalancedHold,
45};
46pub use imbalance::{Credit, Debt, HandleImbalanceDrop, Imbalance};
47pub use lifetime::{Create, Destroy, Refund};
48pub use regular::{
49 Balanced, DecreaseIssuance, Dust, IncreaseIssuance, Inspect, Mutate, Unbalanced,
50};
51pub use union_of::UnionOf;