20#include <xrpl/basics/Log.h>
21#include <xrpl/basics/StringUtilities.h>
22#include <xrpl/basics/safe_cast.h>
23#include <xrpl/beast/core/LexicalCast.h>
24#include <xrpl/protocol/LedgerFormats.h>
25#include <xrpl/protocol/STInteger.h>
26#include <xrpl/protocol/TER.h>
27#include <xrpl/protocol/TxFormats.h>
49 if (
getFName() == sfTransactionResult)
57 <<
"Unknown result code in metadata: " <<
value_;
67 if (
getFName() == sfTransactionResult)
75 <<
"Unknown result code in metadata: " <<
value_;
100 if (
getFName() == sfLedgerEntryType)
103 safe_cast<LedgerEntryType>(
value_));
106 return item->getName();
109 if (
getFName() == sfTransactionType)
115 return item->getName();
125 if (
getFName() == sfLedgerEntryType)
128 safe_cast<LedgerEntryType>(
value_));
131 return item->getName();
134 if (
getFName() == sfTransactionType)
140 return item->getName();
201 auto convertToString = [](uint64_t
const value,
int const base) {
203 base == 10 || base == 16,
204 "ripple::STUInt64::getJson : base 10 or 16");
206 base == 10 ? 20 : 16, 0);
211 "ripple::STUInt64::getJson : to_chars succeeded");
218 return convertToString(
value_, 10);
221 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 &.