#include #include #include #include #include #include #include namespace xrpl::test::jtx { json::Value pay(AccountID const& account, AccountID const& to, AnyAmount amount) { amount.to(to); json::Value jv; jv[jss::Account] = to_string(account); jv[jss::Amount] = amount.value.getJson(JsonOptions::Values::None); jv[jss::Destination] = to_string(to); jv[jss::TransactionType] = jss::Payment; jv[jss::Flags] = tfFullyCanonicalSig; return jv; } json::Value pay(Account const& account, Account const& to, AnyAmount amount) { return pay(account.id(), to.id(), amount); } } // namespace xrpl::test::jtx