Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added auction_id field to /settle and /reveal driver requests. #3212

Merged
merged 2 commits into from
Jan 8, 2025

Conversation

mstrug
Copy link
Contributor

@mstrug mstrug commented Jan 7, 2025

Description

This is a continuation of the previous PR #3131 which added auction_id field as optional on the driver /settle and /reveal requests. Because this is API breaking change we had to wait for Solvers teams to updated their driver version, so they will support new auction_id field.
Current PR changes auction_id field from optional to mandatory and starts sending it from the autopilot.

Changes

This is mainly port of PR #3113 which introduced API break (and was reverted with PR #3131) on to the current main branch: updated driver and autopilot DTOs, added code to use these new fields and added additional condition on driver side to verify if provided solution_id is competing in provided auction_id.
OpenAPI definition is already up to date.

How to test

Existing tests, esp. driver_handles_solutions_based_on_id().

@mstrug mstrug requested a review from a team as a code owner January 7, 2025 13:10
crates/driver/src/infra/api/routes/reveal/mod.rs Outdated Show resolved Hide resolved
crates/driver/src/infra/api/routes/settle/mod.rs Outdated Show resolved Hide resolved
@mstrug mstrug merged commit 2f54635 into main Jan 8, 2025
11 checks passed
@mstrug mstrug deleted the api/driver-add-auction-id-2 branch January 8, 2025 10:26
@github-actions github-actions bot locked and limited conversation to collaborators Jan 8, 2025
@sunce86
Copy link
Contributor

sunce86 commented Jan 8, 2025

@cowprotocol/solver can we also make sure colocated solvers also confirmed they are complaint to avoid similar
downtime we had when solution_id was changed?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants