20#include <test/jtx/deposit.h>
22#include <xrpl/protocol/jss.h>
35 jv[sfAccount.jsonName] = account.human();
36 jv[sfAuthorize.jsonName] =
auth.human();
37 jv[sfTransactionType.jsonName] = jss::DepositPreauth;
46 jv[sfAccount.jsonName] = account.human();
47 jv[sfUnauthorize.jsonName] =
unauth.human();
48 jv[sfTransactionType.jsonName] = jss::DepositPreauth;
59 jv[sfAccount.jsonName] = account.human();
61 auto& arr(jv[sfAuthorizeCredentials.jsonName]);
62 for (
auto const& o :
auth)
65 j2[jss::Credential] = o.toJson();
68 jv[sfTransactionType.jsonName] = jss::DepositPreauth;
79 jv[sfAccount.jsonName] = account.human();
81 auto& arr(jv[sfUnauthorizeCredentials.jsonName]);
82 for (
auto const& o :
auth)
85 j2[jss::Credential] = o.toJson();
88 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.