20#include <xrpl/basics/Log.h>
21#include <xrpl/basics/safe_cast.h>
22#include <xrpl/beast/utility/instrumentation.h>
23#include <xrpl/json/json_value.h>
24#include <xrpl/protocol/LedgerFormats.h>
25#include <xrpl/protocol/SField.h>
26#include <xrpl/protocol/STBase.h>
27#include <xrpl/protocol/STInteger.h>
28#include <xrpl/protocol/Serializer.h>
29#include <xrpl/protocol/TER.h>
30#include <xrpl/protocol/TxFormats.h>
57 if (
getFName() == sfTransactionResult)
65 <<
"Unknown result code in metadata: " <<
value_;
75 if (
getFName() == sfTransactionResult)
83 <<
"Unknown result code in metadata: " <<
value_;
108 if (
getFName() == sfLedgerEntryType)
111 safe_cast<LedgerEntryType>(
value_));
114 return item->getName();
117 if (
getFName() == sfTransactionType)
123 return item->getName();
133 if (
getFName() == sfLedgerEntryType)
136 safe_cast<LedgerEntryType>(
value_));
139 return item->getName();
142 if (
getFName() == sfTransactionType)
148 return item->getName();
209 auto convertToString = [](uint64_t
const value,
int const base) {
211 base == 10 || base == 16,
212 "ripple::STUInt64::getJson : base 10 or 16");
214 base == 10 ? 20 : 16, 0);
219 "ripple::STUInt64::getJson : to_chars succeeded");
226 return convertToString(
value_, 10);
229 return convertToString(
value_, 16);
bool shouldMeta(int c) const
SField const & getFName() const
Json::Value getJson(JsonOptions) const override
std::string getText() const override
value_type value() const noexcept
SerializedTypeID getSType() const override
static constexpr TERSubset fromInt(int from)
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
beast::Journal debugLog()
Returns a debug journal.
bool transResultInfo(TER code, std::string &token, std::string &text)
Note, should be treated as flags that can be | and &.