1#include <test/jtx/check.h>
3#include <xrpl/protocol/TxFlags.h>
4#include <xrpl/protocol/jss.h>
17 jv[sfAccount.jsonName] = dest.
human();
19 jv[sfCheckID.jsonName] =
to_string(checkId);
20 jv[sfTransactionType.jsonName] = jss::CheckCash;
32 jv[sfAccount.jsonName] = dest.
human();
34 jv[sfCheckID.jsonName] =
to_string(checkId);
35 jv[sfTransactionType.jsonName] = jss::CheckCash;
44 jv[sfAccount.jsonName] = dest.
human();
45 jv[sfCheckID.jsonName] =
to_string(checkId);
46 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.