Skip to content

refactor: vanilla#329

Merged
vcastellm merged 3 commits intovanilla-proposerfrom
refactor-vanilla
Jan 14, 2026
Merged

refactor: vanilla#329
vcastellm merged 3 commits intovanilla-proposerfrom
refactor-vanilla

Conversation

@vcastellm
Copy link
Copy Markdown
Contributor

This pull request introduces a new utility function for waiting on proof completion in the ProposerDBClient, adds a new dependency for interoperability, and refactors the ProposerService test setup to use a constructor method for improved clarity and maintainability.

Core functionality improvements:

  • Added a new async method wait_for_proof_completion to ProposerDBClient that polls for a proof's completion, handling retries and error cases such as failure, cancellation, or timeout.

Dependency updates:

  • Added agglayer-interop-types as a workspace dependency in crates/proposer-service/Cargo.toml to improve interoperability with other ecosystem components.

Test and codebase refactoring:

  • Updated the ProposerService test setup to use the ProposerService::new constructor and the ProofBackend::Grpc variant, replacing direct struct initialization for better encapsulation and maintainability in crates/proposer-service/src/tests/mod.rs. [1] [2]
  • Added ProofBackend to the imports in the test module to support the new test setup.

Replace former client/db fields with a ProofBackend enum and unify
backend initialization and usage. Update aggregation vkey extraction,
FEP request handling to pattern-match on the backend (Database vs Grpc),
and adjust tests and constructors to the new API.
Add agglayer-interop-types dependency. Replace ad-hoc debug prints with
structured error logging and propagate errors using map_err. Clone
backend when matching Database to avoid borrow issues and use
sp1_fast-wrapped deserialization to prevent panics.
@vcastellm vcastellm requested a review from a team as a code owner January 14, 2026 15:29
@vcastellm vcastellm requested review from Ekleog-Polygon, Freyskeyd, adria0pol, atanmarko, hadjiszs, iljakuklic and polykeith and removed request for a team January 14, 2026 15:29
@vcastellm vcastellm merged commit 8401c50 into vanilla-proposer Jan 14, 2026
8 of 12 checks passed
@vcastellm vcastellm deleted the refactor-vanilla branch January 14, 2026 15:29
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.

1 participant