Skip to content

feat: add full support for all objects in ledger_entry#6319

Open
mvadari wants to merge 10 commits intoXRPLF:developfrom
mvadari:ledger-entry-all
Open

feat: add full support for all objects in ledger_entry#6319
mvadari wants to merge 10 commits intoXRPLF:developfrom
mvadari:ledger-entry-all

Conversation

@mvadari
Copy link
Collaborator

@mvadari mvadari commented Feb 3, 2026

High Level Overview of Change

This PR adds full support (including the keylet parts) for checks, NFT offers, payment channels, and signer lists.

Context of Change

Fixes #5198

Type of Change

  • New feature (non-breaking change which adds functionality)

API Impact

  • Public API: New feature (new methods and/or new fields)\

Before / After

Before: checks, NFT offers, payment channels, and signer lists only had basic support, to identify the object from its hash.

After: Those objects can now also be identified from the pieces that form their keylets.

Test Plan

Tests are added and pass.

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adds keylet-based lookup support in the ledger_entry RPC for several ledger object types that previously only supported direct hash/index lookup, aligning behavior with the goal of supporting all object types.

Changes:

  • Extend ledger_entry parsing to compute keylets for Checks, NFTokenOffers, PayChannels, and SignerLists from their component fields.
  • Add/expand RPC tests to cover lookups by both hash and keylet parts, including non-existent entry cases.
  • Update malformed-parameter test helpers/mappings to include newly used fields (e.g., destination).

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
src/xrpld/rpc/handlers/LedgerEntry.cpp Adds object-form parsing for check / nft_offer / payment_channel / signer_list to compute the correct keylet-derived ledger index.
src/test/rpc/LedgerEntry_test.cpp Adds positive and negative coverage for the new object-form requests and updates malformed-field testing to match the expanded input types.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@codecov
Copy link

codecov bot commented Feb 3, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 79.9%. Comparing base (ac0ad36) to head (5b8286d).

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##           develop   #6319   +/-   ##
=======================================
  Coverage     79.9%   79.9%           
=======================================
  Files          842     842           
  Lines        65538   65570   +32     
  Branches      7253    7252    -1     
=======================================
+ Hits         52379   52413   +34     
+ Misses       13159   13157    -2     
Files with missing lines Coverage Δ
src/xrpld/rpc/handlers/LedgerEntry.cpp 84.7% <100.0%> (+1.2%) ⬆️

... and 2 files with indirect coverage changes

Impacted file tree graph

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copilot AI review requested due to automatic review settings February 5, 2026 20:00
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 3 out of 3 changed files in this pull request and generated no new comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copilot AI review requested due to automatic review settings February 10, 2026 22:24
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 3 out of 3 changed files in this pull request and generated no new comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copilot AI review requested due to automatic review settings February 13, 2026 22:03
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 3 out of 3 changed files in this pull request and generated no new comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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.

Add NFT Offer support to ledger_entry

1 participant