pub trait PortalApiClient<AccountId, Balance, Hash>: ClientTwhere
    AccountId: Send + Sync + 'static + Serialize + DeserializeOwned,
    Balance: Send + Sync + 'static + DeserializeOwned,
    Hash: Send + Sync + 'static + DeserializeOwned,{
    // Provided methods
    fn fetch_head_height<'life0, 'async_trait>(
        &'life0 self,
        chain_id: ChainId
    ) -> Pin<Box<dyn Future<Output = RpcResult<u128>> + Send + 'async_trait>>
       where Self: Sync + 'async_trait,
             'life0: 'async_trait { ... }
    fn fetch_all_active_xtx<'life0, 'async_trait>(
        &'life0 self,
        for_executor: AccountId
    ) -> Pin<Box<dyn Future<Output = RpcResult<Vec<(Hash, Vec<SideEffect<AccountId, Balance>>, Vec<Hash>)>>> + Send + 'async_trait>>
       where Self: Sync + 'async_trait,
             'life0: 'async_trait { ... }
}
Expand description

Client implementation for the PortalApi RPC API.

Provided Methods§

source

fn fetch_head_height<'life0, 'async_trait>( &'life0 self, chain_id: ChainId ) -> Pin<Box<dyn Future<Output = RpcResult<u128>> + Send + 'async_trait>>where Self: Sync + 'async_trait, 'life0: 'async_trait,

Returns latest finalized header of a gateway if available

source

fn fetch_all_active_xtx<'life0, 'async_trait>( &'life0 self, for_executor: AccountId ) -> Pin<Box<dyn Future<Output = RpcResult<Vec<(Hash, Vec<SideEffect<AccountId, Balance>>, Vec<Hash>)>>> + Send + 'async_trait>>where Self: Sync + 'async_trait, 'life0: 'async_trait,

Implementors§

source§

impl<TypeJsonRpseeInteral, AccountId, Balance, Hash> PortalApiClient<AccountId, Balance, Hash> for TypeJsonRpseeInteralwhere TypeJsonRpseeInteral: ClientT, AccountId: Send + Sync + 'static + Serialize + DeserializeOwned, Balance: Send + Sync + 'static + DeserializeOwned, Hash: Send + Sync + 'static + DeserializeOwned,