Skip to content

Refactor: decouple solver runtime & API services#3

Merged
louisinger merged 2 commits into
masterfrom
refactor/decouple-solver-from-api
Jun 1, 2026
Merged

Refactor: decouple solver runtime & API services#3
louisinger merged 2 commits into
masterfrom
refactor/decouple-solver-from-api

Conversation

@chris-ricketts
Copy link
Copy Markdown
Contributor

Closes #2

Summary

  • Refactors solverd so runtime orchestration is separate from API/application services.
  • Keeps TakerService focused on pair, trade, wallet, and balance operations.
  • Keeps PreimageService focused on exposing preimage metadata.
  • Runs banco and preimage plugins through one shared solver runtime.
  • Extracts reusable runtime wiring into internal/solverd.Run and SetupWallet.
  • Lets e2e tests use the same runtime path as production.
  • Updates e2e tests to interact through the real gRPC API.
  • Adds deterministic price feed injection for tests.
  • Makes closed plugin streams explicit with solver.ErrAllStreamsClosed.
  • Switches gRPC server setup to option-based service registration.

@louisinger louisinger merged commit 9005e42 into master Jun 1, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Refactor: decouple solver from API services

2 participants