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, requests_per_second: u64, ) -> Option<Vec<Address>>
pub async fn populate_pools<P, T, N>( pool_addrs: Vec<Address>, provider: Arc<P>, pool: PoolType, requests_per_second: u64, ) -> Vec<Pool>
pub async fn populate_liquidity<P, T, N>( start_block: u64, end_block: u64, pools: &mut Vec<Pool>, provider: Arc<P>, pool_type: PoolType, ) -> Result<()>
pub async fn fetch_tick_logs<P, T, N>( start_block: u64, end_block: u64, provider: Arc<P>, pool_type: PoolType, ) -> Result<Vec<Log>>
pub async fn fetch_swap_logs<P, T, N>( start_block: u64, end_block: u64, provider: Arc<P>, pool_type: PoolType, ) -> Result<Vec<Log>>
pub async fn fetch_sync_logs<P, T, N>( start_block: u64, end_block: u64, provider: Arc<P>, pool_type: PoolType, ) -> 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