pub trait Registry<AssetId, AssetName, Balance, Error> {
    fn exists(name: AssetId) -> bool;
    fn retrieve_asset(name: &AssetName) -> Result<AssetId, Error>;
    fn create_asset(
        name: &AssetName,
        existential_deposit: Balance
    ) -> Result<AssetId, Error>; fn get_or_create_asset(
        name: AssetName,
        existential_deposit: Balance
    ) -> Result<AssetId, Error> { ... } }

Required Methods§

Provided Methods§

Implementors§