pub trait RewardsApiClient<AccountId, Balance, CurrencyId, BlockHash>: ClientTwhere
    AccountId: Send + Sync + 'static + Serialize,
    Balance: Send + Sync + 'static + DeserializeOwned,
    CurrencyId: Send + Sync + 'static + Serialize + DeserializeOwned,
    BlockHash: Send + Sync + 'static + Serialize,{
    // Provided methods
    fn list_currencies<'life0, 'async_trait>(
        &'life0 self,
        domain: RewardDomain,
        account_id: AccountId,
        at: Option<BlockHash>
    ) -> Pin<Box<dyn Future<Output = RpcResult<Vec<CurrencyId>>> + Send + 'async_trait>>
       where Self: Sync + 'async_trait,
             'life0: 'async_trait { ... }
    fn compute_reward<'life0, 'async_trait>(
        &'life0 self,
        domain: RewardDomain,
        currency_id: CurrencyId,
        account_id: AccountId,
        at: Option<BlockHash>
    ) -> Pin<Box<dyn Future<Output = RpcResult<Balance>> + Send + 'async_trait>>
       where Self: Sync + 'async_trait,
             'life0: 'async_trait { ... }
}
Expand description

Client implementation for the RewardsApi RPC API.

Provided Methods§

source

fn list_currencies<'life0, 'async_trait>( &'life0 self, domain: RewardDomain, account_id: AccountId, at: Option<BlockHash> ) -> Pin<Box<dyn Future<Output = RpcResult<Vec<CurrencyId>>> + Send + 'async_trait>>where Self: Sync + 'async_trait, 'life0: 'async_trait,

source

fn compute_reward<'life0, 'async_trait>( &'life0 self, domain: RewardDomain, currency_id: CurrencyId, account_id: AccountId, at: Option<BlockHash> ) -> Pin<Box<dyn Future<Output = RpcResult<Balance>> + Send + 'async_trait>>where Self: Sync + 'async_trait, 'life0: 'async_trait,

Implementors§

source§

impl<TypeJsonRpseeInteral, AccountId, Balance, CurrencyId, BlockHash> RewardsApiClient<AccountId, Balance, CurrencyId, BlockHash> for TypeJsonRpseeInteralwhere TypeJsonRpseeInteral: ClientT, AccountId: Send + Sync + 'static + Serialize, Balance: Send + Sync + 'static + DeserializeOwned, CurrencyId: Send + Sync + 'static + Serialize + DeserializeOwned, BlockHash: Send + Sync + 'static + Serialize,