20#include <test/jtx/escrow.h>
22#include <xrpl/protocol/TxFlags.h>
23#include <xrpl/protocol/jss.h>
36 jv[jss::TransactionType] = jss::EscrowCreate;
48 jv[jss::TransactionType] = jss::EscrowFinish;
52 jv[sfOfferSequence.jsonName] =
seq;
60 jv[jss::TransactionType] = jss::EscrowCancel;
63 jv[sfOwner.jsonName] = from.
human();
64 jv[sfOfferSequence.jsonName] =
seq;
72 if (sle->isFieldPresent(sfTransferRate))
Json::Value getJson(JsonOptions=JsonOptions::none) const override
Immutable cryptographic account descriptor.
std::string const & human() const
Returns the human readable public key.
A transaction testing environment.
std::shared_ptr< SLE const > le(Account const &account) const
Return an account root.
Keylet escrow(AccountID const &src, std::uint32_t seq) noexcept
An escrow entry.
Json::Value create(AccountID const &account, AccountID const &to, STAmount const &amount)
Rate rate(Env &env, Account const &account, std::uint32_t const &seq)
Json::Value cancel(AccountID const &account, Account const &from, std::uint32_t seq)
Json::Value finish(AccountID const &account, AccountID const &from, std::uint32_t seq)
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
std::string to_string(base_uint< Bits, Tag > const &a)
constexpr std::uint32_t tfFullyCanonicalSig
Transaction flags.
Represents a transfer rate.
Set the sequence number on a JTx.