10000 Add support for `DomainID` in `MPTokenIssuance` transactions by Bronek · Pull Request #5509 · XRPLF/rippled · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Add support for DomainID in MPTokenIssuance transactions #5509

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 9 commits into
base: develop
Choose a base branch
from

Conversation

Bronek
Copy link
Collaborator
@Bronek Bronek commented Jun 24, 2025

High Level Overview of Change

Add support for DomainID to existing transactions MPTokenIssuanceCreate and MPTokenIssuanceSet

Context of Change

In #5224 we added DomainID as an access control mechanism for SingleAssetVault. The actual implementation of this feature lies in MPToken and MPTokenIssuance, hence it makes sense to enable the use of DomainID also in MPTokenIssuanceCreate and MPTokenIssuanceSet, following same rules as in Vault:

  • MPTokenIssuanceCreate and MPTokenIssuanceSet can only set DomainID if flag MPTRequireAuth is set
  • MPTokenIssuanceCreate requires that DomainID be a non-zero, uint256 number
  • MPTokenIssuanceSet allows DomainID to be zero (or empty) in which case it will remove DomainID from the MPTokenIssuance object

The change is amendment-gated by SingleAssetVault.

This is a non-breaking change because SingleAssetVault amendment is Supported::no, i.e. at this moment considered a work in progress, which cannot be enabled on the network.

Type of Change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Refactor (non-breaking change that only restructures code)
  • Performance (increase or change in throughput and/or latency)
  • Tests (you added tests for code that already exists, or your new feature included in this PR)
  • Documentation update
  • Chore (no impact to binary, e.g. .gitignore, formatting, dropping support for older tooling)
  • Release

@Bronek Bronek requested a review from a team as a code owner June 24, 2025 15:57
@Bronek Bronek changed the title Add support for DomainID in MPTokenIssuance transactions Add support for DomainID in MPTokenIssuance transactions Jun 24, 2025
@Bronek Bronek mentioned this pull request Jun 24, 2025
13 tasks
Copy link
codecov bot commented Jun 24, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 79.1%. Comparing base (9874d47) to head (3425938).

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##           develop   #5509   +/-   ##
=======================================
  Coverage     79.1%   79.1%           
=======================================
  Files          816     816           
  Lines        71622   71660   +38     
  Branches      8237    8235    -2     
=======================================
+ Hits         56644   56684   +40     
+ Misses       14978   14976    -2     
Files with missing lines Coverage Δ
include/xrpl/protocol/detail/ledger_entries.macro 100.0% <ø> (ø)
include/xrpl/protocol/detail/transactions.macro 100.0% <ø> (ø)
src/xrpld/app/tx/detail/MPTokenIssuanceCreate.cpp 96.2% <100.0%> (+2.0%) ⬆️
src/xrpld/app/tx/detail/MPTokenIssuanceSet.cpp 98.0% <100.0%> (+0.7%) ⬆️

... and 3 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.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@Bronek Bronek force-pushed the Bronek/DomainID_to_MPTokenIssuance_txs branch from 300fe81 to b486cdf Compare June 25, 2025 16:01
@Bronek Bronek requested a review from gregtatcam June 25, 2025 16:16
@Bronek Bronek self-assigned this Jun 26, 2025
@Bronek Bronek requested a review from gregtatcam July 2, 2025 12:24
@Bronek Bronek force-pushed the Bronek/DomainID_to_MPTokenIssuance_txs branch from 13ae4bd to 87282f2 Compare July 2, 2025 12:35
Copy link
Collaborator
@gregtatcam gregtatcam left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@Bronek Bronek requested a review from mvadari July 7, 2025 08:29
@vlntb vlntb self-requested a review July 7, 2025 13:03
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.

2 participants
0