Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Commit

Permalink
Revert "Simple Trait to Inspect Metadata (#9893)"
Browse files Browse the repository at this point in the history
This reverts commit bf9683e.
  • Loading branch information
niklasad1 committed Oct 8, 2021
1 parent 56cc323 commit c94edb1
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions frame/support/src/traits/tokens/fungibles.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ use super::{
};
use crate::dispatch::{DispatchError, DispatchResult};
use sp_runtime::traits::Saturating;
use sp_std::vec::Vec;

mod balanced;
pub use balanced::{Balanced, Unbalanced};
Expand Down Expand Up @@ -66,18 +65,6 @@ pub trait Inspect<AccountId> {
) -> WithdrawConsequence<Self::Balance>;
}

/// Trait for reading metadata from a fungible asset.
pub trait InspectMetadata<AccountId>: Inspect<AccountId> {
/// Return the name of an asset.
fn name(asset: &Self::AssetId) -> Vec<u8>;

/// Return the symbol of an asset.
fn symbol(asset: &Self::AssetId) -> Vec<u8>;

/// Return the decimals of an asset.
fn decimals(asset: &Self::AssetId) -> u8;
}

/// Trait for providing a set of named fungible assets which can be created and destroyed.
pub trait Mutate<AccountId>: Inspect<AccountId> {
/// Attempt to increase the `asset` balance of `who` by `amount`.
Expand Down

0 comments on commit c94edb1

Please sign in to comment.