Trait centrifuge_chain::rpc::rewards::RewardsApiClient
source · 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.