Commit 8401c50
Victor Castell
refactor: vanilla (#329)
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]](diffhunk://#diff-d9386ae9b1b2b470dad4ccbda209e421925557caa6d602f50a2b46298da7fa9bL142-R155)
[[2]](diffhunk://#diff-d9386ae9b1b2b470dad4ccbda209e421925557caa6d602f50a2b46298da7fa9bL209-R223)
* Added `ProofBackend` to the imports in the test module to support the
new test setup.1 parent cff7937 commit 8401c50
5 files changed
Lines changed: 410 additions & 220 deletions
File tree
- crates
- proposer-db-client/src
- proposer-service
- src
- tests
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
178 | 178 | | |
179 | 179 | | |
180 | 180 | | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
181 | 217 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
55 | 58 | | |
56 | 59 | | |
57 | 60 | | |
| |||
0 commit comments