Skip to content

refactor: Move SponsorshipTransfer code around, add some comments#7662

Merged
mvadari merged 10 commits into
xrplf/sponsorfrom
mvadari/sponsor/transfer
Jun 30, 2026
Merged

refactor: Move SponsorshipTransfer code around, add some comments#7662
mvadari merged 10 commits into
xrplf/sponsorfrom
mvadari/sponsor/transfer

Conversation

@mvadari

@mvadari mvadari commented Jun 29, 2026

Copy link
Copy Markdown
Collaborator

High Level Overview of Change

Title pretty much says it all, no functionality change

Context of Change

An initial cut of some refactor efforts

API Impact

N/A

Copilot AI review requested due to automatic review settings June 29, 2026 16:43

Copilot AI 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.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@mvadari mvadari requested a review from yinyiqian1 June 29, 2026 16:43

@xrplf-ai-reviewer xrplf-ai-reviewer Bot 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.

Clean refactor. No issues.

Review by Claude Sonnet 4.6 · Prompt: V15

Comment thread src/libxrpl/tx/transactors/Sponsor/SponsorshipTransfer.cpp Outdated

@xrplf-ai-reviewer xrplf-ai-reviewer Bot 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.

Missing standard includes flagged inline — header won't compile standalone.

Review by Claude Sonnet 4.6 · Prompt: V15

Comment thread include/xrpl/ledger/helpers/OracleHelpers.h
@codecov

codecov Bot commented Jun 29, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 88.13559% with 7 lines in your changes missing coverage. Please review.
✅ Project coverage is 82.1%. Comparing base (494391b) to head (a156641).
⚠️ Report is 21 commits behind head on xrplf/sponsor.

Files with missing lines Patch % Lines
include/xrpl/ledger/helpers/SponsorHelpers.h 86.0% 6 Missing ⚠️
src/libxrpl/tx/invariants/SponsorshipInvariant.cpp 0.0% 1 Missing ⚠️
Additional details and impacted files

Impacted file tree graph

@@               Coverage Diff               @@
##           xrplf/sponsor   #7662     +/-   ##
===============================================
- Coverage           82.2%   82.1%   -0.1%     
===============================================
  Files               1016    1017      +1     
  Lines              78375   78196    -179     
  Branches            8996    9012     +16     
===============================================
- Hits               64438   64228    -210     
- Misses             13928   13959     +31     
  Partials               9       9             
Files with missing lines Coverage Δ
include/xrpl/ledger/helpers/OracleHelpers.h 100.0% <100.0%> (ø)
include/xrpl/tx/transactors/oracle/OracleSet.h 100.0% <ø> (ø)
...rpl/tx/transactors/Sponsor/SponsorshipTransfer.cpp 88.4% <100.0%> (-1.8%) ⬇️
src/libxrpl/tx/invariants/SponsorshipInvariant.cpp 92.9% <0.0%> (-3.6%) ⬇️
include/xrpl/ledger/helpers/SponsorHelpers.h 92.0% <86.0%> (-5.8%) ⬇️

... and 12 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.

@xrplf-ai-reviewer xrplf-ai-reviewer Bot 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.

Ship it

Review by Claude Sonnet 4.6 · Prompt: V15

@xrplf-ai-reviewer xrplf-ai-reviewer Bot 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.

No issues.

Review by Claude Sonnet 4.6 · Prompt: V15

@mvadari mvadari requested a review from PeterChen13579 June 30, 2026 03:37

@PeterChen13579 PeterChen13579 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

looks good to me; I have one small comment regarding the hardcoded numbers, I'm okay if you fix or not to.

Comment thread include/xrpl/ledger/helpers/OracleHelpers.h Outdated

@xrplf-ai-reviewer xrplf-ai-reviewer Bot 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.

No issues.

Review by Claude Sonnet 4.6 · Prompt: V15

@github-actions

Copy link
Copy Markdown

This PR has conflicts, please resolve them in order for the PR to be reviewed.

@github-actions

Copy link
Copy Markdown

All conflicts have been resolved. Assigned reviewers can now start or resume their review.

@xrplf-ai-reviewer xrplf-ai-reviewer Bot 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.

Good to go

Review by Claude Sonnet 4.6 · Prompt: V15

@xrplf-ai-reviewer xrplf-ai-reviewer Bot 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.

No issues.

Review by Claude Sonnet 4.6 · Prompt: V15

@mvadari mvadari merged commit 09b5cd9 into xrplf/sponsor Jun 30, 2026
39 checks passed
@mvadari mvadari deleted the mvadari/sponsor/transfer branch June 30, 2026 18:06
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.

4 participants