Trait redeem_rpc::RedeemApiClient
source · pub trait RedeemApiClient<BlockHash, VaultId, Balance, AccountId, H256, RedeemRequest>: ClientTwhere
BlockHash: Send + Sync + 'static + Serialize,
VaultId: Send + Sync + 'static + DeserializeOwned,
Balance: Send + Sync + 'static + DeserializeOwned + Codec + MaybeDisplay + MaybeFromStr,
AccountId: Send + Sync + 'static + Serialize,
H256: Send + Sync + 'static + DeserializeOwned,
RedeemRequest: Send + Sync + 'static,{
// Provided methods
fn get_redeem_requests<'life0, 'async_trait>(
&'life0 self,
account_id: AccountId,
at: Option<BlockHash>
) -> Pin<Box<dyn Future<Output = RpcResult<Vec<H256>>> + Send + 'async_trait>>
where Self: Sync + 'async_trait,
'life0: 'async_trait { ... }
fn get_vault_redeem_requests<'life0, 'async_trait>(
&'life0 self,
vault_id: AccountId,
at: Option<BlockHash>
) -> Pin<Box<dyn Future<Output = RpcResult<Vec<H256>>> + Send + 'async_trait>>
where Self: Sync + 'async_trait,
'life0: 'async_trait { ... }
fn get_premium_redeem_vaults<'life0, 'async_trait>(
&'life0 self,
at: Option<BlockHash>
) -> Pin<Box<dyn Future<Output = RpcResult<Vec<(VaultId, BalanceWrapper<Balance>)>>> + Send + 'async_trait>>
where Self: Sync + 'async_trait,
'life0: 'async_trait { ... }
}
Expand description
Client implementation for the RedeemApi
RPC API.