Skip to content

Conversation

@drahnr
Copy link
Contributor

@drahnr drahnr commented Nov 27, 2025

Unify API calls

The new API is flexible enough to address all needs and avoid loading a lot of data from the DB.

Main changes in:

crates/proto/src/domain/account.rs:

  • Renamed domain structs: AccountProofRequestAccountRequest, AccountProofResponseAccountResponse
  • Dropped GetAccountDetails*

Caveat

Will require client changes!

Part 2

This is part 1 of two pieces. The second piece is in and does the actual DB changes, as well as populate the SmtForest. This is NOT part of this PR.

Open Questions

Do we want compatibility on the RPC level to give the client some more migration time, or is the change bounded enough?

Part of #1349
Part 1 of 2 of the remaining pieces in #1185

@drahnr drahnr changed the title refacotr: unify get_account_details and get_account_proof[s] refactor: unify get_account_details and get_account_proof[s] Nov 27, 2025
@drahnr drahnr marked this pull request as ready for review November 27, 2025 20:46
@Mirko-von-Leipzig
Copy link
Collaborator

@igamigo could you weigh in on

Do we want compatibility on the RPC level to give the client some more migration time, or is the change bounded enough?

@igamigo
Copy link
Collaborator

igamigo commented Nov 28, 2025

@igamigo could you weigh in on

Do we want compatibility on the RPC level to give the client some more migration time, or is the change bounded enough?

At least a very simple version of replacing get_account_details should be very quick to write (we already have the syncing endpoints implemented), so I wouldn't spend time providing a replacement here

@drahnr drahnr force-pushed the bernhard-unify-get-details-and-get-proofs branch from 7e654d4 to 1755724 Compare November 29, 2025 14:03
@bobbinth bobbinth requested a review from igamigo December 1, 2025 18:30
@drahnr drahnr force-pushed the bernhard-unify-get-details-and-get-proofs branch from 69e1952 to 977e30f Compare December 2, 2025 14:15
Copy link
Collaborator

@igamigo igamigo left a comment

Choose a reason for hiding this comment

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

LGTM! Left a few comments, mostly nits. There is only one comment related to the functionality of the network monitor that I'm wondering about.

Copy link
Contributor

@bobbinth bobbinth left a comment

Choose a reason for hiding this comment

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

Looks good! Thank you! I left just a coupe of small comments inline.

Copy link
Contributor

Choose a reason for hiding this comment

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

nit: not for this PR, but I'd try to break up this file into a couple of smaller files.

Base automatically changed from bernhard-partial-storage-map-queries to next January 14, 2026 10:30
Copy link
Collaborator

@igamigo igamigo left a comment

Choose a reason for hiding this comment

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

LGTM

@drahnr drahnr merged commit 4f99654 into next Jan 14, 2026
19 checks passed
@drahnr drahnr deleted the bernhard-unify-get-details-and-get-proofs branch January 14, 2026 20:22
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.

5 participants