Trait hydradx_traits::registry::ShareTokenRegistry
source · pub trait ShareTokenRegistry<AssetId, AssetName, Balance, Error>: Registry<AssetId, AssetName, Balance, Error> {
fn retrieve_shared_asset(
name: &AssetName,
assets: &[AssetId]
) -> Result<AssetId, Error>;
fn create_shared_asset(
name: &AssetName,
assets: &[AssetId],
existential_deposit: Balance
) -> Result<AssetId, Error>;
fn get_or_create_shared_asset(
name: AssetName,
assets: Vec<AssetId>,
existential_deposit: Balance
) -> Result<AssetId, Error> { ... }
}