pub trait ClientAbciQuery: Sized {
    type Response: GetErr + GetValue;

    // Required method
    fn abci_query<'life0, 'async_trait, V>(
        &'life0 self,
        path: Option<String>,
        data: V,
        height: Option<u32>,
        prove: bool
    ) -> Pin<Box<dyn Future<Output = Result<Self::Response, ChainError>> + Send + 'async_trait>>
       where V: Into<Vec<u8>> + Send + 'async_trait,
             Self: 'async_trait,
             'life0: 'async_trait;

    // Provided methods
    fn query<'life0, 'life1, 'async_trait, I, O>(
        &'life0 self,
        msg: I,
        path: &'life1 str
    ) -> Pin<Box<dyn Future<Output = Result<O, ChainError>> + Send + 'async_trait>>
       where Self: Sized + Sync + 'async_trait,
             I: Message + Default + 'static + 'async_trait,
             O: Message + Default + 'static + 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait { ... }
    fn auth_query_account<'life0, 'async_trait>(
        &'life0 self,
        address: Address
    ) -> Pin<Box<dyn Future<Output = Result<AccountResponse, AccountError>> + Send + 'async_trait>>
       where Self: Sync + 'async_trait,
             'life0: 'async_trait { ... }
    fn query_simulate_tx<'life0, 'life1, 'async_trait>(
        &'life0 self,
        tx: &'life1 RawTx
    ) -> Pin<Box<dyn Future<Output = Result<GasInfo, ChainError>> + Send + 'async_trait>>
       where Self: Sync + 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait { ... }
    fn tx_simulate<'life0, 'life1, 'life2, 'async_trait, I>(
        &'life0 self,
        denom: &'life1 str,
        gas_price: f64,
        gas_adjustment: f64,
        msgs: I,
        account: &'life2 Account
    ) -> Pin<Box<dyn Future<Output = Result<Fee, ChainError>> + Send + 'async_trait>>
       where I: IntoIterator<Item = Any> + Send + 'async_trait,
             Self: Sync + 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait { ... }
    fn tx_sign<'life0, 'life1, 'life2, 'life3, 'async_trait, T>(
        &'life0 self,
        chain_cfg: &'life1 ChainConfig,
        msgs: Vec<T>,
        key: &'life2 SigningKey,
        tx_options: &'life3 TxOptions
    ) -> Pin<Box<dyn Future<Output = Result<RawTx, AccountError>> + Send + 'async_trait>>
       where T: Msg + Serialize + Send + Sync + 'async_trait,
             <T as Msg>::Err: Send + Sync,
             Self: Sync + 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait,
             'life3: 'async_trait { ... }
}

Required Associated Types§

Required Methods§

source

fn abci_query<'life0, 'async_trait, V>( &'life0 self, path: Option<String>, data: V, height: Option<u32>, prove: bool ) -> Pin<Box<dyn Future<Output = Result<Self::Response, ChainError>> + Send + 'async_trait>>where V: Into<Vec<u8>> + Send + 'async_trait, Self: 'async_trait, 'life0: 'async_trait,

Provided Methods§

source

fn query<'life0, 'life1, 'async_trait, I, O>( &'life0 self, msg: I, path: &'life1 str ) -> Pin<Box<dyn Future<Output = Result<O, ChainError>> + Send + 'async_trait>>where Self: Sized + Sync + 'async_trait, I: Message + Default + 'static + 'async_trait, O: Message + Default + 'static + 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

source

fn auth_query_account<'life0, 'async_trait>( &'life0 self, address: Address ) -> Pin<Box<dyn Future<Output = Result<AccountResponse, AccountError>> + Send + 'async_trait>>where Self: Sync + 'async_trait, 'life0: 'async_trait,

source

fn query_simulate_tx<'life0, 'life1, 'async_trait>( &'life0 self, tx: &'life1 RawTx ) -> Pin<Box<dyn Future<Output = Result<GasInfo, ChainError>> + Send + 'async_trait>>where Self: Sync + 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

source

fn tx_simulate<'life0, 'life1, 'life2, 'async_trait, I>( &'life0 self, denom: &'life1 str, gas_price: f64, gas_adjustment: f64, msgs: I, account: &'life2 Account ) -> Pin<Box<dyn Future<Output = Result<Fee, ChainError>> + Send + 'async_trait>>where I: IntoIterator<Item = Any> + Send + 'async_trait, Self: Sync + 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

source

fn tx_sign<'life0, 'life1, 'life2, 'life3, 'async_trait, T>( &'life0 self, chain_cfg: &'life1 ChainConfig, msgs: Vec<T>, key: &'life2 SigningKey, tx_options: &'life3 TxOptions ) -> Pin<Box<dyn Future<Output = Result<RawTx, AccountError>> + Send + 'async_trait>>where T: Msg + Serialize + Send + Sync + 'async_trait, <T as Msg>::Err: Send + Sync, Self: Sync + 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait,

Implementors§

source§

impl<T> ClientAbciQuery for Twhere T: Client + Sync,