ethers_flashbots/
lib.rs

1//! # Ethers Flashbots
2//!
3//! Provides an [ethers](https://docs.rs/ethers) compatible middleware for submitting
4//! [Flashbots](https://docs.flashbots.net) bundles.
5//!
6//! In addition to leveraging the standard Ethers middleware API ([`send_transaction`][ethers::providers::Middleware::send_transaction]),
7//! custom bundles can be crafted, simulated and submitted.
8mod bundle;
9pub use bundle::{
10    BundleHash, BundleRequest, BundleStats, BundleTransaction, SimulatedBundle,
11    SimulatedTransaction,
12};
13
14mod pending_bundle;
15pub use pending_bundle::{PendingBundle, PendingBundleError};
16
17mod user;
18pub use user::UserStats;
19
20mod middleware;
21pub use middleware::{BroadcasterMiddleware, FlashbotsMiddleware, FlashbotsMiddlewareError};
22
23mod jsonrpc;
24mod relay;
25pub use relay::{Relay, RelayError};
26
27mod utils;