Add support for XLS-81 Permissioned DEX (#5404)

Modified transactions:
- OfferCreate
- Payment

Modified RPCs:
- book_changes
- subscribe
- book_offers
- ripple_path_find
- path_find

Spec: https://github.com/XRPLF/XRPL-Standards/pull/281
This commit is contained in:
Shawn Xie
2025-05-30 13:24:48 -04:00
committed by GitHub
parent e0bc3dd51f
commit 0a34b5c691
73 changed files with 4591 additions and 308 deletions

View File

@@ -132,7 +132,8 @@ struct Directory_test : public beast::unit_test::suite
// Now check the orderbook: it should be in the order we placed
// the offers.
auto book = BookDirs(*env.current(), Book({xrpIssue(), USD.issue()}));
auto book = BookDirs(
*env.current(), Book({xrpIssue(), USD.issue(), std::nullopt}));
int count = 1;
for (auto const& offer : book)
@@ -291,7 +292,8 @@ struct Directory_test : public beast::unit_test::suite
// should have no entries and be empty:
{
Sandbox sb(env.closed().get(), tapNONE);
uint256 const bookBase = getBookBase({xrpIssue(), USD.issue()});
uint256 const bookBase =
getBookBase({xrpIssue(), USD.issue(), std::nullopt});
BEAST_EXPECT(dirIsEmpty(sb, keylet::page(bookBase)));
BEAST_EXPECT(!sb.succ(bookBase, getQualityNext(bookBase)));