pub trait DEXManagerRuntimeAPI<Block, DEXId>: Core<Block>where
    Block: Block,
    DEXId: Codec,{
    // Provided methods
    fn list_dex_ids(
        &self,
        __runtime_api_at_param__: &BlockId<Block>
    ) -> Result<Vec<DEXId, Global>, ApiError> { ... }
    fn list_dex_ids_with_context(
        &self,
        __runtime_api_at_param__: &BlockId<Block>,
        context: ExecutionContext
    ) -> Result<Vec<DEXId, Global>, ApiError> { ... }
}

Provided Methods§

fn list_dex_ids( &self, __runtime_api_at_param__: &BlockId<Block> ) -> Result<Vec<DEXId, Global>, ApiError>

fn list_dex_ids_with_context( &self, __runtime_api_at_param__: &BlockId<Block>, context: ExecutionContext ) -> Result<Vec<DEXId, Global>, ApiError>

Trait Implementations§

§

impl<Block, DEXId> RuntimeApiInfo for dyn DEXManagerAPI<Block, DEXId> + 'staticwhere Block: Block,

§

const ID: [u8; 8] = [73u8, 161u8, 81u8, 4u8, 209u8, 77u8, 228u8, 51u8]

The identifier of the runtime api.
§

const VERSION: u32 = 1u32

The version of the runtime api.

Implementors§

impl<__SR_API_BLOCK__: BlockT + UnwindSafe + RefUnwindSafe, RuntimeApiImplCall: CallApiAt<__SR_API_BLOCK__> + 'static> DEXManagerAPI<__SR_API_BLOCK__, u32> for RuntimeApiImpl<__SR_API_BLOCK__, RuntimeApiImplCall>where RuntimeApiImplCall::StateBackend: StateBackend<HashFor<__SR_API_BLOCK__>>, &'static RuntimeApiImplCall: Send, Vec<DEXId>: UnwindSafe + RefUnwindSafe, __SR_API_BLOCK__::Header: UnwindSafe + RefUnwindSafe,