Skip to content

Commit 1942afa

Browse files
committed
Add the universal bundle
1 parent aa13ab5 commit 1942afa

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

searcher-api-types/src/lib.rs

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,22 @@
1+
use serde::{Deserialize, Serialize};
2+
13
pub mod beaver;
24
pub mod flashbots;
35
pub mod titan;
46

57
pub use beaver::*;
68
pub use flashbots::*;
79
pub use titan::*;
10+
11+
/// Universal bundle submission RPC type
12+
///
13+
/// This type represents what Lynx accepts from external order flow providers.
14+
#[derive(Clone, Debug, Deserialize, Serialize)]
15+
pub enum SendBundleRequest {
16+
/// Flashbots bundle
17+
Flashbots(FlashbotsBundle),
18+
/// Beaverbuild bundle
19+
Beaver(BeaverBundle),
20+
/// Titan Builder bundle
21+
Titan(TitanBundle),
22+
}

0 commit comments

Comments
 (0)