pub trait BridgeProxyAPI<Block: BlockT, AssetId>: Core<Block>where
    AssetId: Codec,{
    // Provided methods
    fn list_apps(
        &self,
        __runtime_api_at_param__: &BlockId<Block>
    ) -> Result<Vec<BridgeAppInfo>, ApiError> { ... }
    fn list_apps_with_context(
        &self,
        __runtime_api_at_param__: &BlockId<Block>,
        context: ExecutionContext
    ) -> Result<Vec<BridgeAppInfo>, ApiError> { ... }
    fn list_supported_assets(
        &self,
        __runtime_api_at_param__: &BlockId<Block>,
        network_id: GenericNetworkId
    ) -> Result<Vec<BridgeAssetInfo>, ApiError> { ... }
    fn list_supported_assets_with_context(
        &self,
        __runtime_api_at_param__: &BlockId<Block>,
        context: ExecutionContext,
        network_id: GenericNetworkId
    ) -> Result<Vec<BridgeAssetInfo>, ApiError> { ... }
}

Provided Methods§

source

fn list_apps( &self, __runtime_api_at_param__: &BlockId<Block> ) -> Result<Vec<BridgeAppInfo>, ApiError>

source

fn list_apps_with_context( &self, __runtime_api_at_param__: &BlockId<Block>, context: ExecutionContext ) -> Result<Vec<BridgeAppInfo>, ApiError>

source

fn list_supported_assets( &self, __runtime_api_at_param__: &BlockId<Block>, network_id: GenericNetworkId ) -> Result<Vec<BridgeAssetInfo>, ApiError>

source

fn list_supported_assets_with_context( &self, __runtime_api_at_param__: &BlockId<Block>, context: ExecutionContext, network_id: GenericNetworkId ) -> Result<Vec<BridgeAssetInfo>, ApiError>

Trait Implementations§

source§

impl<Block: BlockT, AssetId> RuntimeApiInfo for dyn BridgeProxyAPI<Block, AssetId>

source§

const ID: [u8; 8] = _

The identifier of the runtime api.
source§

const VERSION: u32 = 1u32

The version of the runtime api.

Implementors§