refactor: Rename (mostly keylet) functions to more closely match the docs (#7059)

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
Mayukha Vadari
2026-06-26 06:24:12 -04:00
committed by GitHub
parent 0711a7b493
commit b9eee1d245
114 changed files with 825 additions and 812 deletions

View File

@@ -2196,7 +2196,7 @@ public:
jtx::PrettyAmount const& expectBalance)
{
Issue const& issue = expectBalance.value().get<Issue>();
auto const sleTrust = env.le(keylet::line(account.id(), issue));
auto const sleTrust = env.le(keylet::trustLine(account.id(), issue));
BEAST_EXPECT(sleTrust);
if (sleTrust)
{
@@ -2363,7 +2363,7 @@ public:
else
{
// Verify that no trustline was created.
auto const sleTrust = env.le(keylet::line(acct, usd));
auto const sleTrust = env.le(keylet::trustLine(acct, usd));
BEAST_EXPECT(!sleTrust);
}
}
@@ -2548,8 +2548,8 @@ public:
env.require(offers(bob, 0));
// The two trustlines that were generated by offers should be gone.
BEAST_EXPECT(!env.le(keylet::line(alice.id(), eur)));
BEAST_EXPECT(!env.le(keylet::line(bob.id(), usd)));
BEAST_EXPECT(!env.le(keylet::trustLine(alice.id(), eur)));
BEAST_EXPECT(!env.le(keylet::trustLine(bob.id(), usd)));
// Make two more offers that leave one of the offers non-dry. We
// need to properly sequence the transactions:
@@ -4484,7 +4484,7 @@ public:
jtx::Account const& src,
jtx::Account const& dst,
Currency const& cur) -> bool {
return bool(env.le(keylet::line(src, dst, cur)));
return bool(env.le(keylet::trustLine(src, dst, cur)));
};
Account const alice("alice");