pub struct Web3Provider { /* private fields */ }
Expand description
Mostly exists to map to the new futures. This is the “untyped” API which the generated types will use.
Implementations§
Source§impl Web3Provider
impl Web3Provider
pub async fn build_eip_1559_tx_params(&self) -> Result<Options, Error>
Source§impl Web3Provider
impl Web3Provider
pub fn new( contract_address: Address, context: &Web3Context, json_abi: &[u8], ) -> Self
pub fn set_max_retry(&mut self, max_retry: u8)
Trait Implementations§
Source§impl CallProvider for Web3Provider
impl CallProvider for Web3Provider
fn call<'life0, 'async_trait, O, Params>(
&'life0 self,
name: &'static str,
params: Params,
) -> Pin<Box<dyn Future<Output = Result<O, Error>> + Send + 'async_trait>>where
O: 'async_trait + Detokenize + Unpin + Send,
Params: 'async_trait + Tokenize + Send,
Self: 'async_trait,
'life0: 'async_trait,
Source§impl LogProvider for Web3Provider
impl LogProvider for Web3Provider
fn find<'life0, 'life1, 'async_trait>(
&'life0 self,
event_name: &'life1 str,
from: u64,
to: u64,
call_options: CallOptions,
) -> Pin<Box<dyn Future<Output = Result<HashMap<u64, Vec<EventLog>>, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Auto Trait Implementations§
impl Freeze for Web3Provider
impl RefUnwindSafe for Web3Provider
impl Send for Web3Provider
impl Sync for Web3Provider
impl Unpin for Web3Provider
impl UnwindSafe for Web3Provider
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