Skip to content

refactor: switch db_events to concrete native_api::Api instance - #211

Merged
tlovell-sxt merged 1 commit into
mainfrom
feat/db-events-concrete-api
Aug 3, 2026
Merged

refactor: switch db_events to concrete native_api::Api instance#211
tlovell-sxt merged 1 commit into
mainfrom
feat/db-events-concrete-api

Conversation

@JayWhite2357

@JayWhite2357 JayWhite2357 commented Jul 30, 2026

Copy link
Copy Markdown
Contributor

Rationale for this change

In order to simplify the code, we can use the native_api::Api in the db_events module directly. This is the concrete implementation that is used in the actual runtime, and it can also be used in tests. A generic type is not needed for mocking.

Are these changes tested?

Existing test cover this change.

@JayWhite2357
JayWhite2357 requested review from a team as code owners July 30, 2026 23:37
@github-actions

github-actions Bot commented Jul 30, 2026

Copy link
Copy Markdown

1.70.0

Bug Fixes

  • make on chain indexer keys saturate rather than default to (5f794de
  • use finalized block in prover-db-indexer (50438ab

Features

  • add helper that queries the client for s. (4fc3952
  • add client native interface and extenality (d9c6c4d
  • add generic config key-value store for offchain workers (117b845
  • Document Snapshot Download Process (4c2608b
  • register client externality to offchain worker (338c213
  • use generic key value config for prover_db_indexing instead of storage/CLI based config (faff564

@JayWhite2357
JayWhite2357 force-pushed the feat/db-events-concrete-api branch from 5a3d791 to 6d75f09 Compare July 30, 2026 23:44
@JayWhite2357
JayWhite2357 force-pushed the feat/db-events-concrete-api branch from 6d75f09 to 40c9a27 Compare July 31, 2026 00:06
@JayWhite2357 JayWhite2357 changed the title feat: switch db_events to concrete native_api::Api instance feat: switch db_events to concrete native_api::Api instance Aug 3, 2026
@JayWhite2357 JayWhite2357 changed the title feat: switch db_events to concrete native_api::Api instance refactor: switch db_events to concrete native_api::Api instance Aug 3, 2026
@JayWhite2357
JayWhite2357 force-pushed the feat/db-events-concrete-api branch from 40c9a27 to 9a7602c Compare August 3, 2026 06:33

@tlovell-sxt tlovell-sxt left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, the fact that this is passing CI makes me wonder what motivated the original design, perplexing

@tlovell-sxt
tlovell-sxt merged commit 0b683b6 into main Aug 3, 2026
9 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.

2 participants