Skip to content

Accept canonical account and state ledger_entry locators - #22

Closed
GautamBytes wants to merge 98 commits into
XRPLF:developfrom
GautamBytes:fix/3215-ledger-entry-aliases
Closed

GautamBytes wants to merge 98 commits into
XRPLF:developfrom
GautamBytes:fix/3215-ledger-entry-aliases

Conversation

@GautamBytes

@GautamBytes GautamBytes commented Sep 25, 2026 •

Copy link
Copy Markdown
Contributor

Accept account/state alongside account_root/ripple_state, including hex state indexes. Reject conflicting alias names.

Part of XRPLF/clio#3215. Clio needs a release containing this fix and its matching handler update.

godexsoft and others added 30 commits June 24, 2026 11:19
Header-only consteval RPC spec DSL shared by Clio and rippled.
Includes Conan header-library packaging, CMake install/export rules,
and standalone unit tests exercising the rippled (xrpl::) backend.
The DSL compiles against xrpl protocol headers (via detail/XrplNs.hpp) in
both backends. Rather than pull libxrpl into the test build, mock the small
protocol surface the tests touch in tests/stubs/xrpl_mock.hpp, exposed behind
the eight <xrpl/...> shim headers XrplNs.hpp includes. tests/stubs is placed
first on the include path so those resolve to the mock.

Also disable boost cobalt in the conan recipe (boost 1.91 package_info fails
on cobalt_io_ssl otherwise); only Boost::json is needed.
Admission spec: Add a default implementation of Resolver.
field("accounts", required, kRippleStateAccountsValidator),
field("currency", required, currency)),
rippleStateConv),
AliasedLocator{

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.

I don't like how we have to duplicate the body of the field and how it's AliasedLocator{...} instead of the DSL style (e.g. alias(...) or field({"name1", "name2"}, ...)). The idea is good though and seems needed so let's make it more of a DSL and less duplication 👍

@godexsoft

Copy link
Copy Markdown
Collaborator

@GautamBytes this needs to rebase on develop and re-open. Sorry for inconvenience

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.

3 participants