20#include <test/jtx/deposit.h>
21#include <xrpl/protocol/jss.h>
34 jv[sfAccount.jsonName] = account.human();
35 jv[sfAuthorize.jsonName] =
auth.human();
36 jv[sfTransactionType.jsonName] = jss::DepositPreauth;
45 jv[sfAccount.jsonName] = account.human();
46 jv[sfUnauthorize.jsonName] =
unauth.human();
47 jv[sfTransactionType.jsonName] = jss::DepositPreauth;
58 jv[sfAccount.jsonName] = account.human();
60 auto& arr(jv[sfAuthorizeCredentials.jsonName]);
61 for (
auto const& o :
auth)
64 j2[jss::Credential] = o.toJson();
67 jv[sfTransactionType.jsonName] = jss::DepositPreauth;
78 jv[sfAccount.jsonName] = account.human();
80 auto& arr(jv[sfUnauthorizeCredentials.jsonName]);
81 for (
auto const& o :
auth)
84 j2[jss::Credential] = o.toJson();
87 jv[sfTransactionType.jsonName] = jss::DepositPreauth;
Value & append(const Value &value)
Append value to array at the end.
Immutable cryptographic account descriptor.
@ arrayValue
array value (ordered list)
Json::Value unauth(Account const &account, Account const &unauth)
Remove preauthorization for deposit.
Json::Value unauthCredentials(jtx::Account const &account, std::vector< AuthorizeCredentials > const &auth)
Json::Value authCredentials(jtx::Account const &account, std::vector< AuthorizeCredentials > const &auth)
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.