pub struct Rpc;Implementations§
Source§impl Rpc
impl Rpc
pub async fn fetch_pool_addrs<P, T, N>( start_block: u64, end_block: u64, provider: Arc<P>, fetcher: Arc<dyn PoolFetcher>, chain: Chain, rate_limit: u64, ) -> Result<Vec<Address>>
pub async fn populate_pools<P, T, N>( pool_addrs: Vec<Address>, provider: Arc<P>, pool: PoolType, fetcher: Arc<dyn PoolFetcher>, rate_limit: u64, chain: Chain, ) -> Result<Vec<Pool>>
pub async fn populate_liquidity<P, T, N>( start_block: u64, end_block: u64, pools: &mut [Pool], provider: Arc<P>, pool_type: PoolType, rate_limit: u64, is_initial_sync: bool, ) -> Result<()>
pub async fn fetch_event_logs<T, N, P>( start_block: u64, end_block: u64, step_size: u64, provider: Arc<P>, rate_limit: u64, progress_bar: Arc<ProgressBar>, filter: Filter, ) -> Result<Vec<Log>>
pub fn get_block_range( step_size: u64, start_block: u64, end_block: u64, ) -> Vec<(u64, u64)>
Auto Trait Implementations§
impl Freeze for Rpc
impl RefUnwindSafe for Rpc
impl Send for Rpc
impl Sync for Rpc
impl Unpin for Rpc
impl UnwindSafe for Rpc
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> 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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more