Merge branch 'develop' into ximinez/lending-XLS-66

This commit is contained in:
Bronek Kozicki
2025-06-05 12:39:19 +01:00
74 changed files with 10125 additions and 1488 deletions

View File

@@ -231,42 +231,6 @@ expectLedgerEntryRoot(
return accountBalance(env, acct) == to_string(expectedValue.xrp());
}
/* Escrow */
/******************************************************************************/
Json::Value
escrow(AccountID const& account, AccountID const& to, STAmount const& amount)
{
Json::Value jv;
jv[jss::TransactionType] = jss::EscrowCreate;
jv[jss::Account] = to_string(account);
jv[jss::Destination] = to_string(to);
jv[jss::Amount] = amount.getJson(JsonOptions::none);
return jv;
}
Json::Value
finish(AccountID const& account, AccountID const& from, std::uint32_t seq)
{
Json::Value jv;
jv[jss::TransactionType] = jss::EscrowFinish;
jv[jss::Account] = to_string(account);
jv[sfOwner.jsonName] = to_string(from);
jv[sfOfferSequence.jsonName] = seq;
return jv;
}
Json::Value
cancel(AccountID const& account, Account const& from, std::uint32_t seq)
{
Json::Value jv;
jv[jss::TransactionType] = jss::EscrowCancel;
jv[jss::Account] = to_string(account);
jv[sfOwner.jsonName] = from.human();
jv[sfOfferSequence.jsonName] = seq;
return jv;
}
/* Payment Channel */
/******************************************************************************/
Json::Value