pub struct TendermintRPC { /* private fields */ }
Implementations§
Source§impl TendermintRPC
impl TendermintRPC
pub fn new(rpc_endpoint: &str) -> Result<Self, ChainError>
Trait Implementations§
Source§impl Clone for TendermintRPC
impl Clone for TendermintRPC
Source§fn clone(&self) -> TendermintRPC
fn clone(&self) -> TendermintRPC
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl CosmosClient for TendermintRPC
impl CosmosClient for TendermintRPC
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
I: Message + Default + IntoRequest<I> + 'static + 'async_trait,
O: Message + Default + 'static + 'async_trait,
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn simulate_tx<'life0, 'life1, 'async_trait>(
&'life0 self,
tx: &'life1 RawTx,
) -> Pin<Box<dyn Future<Output = Result<GasInfo, ChainError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn broadcast_tx<'life0, 'life1, 'async_trait>(
&'life0 self,
tx: &'life1 RawTx,
mode: BroadcastMode,
) -> Pin<Box<dyn Future<Output = Result<AsyncChainTxResponse, ChainError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Source§fn broadcast_tx_block<'life0, 'life1, 'async_trait>(
&'life0 self,
tx: &'life1 RawTx,
) -> Pin<Box<dyn Future<Output = Result<ChainTxResponse, ChainError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn broadcast_tx_block<'life0, 'life1, 'async_trait>(
&'life0 self,
tx: &'life1 RawTx,
) -> Pin<Box<dyn Future<Output = Result<ChainTxResponse, ChainError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
TODO: Block BroadcastMode support is being dropped from future Cosmos-Sdk versions.
Cosm-tome will continue to support it by broadcasting with the Sync mode
and then polling the GetTransaction endpoint until it has been committed in the block.
Auto Trait Implementations§
impl !Freeze for TendermintRPC
impl !RefUnwindSafe for TendermintRPC
impl Send for TendermintRPC
impl Sync for TendermintRPC
impl Unpin for TendermintRPC
impl !UnwindSafe for TendermintRPC
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request