-
Notifications
You must be signed in to change notification settings - Fork 91
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
# Description Given an `auction_id`, fetches `settlement::Auction` from database. `settlement::Auction` contains very similar data as `domain::Auction`. # Changes <!-- List of detailed changes (how the change is accomplished) --> - [ ] Implemented `infra::persistence::get_auction` to get `settlement::Auction`. - [ ] fetched object becomes a part of a `domain::Settlement` ## How to test Added test log to `OnSettlementEventUpdater` that reports differences in the promised score vs delivered score. This should be enough to observe different settlements in prod. Locally, I've observed the output of different e2e tests and it looks good. Non-failure of any e2e tests should give a sanity check.
- Loading branch information
Showing
11 changed files
with
293 additions
and
30 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
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 |
---|---|---|
@@ -0,0 +1,22 @@ | ||
//! Auction data related to the specific settlement. | ||
use { | ||
crate::domain::{self}, | ||
std::collections::HashMap, | ||
}; | ||
|
||
#[derive(Debug)] | ||
pub struct Auction { | ||
pub id: domain::auction::Id, | ||
/// All orders from a competition auction. Some of them may contain fee | ||
/// policies. | ||
pub orders: HashMap<domain::OrderUid, Vec<domain::fee::Policy>>, | ||
/// Auction external prices | ||
pub prices: domain::auction::Prices, | ||
/// Deadline for an auction solution to be settled, so that it is eligible | ||
/// for rewards. | ||
pub deadline: domain::eth::BlockNo, | ||
/// JIT orders with surplus capturing JIT order owners should capture | ||
/// surplus if settled. | ||
pub surplus_capturing_jit_order_owners: Vec<domain::eth::Address>, | ||
} |
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
Oops, something went wrong.