Commit Graph

267 Commits

Author SHA1 Message Date
Mayukha Vadari
6ca751df04 fix bugs and inconsistencies 2026-03-23 17:28:24 -07:00
Mayukha Vadari
4a5ad8925c fix issues 2026-03-23 12:46:42 -07:00
Mayukha Vadari
b0c8404d35 fix includes 2026-03-23 11:31:10 -07:00
Mayukha Vadari
8caf6b7210 fix all instances of keylet::mptoken 2026-03-23 11:31:10 -07:00
Mayukha Vadari
0c77be93d3 initial implementation of token holders 2026-03-23 11:31:10 -07:00
Mayukha Vadari
3bc460951c add makeNew functions 2026-03-23 11:07:31 -07:00
Mayukha Vadari
733dd51720 fix includes 2026-03-23 10:54:06 -07:00
Mayukha Vadari
4e92ec2daf fix issues 2026-03-23 10:54:06 -07:00
Mayukha Vadari
6afcf51dee rename MPToken -> MPTokenIssuance 2026-03-23 10:54:06 -07:00
Mayukha Vadari
7e62ecb63b more usage of IOUToken 2026-03-23 10:54:06 -07:00
Mayukha Vadari
ad2c359f21 more usage of MPToken 2026-03-23 10:54:06 -07:00
Mayukha Vadari
96d4a69a37 add some more helper functions 2026-03-23 10:54:06 -07:00
Mayukha Vadari
14fbdd5a1c implement most of the token stuff 2026-03-23 10:54:06 -07:00
Mayukha Vadari
3c5e87888e establish architecture for creating a new object 2026-03-23 10:53:45 -07:00
Mayukha Vadari
8e218a6285 cleanup 2026-03-23 09:59:13 -07:00
Mayukha Vadari
c9db124015 add readme 2026-03-23 09:23:50 -07:00
Mayukha Vadari
7056b43c5e WrappedSLEBase -> SLEBase 2026-03-23 09:23:43 -07:00
Mayukha Vadari
ee370fefee fix issues 2026-03-23 09:23:02 -07:00
Mayukha Vadari
e68d74cda4 fix account_ 2026-03-23 09:23:01 -07:00
Mayukha Vadari
89a3a6c379 more fixes 2026-03-23 09:22:59 -07:00
Mayukha Vadari
f3a6d17b5b fix long tail issues 2026-03-23 09:21:44 -07:00
Mayukha Vadari
45531b1eaf fix more AccountRoot stuff 2026-03-23 09:21:44 -07:00
Mayukha Vadari
fa8de2b47f change . to -> 2026-03-23 09:21:44 -07:00
Mayukha Vadari
6fcda8802e clean up comments 2026-03-23 09:21:44 -07:00
Mayukha Vadari
0cf42b150c Add insert/update/erase to WritableSLE 2026-03-23 09:21:44 -07:00
Mayukha Vadari
74b010a905 split up read only and write 2026-03-23 09:21:44 -07:00
Mayukha Vadari
265deccabe minor improvements 2026-03-23 09:21:44 -07:00
Mayukha Vadari
ea1146d413 fix remaining build issues 2026-03-23 09:21:44 -07:00
Mayukha Vadari
d9bf263543 fix all the build issues 2026-03-23 09:21:42 -07:00
Mayukha Vadari
1f73da466c First cut of WrappedAccountRoot 2026-03-23 09:21:17 -07:00
Mayukha Vadari
e9eb5e53c9 add WrappedSLEBase 2026-03-23 09:21:15 -07:00
Mayukha Vadari
e0dbe90370 refactor: Move ledger entry helper functions from View.h/View.cpp to dedicated helper files (#6453)
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2026-03-23 15:39:58 +00:00
Jingchen
b1e5ba0518 feat: Add code generator for transactions and ledger entries (#6443)
Signed-off-by: JCW <a1q123456@users.noreply.github.com>
Co-authored-by: Bart <bthomee@users.noreply.github.com>
2026-03-18 21:11:51 +00:00
Mayukha Vadari
d360e7c5b6 refactor: Rename transactor files/classes to match the tx name (#6580) 2026-03-18 19:52:07 +00:00
Alex Kremer
57e4cbbcd9 refactor: Add simple clang-tidy readability checks (#6556)
This change enables the following clang-tidy checks:
-  readability-avoid-nested-conditional-operator,
-  readability-avoid-return-with-void-value,
-  readability-braces-around-statements,
-  readability-const-return-type,
-  readability-container-contains,
-  readability-container-size-empty,
-  readability-else-after-return,
-  readability-make-member-function-const,
-  readability-redundant-casting,
-  readability-redundant-inline-specifier,
-  readability-redundant-member-init,
-  readability-redundant-string-init,
-  readability-reference-to-constructed-temporary,
-  readability-static-definition
2026-03-18 16:41:49 +00:00
Mayukha Vadari
b92a9a3053 fix: Make assorted NFT fixes (#6566)
This change:
* Removes a set of unnecessary brackets in the initialization of an `std::uint32_t`.
* Fixes a couple of incorrect flags (same value, just wrong variables - so no amendment needed).
2026-03-18 14:47:59 +00:00
Mayukha Vadari
dcaef828b4 refactor: Replace !=/== tesSuccess with using isTesSuccess (#6409)
This change replaces all instances of `<variable> != tesSUCCESS` with `!isTesSuccess(<variable>)` and `<variable> == tesSUCCESS` with `isTesSuccess(<variable>)`.
2026-03-18 14:15:10 +00:00
Copilot
9e14707e77 fix: Peer crawler port field type inconsistency (#6318)
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: mvadari <8029314+mvadari@users.noreply.github.com>
Co-authored-by: Mayukha Vadari <mvadari@gmail.com>
Co-authored-by: Mayukha Vadari <mvadari@ripple.com>
Co-authored-by: Bart <bthomee@users.noreply.github.com>
2026-03-17 22:03:56 +00:00
tequ
b129b71c33 refactor: Use ReadView instead of ApplyView in authorizedDepositPreauth() (#6560) 2026-03-17 15:56:51 -04:00
tequ
013c2d6a56 refactor: Add const qualifier to SLE in verifyDepositPreauth parameter (#6555) 2026-03-17 19:33:18 +00:00
Alex Kremer
72f4cb097f refactor: Enable remaining clang-tidy cppcoreguidelines checks (#6538) 2026-03-17 19:09:05 +00:00
Mayukha Vadari
78b2d70a11 refactor: Assorted small DID fixes (#6552)
This change:
* Makes `addSLE` in `DIDSet` a static function, instead of a free function.
* Renames `Attestation` to `Data` everywhere (an artifact of a previous name for the field).
* Actually runs a set of tests that were not included in the `run` function of `DID_test`.
2026-03-17 14:44:07 +00:00
Mayukha Vadari
252c6768df refactor: Clean up getFeePayer, mSourceBalance, and mPriorBalance (#6478)
This change:
* Introduces a new helper function on `STTx`, `getFeePayer`.
* Removes the usage of `mSourceBalance` and replaces it with SLE balance lookups.
* Renames `mPriorBalance` to `preFeeBalance_`

This simplifies some of the code in the transactors and makes it a lot more readable.
2026-03-17 14:12:16 +00:00
Pratik Mankawde
5ae97fa8ae refactor: Add no-ASAN macro for Throw statements (#6373)
Throwing exceptions from code sometime confuses ASAN, as it cannot keep track of stack frames. This change therefore adds a macro to skip instrumentation around the `Throw` function.
2026-03-17 13:10:32 +00:00
Bart
ffea3977f0 refactor: Rename system name from 'ripple' to 'xrpld' (#6347)
Per [XLS-0095](https://xls.xrpl.org/xls/XLS-0095-rename-rippled-to-xrpld.html), we are taking steps to rename ripple(d) to xrpl(d). This change modifies the system name from `rippled` to `xrpld`.

The system name is used in limited places:
* When no explicit config file is passed via the `--config` flag, then the system name is used to construct the path where the config file and database may be stored, via the `$XDG_CONFIG_HOME` and `$XDG_DATA_HOME` directories, respectively.
* It is used in the metadata and user-agent as part of RPC calls.
* It is newly used in the full version string.
2026-03-16 21:51:31 +00:00
Alex Kremer
47a235b7be chore: Enable clang-tidy switch-missing-default-case check (#6461) 2026-03-16 17:19:37 -04:00
Pratik Mankawde
983816248a fix: Switch to boost::coroutine2 (#6372)
ASAN wasn't able to keep track of `boost::coroutine` context switches, and would lead to many false positives being detected. By switching to `boost::coroutine2` and `ucontext`, ASAN is able to know about the context switches advertised by the `boost::fiber` class, which in turn leads to more cleaner ASAN analysis.
2026-03-16 15:34:15 +00:00
Pratik Mankawde
b585dc78bb fix: Fix memory leaks in HTTPClient (#6370)
The `HTTPClient` class initializes a global SSL context via `initializeSSLContext()`. However, it had no way to release it, which caused memory leaks flagged by the LeakSanitizer. Multiple LSAN suppressions in the sanitizers' suppressions file were masking these leaks. Our test code also manually called `initializeSSLContext()` in each test without guaranteed cleanup on failure paths.

This change fixes these memory leaks by adding a `cleanupSSLContext()` method to properly release the global SSL context, and removes the corresponding LSAN suppressions. The change further refactors the `HTTPClient` tests to use a Google Test fixture (`HTTPClientTest`) that manages the SSL context lifecycle via RAII (SetUp/TearDown), making it impossible for tests to leak the context.
2026-03-16 14:12:48 +00:00
Pratik Mankawde
1738a69619 refactor: Delete SecretKey compare op from library and move it to tests module (#6503)
This change deletes the `SecretKey` equality/inequality operators from the public library header and moves the comparison logic into test-only code.

Specifically, the `operator==` and `operator!=` free functions on `SecretKey` have been removed from `include/xrpl/protocol/SecretKey.h` and have been replaced with explicitly deleted member functions to prevent accidental use in production code. A named `test::equal()` helper has also been added in `src/test/unit_test/utils.h` for test assertions that need to compare secret keys.
2026-03-16 10:55:12 +00:00
Mayukha Vadari
1bf9e6e7da fix: Remove a newline from logging statement in changeSpotPrice calculation (#6547)
This change removes an unnecessary newline in a logging statement. Namely, `std::endl` is unneeded in `JLOG`, since it automatically places a newline at the end of the string.
2026-03-13 18:12:25 +00:00