Expand description
support for polling filters Support for polling based filters
Re-exportsยง
use crate::StorageInfo;๐use crate::eth::backend::notifications::ChainNotification;๐use crate::eth::backend::notifications::ChainNotifications;๐use crate::eth::error::ToRpcResponseResult;๐use crate::pubsub::filter_logs;๐use crate::pubsub::filter_removed_logs;๐use alloy_consensus::TxReceipt;๐use alloy_network::AnyRpcTransaction;๐use alloy_network::Network;๐use alloy_primitives::TxHash;๐use alloy_primitives::map::HashMap;๐use alloy_rpc_types::Filter;๐use alloy_rpc_types::FilteredParams;๐use alloy_rpc_types::Log;๐use anvil_core::eth::subscription::SubscriptionId;๐use anvil_rpc::error::ErrorCode;๐use anvil_rpc::error::RpcError;๐use anvil_rpc::response::ResponseResult;๐use futures::Stream;๐use futures::StreamExt;๐use futures::channel::mpsc::Receiver;๐use std::pin::Pin;๐use std::sync::Arc;๐use std::task::Context;๐use std::task::Poll;๐use std::time::Duration;๐use std::time::Instant;๐use tokio::sync::Mutex;๐use tokio::sync::mpsc;๐
Structsยง
- Filters
- Contains all registered filters
- Logs
Filter - Listens for new blocks and matching logs emitted in that block
Enumsยง
- EthFilter
- Represents a poll based filter
Constantsยง
- ACTIVE_
FILTER_ TIMEOUT_ SECS - timeout after which to remove an active filter if it wasnโt polled since then
Functionsยง
- new_id ๐
- returns a new random hex id
Type Aliasesยง
- Filter
Map ๐ - Type alias for filters identified by their id and their expiration timestamp