pub trait BridgeProxyAPIServer<BlockHash, AssetId>: Sized + Send + Sync + 'staticwhere
BlockHash: Codec,
AssetId: Codec + Serialize,{
// Required methods
fn list_apps(&self, at: Option<BlockHash>) -> Result<Vec<BridgeAppInfo>>;
fn list_supported_assets(
&self,
network_id: GenericNetworkId,
at: Option<BlockHash>
) -> Result<Vec<BridgeAssetInfo>>;
// Provided method
fn into_rpc(self) -> RpcModule<Self>
where BlockHash: Send + Sync + 'static + DeserializeOwned + Codec,
AssetId: Send + Sync + 'static + Codec + Serialize { ... }
}
Expand description
Server trait implementation for the BridgeProxyAPI
RPC API.