Crate ss58_registry

Source
Expand description

Enumerations of well-known SS58 account types and tokens used in the Polkadot ecosystem.

Structs§

ParseError
Error encountered while parsing Ss58AddressFormat from &’_ str unit struct for now.
Ss58AddressFormat
A custom address format. See also Ss58AddressFormatRegistry
Token
Name and decimals of a given token.
TokenAmount
A given amount of token. Can be used for nicely formatted output and token-aware comparison of different amounts.

Enums§

Ss58AddressFormatRegistry
A known address (sub)format/network ID for SS58.
TokenRegistry
List of well-known tokens used on some network in the ecosystem.

Functions§

from_address_format
const function to convert Ss58AddressFormat to u16
from_known_address_format
const function to convert Ss58AddressFormat to u16