Trait framenode_runtime::DexInfoProvider
source · pub trait DexInfoProvider<DEXId, DEXInfo>where
DEXId: Eq + PartialEq<DEXId> + Copy + Clone + PartialOrd<DEXId> + Ord,
DEXInfo: Clone + PartialEq<DEXInfo> + Eq + Default,{
// Required methods
fn get_dex_info(dex_id: &DEXId) -> Result<DEXInfo, DispatchError>;
fn ensure_dex_exists(dex_id: &DEXId) -> Result<(), DispatchError>;
fn list_dex_ids() -> Vec<DEXId, Global> ⓘ;
}
Expand description
Trait to provide DEXInfo