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;
38 jv[sfAccount.jsonName] = account.human();
40 auto& arr(jv[sfAuthorizeCredentials.jsonName]);
41 for (
auto const& o :
auth)
44 j2[jss::Credential] = o.toJson();
47 jv[sfTransactionType.jsonName] = jss::DepositPreauth;
56 jv[sfAccount.jsonName] = account.human();
58 auto& arr(jv[sfUnauthorizeCredentials.jsonName]);
59 for (
auto const& o :
auth)
62 j2[jss::Credential] = o.toJson();
65 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 authCredentials(jtx::Account const &account, std::vector< AuthorizeCredentials > const &auth)
Json::Value unauth(Account const &account, Account const &unauth)
Remove pre-authorization for deposit.
Json::Value unauthCredentials(jtx::Account const &account, std::vector< AuthorizeCredentials > const &auth)
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.