20#include <test/jtx/check.h>
22#include <xrpl/protocol/TxFlags.h>
23#include <xrpl/protocol/jss.h>
36 jv[sfAccount.jsonName] = dest.
human();
38 jv[sfCheckID.jsonName] =
to_string(checkId);
39 jv[sfTransactionType.jsonName] = jss::CheckCash;
51 jv[sfAccount.jsonName] = dest.
human();
53 jv[sfCheckID.jsonName] =
to_string(checkId);
54 jv[sfTransactionType.jsonName] = jss::CheckCash;
63 jv[sfAccount.jsonName] = dest.
human();
64 jv[sfCheckID.jsonName] =
to_string(checkId);
65 jv[sfTransactionType.jsonName] = jss::CheckCancel;
Json::Value getJson(JsonOptions=JsonOptions::none) const override
Immutable cryptographic account descriptor.
std::string const & human() const
Returns the human readable public key.
void check(bool condition, std::string const &message)
Json::Value cancel(jtx::Account const &dest, uint256 const &checkId)
Cancel a check.
Json::Value cash(jtx::Account const &dest, uint256 const &checkId, STAmount const &amount)
Cash a check requiring that a specific amount be delivered.
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
std::string to_string(base_uint< Bits, Tag > const &a)
Type used to specify DeliverMin for cashing a check.