Trait centrifuge_chain::rpc::pools::PoolsApiClient
source · pub trait PoolsApiClient<PoolId, TrancheId, Balance, Currency, BalanceRatio, BlockHash, MaxTranches>: ClientTwhere
PoolId: Send + Sync + 'static + Serialize,
TrancheId: Send + Sync + 'static + Serialize + DeserializeOwned,
Balance: Send + Sync + 'static + DeserializeOwned,
Currency: Send + Sync + 'static + DeserializeOwned,
BalanceRatio: Send + Sync + 'static + DeserializeOwned,
BlockHash: Send + Sync + 'static + Serialize,
MaxTranches: Send + Sync + 'static + DeserializeOwned + Get<u32>,{
// Provided methods
fn currency<'life0, 'async_trait>(
&'life0 self,
poold_id: PoolId,
at: Option<BlockHash>
) -> Pin<Box<dyn Future<Output = RpcResult<Currency>> + Send + 'async_trait>>
where Self: Sync + 'async_trait,
'life0: 'async_trait { ... }
fn inspect_epoch_solution<'life0, 'async_trait>(
&'life0 self,
pool_id: PoolId,
solution: Vec<TrancheSolution>,
at: Option<BlockHash>
) -> Pin<Box<dyn Future<Output = RpcResult<EpochSolution<Balance, MaxTranches>>> + Send + 'async_trait>>
where Self: Sync + 'async_trait,
'life0: 'async_trait { ... }
fn tranche_token_price<'life0, 'async_trait>(
&'life0 self,
pool_id: PoolId,
tranche: TrancheId,
at: Option<BlockHash>
) -> Pin<Box<dyn Future<Output = RpcResult<BalanceRatio>> + Send + 'async_trait>>
where Self: Sync + 'async_trait,
'life0: 'async_trait { ... }
fn tranche_token_prices<'life0, 'async_trait>(
&'life0 self,
pool_id: PoolId,
at: Option<BlockHash>
) -> Pin<Box<dyn Future<Output = RpcResult<Vec<BalanceRatio>>> + Send + 'async_trait>>
where Self: Sync + 'async_trait,
'life0: 'async_trait { ... }
fn tranche_ids<'life0, 'async_trait>(
&'life0 self,
pool_id: PoolId,
at: Option<BlockHash>
) -> Pin<Box<dyn Future<Output = RpcResult<Vec<TrancheId>>> + Send + 'async_trait>>
where Self: Sync + 'async_trait,
'life0: 'async_trait { ... }
fn tranche_id<'life0, 'async_trait>(
&'life0 self,
pool_id: PoolId,
tranche_index: TrancheIndex,
at: Option<BlockHash>
) -> Pin<Box<dyn Future<Output = RpcResult<TrancheId>> + Send + 'async_trait>>
where Self: Sync + 'async_trait,
'life0: 'async_trait { ... }
fn tranche_currency<'life0, 'async_trait>(
&'life0 self,
pool_id: PoolId,
tranche_id: TrancheId,
at: Option<BlockHash>
) -> Pin<Box<dyn Future<Output = RpcResult<Currency>> + Send + 'async_trait>>
where Self: Sync + 'async_trait,
'life0: 'async_trait { ... }
}
Expand description
Client implementation for the PoolsApi
RPC API.