pallet_evm_precompile_balances_erc20

Trait Erc20Metadata

Source
pub trait Erc20Metadata {
    // Required methods
    fn name() -> &'static str;
    fn symbol() -> &'static str;
    fn decimals() -> u8;
    fn is_native_currency() -> bool;
}
Expand description

Metadata of an ERC20 token.

Required Methods§

Source

fn name() -> &'static str

Returns the name of the token.

Source

fn symbol() -> &'static str

Returns the symbol of the token.

Source

fn decimals() -> u8

Returns the decimals places of the token.

Source

fn is_native_currency() -> bool

Must return true only if it represents the main native currency of the network. It must be the currency used in pallet_evm.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§