|
xrpld
|

Directories | |
| ledger_entries | |
| transactions | |
Files | |
| LedgerEntryBase.h | |
| LedgerEntryBuilderBase.h | |
| STObjectValidation.h | |
| TransactionBase.h | |
| TransactionBuilderBase.h | |
| Utils.h | |
This directory contains auto-generated C++ wrapper classes for XRP Ledger protocol types.
The files in this directory are generated from macro definition files:
Generation requires a one-time setup step to create a virtual environment and install Python dependencies, followed by running the generation target:
By default, CODEGEN_VENV_DIR points to .venv in the project root. The setup_code_gen target creates a venv there and installs the required packages. The code_gen target then uses the venv's Python interpreter to run generation.
The code generation requires the following Python packages (installed by setup_code_gen):
The generated .h files are checked into version control. This means:
Do not manually edit generated files. Any changes will be overwritten the next time code_gen is run.
To modify the generated classes:
If you add a new common field to TxFormats.cpp or LedgerFormats.cpp, you should also update the corresponding base classes and templates manually:
Base classes:
Templates (update to pass required common fields to base class constructors):
These files are not auto-generated and must be updated by hand.