1#include <test/jtx/deposit.h>
3#include <xrpl/protocol/jss.h>
16 jv[sfAccount.jsonName] = account.human();
17 jv[sfAuthorize.jsonName] =
auth.human();
18 jv[sfTransactionType.jsonName] = jss::DepositPreauth;
27 jv[sfAccount.jsonName] = account.human();
28 jv[sfUnauthorize.jsonName] =
unauth.human();
29 jv[sfTransactionType.jsonName] = jss::DepositPreauth;
40 jv[sfAccount.jsonName] = account.human();
42 auto& arr(jv[sfAuthorizeCredentials.jsonName]);
43 for (
auto const& o :
auth)
46 j2[jss::Credential] = o.toJson();
49 jv[sfTransactionType.jsonName] = jss::DepositPreauth;
60 jv[sfAccount.jsonName] = account.human();
62 auto& arr(jv[sfUnauthorizeCredentials.jsonName]);
63 for (
auto const& o :
auth)
66 j2[jss::Credential] = o.toJson();
69 jv[sfTransactionType.jsonName] = jss::DepositPreauth;
Value & append(Value const &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.