chains-rs 0.1.1

Blockchain and asset definitions in Rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use crate::types::AssetType;

pub trait Asset {
    fn id(&self) -> &str;
    fn name(&self) -> &str;
    fn address(&self) -> &str;
    fn description(&self) -> &str;
    fn symbol(&self) -> &str;
    fn decimals(&self) -> u32;
    fn asset_type(&self) -> AssetType;
    fn asset_kind(&self) -> &str;
    fn bip44_coin_type(&self) -> isize;
    fn website(&self) -> &str;
    fn explorer(&self) -> &str;
    fn icon(&self) -> &str;
}