NIL-SLIP44
Mapping between SLIP-0044 coin types and the associated metadata
SLIP-0044 is a standard that defines coin type values for use in hierarchical deterministic wallets. This crate provides type-safe access to coin types and their metadata.
Usage
Add the following dependency to your Cargo manifest...
[]
= "0.3.8"
...and see the docs or What can I do? section below for how to use it.
What can I do?
use ;
use ;
assert_eq!;
assert_eq!; // Coin may have multiple IDs (e.g. Credits)
assert_eq!;
assert_eq!;
assert_eq!;
assert_eq!; // Coin may have multiple IDs (e.g. Credits)
assert_eq!;
assert_eq!;
assert_eq!; // Try to get Coin from its ID
assert_eq!; // Try to get Coin from its ID
assert_eq!;
assert_eq!;
assert_eq!; // Get Coin from its Symbol (can't fail, all symbols have associated coins)
assert_eq!;
assert_eq!;
assert_eq!;
assert_eq!; // Try to get coin Symbol from its ID
assert_eq!; // Try to get coin Symbol from its ID
assert_eq!; // Try to convert Coin to Symbol (can fail if no Symbol for Coin is specified)
assert_eq!;
assert_eq!;
assert_eq!;
Updating coins list