Skip to content

DRAFT: Number expansion#6042

Closed
ximinez wants to merge 21 commits intodevelopfrom
ximinez/number-expansion
Closed

DRAFT: Number expansion#6042
ximinez wants to merge 21 commits intodevelopfrom
ximinez/number-expansion

Conversation

@ximinez
Copy link
Collaborator

@ximinez ximinez commented Nov 16, 2025

(Code was originally in branch ximinez/lending-number-simple, #6025

High Level Overview of Change

Context of Change

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

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)

- Update the conversion points between Number and *Amount & STNumber.
- Tests probably don't pass.
- Track down and fix edge cases.
- Some refactoring and renaming for clarity and simplicity
- Field will be absent in RPC results instead of returning 0.
…number-simple

* upstream/develop:
  chore: Clean up incorrect comments (6031)
  refactor: Retire MultiSignReserve and ExpandedSignerList amendments (5981)
- Update tests. Unfinished.
- TODO: Finish Number tests. Use both modes for STNumber tests. Move
  mantissa_scale into MantissaRange.
- Nothing really needed to be changed in the tests, but I added a couple
  of test cases for the min and max int64.
- Added test cases min int64.
- Updated numberFromJson range checking to use the larger range
  available from Number.
- Default Number outside of transaction processing to be "large" so RPC
  will work.
@ximinez ximinez closed this Nov 16, 2025
@ximinez ximinez deleted the ximinez/number-expansion branch November 16, 2025 22:45
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.

1 participant