-
Notifications
You must be signed in to change notification settings - Fork 76
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
33db163
commit 5b89ae8
Showing
7 changed files
with
156 additions
and
74 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,19 @@ | ||
mod service; | ||
pub mod strategies; | ||
|
||
use std::time::Duration; | ||
|
||
use reth::primitives::U256; | ||
pub use service::{Message, Service}; | ||
pub use strategies::Config; | ||
|
||
pub use service::{BidStatus, KeepAlive, Message, Service}; | ||
/// Do we expect to submit more bids or not? | ||
#[derive(Debug, Clone, Copy)] | ||
pub enum KeepAlive { | ||
Yes, | ||
} | ||
|
||
pub enum Bid { | ||
Wait(Duration), | ||
Submit { value: U256, keep_alive: KeepAlive }, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
mod deadline; | ||
mod basic; | ||
|
||
pub use deadline::{Config, DeadlineBidder}; | ||
pub use basic::{BasicStrategy, Config}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters