Sponsored Content
Skip to content

Add delegation tests for Confidential Transfers - #6729

Merged
yinyiqian1 merged 2 commits into
XRPLF:ripple/confidential-transferfrom
yinyiqian1:confidential-delegation
Apr 7, 2026
Merged

Add delegation tests for Confidential Transfers#6729
yinyiqian1 merged 2 commits into
XRPLF:ripple/confidential-transferfrom
yinyiqian1:confidential-delegation

Conversation

@yinyiqian1

@yinyiqian1 yinyiqian1 commented Apr 6, 2026

Copy link
Copy Markdown
Contributor

This PR tests confidential transfer + delegation

High Level Overview of Change

Context of Change

API Impact

  • Public API: New feature (new methods and/or new fields)
  • Public API: Breaking change (in general, breaking changes should only impact the next api_version)
  • libxrpl change (any change that may affect libxrpl or dependents of libxrpl)
  • Peer protocol change (must be backward compatible or bump the peer protocol version)

@yinyiqian1
yinyiqian1 force-pushed the confidential-delegation branch from d4b2a6e to bdb455a Compare April 6, 2026 22:02
@yinyiqian1
yinyiqian1 force-pushed the confidential-delegation branch from bdb455a to 8f54e4b Compare April 6, 2026 22:08
@yinyiqian1
yinyiqian1 marked this pull request as ready for review April 6, 2026 22:09
@yinyiqian1 yinyiqian1 changed the title Add delegation tests Add delegation tests for Confidential Transfers Apr 6, 2026
@codecov

codecov Bot commented Apr 6, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 81.7%. Comparing base (697786a) to head (8f54e4b).
⚠️ Report is 2 commits behind head on ripple/confidential-transfer.

Additional details and impacted files

Impacted file tree graph

@@                     Coverage Diff                      @@
##           ripple/confidential-transfer   #6729   +/-   ##
============================================================
  Coverage                          81.7%   81.7%           
============================================================
  Files                              1023    1023           
  Lines                             75724   75714   -10     
  Branches                           7556    7553    -3     
============================================================
- Hits                              61873   61866    -7     
+ Misses                            13851   13848    -3     

see 7 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.

@yinyiqian1
yinyiqian1 requested a review from shawnxie999 April 7, 2026 15:16
Comment thread src/test/app/ConfidentialTransfer_test.cpp

@PeterChen13579 PeterChen13579 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.

LGTM

Comment thread src/test/jtx/mpt.h
Comment on lines +547 to +553
if (ticketSeq && delegateAcct)
env_(
jv,
expectedFlags,
expectedTer,
ticket::use(*ticketSeq),
delegate::as(*delegateAcct));

@shawnxie999 shawnxie999 Apr 7, 2026

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.

do we have a test of delegation using tickets?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Good catch, I'll create a separate PR for delegation+ticket

@yinyiqian1
yinyiqian1 merged commit 0d7bf69 into XRPLF:ripple/confidential-transfer Apr 7, 2026
3 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.

3 participants