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.

Provided Methods§

source

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,

source

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,

source

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,

Implementors§

source§

impl<TypeJsonRpseeInteral, BlockHash, VaultId, Balance, AccountId, H256, RedeemRequest> RedeemApiClient<BlockHash, VaultId, Balance, AccountId, H256, RedeemRequest> for TypeJsonRpseeInteralwhere TypeJsonRpseeInteral: ClientT, 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,