chains 0.1.0

Rust bindings for the Ethereum Chain List.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use alloc::string::String;
use serde::{Deserialize, Serialize};

#[allow(unused)]
use crate::Chain;

/// A [Chain]'s native currency.
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct NativeCurrency {
    /// Name of the native currency.
    pub name: String,
    /// Symbol of the native currency.
    pub symbol: String,
    /// Decimals of the native currency.
    pub decimals: u8,
}