pub trait DexInfoProvider<DEXId: Eq + PartialEq + Copy + Clone + PartialOrd + Ord, DEXInfo: Clone + PartialEq + Eq + Default> {
    // Required methods
    fn get_dex_info(dex_id: &DEXId) -> Result<DEXInfo, DispatchError>;
    fn ensure_dex_exists(dex_id: &DEXId) -> DispatchResult;
    fn list_dex_ids() -> Vec<DEXId> ;
}
Expand description

Trait to provide DEXInfo

Required Methods§

source

fn get_dex_info(dex_id: &DEXId) -> Result<DEXInfo, DispatchError>

source

fn ensure_dex_exists(dex_id: &DEXId) -> DispatchResult

source

fn list_dex_ids() -> Vec<DEXId>

Implementations on Foreign Types§

source§

impl<DEXId: Eq + PartialEq + Copy + Clone + PartialOrd + Ord, DEXInfo: Clone + PartialEq + Eq + Default> DexInfoProvider<DEXId, DEXInfo> for ()

source§

fn get_dex_info(_dex_id: &DEXId) -> Result<DEXInfo, DispatchError>

source§

fn ensure_dex_exists(_dex_id: &DEXId) -> DispatchResult

source§

fn list_dex_ids() -> Vec<DEXId>

Implementors§