Skip to content

Commit

Permalink
add some docs
Browse files Browse the repository at this point in the history
  • Loading branch information
mteam88 committed Sep 14, 2023
1 parent 37e143b commit 7a7c999
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions crates/artemis-core/src/executors/mev_share_executor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ pub struct MevshareExecutor {
}

impl MevshareExecutor {
/// Create a new executor with the Flashbots mev-share relay
pub fn new(signer: impl Signer + Clone + 'static) -> Self {
// Set up flashbots-style auth middleware
let http = HttpClientBuilder::default()
Expand All @@ -30,6 +31,7 @@ impl MevshareExecutor {
mev_share_client: Box::new(http),
}
}
/// Create a new executor and specify a relay url
pub fn new_with_relay(signer: impl Signer + Clone + 'static, relay: &str) -> Self {
// Set up flashbots-style auth middleware
let http = HttpClientBuilder::default()
Expand Down

0 comments on commit 7a7c999

Please sign in to comment.