-
Notifications
You must be signed in to change notification settings - Fork 77
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
563e727
commit b0527c9
Showing
4 changed files
with
54 additions
and
16 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
use astria_eyre::eyre; | ||
|
||
use super::AuctionDriver; | ||
use crate::Metrics; | ||
|
||
pub(crate) struct Builder { | ||
pub(crate) metrics: &'static Metrics, | ||
} | ||
|
||
impl Builder { | ||
pub(crate) fn build(self) -> eyre::Result<AuctionDriver> { | ||
let Self { | ||
metrics, | ||
} = self; | ||
|
||
Ok(AuctionDriver { | ||
metrics, | ||
}) | ||
} | ||
} |
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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
use astria_eyre::eyre; | ||
|
||
use crate::Metrics; | ||
|
||
mod builder; | ||
pub(crate) use builder::Builder; | ||
|
||
pub(crate) struct AuctionDriver { | ||
#[warn(dead_code)] | ||
metrics: &'static Metrics, | ||
} | ||
|
||
impl AuctionDriver { | ||
pub(crate) async fn run(self) -> eyre::Result<()> { | ||
todo!("implement me") | ||
} | ||
} |
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,5 +1,6 @@ | ||
//! TODO: Add a description | ||
mod auction_driver; | ||
mod auctioneer; | ||
mod build_info; | ||
pub mod config; | ||
|