Skip to content

refactor(rpc): clean up api.rs with section separators and comments#1713

Merged
Mirko-von-Leipzig merged 4 commits into0xMiden:nextfrom
eren-karakus0:fix/issue-1458-cleanup-rpc-api
Feb 27, 2026
Merged

refactor(rpc): clean up api.rs with section separators and comments#1713
Mirko-von-Leipzig merged 4 commits into0xMiden:nextfrom
eren-karakus0:fix/issue-1458-cleanup-rpc-api

Conversation

@eren-karakus0
Copy link
Contributor

Summary

Organizes crates/rpc/src/server/api.rs for better readability as requested in #1457 review comment:

  • Add section separators (API IMPLEMENTATION, HELPERS) following project conventions
  • Add subsection comments grouping methods by category (nullifier, block, note, account, transaction submission, status & utility)
  • Reorder methods within the impl Api block to match logical grouping
  • Extract duplicated decorator stripping logic into strip_output_note_decorators helper function
  • Add doc comments to non-trivial methods (submit_proven_transaction, submit_proven_batch, get_account)

No logic changes — purely organizational.

Closes #1458

@Mirko-von-Leipzig Mirko-von-Leipzig self-requested a review February 26, 2026 17:24
eren-karakus0 added a commit to eren-karakus0/node that referenced this pull request Feb 26, 2026
Organize `crates/rpc/src/server/api.rs` for better readability:

- Add section separators (API IMPLEMENTATION, HELPERS) following
  project conventions
- Add subsection comments grouping methods by category (nullifier,
  block, note, account, transaction submission, status & utility)
- Reorder methods within the impl block to match logical grouping
- Extract duplicated decorator stripping logic into
  `strip_output_note_decorators` helper function
- Add doc comments to non-trivial methods (submit_proven_transaction,
  submit_proven_batch, get_account)

No logic changes - purely organizational.

Closes 0xMiden#1458
@eren-karakus0 eren-karakus0 force-pushed the fix/issue-1458-cleanup-rpc-api branch from be752bb to d0caebd Compare February 26, 2026 18:08
@Mirko-von-Leipzig Mirko-von-Leipzig added the no changelog This PR does not require an entry in the `CHANGELOG.md` file label Feb 27, 2026
Copy link
Collaborator

@Mirko-von-Leipzig Mirko-von-Leipzig left a comment

Choose a reason for hiding this comment

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

Thank you, just the changelog entry removal.

This looks quite a lot better!

@Mirko-von-Leipzig Mirko-von-Leipzig merged commit 2f4dc6f into 0xMiden:next Feb 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

no changelog This PR does not require an entry in the `CHANGELOG.md` file

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Clean up crates/rpc/src/server/api.rs

2 participants