Skip to content

Commit

Permalink
expose auction result fields (#1781)
Browse files Browse the repository at this point in the history
  • Loading branch information
imabdulbasit authored Jul 30, 2024
2 parents 2b90834 + f43ceab commit a61d0fd
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions types/src/v0/impls/auction.rs
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,22 @@ impl BidTx {
}

impl SolverAuctionResults {
pub fn new(
view_number: ViewNumber,
winning_bids: Vec<BidTx>,
reserve_bids: Vec<(NamespaceId, Url)>,
) -> Self {
Self {
view_number,
winning_bids,
reserve_bids,
}
}

pub fn view(&self) -> ViewNumber {
self.view_number
}

pub fn winning_bids(&self) -> &[BidTx] {
&self.winning_bids
}
Expand Down

0 comments on commit a61d0fd

Please sign in to comment.